| 1 |
<CsoundSynthesizer> |
| 2 |
<CsOptions> |
| 3 |
; Select audio/midi flags here according to platform |
| 4 |
-odac ;;;realtime audio out |
| 5 |
;-iadc ;;;uncomment -iadc if realtime audio input is needed too |
| 6 |
; For Non-realtime ouput leave only the line below: |
| 7 |
; -o vpow_i-2.wav -W ;;; for file output any platform |
| 8 |
</CsOptions> |
| 9 |
<CsInstruments> |
| 10 |
|
| 11 |
sr = 44100 |
| 12 |
ksmps = 32 |
| 13 |
nchnls = 2 |
| 14 |
0dbfs = 1 |
| 15 |
|
| 16 |
gifil ftgen 1, 0, 0, 1, "fox.wav", 0, 0, 1 |
| 17 |
|
| 18 |
instr 1 |
| 19 |
|
| 20 |
ival = p4 ;different distortion settings |
| 21 |
ielements = p5 |
| 22 |
idstoffset = p6 ;index offset |
| 23 |
vpow_i 1, ival, ielements, idstoffset |
| 24 |
asig lposcil 1, 1, 0, 0, 1 |
| 25 |
outs asig, asig |
| 26 |
|
| 27 |
endin |
| 28 |
</CsInstruments> |
| 29 |
<CsScore> |
| 30 |
|
| 31 |
i1 0 2.7 .5 70000 0 ;no offset |
| 32 |
i1 3 2.7 .01 50000 70000 ;add another period of distortion, starting at sample 70000 |
| 33 |
|
| 34 |
e |
| 35 |
</CsScore> |
| 36 |
</CsoundSynthesizer> |