General
Many interfaces, just the current loaded shall send out sth
Started by Gass n Klang on .
Sign in or create an account to join the conversation.
Hey guys,
I've got an interface per song. Some controls are remote controlled by a midi device. I use the same device with the same commands for different things depending on the current song thats played. At the moment all Interfaces react to my midi device. So Knob1 (remotecontrolled by MidiCC 1, Channel 1) controls cutoff-frequency in one song and decay in another. How can I ensure that only the recently loaded Interface reacts to incoming Midi and OSC commands?
I've got an interface per song. Some controls are remote controlled by a midi device. I use the same device with the same commands for different things depending on the current song thats played. At the moment all Interfaces react to my midi device. So Knob1 (remotecontrolled by MidiCC 1, Channel 1) controls cutoff-frequency in one song and decay in another. How can I ensure that only the recently loaded Interface reacts to incoming Midi and OSC commands?
Subject: Re: Many interfaces, just the current loaded shall send out
You can use the built-in function current_interface. This returns the current_interface number.Subject: Re: Many interfaces, just the current loaded shall send out
Thanks! How to turn that on? Sorry for my newbie questions Subject: Re: Many interfaces, just the current loaded shall send out
If I remember correctly you translate all incoming midi via a script. So just put in the script:if(current_interface == 1) {
//anything you want to do
}
It should then only trigger when the selected interface equals the one in the script.Subject: Re: Many interfaces, just the current loaded shall send out
ok thanks. Isn't there a more simple solution to just turn on the current interface? If I understand right I have to put everything that's controlled in the current Interface to the if condition. Can't I just disable all interfaces that are not "on top"/loaded?Subject: Re: Many interfaces, just the current loaded shall send out
well If this doesn't work that easy, is it possible to load a lemur project by receiving a midi programSubject: Re: Many interfaces, just the current loaded shall send out
I don't think either of those options is possible. And I can't really think of a easy way to get this thing done.Subject: Re: Many interfaces, just the current loaded shall send out
Alright. Then: Is there a way to name the interfaces, use the if(current_interface == NAME OF THE INTERFACE) and combine it with "else block all incoming Midi and OSC data"?Subject: Re: Many interfaces, just the current loaded shall send out
As I found out, "current_interface" does not help. It only transmits the number, not the name of the interface. So if you create 2 interfaces named "A" (=0) and "C" (=1 because of alphabetical order) and create a third interface "B" then A=0 B=1 and C=2. So if I call my interfaces after the songnames I use them for, this will not work.