13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

SetVoiceEnvelopeReturn valuenShapenRepeatint Specifies an index to an OEM wave-shape table.int Specifies the number of repetitions of the wave shapeduring the duration of one note.The return value specifies the result of the function. It is zero if thefunction is successful. If an error occurs, the return value is one of thefollowing values:ValueS_SERDRCS_SERDSHS_SERQFULMeaningInvalid repeat countInvalid shapeQueue fullSetVoiceNoteSyntaxint SetVoiceNote(nVoice, nValue, nLength, nCdots)function SetVoiceNote(Voice, Value, Length, Cdots: Integer): Integer;This function queues a note that has the qualities given by the nValue,nLength, and nCdots parameters in the voice queue specified by the n Voiceparameter. An error occurs if there is insufficient room in the queue. Thefunction always leaves space in the queue for a single sync mark.Parameters nVoice int Specifies the voice queue to receive the note. If nVoice isout of range, the SetVoiceNote function is ignored.Return valuenValuenLengthnCdotsint Specifies 1 of 84 possible notes (seven octaves). If nValueis zero, a rest is assumed.int Specifies the reciprocal of the duration of the note. Forexample, 1 specifies a whole note, 2 a half note, 4 a quarternote, and so on.int Specifies the duration of the note in dots. The duration isequal to nLength x (nCdots x 3/2).The return value specifies the result of the function. It is zero if thefunction is successful. If an error occurs, the return value is one of thefollowing values:ValueS_SERDCCS_SERDLNS_SERDNTS_SERQFULMeaningInvalid dot countInvalid note lengthInvalid noteQueue full530Software development kit

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!