[Csnd] Poly0

Hi

I have recently discovered the poly/poly0 opcodes (plugins), and think they are really great!

But, I have had problems getting poly0 to work with schedkwhen.

E.g.:

instr 1

kFrqs[] fillarray 1, 2, 3, 4

kMetro[] poly 4, “metro”, kFrqs

poly0 4, “schedkwhen”, kMetro, 0, 0, 2, 0, 1

endin

instr 2

out(oscil(0.1,200))

endin

gives

INIT ERROR in instr 1 (opcode poly0) line 13: failed to parse signature (kkkkkz), char failed: ‘z’

from file /Users/andbe/Library/Application Support/WinXound/Temp/WinXound_Untitled.csd (1)

poly0 4 “schedkwhen” kMetro 0 0 2 0 1

INIT ERROR in instr 1 (opcode poly0) line 13: poly: failed to setup handle

from file /Users/andbe/Library/Application Support/WinXound/Temp/WinXound_Untitled.csd (1)

poly0 4 “schedkwhen” kMetro 0 0 2 0 1

Am I doing something wrong, or doesn’t poly0 work with schedkwhen?

Best,

Andreas

Hi,

I haven’t implemented variable number of inputs yet (z means a var. number of k-type inputs), but it shouldn’t be difficult. For this and other bugs/feature requests feel free to open an issue at ()

best,

Eduardo

Csound mailing list Send bugs reports to Discussions of bugs and features can be posted here

Hi

Thanks for your great work with this Eduardo!

Issue opened!

Cheers, Andreas

Hi

I got a github message that this issue was fixed.

Then I tried this again (same code as below) after updating the plugins, but with the same result. I tried both the precompiled ones and to build from source.

I am not sure if I am doing anything wrong and it works for anyone else, or if there are still the same issue with the opcode.

Best,

Andreas

You can text new released binaries here:

Tested with the following code, seems to do the expected:

<CsoundSynthesizer>
<CsOptions>
-odac
</CsOptions>
<CsInstruments>

sr = 44100
ksmps = 64
nchnls = 2
0dbfs = 1

instr 1

kFrqs[] fillarray  5, 7, 11, 17
if timeinstk() == 1 then
    kFrqs *= 0.1
endif

kMidi[] fillarray 60, 64, 67, 69
kMetro[] poly 4, "metro", kFrqs
poly0 4, "schedkwhen", kMetro, 0, 0, 2, 0, 0.3, kMidi

endin

instr 2
    imidi = p4 + 12
    ifreq = mtof:i(imidi)
    asig = oscil(0.1,ifreq)
    asig *= adsr:a(0.005, 0.1, 0.5, 0.1)
    out(asig) 
endin

</CsInstruments>
<CsScore>
i 1 1 100

</CsScore>
</CsoundSynthesizer>

Csound mailing list Send bugs reports to Discussions of bugs and features can be posted here

Great! Now it works here as well!

Thanks a lot, Eduardo. This will be very useful.

Andreas