home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Media Share 9
/
MEDIASHARE_09.ISO
/
pascal
/
sndpas.zip
/
PMANCVT.DOC
< prev
next >
Wrap
Text File
|
1990-06-17
|
2KB
|
36 lines
PianoMan *.MUZ to SOUNDER.PAS Song Converter
PMANCVT.PAS
Nels Anderson
92 Bishop Drive
Framingham, MA 01701-6540
One good way create songs and other sounds is with Neil Rubenking's
PianoMan program. PianoMan lets you enter songs directly by playing
your PC keyboard as a piano keyboard and then lets you edit the results
in just about any imaginable way. PMANCVT.PAS converts PianoMan songs
stored in *.MUZ files into a form compatible with SOUNDER.PAS and its
interrupt driven sound routines.
Each PianoMan note includes an octave value, the note within the octave,
a staccato value and a duration. The conversion ignores the staccato
value as the SOUNDER.PAS routines don't have this feature. Further,
PianoMan runs in real time rather than as an interrupt giving it the
advantage of being able to define notes of any duration while the
interrupt routines must use notes with durations that are multiples of
the clock tick (1/18th of a second). The conversion changes the note
duration as well as it can, and allows you to control the relative
durations. The typical PianoMan song requires that you divide the
note duration by about 40 to get the desired interrupt duration. Try
that as the initial value when doing a conversion and adjust if it
doesn't sound right.
PMANCVT.PAS will create a file called PMAN.DAT which will contain a
Pascal byte array of the song, with an array name of "pman". This
array can then be inserted into your Pascal program and played just
like the sample songs included in SOUNDER.PAS. The conversion uses
the note constants that are in SOUNDER.PAS which makes the array
relatively easy to read.