Live API: ButtonElement.send_value(value) question

Discuss music production with Ableton Live.
Post Reply
ttilberg
Posts: 587
Joined: Wed Oct 05, 2011 4:55 pm
Contact:

Live API: ButtonElement.send_value(value) question

Post by ttilberg » Tue Jul 29, 2014 8:17 pm

Hey guys, I know discussion of the Live API isn't that big here, but there are a few of you that know this stuff.

In my adventure of learning Python + Live API I am confused with the mechanism that handles message sending scheduling.

In short, let's say I have a ButtonElement called btn.

When I send btn.send_value(127)
I can see that the message gets cued into:
btn._delayed_messages

I can force the update with the private method btn._send_delayed_messages(), or setting force_update = True, but this mechanism is obviously in place for a reason, and I don't believe is intended to be called directly. Can someone shed some light on what's happening here? What should I be doing, or where should I be putting some code to officially send this value to the controller button?

If you have any resources that can help, I'd appreciate the feedback.
Tim Tilberg - Duluth, MN | SoundCloud - Arsenal
2011 13" MBP w/8GB ram | Live 9 Suite, Reason 6.5, FXPansion DCAM/Etch/Maul, Izotope Ozone 5

Post Reply