js control like live.object?

newtfish's icon

Hi,

Im wondering if there is a way to recreate the live.object and live.remote functionality in JS?

Cheers

N

Lee's icon

Check out the LiveAPI class for accessing live.object from js. There is no live.remote equivalent

frequenzteiler's icon

@lee
hey i posted this in a different topic already but got no answer. you have any idea whats the problem ?
Im switching between live.remote and live.object to set values. Problem is when changing the value in realtime (live.remote) and switching to live.object to set values everything is fine. When switching back after setting the value with live.object, live.remote still holds the value from before and needs a new value to get updated. this results in a jump to the actual value as soon as its been send again.
Both live.objects use the same id. so i don´t understand why live.remote does not get the value as soon as the id has been set again.

The patch is part of a lfo Robert Henke made. So basically while live.remote is attached to the parameter id the lfo mods it. otherwise its controlled by a pot from midi-controller. thats why values jumping is annoying.

remoteID_objectIDtest1.amxd
amxd
Lee's icon

Hi, live.remote~ will take exclusive control of the parameter - it is not possible to change it via any other method whilst it is "owned" in this way - if you notice on the UI, the parameter will be greyed

frequenzteiler's icon

thank you for replying.
i know this. thats not the problem. its just when switching the ids that live.remote is attached to, the value is only updated when i change it again. even tho its a signal thats running into live.remote. e.g id 99 is controlled by live.remote and has value of 0.5. i switch to id 88 being controlled by live.remote. meanwhile id 99 can now be controlled by live.object again and is being changed to 0.6. when switching back so that id 99 is controlled by live.remote again, live.remote still holds the value from before ( 0.5 ) and needs a bang or slight change to jump to the actual value. which results in a value jump from 0.5 to 0.6. i hope you can see my problem.

Lee's icon

yes, I think I understand - that does seem strange - i'll have a look at your patch this eve

frequenzteiler's icon

Thanks Lee. I think i found my mistake :) guess i just forgot to update the dial value that controls both (.remote / .object) . sorry for bothering you.