| 1 |
<CsoundSynthesizer> |
| 2 |
|
| 3 |
; Id: G03_TR18-1.CSD mg (2006, rev.2009) |
| 4 |
; author: marco gasperini (marcogsp at yahoo dot it) |
| 5 |
|
| 6 |
; G.M. Koenig |
| 7 |
; ESSAY (1957) |
| 8 |
|
| 9 |
<CsOptions> |
| 10 |
-W -f -oG03_TR18-1.wav |
| 11 |
</CsOptions> |
| 12 |
|
| 13 |
<CsInstruments> |
| 14 |
|
| 15 |
sr = 192000 |
| 16 |
kr = 192000 |
| 17 |
ksmps = 1 |
| 18 |
nchnls = 1 |
| 19 |
|
| 20 |
;============================================= |
| 21 |
; 272.18 TRANSPOSITION (RESAMPLING) |
| 22 |
;============================================= |
| 23 |
instr 1 |
| 24 |
itrasp = p4 |
| 25 |
ifile = p5 |
| 26 |
|
| 27 |
a1 diskin2 ifile, itrasp |
| 28 |
|
| 29 |
ifrq = (sr /2) * itrasp ; anti-aliasing filter |
| 30 |
a1 tonex a1 , ifrq , 10 |
| 31 |
a1 tonex a1 , ifrq , 10 |
| 32 |
|
| 33 |
out a1 |
| 34 |
endin |
| 35 |
;============================================= |
| 36 |
|
| 37 |
</CsInstruments> |
| 38 |
<CsScore> |
| 39 |
t0 4572 ; 76.2 cm/sec. tape speed (durations in cm) |
| 40 |
|
| 41 |
; p4 p5 |
| 42 |
; itrasp ifile |
| 43 |
i1 0 2086.28 .6224 "G02_RM18.wav" ; 31.12/50 |
| 44 |
|
| 45 |
e |
| 46 |
|
| 47 |
</CsScore> |
| 48 |
</CsoundSynthesizer> |