volume control using serial data from arduino
what object do I need to use to let the serial data from arduino control the gain of sfplay~ (wav file) ?
for example, light sensor in arduino sends the serial data to max,
and I wnat to make a device that the brighter the light is, the louder the volume in max is..
(and how can I scale the serial data ?- what object is needed for this ? )
this should sort the incoming serial data into chunks, (which might not be useful) but if not remove the zl object and just use the raw serial data.
my mac is about to die I'im on the train) but check out peak, trough and scale, these will give you a max and min data rang which you could then scale to control the gain fader.
if you get stuck let me know, ill try and post something when my battery is charged!
Cheers,
Oli