For a RPI project,I would like to create a kind of library in SC to process the value collected at the GPIO:
an Oscdef function is sending values in range [0,1] to a control bus.
I would like to processs these values from the control bus through reusable function to another bus.
I do not wish to hard code the processing of the value in the OSCdef as these might change depending on the sc project I work on.
Most of the time, the process is a very simple arithmetic operation to re-scale the [0-1] value to another range (i.e. to quantize it to midi notes [ 1-127].
To summarize :
RPI -> OSCDef [0,1] -> ~FromOSCBus - > "Unknow solution [x, y]" ->~FromOSCBus -> a_SynthDef or any usage
I tried Function… but it seems they cannot cope with Buses.
Should I make a pseudo Ugen ? and how do I retrieve the new values ?
Should this not be possible, I think I could make X OSCdef… but I don’t want to have them all in my main code … So is it possible to call them from a file (like an #include statement in python or like pseudo-UGens)?
The SC doc are not really clear on hat part…
Thank you for help .
Thank a lot you for your help or pointing me to any tutorial in this direction.