Annotation of wikisrc/tutorials/how_to_use_midi_devices_with_netbsd.mdwn, revision 1.3

1.2       schmonz     1: **Contents**
                      2: 
                      3: [[!toc levels=2]]
                      4: 
                      5: #  Supported hardware 
                      6: 
                      7: ##  Creative Music System 
                      8: 
                      9: Very old and rare synthesizer. 
                     10: 
1.3     ! sevan      11: See [[!template id=man name="cms" section="4"]].
1.2       schmonz    12: 
                     13: ##  PC speaker 
                     14: 
                     15: It has one-voice polyphony and sounds just awful. Useful only for testing MIDI input devices. 
                     16: 
1.3     ! sevan      17: See [[!template id=man name="pcppi" section="4"]].
1.2       schmonz    18: 
                     19: ##  Roland MPU-401 
                     20: 
                     21: MIDI interface by Roland. It became popular thanks to excessive cloning. 
                     22: 
                     23: Supported on many ISA cards, and following PCI cards: 
                     24: 
1.3     ! sevan      25:   * C-Media CMI8738 - [[!template id=man name="cmpci" section="4"]] - support broken in NetBSD 4.0? 
        !            26:   * ESS Solo-1 - [[!template id=man name="eso" section="4"]]
        !            27:   * ForteMedia FM801 - [[!template id=man name="fms" section="4"]]
        !            28:   * Yamaha DS-1 - [[!template id=man name="yds" section="4"]]
1.2       schmonz    29: 
                     30: Usually MPU interfaces are conncted to MIDI/Joystick port on sound cards. You won't be able to play/receive anything unless you connect some external MIDI device to such port. Though, in some rare cases MPU interface is connected to on-board/daughterboard WaveTable MIDI engine. 
                     31: 
1.3     ! sevan      32: See [[!template id=man name="mpu" section="4"]]
1.2       schmonz    33: 
                     34: ##  Simple MIDI interfaces 
                     35: 
                     36: Simple MIDI interfaces are supported on many ISA cards, and following PCI cards: 
                     37: 
1.3     ! sevan      38:   * Cirrus Logic CS4280 - [[!template id=man name="clcs" section="4"]]
        !            39:   * Creative Labs SoundBlaster PCI (Ensoniq AudioPCI based) - [[!template id=man name="eap" section="4"]]
        !            40:   * Trident 4DWAVE and compatibles - [[!template id=man name="autri" section="4"]]
1.2       schmonz    41: 
                     42: Usually simple MIDI interfaces are connected to MIDI/Joystick port on sound cards. You won't be able to play/receive anything unless you connect some external MIDI device to such port. 
                     43: 
                     44: Note: MIDI port and synth on SoundBlaster Live! and newer cards by Creative is unsupported. 
                     45: 
                     46: ##  USB MIDI devices 
                     47: 
                     48: Many USB MIDI devices are supported. Synth modules, keyboards and MIDI interfaces are handled well. 
                     49: 
1.3     ! sevan      50: See [[!template id=man name="umidi" section="4"]]
1.2       schmonz    51: 
                     52: ##  Yamaha OPL2 and OPL3 
                     53: 
                     54: Popular single-chip FM synthesizer. Almost all ISA cards come with such chip. 
                     55: 
                     56: Some of the newer cards have compatbile FM engine too. PCI cards based on following chipsets have it: 
                     57: 
1.3     ! sevan      58:   * C-Media CMI8738 - [[!template id=man name="cmpci" section="4"]] - opl support broken in NetBSD 4.0? 
        !            59:   * ESS Solo-1 - [[!template id=man name="eso" section="4"]]
        !            60:   * ForteMedia FM801 - [[!template id=man name="fms" section="4"]]
        !            61:   * S3 SonicVibes - [[!template id=man name="sv" section="4"]]
        !            62:   * Yamaha DS-1 - [[!template id=man name="yds" section="4"]]
1.2       schmonz    63: 
                     64: NetBSD opl driver has built-in General MIDI instrument definitions, so your system is ready to play without additional configuration. 
                     65: 
                     66: Note: New PCI cards by Creative Labs do not have this chip. 
                     67: 
1.3     ! sevan      68: See [[!template id=man name="opl" section="4"]]
1.2       schmonz    69: 
                     70: #  Identifying MIDI devices 
                     71: 
                     72: You can easily discover what kind of MIDI devices are available - try grepping dmesg: 
                     73:     
                     74:     dmesg | grep midi
                     75:     
                     76: 
                     77: Sample output: 
                     78:     
                     79:     midi0 at pcppi1: PC speaker (CPU-intensive output)
                     80:     midi1 at opl0: Yamaha OPL3 (CPU-intensive output)
                     81:     umidi0 at uhub1 port 2 configuration 1 interface 1
                     82:     umidi0: Evolution Electronics Ltd. USB Keystation 61es, rev 1.00/1.13, addr 2
                     83:     umidi0: (genuine USB-MIDI)
                     84:     umidi0: out=1, in=1
                     85:     midi2 at umidi0: <0 >0 on umidi0
                     86:     
                     87: 
                     88: In this case three MIDI devices are detected - PC speaker, Yamaha OPL3 and USB MIDI device (Keystation 61es keyboard in this case). 
                     89: 
                     90: #  Connecting MIDI devices 
                     91: 
                     92: Connecting MIDI devices is very simple. For example if you want to drive OPL3 using USB MIDI keyboard try: 
                     93:     
                     94:     cat /dev/rmidi2 > /dev/rmidi1
                     95:     
                     96: 
                     97: You can now play :). 
                     98: 
                     99: #  MIDI software for NetBSD 
                    100: 
1.3     ! sevan     101: Utility called [[!template id=man name="midiplay" section="1"]] comes with NetBSD. 
1.2       schmonz   102: 

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb