Forums > Max For Live

New to Max APi – How to extract values from Abelton API to manipulate

Oct 30 2011 | 5:41 pm

Hi – I am pretty new to Max and I am trying to work with Abelton APi – extracting info and sending values to another program via midi.

In this case I wan t to work out the length in ms of the first loop extracted from Abelton’s looper.

I can work out how to use the get function to be able to see the value of the Tempo and length of the first clip.

What I cant work out is an easy way to actually take the numerical value of the tempo and length so I can manipulate them.

I have attached the basic patch I have been using.

Grateful for any ideas

Best Regards


  1. Tempoandlengh.amxd
Oct 30 2011 | 7:29 pm

midi clock.

Oct 30 2011 | 8:14 pm

The clip duration in ms can be calculated with


where T is tempo (BPM) and L is the clip length in beats.

Btw, in the patch you need to replace ‘route value’ by ‘route length’ resp. ‘route tempo’.

Nov 01 2011 | 8:30 pm

Hi broc thankyou = That progressed my investigation quite a bit.

Now I am pusselled how to get the tempo including decimal points from the route command – It only produces the integer.

Best Regards


  1. Tempoandlengh.amxd
Nov 02 2011 | 6:32 am

Just add ‘float’ as an argument to the route object.

Nov 02 2011 | 12:25 pm

[route tempo] produces a float, but it’s converted to integer when connected to an integer number box.

I’d suggest to ‘investigate’ some basic Max tutorials ;)

Viewing 6 posts - 1 through 6 (of 6 total)

Forums > Max For Live