From jp at cimalando.eu Mon Oct 16 07:18:03 2017 From: jp at cimalando.eu (JP Cimalando) Date: Mon, 16 Oct 2017 16:18:03 +0200 Subject: [LV2] Communication between effect and UI Message-ID: <20171016161752.5de7dba5@thp2> Hello. I am making a synthesizer and UI which exchange messages in both directions, using event ports and port notifications. How can I pass messages which are potentially larger than the port buffer? I believe jalv has a default port buffer of 32k. Please correct me if I am wrong; a plugin does not have a way to request a minimum port buffer (aka sequenceSize). Concretely, I may want to ask the audio effect to notify the UI of the instrument bank which is loaded in it, among several things. I have found that another plugin did such functionality just by using instance-access (Dexed I believe). Can I avoid using instance-access for this? From dev at open-music-kontrollers.ch Mon Oct 16 07:27:29 2017 From: dev at open-music-kontrollers.ch (Hanspeter Portner) Date: Mon, 16 Oct 2017 16:27:29 +0200 Subject: [LV2] Communication between effect and UI In-Reply-To: <20171016161752.5de7dba5@thp2> References: <20171016161752.5de7dba5@thp2> Message-ID: <9c5fe34f-752e-b2a6-b2d9-f6044eb0c0a7@open-music-kontrollers.ch> On 16.10.2017 16:18, JP Cimalando wrote: > Hello. > > I am making a synthesizer and UI which exchange messages in both > directions, using event ports and port notifications. How can I pass > messages which are potentially larger than the port buffer? > > I believe jalv has a default port buffer of 32k. Please correct me if I > am wrong; a plugin does not have a way to request a minimum port > buffer (aka sequenceSize). You can request minium event port buffer sizes via [1], e.g. see [2]. > Concretely, I may want to ask the audio effect to notify the UI of the > instrument bank which is loaded in it, among several things. I have > found that another plugin did such functionality just by using > instance-access (Dexed I believe). > > Can I avoid using instance-access for this? Put your info into custom atom objects or better even, use patch messages [3]. [1] http://lv2plug.in/ns/ext/resize-port/resize-port.html#minimumSize [2] https://git.open-music-kontrollers.ch/lv2/moony.lv2/tree/plugin/moony.ttl#n155 [3] http://lv2plug.in/ns/ext/patch/ From jp at cimalando.eu Mon Oct 16 07:34:32 2017 From: jp at cimalando.eu (JP Cimalando) Date: Mon, 16 Oct 2017 16:34:32 +0200 Subject: [LV2] Communication between effect and UI In-Reply-To: <9c5fe34f-752e-b2a6-b2d9-f6044eb0c0a7@open-music-kontrollers.ch> References: <20171016161752.5de7dba5@thp2> <9c5fe34f-752e-b2a6-b2d9-f6044eb0c0a7@open-music-kontrollers.ch> Message-ID: <20171016163421.21483dd9@thp2> On Mon, 16 Oct 2017 16:27:29 +0200 Hanspeter Portner wrote: > You can request minium event port buffer sizes via [1], e.g. see [2]. It seems to be precisely what I need, thanks. > Put your info into custom atom objects or better even, use patch > messages [3]. I have already implemented it with the former solution but it's good to know. > [1] http://lv2plug.in/ns/ext/resize-port/resize-port.html#minimumSize > [2] > https://git.open-music-kontrollers.ch/lv2/moony.lv2/tree/plugin/moony.ttl#n155 > [3] http://lv2plug.in/ns/ext/patch/