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
liveOSC return output levels?
-
- Regular
- Posts:83
- Joined:04 Oct 2010 12:26
Re: liveOSC return output levels?
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
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