[CM] music5
James Hearon
j_hearon at hotmail.com
Thu Jun 18 14:20:12 PDT 2026
Hi
I'm looking at the music5.f file in snd.
"To use this program, first divide music5.f into 3 passes (cut at the dotted lines)
named, say pass1.f, pass2.f, pass3.f. Then run them through gfortran:
gfortran -o pass1 pass1.f
gfortran -o pass2 pass2.f
gfortran -o pass3 pass3.f
Now get some input, from music5-examples perhaps, run pass1
and give it the input file name.
It writes pass1.data. Run pass2. It reads pass1.data and writes pass2.data.
Run pass3. It reads pass2.data and writes the raw (headerless) binary sound
file raw.snd. This is a file of little-endian 4-byte floats at 20000Hz, mono."
On fedora linux I got as far as creating the three -o files successfuly, but paused at "get some
input from music5-examples perhaps". I wasn't sure about that part.
Seems like it might be orchestra and score files, and I found something online, (ex. below)
But I'm not sure how the input file(s) work for input?
Any chance there's a brief example of how to give the -o files the input needed
to see if I can get an audio output?
ex.
1 INS 0 1 ; ; Instrument 1 definition starts
2 OSC P5 P6 B2 F2 P30 ; ; Oscillator using parameter 5 for pitch, 6 for amplitude
3 OUT B2 B1 ; ; Output to channel
4 END ; ; End of instrument 1 definition
!seems like this might be the score part...
5 GEN 0 1 2 0 0.999 50.999 205-.999 306-.999 461 0 511 ; ; Function table 1 (Waveform)
6 GEN 0 1 1 0 0 511 ; ; Function table 2 (Envelope)
7 NOT 0 1.50 125 8.45 ; ; Note event: start time, duration, amplitude, pitch
8 NOT .75 1.17 250 8.45 ;
9 NOT 1.00 1.50 500 8.45 ;
10 TER 8.00 ; ; Terminate score at 8 seconds
How to you name the file(s), file ext., and how do you call them?
Regards,
Jim
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cm-mail.stanford.edu/pipermail/cmdist/attachments/20260618/9a4cfc30/attachment.html>
More information about the Cmdist
mailing list