| Hi folks. I forgot to mention in that message I just fired off about a
possible bug in r statements that I'm using linux csound 3.482.
Here's another problem I ran into today. Am I doing this wrong? It looks
just like the example in the manual to me...
I'm trying to use the repeat count macro to make a note louder on each
repeat.
If I put a bracketed evaluation like this in a score:
------BEGIN SCORE-------------------
f1 0 32769 1 "drumachines/kicks/bit1bassdrum.aiff" 0 0 0
f5 0 8193 1 "drumachines/linn/lin20.wav" 0 0 0
; now we set up some handy macros
#define LOKIK #1 8.00#
#define SHK #5 8.00#
; now we play!
r 4 REPEATS
i1 0 .1 8.00 80 $LOKIK.
i1 1 .1 8.02 75 $LOKIK.
i1 2 .1 8.01 [70 + ($REPEATS. * 2)] $SHK.
i1 2.5 .1 8.03 77 $LOKIK.
i1 3.5 .1 8.05 82 $LOKIK.
f0 4
s
e
-------------END SCORE---------------
...I get this error:
sorting score ...
macro definition for LOKIK
macro definition for SHK
Repeats=4
Incorrect evaluation
What am I doing wrong?
Orchestra follows:
sr = 44100
kr = 2205
ksmps = 20
nchnls = 1
instr 1 ; basic mono sampler, no looping
; pfields: 4 = pitch, 5 = db, 6 = ftable, 7 = base freq
icps = cpspch(p4)
iamp = ampdb(p5)
kamp linenr iamp, 0, 0.2, .01 ; release
print iamp, icps
a1 loscil kamp, icps, p6, cpspch(p7),
out a1
endin
--------------------
regards,
PW
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com |