|
Post by girlvsworld on Aug 21, 2018 18:43:59 GMT
Hello, just wondering how I could change program change 0 to note C1, pc 1 to D1 etc. Thanks for your help!
|
|
nic
Soapbox Supremo
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Aug 21, 2018 19:13:08 GMT
hi girlvsworld , A program change is a single event whilst a note consists of 2 events; a note on (with a note velocity) and a note off (which determines length of the note), so each program change will require 2 mappings. Here is how to map program change 0 to middle C sounding for 1 second: CX 00 = 9X 3C 60 +C CX 00 = 8X 3C 00 +C +D1000And here is how you could map all 128 program changes to their corresponding notes: CX = 9X XX 60 +C CX = 8X XX 00 +C +D800Regards, Nic.
|
|
nic
Soapbox Supremo
Troublemaker
Press any key to continue
Posts: 2,011
|
Post by nic on Aug 21, 2018 19:20:12 GMT
Also, the note is the second byte after the 8X or 9X in the first two rules. To convert notes to hex codes, use this table
|
|
|
Post by girlvsworld on Aug 22, 2018 2:48:05 GMT
Thank you very much for the help!
|
|