| Hi all,
I've found negative numbers confuse opcodes like fini (when used in text
mode) into thinking the '-' is actually a number, and generate different
information from the one written. The csd below should read the exact
numbers written, however the output is:
instr 2: ivar1 = 3.000 ivar2 = 4.000 ivar3 = 5.000
B 1.000 .. 2.156 T 2.156 TT 2.156 M: 0.0 0.0
Closing file 'testingfiopen'...
B 2.156 .. 3.156 T 3.156 TT 3.156 M: 0.0 0.0
Closing file 'testingfiopen'...
instr 2: ivar1 = 6.000 ivar2 = 7.000 ivar3 = 8.000
B 3.156 .. 4.953 T 4.953 TT 4.953 M: 0.0 0.0
Closing file 'testingfiopen'...
B 4.953 .. 5.953 T 5.953 TT 5.953 M: 0.0 0.0
Closing file 'testingfiopen'...
instr 2: ivar1 = 0.000 ivar2 = 3.000 ivar3 = 0.000
B 5.953 .. 6.953 T 6.953 TT 6.953 M: 0.0 0.0
Notice the last instr 2, which should report -3 -4 -5.
Can anyone have a look?
Thanks,
Andrés
sr=44100
ksmps=1
nchnls=2
instr 1 ;untitled
ihandle fiopen "testingfiopen", 0
fouti ihandle, 0, 0, p4, p5, p6
ficlose ihandle
turnoff
endin
instr 2 ;untitled
ivar1 init 0
ivar2 init 0
ivar3 init 0
ihandle fiopen "testingfiopen", 1
fini ihandle, 0,0, ivar1, ivar2, ivar3
ficlose ihandle
print ivar1, ivar2, ivar3
turnoff
endin
i1 0.0 1 3 4 5
i2 1.0 1
i1 2.15625 1 6 7 8
i2 3.15625 1
i1 4.953125 1 -3 -4 -5
i2 5.953125 1
e
_______________________________________________
Csound-devel mailing list
Csound-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cso |