2014-01-18 04:51:46 -05:00
|
|
|
|
|
|
|
;*************************************************
|
|
|
|
;* RULES - MIDI FILTERS
|
|
|
|
;*************************************************
|
|
|
|
|
|
|
|
/*
|
2014-01-26 23:42:59 -05:00
|
|
|
The MidiRules section is for mapping MIDI input to actions.
|
2014-01-25 09:13:33 -05:00
|
|
|
Alter these functions as required.
|
2014-01-25 00:49:59 -05:00
|
|
|
*/
|
2014-01-19 02:34:27 -05:00
|
|
|
|
2014-01-25 00:49:59 -05:00
|
|
|
ProcessNote(device, channel, note, velocity, isNoteOn) {
|
2014-01-26 23:42:59 -05:00
|
|
|
|
2014-01-25 00:49:59 -05:00
|
|
|
}
|
2014-01-18 04:51:46 -05:00
|
|
|
|
2014-01-25 00:49:59 -05:00
|
|
|
ProcessCC(device, channel, cc, value) {
|
2014-06-25 08:38:28 -04:00
|
|
|
if (cc = 21 or cc = 29) {
|
|
|
|
scaled_value := ConvertCCValueToScale(value, 0, 127)
|
|
|
|
vol := scaled_value * 100
|
|
|
|
SoundSet, vol
|
|
|
|
DisplayOutput("Volume", vol)
|
|
|
|
} else if (cc = 51) {
|
|
|
|
Send {Volume_Mute}
|
|
|
|
DisplayOutput("Volume", "Mute")
|
|
|
|
} else if (cc = 52 and value != 0) {
|
|
|
|
Send {Volume_Down}
|
|
|
|
DisplayOutput("Volume", "Down")
|
|
|
|
} else if (cc = 53 and value != 0) {
|
|
|
|
Send {Volume_Up}
|
|
|
|
DisplayOutput("Volume", "Up")
|
|
|
|
} else if (cc = 54 and value != 0) {
|
|
|
|
Send {Media_Play_Pause}
|
|
|
|
DisplayOutput("Media", "Play/Pause")
|
|
|
|
} else if (cc = 55 and value != 0) {
|
|
|
|
Send {Media_Stop}
|
|
|
|
DisplayOutput("Media", "Stop")
|
|
|
|
} else if (cc = 56 and value != 0) {
|
|
|
|
Send {Media_Prev}
|
|
|
|
DisplayOutput("Media", "Previous")
|
|
|
|
} else if (cc = 57 and value != 0) {
|
|
|
|
Send {Media_Next}
|
|
|
|
DisplayOutput("Media", "Next")
|
2018-12-02 03:30:56 -05:00
|
|
|
} else if (cc = 58 and value != 0) {
|
|
|
|
; Place a cue marker in Sound Forge 9
|
|
|
|
ControlSend, , {Alt down}m{Alt up}, ahk_class #32770
|
|
|
|
DisplayOutput("Sound Forge", "Place Cue Marker")
|
2014-01-25 00:49:59 -05:00
|
|
|
}
|
|
|
|
}
|
2014-01-18 04:51:46 -05:00
|
|
|
|
2014-01-25 00:49:59 -05:00
|
|
|
ProcessPC(device, channel, note, velocity) {
|
2014-01-26 23:42:59 -05:00
|
|
|
|
2014-01-25 00:49:59 -05:00
|
|
|
}
|
2014-01-19 02:34:27 -05:00
|
|
|
|
2014-01-25 09:13:33 -05:00
|
|
|
ProcessPitchBend(device, channel, value) {
|
|
|
|
|
|
|
|
}
|
2014-01-18 04:51:46 -05:00
|
|
|
|