[Csnd] trying to define triplets
Date | 2013-03-22 09:15 |
From | Stefan Thomas |
Subject | [Csnd] trying to define triplets |
Dear community, I tried to define a macro for eighth note triplets. Unfortunately, all the three notes in the below quoted code start at the same time! I can't see my mistake. <CsoundSynthesizer> <CsOptions> -odac -m0d </CsOptions> ; ============================================== <CsInstruments> sr = 44100 ksmps = 100 nchnls = 2 0dbfs = 1 gisine ftgen 0,0,2^10, 10, 1 instr 1 iamp = p4 icps = cpspch(p5) iatt = 0.01 idec = p3-iatt aenv linseg 0, iatt, 1, idec, 0 asig poscil iamp*aenv, icps, gisine ipan = 0.1 asigleft, asigright pan2 asig, ipan outs asigleft, asigright endin </CsInstruments> ; ============================================== <CsScore> #define T8 #^+[1/3]# ; MACRO for eighth note triplet { 4 LUP i1 [0 + 1 * $LUP.] 0.75 0.1 8.04 i. [$T8 + 1 * $LUP.] . . 8.02 i. [$T8 + 1 * $LUP.] . . 8.00 } ; all the three notes of the ostinato come together </CsScore> </CsoundSynthesizer> |