| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
; Audio out |
| 5 |
-odac ;;;RT audio |
| 6 |
; For Non-realtime ouput leave only the line below: |
| 7 |
; -o partikkel-panlaws.wav -W ;;; for file output any platform |
| 8 |
</CsOptions> |
| 9 |
<CsInstruments> |
| 10 |
|
| 11 |
nchnls = 4 |
| 12 |
0dbfs = 1 |
| 13 |
|
| 14 |
giSine ftgen 0, 0, 65536, 10, 1 |
| 15 |
giCosine ftgen 0, 0, 8192, 9, 1, 1, 90 |
| 16 |
giSigmoRise ftgen 0, 0, 8193, 19, 0.5, 1, 270, 1 |
| 17 |
giSigmoFall ftgen 0, 0, 8193, 19, 0.5, 1, 90, 1 |
| 18 |
giLinUp ftgen 0, 0, 8192, 7, 0, 8192, 1 |
| 19 |
giConcaveUp ftgen 0, 0, 8192, 16, 0, 8192, 1.5, 1 |
| 20 |
giConvexUp ftgen 0, 0, 8192, 16, 0, 8192, -1.5, 1 |
| 21 |
giPanLaws ftgen 0, 0, 8192, 18, |
| 22 |
giLinUp, 1, 0, 1023, |
| 23 |
giConcaveUp, 1, 1024, 2047, |
| 24 |
giConvexUp, 1, 2048, 3071, |
| 25 |
giSigmoRise, 1, 3072, 4095 |
| 26 |
|
| 27 |
instr 1 |
| 28 |
|
| 29 |
; channel masking table, using just one single mask here |
| 30 |
ichannelmasks ftgentmp 0, 0, 32, -2, 0, 0, 0 |
| 31 |
|
| 32 |
; continuously write to masking table, |
| 33 |
; slowly panning the grains from output to output |
| 34 |
; over a 10 second period |
| 35 |
kchn phasor 0.1 |
| 36 |
kchn = kchn*4 |
| 37 |
tablew kchn, 2, ichannelmasks |
| 38 |
|
| 39 |
; init unused arate signals |
| 40 |
awavfm = 0 |
| 41 |
asamplepos1 = 0 |
| 42 |
async = 0 |
| 43 |
|
| 44 |
a1,a2,a3,a4 partikkel 4, 0, -1, async, 0, -1, giSigmoRise, giSigmoFall, |
| 45 |
0.9, 0.5, 100, ampdbfs(-9), -1, 1, 0, -1, -1, awavfm, |
| 46 |
-1, -1, giCosine, 1, 1, 1, ichannelmasks, 0, |
| 47 |
giSine, giSine, giSine, giSine, |
| 48 |
-1, asamplepos1, asamplepos1, asamplepos1, asamplepos1, |
| 49 |
440, 440, 440, 440, 100, 1, giPanLaws |
| 50 |
|
| 51 |
outch 1, a1, 2, a2, 3, a3, 4, a4 |
| 52 |
|
| 53 |
endin |
| 54 |
|
| 55 |
</CsInstruments> |
| 56 |
<CsScore> |
| 57 |
i1 0 12 |
| 58 |
</CsScore> |
| 59 |
</CsoundSynthesizer> |