@veryveryhaps The Audio Loop Player responds to MIDI like any other sound generator.
If you only want to trigger it from the UI try playNoteFromUI. It's meant for triggering sound generators from UI elements. It simulates pressing a key on the virtual keyboard.
There's also the cunningly-slightly-differently-named noteOffFromUI to stop playback.
As for pausing playback and continuing from the same point, I'm not sure.
const var loopNote = 60;
const var channel = 1;
inline function onPlayButton(component, value)
{
if (value) // button ON
Synth.playNoteFromUI(channel, loopNote, 127);
else // button OFF
Synth.noteOffFromUI(channel, loopNote);
}
Content.getComponent("Button1").setControlCallback(onPlayButton);