sacrebleu
2015-07-27 22:23:01
Greetings. I'm trying to use BMT to implement a midi channel switcher using a Korg Nano Kontrol. I'm brand new to this program. I've had some basic programming experience, tho long ago. What I'd like to do is use 2 buttons on the nano to increment and decrement the midi channel for the messages coming from the nano before going on to my software. As far as I can remember, I need to set up a basic counter in BMT, to count the number of button presses that have occurred. I would then have a translator looking for the correct type of message that I want to rechannelize check the counter and use the counters value for the new channel, i.e. replace the value of the incoming message's midi channel data with the value of the counter, and then pass that on to whatever program I have hooked up to receive from BMT.
Right now, assuming my logic so far is correct, I'm stuck on implementing the counter part, which is making me feel rather small, actually...ha ha. I know I need to set up a variable to be incremented or decremented by the value of 1, and not let it go greater than 16 or less than 1 (or 15 and 0, probably more precise to say). I feel like this is a very basic thing, but for whatever reason, my brain is farting out on me and I'm stumped so far. Can anyone help me out here?
Also, I was thinking a good book on this type of basic coding my be a great refresher/tool for me. Gonna do a google search on this shortly, but if anyone has a recommendation along this line that would be greatly appreciated as well.
Thanks much,
Dan
Right now, assuming my logic so far is correct, I'm stuck on implementing the counter part, which is making me feel rather small, actually...ha ha. I know I need to set up a variable to be incremented or decremented by the value of 1, and not let it go greater than 16 or less than 1 (or 15 and 0, probably more precise to say). I feel like this is a very basic thing, but for whatever reason, my brain is farting out on me and I'm stumped so far. Can anyone help me out here?
Also, I was thinking a good book on this type of basic coding my be a great refresher/tool for me. Gonna do a google search on this shortly, but if anyone has a recommendation along this line that would be greatly appreciated as well.
Thanks much,
Dan