This shows you the differences between two versions of the page.
listing_20the_20midi_20output_20devices [2018/03/31 14:19] 127.0.0.1 external edit |
listing_20the_20midi_20output_20devices [2018/04/15 13:33] (current) richardrussell Added syntax highlighting |
||
---|---|---|---|
Line 1: | Line 1: | ||
=====Listing the MIDI output devices===== | =====Listing the MIDI output devices===== | ||
- | //by Richard Russell, May 2006//\\ \\ The code below will list to the screen all the available MIDI output devices:\\ \\ | + | //by Richard Russell, May 2006// |
+ | |||
+ | The code below will list to the screen all the available MIDI output devices: | ||
+ | |||
+ | <code bb4w> | ||
DIM moc{ \ | DIM moc{ \ | ||
\ wMid{l&,h&}, \ int16 | \ wMid{l&,h&}, \ int16 | ||
Line 22: | Line 26: | ||
ENDIF | ENDIF | ||
NEXT i% | NEXT i% | ||
+ | </code> | ||
+ | |||
When more than one output device is available you could adapt the code to present a list to the user from which he can make a selection. | When more than one output device is available you could adapt the code to present a list to the user from which he can make a selection. |