Hello,
I thought I open up another thread and make my question a bit more clear.
I have a launchpad and I want it to light up according to my wishes. Now my script only let the lights show up for one cycle in play mode, but I want it to repeat itself. But i cant figure it out. I would like to have midi notes in some sort of for next loop or something, that it keeps on repeating. Does anyone know how i might do this, what statements do i need?
The script I have this so far:
if mode == reset
Record
MidiOut noteon 0 0 15
elseif mode == mute
Reset
Record
wait last
MidiOut noteon 0 0 15
elseif mode == play
Overdub
MidiOut noteon 0 0 47
wait loop
elseif mode == multiply
Play
MidiOut noteon 0 0 60
elseif mode != reset
Play
MidiOut noteoff 0 48 60
MidiOut noteon 0 0 60
wait subcycle
MidiOut noteoff 0 0 60
MidiOut noteon 0 16 60
wait subcycle
MidiOut noteoff 0 16 60
MidiOut noteon 0 32 60
wait subcycle
MidiOut noteoff 0 32 60
MidiOut noteon 0 48 60
wait subcycle
# This should be repeating
endif
Label sustain
#wait until the second sustain pass (i.e. wait 500 MS instead of 250)
if sustainCount = 2
Reset
MidiOut noteoff 0 0 60
endif
end
I thought I open up another thread and make my question a bit more clear.
I have a launchpad and I want it to light up according to my wishes. Now my script only let the lights show up for one cycle in play mode, but I want it to repeat itself. But i cant figure it out. I would like to have midi notes in some sort of for next loop or something, that it keeps on repeating. Does anyone know how i might do this, what statements do i need?
The script I have this so far:
if mode == reset
Record
MidiOut noteon 0 0 15
elseif mode == mute
Reset
Record
wait last
MidiOut noteon 0 0 15
elseif mode == play
Overdub
MidiOut noteon 0 0 47
wait loop
elseif mode == multiply
Play
MidiOut noteon 0 0 60
elseif mode != reset
Play
MidiOut noteoff 0 48 60
MidiOut noteon 0 0 60
wait subcycle
MidiOut noteoff 0 0 60
MidiOut noteon 0 16 60
wait subcycle
MidiOut noteoff 0 16 60
MidiOut noteon 0 32 60
wait subcycle
MidiOut noteoff 0 32 60
MidiOut noteon 0 48 60
wait subcycle
# This should be repeating
endif
Label sustain
#wait until the second sustain pass (i.e. wait 500 MS instead of 250)
if sustainCount = 2
Reset
MidiOut noteoff 0 0 60
endif
end
Launchpad lights
0 commentaires:
Enregistrer un commentaire