csound-expression-opcodes-0.0.5.4: opcodes for the library csound-expression
Safe HaskellSafe-Inferred
LanguageHaskell2010

Csound.Typed.Opcode.SerialIO

Synopsis

Documentation

arduinoRead :: D -> D -> Sig Source #

 

arduinoReadF :: D -> D -> D -> D -> Sig Source #

 

arduinoStop :: D -> SE () Source #

 

serialBegin :: Str -> SE D Source #

Open a serial port.

Open a serial port for arduino.

iPort  serialBegin  SPortName [, ibaudRate]

csound doc: https://csound.com/docs/manual/serialBegin.html

serialEnd :: D -> SE () Source #

Close a serial port.

Close a serial port for arduino.

  serialEnd  iPort

csound doc: https://csound.com/docs/manual/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: https://csound.com/docs/manual/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: https://csound.com/docs/manual/serialPrint.html

serialRead :: D -> Sig Source #

Read data from a serial port.

Read data from a serial port for arduino.

kByte  serialRead  iPort

csound doc: https://csound.com/docs/manual/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: https://csound.com/docs/manual/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: https://csound.com/docs/manual/serialWrite_i.html