function handler(data){
    setConnection("connected")
    uiLog(data)
    midiout.send('cc', {
      controller : data.split("-")[1],
      value: data.split("-")[2],
      channel: 0
    });
}
//handle incoming data and pipe to midi
handle incoming data and pipe to midi
handle incoming data and pipe to midi
function handler(data){
    setConnection("connected")
    uiLog(data)
    midiout.send('cc', {
      controller : data.split("-")[1],
      value: data.split("-")[2],
      channel: 0
    });
}
function handler ( data ) { setConnection ( "connected" ) uiLog ( data ) midiout . send ( 'cc' , { controller : data . split ( "-" ) [ 1 ] , value : data . split ( "-" ) [ 2 ] , channel : 0 } ) ; }
handle incoming data and pipe to midi
handle incoming data and pipe to midi