##### Sound Function - Sound Module Control Function

# sdMidiSetMes

Creates a MIDI message to send to a MIDI port

### FORMAT

`

  SDE_ERR sdMidiSetMes( handle, *midi_mes_ptr, midi_mes, ..... )
  SDMIDI handle
  SDS_MIDI_MES *midi_mes_ptr
  Sint8 midi_mes

`

### PARAMETER

  `handle` | Object port handle
  `midi_mes_ptr` | Pointer to storage containing created MIDI message
  `midi_mes` | MIDI message

### RETURN

  SDE_ERR_NO_INIT | The Sound Library has not been initialized |
  SDE_ERR_HANDLE_NULL | The handle is NULL |

### DESCRIPTION

  Creates a MIDI message to send to a MIDI port. The variable length parameter allows data to be written continuously as required for the MIDI message.

  MIDI messages that can be set are shown below.

  SDD_MIDI_NOTE_OFF | MIDI note off
  SDD_MIDI_NOTE_ON | MIDI note on
  SDD_MIDI_MONO_PRES | MIDI monopressure
  SDD_MIDI_PRG_CHG | MIDI program change
  SDD_MIDI_CTL_CHG | MIDI control change
  SDD_MIDI_POLY_PRES | MIDI polypressure
  SDD_MIDI_PITCH_BEND | MIDI pitch bend

### NOTE

  For further information about MIDI messages, refer to the MIDI-related document.

sdMidiSetMes

COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999