Sequencer Command Messages

┌───────────────────────┬─────────────────────────────────────────────┐
│Message                │Description                                  │
├───────────────────────┼─────────────────────────────────────────────┤
│MCI_CLOSE              │Closes the sequencer device.                 │
├───────────────────────┼─────────────────────────────────────────────┤
│MCI_CONNECTOR          │Enables or disables a connector, queries its │
│                       │state or identifies its type.                │
├───────────────────────┼─────────────────────────────────────────────┤
│MCI_CUE                │Cues the device for minimum delay in playback│
│                       │or recording:                                │
│                       │-Cues a sequencer input device               │
│                       │-Cues a sequencer output device              │
├───────────────────────┼─────────────────────────────────────────────┤
│MCI_GETDEVCAPS         │Gets device capabilities.                    │
├───────────────────────┼─────────────────────────────────────────────┤
│MCI_INFO               │Gets the following information:              │
│                       │-Sequencer product name                      │
│                       │-Name of the currently loaded file           │
├───────────────────────┼─────────────────────────────────────────────┤
│MCI_LOAD               │Loads a sequencer data file.                 │
├───────────────────────┼─────────────────────────────────────────────┤
│MCI_OPEN               │Initializes the sequencer device.            │
├───────────────────────┼─────────────────────────────────────────────┤
│MCI_PLAY               │Plays back MIDI data by means of the audio   │
│                       │adapter. The following optional action       │
│                       │modifies MCI_PLAY:                           │
│                       │-Specify start and stop positions in the     │
│                       │device element                               │
├───────────────────────┼─────────────────────────────────────────────┤
│MCI_PAUSE              │Suspends the current playback action.        │
├───────────────────────┼─────────────────────────────────────────────┤
│MCI_RESUME             │Resumes playing from a paused state, keeping │
│                       │previously specified parameters in effect.   │
├───────────────────────┼─────────────────────────────────────────────┤
│MCI_SAVE               │Saves the device element in its current      │
│                       │format.                                      │
├───────────────────────┼─────────────────────────────────────────────┤
│MCI_SEEK               │Moves to the specified position in the device│
│                       │element.                                     │
├───────────────────────┼─────────────────────────────────────────────┤
│MCI_SET                │Sets audio attributes:                       │
│                       │-Identify the channels to be used            │
│                       │-Set the volume                              │
│                       │-Enable or disable the audio output          │
│                       │Sets sequencer information in the            │
│                       │PMCI_SEQ_SET_PARMS structure of MCI_SET:     │
│                       │-Set the sequencer as master and specify the │
│                       │type of MIDI data it uses                    │
│                       │-Change the SMPTE offset of a sequence       │
│                       │-Set the output MIDI port of the sequencer   │
│                       │-Set the MIDI mapper as the port to receive  │
│                       │sequencer messages                           │
│                       │-Set the sequencer as slave and identify any │
│                       │sync data it needs                           │
│                       │-Set the tempo of the MIDI sequence according│
│                       │to the current time format                   │
│                       │Sets time format to be used for sequencer    │
│                       │data:                                        │
│                       │-Song pointer                                │
│                       │-SMPTE 24                                    │
│                       │-SMPTE 25                                    │
│                       │-SMPTE 30                                    │
│                       │-SMPTE 30 drop                               │
├───────────────────────┼─────────────────────────────────────────────┤
│MCI_SET_CUEPOINT       │Sets a cue point.                            │
├───────────────────────┼─────────────────────────────────────────────┤
│MCI_SET_POSITION_ADVISE│Sets a position change notification request. │
├───────────────────────┼─────────────────────────────────────────────┤
│MCI_SET_SYNC_OFFSET    │Sets a synchronization offset.               │
├───────────────────────┼─────────────────────────────────────────────┤
│MCI_STATUS             │Receives status on items such as the         │
│                       │following:                                   │
│                       │-File division type                          │
│                       │-Length of sequence in current time format   │
│                       │-Whether the device is the sync master or a  │
│                       │slave                                        │
│                       │-Which MIDI port is assigned to the sequencer│
│                       │-What the offset is for a SMPTE-based file   │
│                       │-What the current tempo and time format is   │
├───────────────────────┼─────────────────────────────────────────────┤
│MCI_STOP               │Stops the sequencer device before loading a  │
│                       │file.                                        │
└───────────────────────┴─────────────────────────────────────────────┘


[Back: Creating MIDI Memory Files]
[Next: Sequencer Connectors]