Sound Function - Sound Module Control Function

sdMidiSetPitch

Sets the pitch of a MIDI port

FORMAT

SDE_ERR sdMidiSetPitch( handle, pitch, fade_time )
SDMIDI handle
Sint8 pitch
Sint16 fade_time

PARAMETER

 handle  Object port handle 
 pitch  Target play pitch 
 fade_time  Time to reach target play speed 

RETURN

 SDE_ERR_HOST_CMD_BUF_NO_ENOUGH  No more host commands can be accepted 
 SDE_ERR_NO_INIT  The Sound Library has not been initialized 
 SDE_ERR_HANDLE_NULL  The handle is NULL 

DESCRIPTION

Sets the pitch of a MIDI port.

{Pitch which marks play pitch is 0100H for a half tone up, -0100H for a half tone down.

Units of fade_time, which mark the time to reach play speed, are in milliseconds from 0000H (fastest) to 7FFFH (slowest).


sdMidiSetPitch
COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999