Passing "non-port" data from gui to plugin

Programming applications for making music on Linux.

Moderators: MattKingUSA, khz

Post Reply
f00bar
Established Member
Posts: 83
Joined: Sun May 12, 2013 7:40 pm

Passing "non-port" data from gui to plugin

Post by f00bar »

I would like to make it possible to update gate patterns from the UI. Either from a built in pattern editor (Think tr-909 or tb-303), or from an external file. I guess I need to expose my internal sequence buffer to the host, but how could I do that when the buffer contains data that the host does not understand. The data is currently an array of Event objects

Code: Select all

struct Event
    {
    uint64_t time; /*<This time is absolute*/
    uint64_t type;
    union
        {
        uint8_t bytes[16];
        uint16_t words[8];
        uint32_t dwords[4];
        uint64_t qwords[2];
        } data;
    };
f00bar
Established Member
Posts: 83
Joined: Sun May 12, 2013 7:40 pm

Re: Passing "non-port" data from gui to plugin

Post by f00bar »

In manifest?

Code: Select all

        [
	a lv2:InputPort,atom:AtomPort;
	lv2:index 25;
	lv2:symbol "pattern";
	lv2:name "pattern";
	atom:bufferType atom:Chunk;
	]
Post Reply