using midi bindings
if i send a reset to the track and then send record it returns play out of the event but it is in record on the UI
the second press on record ( to take it out of record) stays on play
from then on Record and play send midi out from the event handler ok?
i-----------------------------------------------------
#name EventsToGP
// midi channel start from 0 so 1 is CH2
if (($1 == "ModeStart") and ($3 == "Record"))
{
MidiOut("cc", 13, 20, $2)
MidiOut("cc",13,21,1)
}
if (($1 == "ModeStart") and ($3 == "Overdub"))
{
MidiOut("cc", 13, 20, $2)
MidiOut("cc",13,21,2)
}
if (($1 == "ModeStart") and ($3 == "Play"))
{
print("Play mode track")
MidiOut("cc", 13, 20, $2)
wait msec 50
MidiOut("cc",13,21,3)
}
if (($1 == "ModeStart") and ($3 == "Mute"))
{
MidiOut("cc", 13, 20, $2)
MidiOut("cc",13,21,4)
}
if (($1 == "ModeStart") and ($3 == "Reset"))
{
MidiOut("cc", 13, 20, $2)
MidiOut("cc",13,21,5)
}
if (($1 == "ModeStart") and ($3 == "GlobalReset"))
{
MidiOut("cc", 13, 20, 1)
MidiOut("cc",13,21,6)
}
if ($1 == "LoopStart")
{
MidiOut("cc", 13, 17, 127)
MidiOut("cc", 13,18,$2)
}
if ($1 == "LoopCycle")
{
MidiOut("cc", 13, 18, 127)
MidiOut("cc", 13,18, $2)
}