[Csnd-dev] More Daisy help
Dave Seidel <[email protected]> Fri, 12 Sep 2025 11:38:29 -0400
| Newsgroups | gmane.comp.audio.csound.devel |
|---|---|
| Message-ID | <CAMnrweAH56DF7Du2QDa92kNp-UFCQDDS08zSjmhN6LupRmHZjg@mail.gmail.com> |
Hi Victor,
I have a tiny project that essentially duplicates the
DaisyCsoundProcess example, the only differences in the code being the
changes names and the contents of csdText.
Here's the UDO I'm using, which works fine with standalone Csound. It takes
an input signal and turns it into a stereo output signal with a
binaural beat. When it's executed on the Daisy, I can sort of hear the
output, but it's very noisy. Is there anything in this code that you would
not expect to work on the Daisy?
opcode binauralize, aa, ak
ain,kdiff xin
; take it apart
fsig pvsanal ain, 2048, 2048/4, 2048, 1
; determine pitches
; kcent, kamp pvspitch fsig, 0.1
kcent pvscent fsig
if (kcent > 0) && (kdiff > 0) then
kdiff /= 2
krat1 = (kcent + kdiff) / kcent
krat2 = (kcent - kdiff) / kcent
else
krat1 = 1
krat2 = 1
endif
; create derived streams with shifted pitches
fsig2 = fsig
fbinL pvscale fsig, krat1, 0
fbinR pvscale fsig2, krat2, 0
; put it back together
aoutL pvsynth fbinL
aoutR pvsynth fbinR
xout aoutL, aoutR
endop