@input omni_midi_out OMNI-MIDI-OUTPUT @input omni_osc_out OMNI-OSC-OUTPUT @input omni_midi OMNI-MIDI @input omni_osc OMNI-OSC @init gfx_init("show input and output", 320,200); function showmsg(type, desc, wp) local(colpos,w,h,str) ( gfx_setfont(1,"Verdana",max(gfx_h/16,10)); gfx_a=1; gfx_mode=0; sprintf(str=#,"%s message: %s\n",type,desc); gfx_measurestr(str,w,h); gfx_x=gfx_w/2-w/2+2; gfx_y=wp - h/2; gfx_r=gfx_g=gfx_b=0; gfx_r=gfx_g=1; gfx_drawstr(str); ); @oscmsg showmsg(msgdev==omni_osc ? "OSC-IN" : "OSC-OUT", oscstr,gfx_h*.4); @midimsg showmsg(msgdev==omni_midi ? "MIDI-IN" : "MIDI-OUT", sprintf(#,"%02x %02x %02x",msg1,msg2,msg3),gfx_h*.6); @timer