|
Post by dinoe on Dec 29, 2014 19:19:18 GMT
Hi. I am trying to use an iRig Blueboard to control an app called Prime (http://loopcommunity.com/prime). On their forums, they list out the Midi note mappings for the various functions (http://loopcommunity.com/blocks/hardware/midi/prime-midi-mapping). Here is a list of their Mappings:
Stop is 0x7f (G10) Start playing track #'s: 1. 0x00 (C0) 2. 0x01 (C#0)
E2- auto advance/next song C#5- BPM down E5- BPM up F5- Key Up D5- Key Down
But, another set I found read:
Track 1: C#2 Track 2: D2 Track 3: D#2 Track 4: E2 Track 5: F2 Track 6: F#2 Track 7: G2 Track 8: G#2
BPM Up: C#8 BPM Down: E8
Key Up: D4 Key Down: F4
My question is: Can I use Stream Byter to map either program changes or control changes to these events? If so, what would the syntax be? I am pretty new to all of this, but learning quickly.
Thanks!
|
|
nic
Soapbox Supremo  
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Dec 29, 2014 20:37:52 GMT
Hi dinoe, Yeah, I'm not at all sure about those MIDI mappings you pasted, but the Stream Byter module can convert the BlueBoard controller messages to note messages, no problem. Here is a set of rules to paste into the Stream Byter on the BlueBoard input port (on left) to map buttons 1-3 to notes 00 to 02 and button 4 to 'stop' as per the above (and clean things up a little) - this assumes the BlueBoard is in 'Controller' mode with default controller assignments (controllers 000 to 003 for the 4 buttons) # BlueBoard > Prime X1-F = XX +B # block BB crapola B0 00-02 7F = 9X # but1-3/CC0-2 = note 0-2 on (play track 1-3) B0 03 7F = 9X 7F 7F # CC4 = stopThat might do something, but I can't guarantee anything! See how you go with that and let me know the outcome. Regards, Nic.
|
|
|
Post by dinoe on Dec 29, 2014 21:24:34 GMT
Thanks for the reply. That did indeed help! I am pretty impressed!
With your messages, button A doesn't do anything, button B plays track 1, button C plays track 2, and button D does indeed stop the music. That is pretty fantastic considering no guarantees, and all...
Not sure how you did what you did. I would like to troubleshoot, but I am over my skis here.
Any way to have the buttons start and stop the track via the on-off function (is it called latch)? So A would start and stop track 1, B would start and stop track 2, C track 3 and D track 4?
Thanks in advance!
|
|
nic
Soapbox Supremo  
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Dec 29, 2014 21:37:11 GMT
Hi dinoe, Let's take a wild punt that the note off stops the track, so try this (replace those previous rules): # BlueBoard > Prime X1-F = XX +B # block BB crapola B0 XX 7F = 9X # but 1-4 play tracks 1-4 B0 XX 00 = 8X # but 1-4 stop tracks 1-4I'm just guessing here about the note off stopping play but it would seem logical. Regards, Nic.
|
|
|
Post by dinoe on Dec 29, 2014 21:52:03 GMT
Nic,
No dice on stopping the playback. And Button A is still non-functional. The pedal does not stop anything any more. I really appreciate you playing with this. I wonder if simply sending the stop (Stop is 0x7f (G10)) from the mappings on note off would work?
You are indeed a wizard.
|
|
nic
Soapbox Supremo  
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Dec 29, 2014 21:56:17 GMT
Yes button 4 no longer stopping since I took that out. Not sure why button 1 not working. Let me think about it overnight and will revisit in the morning when my brain is fresher. We will need to do some scene magic for latching too.
Regards, Nic.
|
|
|
Post by dinoe on Dec 29, 2014 21:57:14 GMT
Much obliged. I will use the first batch of messages for now. Pretty slick.
|
|
nic
Soapbox Supremo  
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Dec 30, 2014 16:10:19 GMT
Hi dinoe, Yes, I see the problem. Here is a set of rules that does the following: Button A = start track 1 Button B = start track 2 Button C = start track 3 Button D = stop # BlueBoard > Prime X1-F = XX +B # block BB crapola B0 00 7F = 9X 01 # CC0 = play tk 1 B0 01 7F = 9X 02 # CC0 = play tk 2 B0 02 7F = 9X 03 # CC0 = play tk 3 B0 03 7F = 9X 7F 7F # CC4 = stopRegards, Nic.
|
|
|
Post by dinoe on Dec 30, 2014 18:03:13 GMT
Hi Nic
Thanks for giving another go at it. Everything worked this time. I am still thinking about possibly finessing the start-stop function of the control by taking advantage of all the latch states of the buttons. I think I can use the button off state to trigger a stop command. I just can't find which midi message to use. But you have given me a lot to work with. Very helpful.
|
|
nic
Soapbox Supremo  
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Dec 30, 2014 18:41:45 GMT
Hi dinoe, As far as I know, the BlueBoard does not latch at all, but it sends a different message when you release the button, which is B0 XX 00 instead of B0 XX 7F in the rules I produced. This means you have to keep your toe on the button to keep it playing, but something like: # stop play when any button released B0 00-03 00 = 90 7F 7F(add this rule at the end of current rules) You can fake a latch action with scenes and internal program changes in MidiBridge (technique described here) but this might be a bit tricky with this setup or you can use the hold function, so that a stop gets generated when you hold the button for longer than a specific amount of time: # send stop when button 1 held # for more than 1 second B0 00 = 90 7F 7F +H1000Hope that helps a bit. Regards, Nic.
|
|
|
Post by dinoe on Dec 30, 2014 18:47:48 GMT
This worked. Thanks again for your help.
X1-F = XX +B # block BB crapola B0 00 7F = 9X 01 # CC0 = play tk 1 B0 01 7F = 9X 02 # CC0 = play tk 2 B0 02 7F = 9X 03 # CC0 = play tk 3 B0 03 7F = 9X 04 # CC0 = play tk 4
B0 00 00 = 9X 7F 7F # all stop B0 01 00 = 9X 7F 7F # all stop B0 02 00 = 9X 7F 7F # all stop B0 03 00 = 9X 7F 7F # all stop
|
|
nic
Soapbox Supremo  
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Dec 30, 2014 18:56:04 GMT
Yep, those last 4 rules you have are equivalent to my 1st rule in the prior post. ;-)
Glad to hear you got something working for you!
Regards, Nic.
|
|
|
Post by dinoe on Dec 30, 2014 23:31:38 GMT
Couldn't have done it without your help. Thanks a heap!
|
|
|
Post by cooknic on Oct 11, 2015 20:40:43 GMT
Hi guys, i would like to use stream byter and the blueboard for the same app. However, I use more than four songs in loop community primes app so I'd like to set up the board a little differently. I am a beginner so almost no knowledge on coding. Id like to set button a up to play button b to stop button c for previous song and button d for next song.
any idea on how to do this?
|
|
nic
Soapbox Supremo  
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Oct 12, 2015 10:03:43 GMT
Hi cooknic (not sure I like the idea of being cooked!) I'm not familiar with Prime at all but looking at the link posted by dinoe originally: here I don't see any mapping for general play or next/previous song. However, someone has posted at the bottom of that thread that Prime has a MIDI learn mode, so I think it would be worth your while exploring that avenue. However, since the BlueBoard issues a controller on when you press (and light) a button and then a controller off when you press again, you probably need some rules to negate this behaviour. Something like this on the left BlueBoard port Stream Byter: # BB > Prime (cooknic) X1-F = XX +B # block BB crapola BX XX 00 = XX XX 7F # force ctl on
Once you have that installed and connected BlueBoard to Prime then making sure that Prime is picking up events from MidiBridge only switch it into MIDI learn mode and map the BlueBoard buttons to the functions you want. Hope this helps. Regards, Nic.
|
|