| 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 hsboscil.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 |
; synth waveform |
| 17 |
giwave ftgen 1, 0, 1024, 10, 1, 1, 1, 1 |
| 18 |
; blending window |
| 19 |
giblend ftgen 2, 0, 1024, -19, 1, 0.5, 270, 0.5 |
| 20 |
|
| 21 |
instr 1 ; produces Risset's glissando. |
| 22 |
|
| 23 |
kamp = .4 |
| 24 |
kbrite = 0.3 |
| 25 |
ibasfreq = 200 |
| 26 |
ioctcnt = 5 |
| 27 |
|
| 28 |
; Change ktone linearly from 0 to 1, |
| 29 |
; over the period defined by p3. |
| 30 |
ktone line 0, p3, 1 |
| 31 |
|
| 32 |
asig hsboscil kamp, ktone, kbrite, ibasfreq, giwave, giblend, ioctcnt |
| 33 |
outs asig, asig |
| 34 |
|
| 35 |
endin |
| 36 |
</CsInstruments> |
| 37 |
<CsScore> |
| 38 |
|
| 39 |
i 1 0 10 |
| 40 |
e |
| 41 |
</CsScore> |
| 42 |
</CsoundSynthesizer> |