Re: [Csnd] metro based drums

well, since i created this post; there's any way of having all of this in a single instrument? or are separated ways always better?

instr 1
; f100 0 8 2 1 1 1 1 1 -1 -1 -1
;1 str dur trig dur amp note edo rept base
ktrig metro p4
if (ktrig == 1) then
event "i", 10, p2, p5, p6, p7, p8, p9, p10
endif
endin

instr 10
; Simple drum (CSound instrument)
; f100 0 8 2 1 1 1 1 1 -1 -1 -1
icps cpsxpch p5, p6, p7, p8
a1 pluck p4, icps, icps, 100, 3, .5
out a1
endin

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        GitHub · Where software is built
Discussions of bugs and features can be posted here

you can trigger an instrument itself recursively

instr 1
out(expon(1, p3, 0.001)*rand(p4))
schedule(1, 0.1, 0.3, 0.2)
endin
schedule(1,0,0.3,0.2)

Prof. Victor Lazzarini
Maynooth University
Ireland