PianoCheater - Playback
Playing back songs...
When PianoCheater starts,
the ...\PianoCheater\Practice dir's
song list is loaded in (if any) and you're GO for piano practice !!
If PianoCheater was run via Windows Explorer by double clicking a .mid file,
the file is tacked onto the end of the current song list and starts.
If a dir in WinExplorer is right clicked and
"play these songs via PianoCheater" is picked,
a new songlist is made for all songs in the dir and starts.
Be careful with BIG dirs (DON'T pick c:\) because it may take a while...
Loading a song involves
- loading the .mid file
- each MidiOut device used by the song is allocated and initialized.
each track's channel is calculated based on
- if the sound is Drum\Drum we're forced to use channel #10
- otherwise the next available midi channel is allocated.
(channels can be shared by 2 or more tracks if they're next to each
other in the song file and all tracks after the first have a leading
+ character in the track name.)
- if the midiout device is a "known" device type (for example, "soundfont")
the sound's patch file is dumped to the synth.
- the PianoCheater\Device\{DeviceType}\sound.txt files are consulted
to send the correct program changes on the correct channels.
Soundfont devices keep track of patch#s auto-magically :)
The song plays until there are no more midi events, then
the midi file is closed and the process starts all over with the next
in the song list.
Any recording activity or loading songs in the Practice dir
will -keep- PianoCheater on that song, however.
________________________________________________________________________________
Next up, recording...
|