Difference between revisions of "Talk:USB Roll-up drum kit user-space driver for linux"

From Organic Design wiki
(links to example code)
(client server)
Line 1: Line 1:
Use basic unix IO and [http://liblo.sourceforge.net liblo] to make a driver that will read the device and output Open Sound Control messages.
+
Use basic unix IO and [http://liblo.sourceforge.net liblo] to make a driver that will read the device and output Open Sound Control messages. The C program reading th usb device will act as the client and the Chuck shred will be the server.
 
*[http://liblo.sourceforge.net/examples/example_client.c Client example for liblo]
 
*[http://liblo.sourceforge.net/examples/example_client.c Client example for liblo]
 
*[http://chuck.cs.princeton.edu/doc/examples/osc/ OSC examples for Chuck]
 
*[http://chuck.cs.princeton.edu/doc/examples/osc/ OSC examples for Chuck]

Revision as of 02:12, 21 January 2009

Use basic unix IO and liblo to make a driver that will read the device and output Open Sound Control messages. The C program reading th usb device will act as the client and the Chuck shred will be the server.

Program flow

  • init liblosc
  • read command line parameter
  • open device
  • output message "connect to device"
  • loop:
    • read device
    • process input
    • send osc message
    • check for exit condition
  • tidy up
  • exit