The code looks like this at the moment:
Code: Select all
gridPage.onGridButton = function(row, column, pressed)
var track = this.mixerAlignedGrid ? column : row;
var scene = this.mixerAlignedGrid ? row : column;
var t = trackBank.getTrack(track);
var l = t.getClipLauncher();
[...]
if (-->here I want to check if the selected clip is playing)
{
l.stop();
}
else
{
l.launch(scene);
}
