Dear list,
could it be that the "sum" -opcode works differently compared to a simple "+" sign?
For me it looks a lot like the first item (a1 in my example below) is summed twice in sum.
You can see it if you compare the output of the amplitude.
I have Csound 6.17 running on Linux ubuntu 20.04.
Best,
Jan Jacob
sound | movement | object | space
sonic architecture | site: http://www.sonicarchitecture.de
spatial electronic composition | higher order ambisonic music
<CsoundSynthesizer>
<CsOptions>
- odac
</CsOptions>
<CsInstruments>
sr = 48000
ksmps = 128
nchnls = 2
0dbfs = 1.0
instr 1
iamp = p4
a1 oscil iamp, 440
a2 oscil iamp, 440
a3 oscil iamp, 440
a4 oscil iamp, 440
aout sum a1, a2, a3, a4
;aout = a1 + a2 + a3 + a4 ; uncomment this for comparison
outs aout, aout
endin
</CsInstruments>
<CsScore>
i1 0 1 .5
</CsScore>
</CsoundSynthesizer>
Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
Issues · csound/csound · GitHub
Discussions of bugs and features can be posted here