csound-expression-opcodes-0.0.0: opcodes for the library csound-expression

Safe HaskellNone

Csound.Typed.Opcode.SerialIO

Synopsis

Documentation

serialBegin :: Str -> SE DSource

Open a serial port.

Open a serial port for arduino.

 iPort  serialBegin  SPortName [, ibaudRate]

csound doc: http://www.csounds.com/manual/html/serialBegin.html

serialEnd :: D -> SE ()Source

Close a serial port.

Close a serial port for arduino.

   serialEnd  iPort

csound doc: http://www.csounds.com/manual/html/serialEnd.html

serialFlush :: D -> SE ()Source

Flush data from a serial port.

Flush to the screen any bytes (up to 32k) in the input buffer. Note that these bytes will be cleared from the buffer. use this opcode mainly for debugging messages. If you want to mix debugging and other communication messages over the same port, you will need to manually parse the data with the serialRead opcode.

   serialFlush  iPort

csound doc: http://www.csounds.com/manual/html/serialFlush.html

serialPrint :: D -> SE ()Source

Print data from a serial port.

Print to the screen any bytes (up to 32k) in the input buffer. Note that these bytes will be cleared from the buffer. use this opcode mainly for debugging messages. If you want to mix debugging and other communication messages over the same port, you will need to manually parse the data with the serialRead opcode.

   serialPrint  iPort

csound doc: http://www.csounds.com/manual/html/serialPrint.html

serialRead :: D -> SigSource

Read data from a serial port.

Read data from a serial port for arduino.

 kByte  serialRead  iPort

csound doc: http://www.csounds.com/manual/html/serialRead.html

serialWrite :: D -> D -> SE ()Source

Write data to a serial port.

Write data to a serial port for arduino.

   serialWrite  iPort, iByte
   serialWrite  iPort, kByte
   serialWrite  iPort, SBytes

csound doc: http://www.csounds.com/manual/html/serialWrite.html

serialWrite_i :: D -> D -> SE ()Source

Write data to a serial port.

Write data to a serial port for arduino.

   serialWrite_i  iPort, iByte
   serialWrite_i  iPort, SBytes

csound doc: http://www.csounds.com/manual/html/serialWrite_i.html