Skip to content

ViktorNova/midi2osc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

midi2osc

Generic Midi to OSC Router


midi2osc converts midi control changes to osc messages

midiBackend = 'alsa'    # jack or alsa
feedBackMidi = 0        # monitor oscInPort to send Midi CC to the device
oscOutPort = 3333       # output port
oscInPort = 3334        # input port (used to control the midi device with osc messages)
oscName = 'nanoKontrol' # all osc messages begin with /oscName

# oscPatch = dict(CTRL_NUMBER, 'OSC_PATH')
# Midi CC -> oscOutPort /oscName/OSC_PATH [value*]  *between 0 and 1
# oscinPort /oscName/OSC_PATH [value*] -> Midi CC   *between 0 and 1
oscPatch = {    
    0: '/Transport/Backward',
    1: '/Transport/Forward',
    2: '/Transport/Stop',
    3: '/Transport/Play',
    4: '/Transport/Record'
}
  • once running, the router must be connected to the appropriate midi device using a patchbay such as qjackctl

Dependances

  • jack
  • mididings
  • liblo

About

Generic Midi to OSC Router

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%