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.

9 posts

Topic starter
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?
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 
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.