| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
-odac ;;;realtime audio out |
| 5 |
; For Non-realtime ouput leave only the line below: |
| 6 |
; -o lpsholdp.wav -W ;;; for file output any platform |
| 7 |
|
| 8 |
; by Stefano Cucchi 2020 |
| 9 |
|
| 10 |
</CsOptions> |
| 11 |
<CsInstruments> |
| 12 |
|
| 13 |
sr = 44100 |
| 14 |
ksmps = 32 |
| 15 |
nchnls = 2 |
| 16 |
0dbfs = 1 |
| 17 |
|
| 18 |
|
| 19 |
instr 1 |
| 20 |
|
| 21 |
kphase1 phasor 3 |
| 22 |
|
| 23 |
kmodulation oscil 0.5, 0.01, 2 |
| 24 |
kphase2 phasor 3+kmodulation |
| 25 |
|
| 26 |
kamp linseg 0, 0.2, 1, p3-0.4, 1, 0.2, 0 |
| 27 |
kfreq1 lpsholdp kphase1, cpspch(p4), 6, cpspch(p5), 10, cpspch(p6), 12 |
| 28 |
kfreq2 lpsholdp kphase2, cpspch(p4), 6, cpspch(p5), 10, cpspch(p6), 12 |
| 29 |
|
| 30 |
a1 = poscil(kamp, kfreq1, 1) |
| 31 |
a2 = poscil(kamp, kfreq2, 1) |
| 32 |
|
| 33 |
outch 1, a1 |
| 34 |
outch 2, a2 |
| 35 |
endin |
| 36 |
|
| 37 |
</CsInstruments> |
| 38 |
<CsScore> |
| 39 |
|
| 40 |
f1 0 8192 10 1 0 1 0 1 0 1 0 1 0 1 |
| 41 |
f2 0 4096 10 1 0 1 1 1 |
| 42 |
|
| 43 |
i1 0 10 6.09 6.02 7.03 |
| 44 |
|
| 45 |
e |
| 46 |
|
| 47 |
</CsScore> |
| 48 |
</CsoundSynthesizer> |