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

Oct 30, 2011 at 5:41pm

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

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

Richard

Attachments:
  1. Tempoandlengh.amxd
#59681
Oct 30, 2011 at 7:29pm

midi clock.

#214792
Oct 30, 2011 at 8:14pm

The clip duration in ms can be calculated with

(60000/T)*L

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’.

#214793
Nov 1, 2011 at 8:30pm

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

Richard

Attachments:
  1. Tempoandlengh.amxd
#214794
Nov 2, 2011 at 6:32am

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

#214795
Nov 2, 2011 at 12:25pm

[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 ;)

#214796

You must be logged in to reply to this topic.