arduinoReadSerial I/OarduinoReadarduinoRead
Read data from an arduino port using the Csound-Arduino protocol.
DescriptionPlugin opcode in serial.
Read integer data from an arduino port with CsoundArduino protocol.
Syntaxkval arduinoRead iPort, iStream[, iSmooth]PerformanceiPort -- port number obtained from a
arduinoStart opcode.
iStream -- Number of the data stream in
range 0 to 30.
iSmooth -- halftime of a portamento filter
to smooth the stream of data. Defaults to 0 meaning no filtering.
kval -- data to read in range [0, 1023].
Examples
Here is an example of the arduinoRead opcode. It uses the file arduinoRead.csd.
Example of the arduinoRead opcode.See the sections Real-time Audio and Command Line Flags for more information on using command line flags.See Alsonon-MIDI Devices More information: New Arduino Opcodes to Simplify the Streaming of Sensor and Controller Data to CsoundCreditsAuthor: &namejohn;Author: Richard Boulanger2020New in version 6.15