Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RK002_DECLARE_PARAM(DRUMCHANNEL,1,1,16);
- byte bankselect=0;
- boolean RK002_onNoteOn(byte channel, byte key, byte velocity)
- {
- if(channel==RK002_paramGet(DRUMCHANNEL)-1){
- RK002_sendNoteOn(channelbank, key, velocity);
- return false;
- }else{
- return true;
- }
- }
- boolean RK002_onNoteOff(byte channel, byte key, byte velocity)
- {
- if(channel==RK002_paramGet(DRUMCHANNEL)-1){
- RK002_sendNoteOff(channelbank, key, velocity);
- return false;
- }else{
- return true;
- }
- }
- boolean RK002_onControlChange(byte channel, byte ccnum, byte ccvalue)
- {
- if(channel==RK002_paramGet(DRUMCHANNEL)-1){
- if(ccnum==1){
- channelbank=ccvalue/14;// selects bank 0-9
- }
- }
- }
- void setup()
- {
- }
- void loop()
- {
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement