Csound Csound-dev Csound-tekno Search About

[Csnd] @@ macro

Date2010-11-16 22:19
Fromfrancesco
Subject[Csnd] @@ macro
Hi All,
trying the @ and @@ macro, power of two and power of two plus 1.
But i get power of two also in @@ case.
Somethings wrongs in my examples and/or in my understand?

thank You
ciao,
francesco.

examples and output:





sr			=			48000
ksmps		=			1
nchnls		=			1
0dbfs		=			1

			instr		1

iamp		=			p4 * .5
icps		=			330
ifn		=			p5
ilen		tableng		ifn

		print		ftlen(ifn)
		print		ilen

a1		oscil		iamp, icps, 1
		out			a1
		endin



; power of 2 greater then 1000
f 1 0 [ @1000] 10 1
; power of 2, +1, greater then 1000
f 2 0 [ @@1000] 2 1

i 1 0 1 .5 1
i 1 2 1 .5 2
e



the output:

new alloc for instr 1:
instr 1:  #i1 = 1024.000
instr 1:  ilen = 1024.000
B  0.000 ..  2.000 T  2.000 TT  2.000 M:  0.25000
instr 1:  #i1 = 1024.000
instr 1:  ilen = 1024.000
B  2.000 ..  3.000 T  3.000 TT  3.000 M:  0.25000