[Csnd-dev] UDO problem in latest develop
Dave Seidel <[email protected]> Mon, 10 Nov 2025 11:38:49 -0500
| Newsgroups | gmane.comp.audio.csound.devel |
|---|---|
| Message-ID | <CAMnrweAJ17O3vYUyTHo-KuQaCv-Vqv-mLvWdv14N4vDd7EqTQA@mail.gmail.com> |
The following UDO does not work with the latest develop sources. The print
statement shows that all four inputs argos are coming in at 0; If I revert
to the 7.0.0-beta.9 tag, it works fine.
opcode RissetHarmOsc(freq:i,ofs:k,amp:a,tbl:i):(a,a)
koff1 = ofs
koff2 = 2 * ofs
koff3 = 3 * ofs
koff4 = 4 * ofs
printks(">> RissetHarmOsc ->%f %f %f %f\n", 5, freq, ofs, amp, tbl)
; a1 = poscil3(kamp, freq, tbl
a2 = poscil3(amp, freq+koff1, tbl)
a3 = poscil3(amp, freq+koff2, tbl)
a4 = poscil3(amp, freq+koff3, tbl)
a5 = poscil3(amp, freq+koff4, tbl)
a6 = poscil3(amp, freq-koff1, tbl)
a7 = poscil3(amp, freq-koff2, tbl)
a8 = poscil3(amp, freq-koff3, tbl)
a9 = poscil3(amp, freq-koff4, tbl)
aL = a2+a4+a6+a8
aR = a3+a5+a7+a9
aoutL, aoutR = reverbsc(aL, aR, 0.4, 4000)
xout(aoutL+aL, aoutR+aR)
; xout(aL, aR)
endop
example calling statement:
a1L, a1R = RissetHarmOsc(icps, 0.004, aenv, giPrime)
Has something changed to make my UDO invalid in some way? I'm using this
code in as performance on Saturday and I'm focused on preparing, but I can
follow up with a minimal example.