- [Function]
- (
set-midi-output-hook!
function)
Causes function to be called on midi files after they are written by events. The function is passed the pathname (string) of the file and any initialization arguments the user set in the file. These additional arguments are passed as keyword and value pairs to the hook function. CM provides several default hooks for playing midi files on different operating systems. The function mac-play-midi-stream plays a midi file on the Macintosh via QuickTime. The function oss-play-midi-stream plays a midi file on linux via the OSS utility "/usr/bin/playmidi". The function win-play-midi-stream plays a midi file on Windows 2000 using Microsoft's Media Player application. To remove an existing output hook specify function as false.
See Also:
- events [Function]
- set-clm-output-hook! [Function]
- set-sco-output-hook! [Function]