arduinoReadFSerial I/OarduinoReadFarduinoReadF
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 arduinoReadF iPort, iStream1,
iStream2, iStream3PerformanceiPort -- port number obtained from a
arduinoStart opcode.
iStream1, iStream2, iStream3 -- Numbers of
the three data streams in the range 0 to 30. Each stream
carries 10 bits of the 30 bits floating point result. The division
is created in the Arduino sketch encapsulated in the put_float function.
kval -- floating point value read.
The value transmitted is two bits shorter in the mantissa
than produced on the Arduino so there is a little error introduced.Examples
Here is an example of the arduinoReadF opcode. It uses the file arduinoReadF.csd.
Example of the arduinoReadF 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