lxconsole osc-out to puredata pjlink-bridge
Posted: Sat Jun 22, 2019 12:59 am
dear claudeheintzdesign,
thanks for your great piece of software. i'll soon get a piece on stage that uses your software for lights (in combination with qlab for video). they want to control the shutter of our projector with dmx out of lxconsole.
i already programmed a solution reading from dmx to puredata mapping it to pjlink. it works. but the better way would be to directly read the osc commands that lxconsole can send out when 'send all channels when changed' is enabled to receive the corresponding channel for the shutter of the projector (let's say dmx channel 99).
in puredata my osc parser shows me the following message from lxconsole
ch99 is FL
/lxchannels/ 0 0 0 99 0 0 0 0 66 200 0 0
ch99 is 0 (after fading from FL to 0)
/lxchannels/ 0 0 0 99 0 0 0 0 62 200 200 201
now my question is:
0 0 0 99 is ch 99 :: 0 0 0 0 :: is just some placeholder :: 64/62 X X X is ?
how do you calculate the last 4 numbers in the osc message (from float to 4byte construct...?) where 64 200 0 0 is 100% and 62 200 200 201 is 0% ?
if you could provide me the formular from this 4byte construct to float or int i'd be happy.
thanks!
yours,
m
thanks for your great piece of software. i'll soon get a piece on stage that uses your software for lights (in combination with qlab for video). they want to control the shutter of our projector with dmx out of lxconsole.
i already programmed a solution reading from dmx to puredata mapping it to pjlink. it works. but the better way would be to directly read the osc commands that lxconsole can send out when 'send all channels when changed' is enabled to receive the corresponding channel for the shutter of the projector (let's say dmx channel 99).
in puredata my osc parser shows me the following message from lxconsole
ch99 is FL
/lxchannels/ 0 0 0 99 0 0 0 0 66 200 0 0
ch99 is 0 (after fading from FL to 0)
/lxchannels/ 0 0 0 99 0 0 0 0 62 200 200 201
now my question is:
0 0 0 99 is ch 99 :: 0 0 0 0 :: is just some placeholder :: 64/62 X X X is ?
how do you calculate the last 4 numbers in the osc message (from float to 4byte construct...?) where 64 200 0 0 is 100% and 62 200 200 201 is 0% ?
if you could provide me the formular from this 4byte construct to float or int i'd be happy.
thanks!
yours,
m