alpacaaa / max4node

Control Ableton Live through Node.js. Yes, holy shit.
116 stars 7 forks source link

Slow performance of observe function — 4.7 Hz #4

Open dandaka opened 8 years ago

dandaka commented 8 years ago

Code:

// Fire the callback with the updated position of the clip (if it's playing).
max.observe({
  path: 'live_set tracks 1 clip_slots 0 clip',
  property: 'playing_position'
})
.on('value', function(val) {
  console.log('Playing position: ' + val);
  clipPlayingPosition = val;
});

I get 70 events every 8 beats with 120 BPM. So update frequency is roughly 1/120_70/8_60 ~= 4.7 Hz. This is far away from 100 Hz in midi clock.

Is it a limitation of Max? Live? Live Object Model? Node?

alpacaaa commented 8 years ago

This module doesn't use midi to handle communication. You bring up an interesting point though, the update speed as always been fast enough for my purposes but I honestly don't know where the bottleneck might be.

Dunno, you'll still find this module useful hopefully :)