|
Post by decurus on Jan 16, 2014 2:07:28 GMT
Hi guys. a few days ago i bought this app mainly to connect a hardware controller via wifi to my pc. it works pretty well. Also i'm using the app "touchOSC" to control some parameters, and this also works good. But now i want my iPad to only send Note-on singals, which came from the controller, if i press a specified CC on the touchOSC app. In other words: If I play a note on the hardware controller, nothing should happen, until i ALSO set the CC in my touchOSC app to 127. After a long time about trying and thinking i get out off ideas, how to manage this. I tried to use the Stream Byter with the line " BF 01 00 = 9X XX 00 " Actually i thought at least this line should work, but it doesn't. But I'm pretty sure I connected everything in the right way, because if I try something like: BF 01 7F = 91 40 7F BF 01 00 = 91 40 00 everything works like i expected it…if i set the controller (which is actually on channel 16 with number 1) to 127, my pc plays a note. I hope, I described my problem in an understandable way. And sorry for my broken english, i'm not a native english-speaker Thanks Decurus
|
|
nic
Soapbox Supremo
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Jan 16, 2014 9:49:29 GMT
Hi Decurus,
If I understand your problem (I can read Deutsch, Nederlands and Francais if anyone wants to post in those languages) I would use the Stream Byter and Scenes to do what you want:
First, connect your controller and start up all the apps you are working with including TouchOSC of course. Make all the connections you need. TouchOSC doesn't have its own virtual ports, so I am guessing that you have setup TouchOSC to send events to MidiBridge?
Second, in the MidiBridge Preferences>Options change the Scene Channel to 15. This channel will be used for scene switching inside MidiBridge, so don't send any program changes on channel 15 into the MidiBridge virtual port!
Return to the main Interfaces page, touch the beaker on the controller port (on left) and the Stream Byter accessory arrow. Press 'On' to enable and enter the following:
# block all note events NX = XX +B
Press 'Install Rules' then Done and Done to return to the main interface page. You could also setup the Event Filter module to block the notes if you prefer.
Now, on the MidiBridge input port (on left) put this rule into that Stream Byter:
# switch scene 1 on CC 1, val 7F BF 01 7F = CE 01 +C
Bring up the Scenes panel and hold down on scene 000 and give it a name like 'Block Notes'.
Now, return to the Stream Byter on the left controller port and remove that block rule.
In the Stream Byter for MidiBridge input change the rule as so:
# switch scene 0 on CC1, val 0-7E BF 01 00-7E = CE 00 +C
Now save into scene 001 and give it a name like 'Unblock Notes'
Now what will happen is as you move the control in TouchOSC when it sends any value other than 7F it will switch to scene 000 which will block notes from the controller. When the controller sends a 7F then scene 001 is selected which unblocks the controller's notes. You only need to set this up once as MidiBridge will remember everything.
Please let us know how you get on.
Regards, Nic.
|
|
|
Post by decurus on Jan 16, 2014 20:59:43 GMT
Hi Nick I just tested your suggestion and actually it works pretty nice. but..there is one point i forgot to mention ^^
if i press a key on the controller without touching the cc it plays no note, as expected. but, and here is what i forgot: if i hold the key on the midi controller and THAN set the cc to 127 also nothing happens, because if i change the scene, the note-on signal would not be repeated.
Do you have any suggestions how to solve this?
Greets Decurus
|
|
nic
Soapbox Supremo
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Jan 16, 2014 21:12:50 GMT
A note event has two parts. A note on event is sent to tell the synth to start playing the sound and when you release the key a note off is sent.
What is happening is that the note on event is sent but blocked/thrown away so the destination will never sound when you hold the note and then switch scenes via CC value of 127.
Rather than block the notes maybe you should send a volume (CC 7) of zero to the sound generator in scene 0 and then set it to 7f in scene 1?
Regards, Nic.
|
|
|
Post by decurus on Jan 16, 2014 21:22:41 GMT
yeah, i already thought about this, and also got a solution in this way, but the problem is, the notes will be played independent from the volume of the software synthesizer…well, thats no problem for a live performance, butt if i want to record the played midi-part i also have to record an automation curve of the volume, and thats what i want to avoid...
|
|