Post by reezekeys on May 13, 2022 18:56:22 GMT
Hi, once again I seem to have bitten off a little more than I can chew. My programming experience ended with GFA Basic for the Atari ST, oh, about 30 years ago!
I select playalong song files on my iPad (AUM channels with file players) using pads on my Roland A800 Pro keyboard. There are eight pads, of which the last is used to start & stop the file playing. The other seven pads are used to select which file I want to play. These all send CC messages that are mapped in AUM, and everything works fine.
The problem is that I now have more than seven files I want to have available to play. I thought I'd assign a separate button on my A800 as a "shift key" - a CC message that when "off" (value = 0), I get songs 1 - 7, and toggled on (value = 127) I can use those same seven pads to select songs 8 - 14.
My lame "pseudo-code" looks like this:
IF you see CC # 38 (the CC of my "shift key" button)
IF the value is 127
make a variable = 7
ELSE
make that same variable = 0
ENDIF
[edit - I just realized I don't have to use values of 0 and 127 for that "shift key" button, I can just as easily program the button to send 0 and 7 for the data bytes. So, all I'd need to do is directly assign that value to a variable. In my ignorance I could not figure out how to do that in SB]
ENDIF
IF you see a CC # between 30 and 36 (the CC #s of the seven pads for selecting song files)
ADD "variable" to the CC's value
ENDIF
There is probably a more efficient way to do this that I'm not able to conceive of, but this is all I got right now! Studying the Streambyter manual is a bit of a slog, as I'm having problems figuring out the correct syntax. I constantly get "ERR" when I tap "Install Rules." Any help is appreciated greatly. Thanks!
I select playalong song files on my iPad (AUM channels with file players) using pads on my Roland A800 Pro keyboard. There are eight pads, of which the last is used to start & stop the file playing. The other seven pads are used to select which file I want to play. These all send CC messages that are mapped in AUM, and everything works fine.
The problem is that I now have more than seven files I want to have available to play. I thought I'd assign a separate button on my A800 as a "shift key" - a CC message that when "off" (value = 0), I get songs 1 - 7, and toggled on (value = 127) I can use those same seven pads to select songs 8 - 14.
My lame "pseudo-code" looks like this:
IF you see CC # 38 (the CC of my "shift key" button)
IF the value is 127
make a variable = 7
ELSE
make that same variable = 0
ENDIF
[edit - I just realized I don't have to use values of 0 and 127 for that "shift key" button, I can just as easily program the button to send 0 and 7 for the data bytes. So, all I'd need to do is directly assign that value to a variable. In my ignorance I could not figure out how to do that in SB]
ENDIF
IF you see a CC # between 30 and 36 (the CC #s of the seven pads for selecting song files)
ADD "variable" to the CC's value
ENDIF
There is probably a more efficient way to do this that I'm not able to conceive of, but this is all I got right now! Studying the Streambyter manual is a bit of a slog, as I'm having problems figuring out the correct syntax. I constantly get "ERR" when I tap "Install Rules." Any help is appreciated greatly. Thanks!