This view allows you to embed small Trigger Scripts, which are small bits of code in the widely Lua language, that are triggered when various events happen when Noatikl is playing. Using trigger scripts allows you to tell Noatikl to behave in very powerful ways while it is playing.
Name
Always shows the text "Piece" . You can't change this value!
Start
Press this button to show the Start trigger script in the Script Editor window.
The Start Trigger Script is called once at the start of the Piece, when the piece starts playing.
function nt_trigger_start()
print ("Piece start!")
end
Bar
Press this button to show the Bar trigger script in the Script Editor window.
The Bar Trigger Script is called at the start of every bar while the piece is playing.
function nt_trigger_bar(bar)
print ("Bar number", bar)
end
MIDI In CC
Press this button to show the MIDI In CC trigger script in the Script Editor window.
The MIDI In CC Trigger Script is called whenever a MIDI CC event is received by the MIDI Input device.
function nt_trigger_midiin_cc(channel, cc, value)
print ("Piece MIDI In CC", channel, cc, value)
end
MIDI In Note
Press this button to show the MIDI In Note trigger script in the Script Editor window.
The MIDI In Note Trigger Script is called whenever a MIDI Note On or Off event is received by the MIDI Input device.
function nt_trigger_midiin_note(noteon, channel, pitch, velocity)
print ("Piece MIDI in note ", noteon, channel, pitch, velocity)
end
Stop
Press this button to show the Stop trigger script in the Script Editor window.
The Stop Trigger Script is called once at the end of the Piece, just as the Piece stops playing.
function nt_trigger_stop()
print ("Piece stop!")
end
