Groove Pool, Global Groove amount
Hello all,
Is anyone else trying to implement Ableton global amount from the groove pool in any max for live patches? I'm trying to add some swing to my max for live patch and I'm pretty stuck - hoping to run across some dialog about how that works in M4L.
thanks,
Taylor
Hi,
a way that has been used in the past is to control the m4l device tempo with a midi clip (with 16th note per step for example). You can then apply the groove to the control-clip. If it's only about swing, just add an offset to notes on every second position of your grid.
O.
Swing, rather than groove, is what you might use:
function setSwingAmount(dial) {
var swingLevel = dial / 127;
var liveSet = new LiveAPI("live_set");
liveSet.set('swing_amount', swingLevel);
}
function setSwingToClip(){
liveSet = new LiveAPI('live_set');
var currentSwing = (liveSet.get('swing_amount')) * 127;
currentSwing = (currentSwing * 1);
liveSet.set('swing_amount', parseFloat(currentSwing / 127));
//
liveSet = new LiveAPI('live_set tracks ' + trackNumber + ' clip_slots ' + clipNumber + ' clip');
if (liveSet) {
liveSet.call('quantize', 5, 1.0);
}
}
Nice one @Jay Walker ! Thanks for sharing.