Changes

Jump to navigation Jump to search
no edit summary
Line 169: Line 169:  
  "73": "SWITCH_SNAPSHOT_LONG"        C#5/Db5
 
  "73": "SWITCH_SNAPSHOT_LONG"        C#5/Db5
   −
[[File:2Oct_Keyboard_CUIA.png|400px|thumb|left|Keyboard]]
+
[[File:2Oct_Keyboard_CUIA.png|400px|Keyboard]]
 +
 
 +
 
 +
== OSC ==
 +
 
 +
Open Sound Control (OSC) is a protocol for networking sound synthesizers, computers, and other multimedia devices for purposes such as musical performance or show control.
 +
 
 +
Zynthian implements OSC in various ways.
 +
 
 +
=== CUIA ===
 +
The CUIA features described above may be controlled using OSC on port 1370 using UDP datagrams. The OSC path for CUIA messages is `/cuia`. Example:
 +
/cuia/reboot
 +
Note: CUIA paths are case insensitive, e.g.
 +
/cuia/reboot
 +
is interpreted the same as
 +
/CUIA/REBOOT.
 +
 
 +
=== TouchOSC ===
 +
TouchOSC protocol is supported if the option is enabled on the Zynthian admin menu. This accepts OSC on port 12101 using UDP datagrams and includes raw MIDI data interpretation on OSC path
 +
/midi
 +
This path accepts an OSC MIDI type message. An example Python script to send MIDI note on / off messages:
 +
import liblo
 +
import time
 +
 +
cmdNoteOn = 0x90
 +
cmdNoteOff = 0x80
 +
note = 60
 +
vel = 100
 +
 +
liblo.send(('zynthian.local', 12101), "/midi", ('m', (vel,note,cmdNoteOn,0)))
 +
time.sleep(1)
 +
liblo.send(('zynthian.local', 12101), "/midi", ('m', (0,note,cmdNoteOff,0)))
334

edits

Navigation menu