anyone completely lost with the BASICS of the Live API?

Learn about building and using Max for Live devices.
Tone Deft
Posts: 24152
Joined: Mon Oct 02, 2006 5:19 pm

anyone completely lost with the BASICS of the Live API?

Post by Tone Deft » Mon Apr 12, 2010 9:58 pm

recently some of the basic concepts of the Live API clicked for me. stuff I wish someone would've sat down and shown me months ago. the LOM now makes sense to me and I can finally make use of live.path, live.object, live.remote etc without using other peoples' code.

I wish I could sit down with the myself from 3 months ago, maybe I can do that for someone else. I'm talking basics, I can't help with more advanced stuff.

likewise if anyone has any good resources for BASIC Live API, that could help too.

given the steep learning curve of all this I'd like to keep this to really basic stuff.
In my life
Why do I smile
At people who I'd much rather kick in the eye?
-Moz

synnack
Posts: 2053
Joined: Fri Mar 02, 2007 10:55 pm
Location: Boston, MA
Contact:

Re: anyone completely lost with the BASICS of the Live API?

Post by synnack » Tue Apr 13, 2010 12:56 am

I'm normally lost looking at the documentation. I have to look at other peoples examples that are close to what i'm doing and copy them.

If you had a revelation on the basics you should share it!!
MBP | Live 9 Suite | Max for Live | Push | MOTU Ultralite | iPad | Analog Modular Synths | Moog Voyager
aka "Tempus3r" | Music | Blog | Twitter | Soundcloud

Image

Parametex
Posts: 438
Joined: Sun Oct 17, 2004 4:34 pm

Re: anyone completely lost with the BASICS of the Live API?

Post by Parametex » Tue Apr 13, 2010 6:02 am

I'm very much waiting myself from 3 months in the future to come have a friendly chat with me about the API, LOM and ETC ... Would _love_ that actually ... I'd be sure to makes us hot cup o choco and buy some cinnamon rolls!

bulo
Posts: 434
Joined: Sat Sep 09, 2006 7:57 pm
Location: France
Contact:

Re: anyone completely lost with the BASICS of the Live API?

Post by bulo » Tue Apr 13, 2010 8:48 am

What's wrong with the LOM for you guys?
My tongue spits english like a frog and my head is currently searching for a comprehensive language.
And I shit here

S4racen
Posts: 5987
Joined: Fri Aug 24, 2007 4:08 pm
Location: Dunstable
Contact:

Re: anyone completely lost with the BASICS of the Live API?

Post by S4racen » Tue Apr 13, 2010 12:12 pm

For me it was working out which of the objects to use....

live.object = to get a value once or make a value change once, eg is a clip looping or not? Fire a clip.....

live.observer = slow response time if many in a device but you can make gradual changes to a control without much impact on cpu, think of this as using on a eq basis whereby gradual changes are required rather than swift ones. The advantage of using this object is that it doesn't disable the control it's pointed at from being modulated by other methods for example through a midi mapping.

live.remote = disables the control so you lose the ability to midi map the control it's pointing at. However massive advantage in that it's update rate is as real time as you can get....

That's me 2p's worth....
Cheers
D

Tone Deft
Posts: 24152
Joined: Mon Oct 02, 2006 5:19 pm

Re: anyone completely lost with the BASICS of the Live API?

Post by Tone Deft » Tue Apr 13, 2010 3:05 pm

bulo wrote:What's wrong with the LOM for you guys?
explain the various functions and when to use them.

explain the 3 outputs of live.path.

why can I exercise a live.object with a live.path id output but when I tie a message box with "id 1" to live.object's path id it doesn't work until after I use a live.path object to find the path for id 1?
In my life
Why do I smile
At people who I'd much rather kick in the eye?
-Moz

Tone Deft
Posts: 24152
Joined: Mon Oct 02, 2006 5:19 pm

Re: anyone completely lost with the BASICS of the Live API?

Post by Tone Deft » Tue Apr 13, 2010 3:10 pm

oops
Last edited by Tone Deft on Tue Apr 13, 2010 3:29 pm, edited 1 time in total.
In my life
Why do I smile
At people who I'd much rather kick in the eye?
-Moz

bobseekone
Posts: 25
Joined: Thu Apr 12, 2007 1:53 am
Location: New York

Re: anyone completely lost with the BASICS of the Live API?

Post by bobseekone » Tue Apr 13, 2010 3:23 pm

Where I am lost is in what can be done with the components returned by M4L.apl.SelectComponent from the ControlSurface object (I am using the Launchpad.) I've googled around but come up with nothing on this topic.

Tone Deft
Posts: 24152
Joined: Mon Oct 02, 2006 5:19 pm

Re: anyone completely lost with the BASICS of the Live API?

Post by Tone Deft » Tue Apr 13, 2010 3:31 pm

bobseekone wrote:Where I am lost is in what can be done with the components returned by M4L.apl.SelectComponent from the ControlSurface object (I am using the Launchpad.) I've googled around but come up with nothing on this topic.
yep.

where can you find the path, parameters and functions that work with the Launch Pad?

I know some of this is because the documentation isn't done yet and all that is on hold due to the 'Quality' statement, but until then, whassssup??
In my life
Why do I smile
At people who I'd much rather kick in the eye?
-Moz

rory
Posts: 38
Joined: Fri Oct 09, 2009 5:48 pm

Re: anyone completely lost with the BASICS of the Live API?

Post by rory » Tue Apr 13, 2010 5:57 pm

It does seem to be a case of routing around for forum posts from intrepid explorers. Let's hope some official documentation appears soon.

Personally I'm looking for a solution to controlling the LED rings around the knobs on the APC40 for disconnected parameters. I'm sure there must be a way, just damned if I can find it.

S4racen
Posts: 5987
Joined: Fri Aug 24, 2007 4:08 pm
Location: Dunstable
Contact:

Re: anyone completely lost with the BASICS of the Live API?

Post by S4racen » Tue Apr 13, 2010 6:23 pm

Tone Deft wrote:
bobseekone wrote:Where I am lost is in what can be done with the components returned by M4L.apl.SelectComponent from the ControlSurface object (I am using the Launchpad.) I've googled around but come up with nothing on this topic.
yep.

where can you find the path, parameters and functions that work with the Launch Pad?

I know some of this is because the documentation isn't done yet and all that is on hold due to the 'Quality' statement, but until then, whassssup??
For this you need the Live.api.explorer device....

When you navigate to the control surfaces it tells you what is attached, what the paths are and what functions can be called, it won't tell you what to do with them or what messages to send but half the job is done then....

Cheers
D

monohusche
Posts: 190
Joined: Thu Jan 22, 2009 4:28 pm
Location: Hongkong

Re: anyone completely lost with the BASICS of the Live API?

Post by monohusche » Tue Apr 13, 2010 6:59 pm

@s4racen

you lost me with live.observer.....isn't that a notification object to notified of changes ? how would you change values with it ?

especially as changing values upon getting notifications is not allowed in M4L.

Tone Deft
Posts: 24152
Joined: Mon Oct 02, 2006 5:19 pm

Re: anyone completely lost with the BASICS of the Live API?

Post by Tone Deft » Tue Apr 13, 2010 7:07 pm

monohusche wrote:@s4racen

you lost me with live.observer.....isn't that a notification object to notified of changes ? how would you change values with it ?

especially as changing values upon getting notifications is not allowed in M4L.
http://www.cycling74.com/docs/max5/refp ... erver.html

"After an object id and property is specified, its value is sent out the left outlet. From this moment on, the value is sent on each change of the property ('notification') as well as in response to bang messages... Also, it is not possible to modify the live set from a notification, i.e. while you are receiving a value message spontaneously sent by a live.observer 's outlet. "

maybe you can't do it from the same object. one to get, one to set.
In my life
Why do I smile
At people who I'd much rather kick in the eye?
-Moz

monohusche
Posts: 190
Joined: Thu Jan 22, 2009 4:28 pm
Location: Hongkong

Re: anyone completely lost with the BASICS of the Live API?

Post by monohusche » Tue Apr 13, 2010 7:18 pm

as I said, live.observer can't be used to set values
From this moment on, the value is sent on each change of the property
1. navigate the LOM
2. set the id
3. specify the property to be observed
4. live.observer reports the current value once
5. from now on, live.observer reports the value whenever there is a change (e.g. by other means such as MIDI controller or mouse)


live.observer doesn't support a "set" message.

S4racen
Posts: 5987
Joined: Fri Aug 24, 2007 4:08 pm
Location: Dunstable
Contact:

Re: anyone completely lost with the BASICS of the Live API?

Post by S4racen » Tue Apr 13, 2010 7:21 pm

monohusche wrote:@s4racen

you lost me with live.observer.....isn't that a notification object to notified of changes ? how would you change values with it ?

especially as changing values upon getting notifications is not allowed in M4L.
Good point well made, i used to watch a control with an observer and change it with a live.object, quite glitchy and lags at times but you can still midi control the original control....

Cheers
D

Post Reply