Is there a way to fire multiple clips at the same time using Javascript with the LiveAPI?
I've tried firing some clips inside a 'for' iterator but sometimes they fire separately. For example, the following code:
var api = new LiveAPI();
for (var i = 0; i < 5; i++) {
api.path = "live_set tracks " + i + " clip_slots " + 0;
api.call("fire"); // Sometimes this is slow and clips are not fired at once. Find another way!
}
This happens specially when transport is stopped. I guess that in the first iteration, when the first clip is fired, it causes the transport to start playing and after that, the next iterations fire the clips and wait for the next quantization.
Is there any way to call the 'fire' method and passing a list of clips in a single call?
Anyone knows a workaround for this?
Fire multiple clips at once using LiveAPI
Fire multiple clips at once using LiveAPI
Live 9 Suite / MaxForLive / MacBook Black 2.4Ghz / 4Gb RAM / OSX 10.7.5 / Motu828 mk1 / MicroKONTROL / Midisport 4x4 / Korg Kaoss Pad II / Nocturn / Wiimote.
Re: Fire multiple clips at once using LiveAPI
workaround would be to not stop the transport, but stop the clips instead.
then when you need to trigger the clips you trigger them sequentially, then set the transport to the beginning and you'll have the sync.
then when you need to trigger the clips you trigger them sequentially, then set the transport to the beginning and you'll have the sync.
mbp 2.66, osx 10.6.8, 8GB ram.
Re: Fire multiple clips at once using LiveAPI
mmh, thanks for your idea but cannot use in my case because I want to trigger the clips to start a recording..Machinate wrote:workaround would be to not stop the transport, but stop the clips instead.
then when you need to trigger the clips you trigger them sequentially, then set the transport to the beginning and you'll have the sync.
Live 9 Suite / MaxForLive / MacBook Black 2.4Ghz / 4Gb RAM / OSX 10.7.5 / Motu828 mk1 / MicroKONTROL / Midisport 4x4 / Korg Kaoss Pad II / Nocturn / Wiimote.
Re: Fire multiple clips at once using LiveAPI
You could start transport with an API call and afterwards trigger the clips sequentially.
Then all clips will start in sync at the next quantization point.
Then all clips will start in sync at the next quantization point.
Re: Fire multiple clips at once using LiveAPI
That would be a workaround but then clips would be recorded with a 1-bar offset (or the quantization setting) in relation to the other clips that started playing along with the transport.broc wrote:You could start transport with an API call and afterwards trigger the clips sequentially.
Then all clips will start in sync at the next quantization point.
Live 9 Suite / MaxForLive / MacBook Black 2.4Ghz / 4Gb RAM / OSX 10.7.5 / Motu828 mk1 / MicroKONTROL / Midisport 4x4 / Korg Kaoss Pad II / Nocturn / Wiimote.
Re: Fire multiple clips at once using LiveAPI
Any hope for improvements in LiveAPI for the upcoming 9.1?
Live 9 Suite / MaxForLive / MacBook Black 2.4Ghz / 4Gb RAM / OSX 10.7.5 / Motu828 mk1 / MicroKONTROL / Midisport 4x4 / Korg Kaoss Pad II / Nocturn / Wiimote.