liveOSC return output levels?

Solve problems with help from the Liine team and fellow users.
Post Reply
phemias
Newbie
Posts:2
Joined:19 Jun 2011 19:22
liveOSC return output levels?

Post by phemias » 19 Jun 2011 19:43

Is there a way to get the actual output levels of a track and not just the value of the volume slider via OSC? I'm using Live 8.2.2 and processing / pd.

Thanks in advance

st8_livecontrol
Regular
Posts:83
Joined:04 Oct 2010 12:26

Re: liveOSC return output levels?

Post by st8_livecontrol » 30 Jul 2011 08:55

I think its possible in python, but LiveOSC doesnt do this at the moment. in LiveOSC.py line 748 try changing:

val = eval("track.mixer_device." + type + ".value")
types = { "panning": "pan", "volume": "volume", "crossfader": "crossfader" }

if r == 2:
self.oscServer.sendOSC('/live/master/' + types[type], (float(val)))


to:
val = eval("track.mixer_device." + type)
types = { "panning": "pan", "volume": "volume", "crossfader": "crossfader" }

if r == 2:
self.oscServer.sendOSC('/live/master/' + types[type], (str(val)))

i think casting the volume object to a string should give you the real value in db

Post Reply