| Dear fellow Csounders,
I think there was some discussion about bugs in foutir before the 3.59
release, so sorry if this has already been answered.
Here's the problem: I had an orc/sco pair working with the "foutir"
opcode the last time I used Csound, and did my first conversion from midi
to a score that way, no problem.
Now, I'm trying to do it again with another midifile, and I have changed
the name of the output scorefile, and all Csound does is create the
scorefile, but doesn't write anything to it.
After calculating the frequencies with cpstmid and compiling a .wav file,
Csound pauses and asks for me to type a character to continue.
When I do this, it displays the following for a split second before
closing:
0 (chngrng.sco):
or something very similar.
I am using a 486 with Windows95 and Winsound3.59
Orchestra:
_________________________________________________
sr=44100
kr=44100
ksmps=1
nchnls=1
gihandle fiopen "chngrng.sco", 0 ;creates a
score file for output
massign 1, 1 ;assigns midichannels to
instr1
massign 2, 1
massign 3, 1
massign 4, 1
instr 1
icps cpstmid 1 ;reads
midi note number and converts to cps
foutir gihandle, 0, 1, icps
kamp linseg 0, 0.01, 10000, 0.49, 0
asig oscil kamp, icps, 2
out asig
endin
_______________________________________________
Score:
f0 15 ;pads score with 15 seconds of silence by deferring creation
of f0 (This is longer than the midifile in question)
; numgrades basefreq ratios...
; interval basekeymidi
f1 0 64 -2 8 8 220 45 1 2 3 4 5 6 7
8 ;a function table for cpstmid tuning ratios for
"midiconvert1.orc"
f2 0 16384 10 1 ;a
sine wave for oscil above
__________________________________________________
Your comments will be much appreciated
___________________________________________________________________
Get the Internet just the way you want it.
Free software, free e-mail, and free Internet access for a month! |