|
Post by ulynch on Jun 27, 2015 17:10:09 GMT
I just bought Midi Bridge to help with interconnecting a Blueboard with a sample player on iPad. I'd like to use my Blueboard to trigger sounds in a simple iPad app called SAMPL. It's not responding to the Blueboard's PC or CC inputs, so I figure it needs a "note on" input. I'd like to set each of the BB's buttons to a different note on, then I'll assign each of those notes to a pad in SAMPL. I don't think which note really matters, as SAMPL has a "learn" mode.
Is this a job for Stream Byter? Or is there a simpler way? Could you help with the proper Stream Byter code?
Thanks
- D
|
|
|
Post by ulynch on Jun 28, 2015 22:12:52 GMT
I'm getting close, but it's not quite there. I have the Blueboard on midi channel 2, in CC mode, with "Allow bank change" disabled.
Here's what I have in Stream Byter:
B1 00 7f = 91 40 B1 00 00 = 81 40 B1 01 7f = 91 41 B1 01 00 = 81 41 B1 02 7f = 91 42 B1 02 00 = 81 42 B1 03 7f = 91 43 B1 03 00 = 81 43
With that in place, I go to SAMPL, put it in "Learn" mode, touch the sample I want triggered for BB button "A", hit button "A", then exit Learn mode.
The result is that I can press button "A" on the BB, it illuminates, and SAMPL responds by playing the sample I've assigned to that note. But to stop the sample, I have to press button "A" on the Blueboard twice more. So it looks like SAMPL is only responding to NOTE ON and not NOTE OFF messages. Is this normal for sample player apps?
I've tried a couple things, like sending a NOTE OFF after a short delay, or assigning all CC messages to NOTE ON, but the behavior in SAMPL is the same regardless.
Any ideas here? Am I using a weird sample player? I'm open to suggestions on that front :-)
Thanks
- D
|
|
nic
Soapbox Supremo  
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Jun 29, 2015 7:27:43 GMT
Hi ulynch, Yes, what you are seeing is quite normal. The BB buttons toggle between the CC on and CC off each time you press and thus according to your rules you send a note on when the CC would be on and a note off when the CC would be off. Here's an example of sending a note on + note off 1 second later when you press the button each time: B1 00 = 91 40 64 +C B1 00 = 81 40 +D1000 Regards, Nic.
|
|
|
Post by ulynch on Jun 30, 2015 3:30:18 GMT
Hey Nic,
Thanks for the reply. Yep, I tried that, but no change. For the life of me, I can't understand what SAMPL's logic is. It never responds to a second press of the BB button, regardless what I'm sending to it with Midi Bridge. First press = play sample, second press = no response, third press = stop playing, fourth press = no response.
Do all sample players do this with the Blueboard? Or if this is particular to SAMPL, maybe I should find another app. Any suggestions?
Thanks!
|
|
nic
Soapbox Supremo  
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Jun 30, 2015 5:37:26 GMT
Hi ulynch, I'm not familiar with samplr, but the accepted protocol is that when a sampling app receives a note on, it plays the entire sample unless a note off is received before sample end in which case it should stop play. I would imagine that samplr would adhere to this. The issue may be that samplr is reacting to the original blueboard events and not the mogrified ones. samplr needs to be configured (if it is possible) to only listen to the events that MidiBridge is generating and nothing else. Otherwise MIDI learn is going to have a difficult time. Regards, Nic.
|
|
|
Post by ulynch on Jun 30, 2015 13:49:08 GMT
samplr needs to be configured (if it is possible) to only listen to the events that MidiBridge is generating and nothing else. Otherwise MIDI learn is going to have a difficult time. To test that, I modified my Stream Byter code to read B1 00 7f = 92 40 B1 00 00 = 82 40 and moved SAMPL to MIDI channel 3, set it to learn, pressed BB button "A" twice, exit learn ... same behavior. I'm still looking for a support contact for SAMPL, but in the meantime, maybe I should start looking for an alternative. Any recommendations?
|
|
nic
Soapbox Supremo  
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Jun 30, 2015 19:42:45 GMT
Hi ulynch, As far as I remember, the BB insists on transmitting the controller event on all 16 channels. ie. it transmits 16 messages per button press, one per channel. If samplr is seeing these... An alternative to samplr - can't say I know enough about it to comment intelligently, but Beat Maker 2 seems to have reasonable sampler type features. Regards, Nic.
|
|
|
Post by ulynch on Jun 30, 2015 20:20:23 GMT
I was right, the app doesn't respond to note off, only to note on. And it does stop playing the sample when receiving the second note on -BUT- the velocity can't be zero. My code so far has not been modifying the CC value, which had been sent through MIDI Bridge as note velocity. The second press of a BB button sends CC value 00, so when translated to a note on (or off) the velocity is set to 00. SAMPL seems to ignore that. My new code (for just the first button) now reads B1 00 7f = 92 40 B1 00 00 = 92 40 7f SAMPL now does what I want it to do: start playing the assigned sample on the first press, and stop playing it on the second press. Now if it only supported background audio  Thanks a bunch for your help Nic. Great app you got there!
|
|
nic
Soapbox Supremo  
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Jul 1, 2015 17:56:23 GMT
Hi ulynchYes, a note on with velocity zero == note off in the MIDI spec, so if samplr does not respond to 8X note off events then I would expect it to ignore zero velocity note on events too. Glad you have it working. Thanks for letting us know how you got on. Regards, Nic.
|
|