| Hello Csounders,
When I try to compile an orc/sco/mid combination using Winsound 3.482, Windows 95 reports an
illegal function and shuts Winsound down. I have tried two sets of files (well, actually more, but the
ones below are the ones I kept the error messages from). The first is my own (don't laugh too hard):
;ORCHESTRA
sr=44100
kr=44100
ksmps=1
nchnls=2
instr 1
ipch pchmidi
icps cps2pch ipch,1
iamp ampmidi 30000
kpan midictrl 10
kpan2 = kpan * 0.708
kamp linsegr 0,.08,.9,.03,1,.1,0
asing voice iamp*kamp, icps, 1, 1.2, 5, .01*icps, 20, 3
kdistance = (iamp*kamp != 0 ? iamp*kamp : .001)
aleft,aright locsig asing,kpan2,1/(kdistance*.001),20
asndl,asndr locsend
arvbl reverb2 asndl,2,0.8
arvbr reverb2 asndr,2,0.8
outs (.7*aleft)+(.3*arvbl),(.7*aright)+(.3*arvbr)
endin
;SCORE
f1 0 16 -2 1 1.066667 1.125 1.2 1.25 1.33333333 1.40625 1.5 1.6 1.66666667 1.77777778
1.875
; Just major scale in C
f3 0 1024 10 1 ; sine wave for vibrato
f20 0 256 1 "c:\csound\samples\impuls20.wav" 0 4 1
f0 15 ; wait 15 seconds for MIDI input
e
The MIDI file is attached.
Thinking the problem might be my orc or score I tried waveshap.orc, waveshap.sco, waveshap.mid, which I found at
ftp://ftp.maths.bath.ac.uk/pub/dream/documentation/orchestras+scores/midi/ , and got a similar error message (see below). I tried ffitch's "Prelude" (in
ftp://ftp.maths.bath.ac.uk/pub/dream/documentation/orchestras+scores/compositions/ffitch/drumsand/ ), which doesn't use MIDI, and it worked fine. Other orc/sco (no MIDI) pieces
generally compile ok.
The error message for my orc/sco/mid reads:
WINSOUND caused a stack fault in module WINSOUND.EXE at 0137:00415ea4.
Registers:
EAX=007d792c CS=0137 EIP=00415ea4 EFLGS=00010246
EBX=007e0504 SS=013f ESP=006ffcf8 EBP=00000000
ECX=007e03d4 DS=013f ESI=00000003 FS=0f27
EDX=00000048 ES=013f EDI=00000001 GS=0000
Bytes at CS:EIP:
83 7d 48 00 0f 84 b9 00 00 00 8b 3b 85 ff 74 0c
Stack dump:
006ffd8c 00000001 00000000 00000003 00000000 0044c234 00000003 007e03d4 007dffc0 006ffd8c 0049769a 004a5353 0048adb8 00000000 41700000 41700000
The error message for waveshap.orc/sco/mid reads:
WINSOUND caused a stack fault in module WINSOUND.EXE at 0137:00415ea4.
Registers:
EAX=007d7770 CS=0137 EIP=00415ea4 EFLGS=00010246
EBX=0085c2a0 SS=013f ESP=006ffcf8 EBP=00000000
ECX=0085c1d0 DS=013f ESI=00000004 FS=0f0f
EDX=00000030 ES=013f EDI=00000001 GS=0000
Bytes at CS:EIP:
83 7d 48 00 0f 84 b9 00 00 00 8b 3b 85 ff 74 0c
Stack dump:
004a8b04 00000001 00000000 00000004 00000000 0044c234 00000004 0085c1d0 007e0538
006ffd8c 0049769a 004a5356 0048adb8 00000000 44160000 44160000
Thank you for your time.
Terry Cast
University of Oklahoma
|