RDF107
2014-10-12 06:30:18 UTC
Hi,
I am currently reading & using the Arduino Analog port to control the pitch
of my SinOsc. I have placed it in a loop to read the constant change in data
received from the Arduino, but this not making the pitch shift very smooth
at all. Any suggestions as to how I can rewrite this? Thank you.
CODE:
SerialPort.devices; // check SerialPort names
a = FirmataDevice.new('/dev/tty.usbmodem1421'); // if serial port is closed
restart SC
a.reportAnalogPin(0, true); //read A0
a.analogPinAction_({arg num, val;
~bob=[val];
})
(r = Routine{fork {
loop {
b.release;
~bob.postln;
b = {SinOsc.ar(~bob, 0, 1)}.play;
0.3.wait;
}
}
}.play;
); //~bob controlling Synth pitch looping but not smooth
--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/Making-a-Smoother-Loop-tp7613942.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/
I am currently reading & using the Arduino Analog port to control the pitch
of my SinOsc. I have placed it in a loop to read the constant change in data
received from the Arduino, but this not making the pitch shift very smooth
at all. Any suggestions as to how I can rewrite this? Thank you.
CODE:
SerialPort.devices; // check SerialPort names
a = FirmataDevice.new('/dev/tty.usbmodem1421'); // if serial port is closed
restart SC
a.reportAnalogPin(0, true); //read A0
a.analogPinAction_({arg num, val;
~bob=[val];
})
(r = Routine{fork {
loop {
b.release;
~bob.postln;
b = {SinOsc.ar(~bob, 0, 1)}.play;
0.3.wait;
}
}
}.play;
); //~bob controlling Synth pitch looping but not smooth
--
View this message in context: http://new-supercollider-mailing-lists-forums-use-these.2681727.n2.nabble.com/Making-a-Smoother-Loop-tp7613942.html
Sent from the SuperCollider Users New (Use this!!!!) mailing list archive at Nabble.com.
_______________________________________________
sc-users mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: http://www.listarc.bham.ac.uk/marchives/sc-users/
search: http://www.listarc.bham.ac.uk/lists/sc-users/search/