precise timer in live's python API

Discuss music production with Ableton Live.
Post Reply
mlostekk
Posts: 27
Joined: Mon Aug 29, 2011 10:06 pm
Contact:

precise timer in live's python API

Post by mlostekk » Wed May 02, 2012 6:45 pm

hey there,

i dont know if i am right in that part of the forum, but it seems, that the python part is not anymore supported(?)

but i have a question. i am trying to write a device in python (for the launchpad) which basically is a step sequencer that is just triggers effects based on the step and the activated effect. but independent from my target of the step sequencer i have some trouble to setup a step sequencer that is tight enough.

i tried to get a precise time callback with

Code: Select all

_register_timer_callback in my control surface 
and also with

Code: Select all

add_current_song_time_listener in the song() element
but all of them seem to come every 100ms. and that is not precise enough. because if i do calculate into beat time, then sometimes some steps are skipped. so in general its very unprecise.

is there a way to get a tight callback on each 16th note for example?!?!

thx in advance
best
/martyn

P.S. btw, you can checkout all of the scripts in the google repository,

https://code.google.com/p/mlostekk-live/

its still everything in alpha mode, but as soon as everything works tight, i will do some tutorial and setup videos

ST8
Posts: 259
Joined: Mon Jan 26, 2009 12:55 pm

Re: precise timer in live's python API

Post by ST8 » Wed May 02, 2012 6:57 pm

No way to do this im afraid :(
Its one of the things that would make a lot more possible with the python api.

mlostekk
Posts: 27
Joined: Mon Aug 29, 2011 10:06 pm
Contact:

Re: precise timer in live's python API

Post by mlostekk » Wed May 02, 2012 7:19 pm

mmmmh :(

damnit... i also created a midi clip which triggers a lot of CC fades.. but it seems that they are also not that tight...

currently trying to get the F1 highlighted per step... but also the midi CC sending seems to be not precise over time...

mlostekk
Posts: 27
Joined: Mon Aug 29, 2011 10:06 pm
Contact:

Re: precise timer in live's python API

Post by mlostekk » Wed May 02, 2012 7:20 pm

and is a tighter timing and callback possible with max4live? or also not?

ST8
Posts: 259
Joined: Mon Jan 26, 2009 12:55 pm

Re: precise timer in live's python API

Post by ST8 » Fri May 04, 2012 2:23 pm

yes, with m4l you get max's timing which is tied to the live transport, so its pretty tight.

mlostekk
Posts: 27
Joined: Mon Aug 29, 2011 10:06 pm
Contact:

Re: precise timer in live's python API

Post by mlostekk » Fri May 04, 2012 8:06 pm

mh.. okay.. so i guess with reaktor i would also get a tighter timing callback...

mlostekk
Posts: 27
Joined: Mon Aug 29, 2011 10:06 pm
Contact:

Re: precise timer in live's python API

Post by mlostekk » Thu May 10, 2012 6:55 pm

isn it possible to use the python time library to get a more accurate timer?!

Post Reply