02-15-2022, 06:10 PM
|
#1 |
|
Human being with feelings
Join Date: Jan 2022
Posts: 8
|
Hi,
I'm a developer working on a VST3 plugin. I needed to know the index of the track on which my plugin is loaded. So I reimplemented (IInfoListener::setChannelContextInfos). But REAPER sends the channel index only for Track 2 and up. And no channel index is sent for Master or Track 1. Can anyone confirm this issue (REAPER v6.46)? Thanks. |
|
|
02-15-2022, 06:38 PM
|
#2 |
|
Administrator
Join Date: Mar 2007
Location: NY
Posts: 17,784
|
You are correct that REAPER doesn't send the track index for track 1, we can fix that for the next build.
Are there documented semantics for what the master track should report as its track index? |
|
|
02-16-2022, 06:04 AM
|
#3 |
|
Human being with feelings
Join Date: Jan 2022
Posts: 8
|
Thanks for the quick replay!
The master track must report 1 as index.. but you must set kChannelIndexNamespaceOrderKey too. It must be either 1 or 3. For other tracks it must be set to 2. You can find more info here: pluginterfaces/vst/ivstchannelcontextinfo.h. |
|
|
02-16-2022, 06:27 AM
|
#4 |
|
Administrator
Join Date: Mar 2007
Location: NY
Posts: 17,784
|
I'm not actually seeing that specification. It looks like we can define our own index namespaces and say the master track is index 1 in the "master" namespace, and the other tracks are index N in the "tracks" namespace, or similar.
|
|
|
02-16-2022, 06:49 AM
|
#5 |
|
Human being with feelings
Join Date: Jan 2022
Posts: 8
|
Yes that would be good enough.
It would be helpful if you can also set the kChannelIndexNamespaceOrderKey. So it can be something like this: Master: - kChannelIndexKey = 1 - kChannelIndexNamespaceKey = "master" - kChannelIndexNamespaceOrderKey = 1 Track: - kChannelIndexKey = 1..N - kChannelIndexNamespaceKey = "tracks" - kChannelIndexNamespaceOrderKey = 2 |
|
|
02-16-2022, 01:34 PM
|
#6 |
|
Administrator
Join Date: Mar 2007
Location: NY
Posts: 17,784
|
This should be supported in the latest development builds of REAPER, if you'd care to try it out and let us know if you have any feedback.
https://forum.cockos.com/forumdisplay.php?f=37 Last edited by schwa; 02-16-2022 at 01:48 PM. |
|
|
02-16-2022, 01:46 PM
|
#7 |
|
Human being with feelings
Join Date: Jan 2022
Posts: 8
|
Sure. Where can I find the latest builds?
|
|
|
02-16-2022, 01:46 PM
|
#8 |
|
Administrator
Join Date: Mar 2007
Location: NY
Posts: 17,784
|
At the link in my last post.
|
|
|
![]() |
| Thread Tools | |
|
|