Debian Codegraph @

examples/portk.csd

raw
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 portk.wav -W ;;; for file output any platform
8 </CsOptions>
9 <CsInstruments>
10
11 ; by Stefano Cucchi 2020
12
13 sr = 44100
14 ksmps = 32
15 0dbfs = 1
16 nchnls = 2
17
18 instr 1
19
20 kFreq randomh 400, 1300, 4, 2, 550 ; random frequency to oscillators.
21
22 khtim linseg 0.001, p3*0.3, 0.001, p3*0.7, 0.125 ; portamento-function: start with NO portamento - then portamento.
23 kPort portk kFreq, khtim ; pitch with portamento.
24
25 asigL oscili 0.4, kFreq, 1 ; channel left - NO portamento.
26 asigR oscili 0.4, kPort, 2 ; channel right - PORTAMENTO.
27
28 outch 1, asigL ; channel left
29 outch 2, asigR ; channel right
30
31 endin
32
33 </CsInstruments>
34 <CsScore>
35
36 f 1 0 4096 10 1 0 1 0 1 0 1 0 1
37 f 2 0 4096 10 1 1 0 1 0 1 0 1 0 1
38
39 i 1 0 10
40 e
41 </CsScore>
42 </CsoundSynthesizer>