IBM Books

Image, Audio, and Video Extenders Administration and Programming

TicksPerQNote


Image Audio Video
  X  

Returns the clock speed of a recorded MIDI audio, in ticks per quarter note.

Include file

dmbaudio.h

Syntax

>>-TicksPerQNote--(--handle--)---------------------------------><
 

Parameters (data type)

handle (DB2AUDIO)
Column name or host variable that contains the handle of the audio.

Return values (data type)

Number of clock ticks per quarter note of MIDI audio (SMALLINT). Returns a null value for audio in other formats.

Examples

Get the file names of all MIDI audios in the sound column of the employee table that were recorded at speeds higher than 200 clock ticks per quarter note:

EXEC SQL BEGIN DECLARE SECTION;
 char hvAud_fname[251];
EXEC SQL END DECLARE SECTION;
 
EXEC SQL SELECT FILENAME(SOUND)
      INTO :hvAud_fname
      FROM EMPLOYEE
      WHERE FORMAT(SOUND)='MIDI'
      AND TICKSPERQNOTE(SOUND)>200;


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]