Last active
August 22, 2023 05:09
-
-
Save moxuse/3a8b719c0390602893979f4412fa6aa1 to your computer and use it in GitHub Desktop.
Control Effects of MIDI Guy sound module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Control Effects MIDI Guy sound module | |
// https://github.com/kinoshita-lab/MIDI-guy/ | |
// Orca code | |
.......................................... | |
....4Uw..R....6Uq..Rt...2Uq..Rt........... | |
......:022cf....:112af....:731af.......... | |
.......................................... | |
.......................................... | |
....Dw.................................... | |
.....$PG:0;;;25........................... | |
....J..................................... | |
.....$PG:1;;;53........................... | |
....J..................................... | |
.....$PG:7;;;3c........................... | |
.......................................... | |
// SuperCollider code | |
MIDIClient.init | |
MIDIOut.connect; | |
m = MIDIOut(0); // set channel 0. select output device if need. | |
( | |
// set effect by NRPN parameters | |
// send CC 99 means set MSB | |
m.control(0,99,0x37); | |
// send CC 98 means set LSB | |
// 0x37 0x15 means general MIDI reverb send | |
m.control(0,98,0x15); | |
// send CC 6 means set parameter | |
// set reverb to 0x7F (127) | |
m.control(0,6,0x7F); | |
) | |
// MIDI Guy accepts CC value to set effects. | |
m.control(0,81,0x05); // CC 81 is Chorus program | |
m.control(0,65,0x42); // CC 65 is portamento on/off | |
m.control(0,5,0x42); // CC 5 is poritamento time | |
// see https://www.dream.fr/pdf/Serie2000/SAM_Datasheets/SAM2695.pdf for detail. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment