Debian Codegraph @

src/Examples/FLOSS Manual Examples/05 Sound Modification/05I05_pvshift.csd

raw
1 <CsoundSynthesizer>
2 <CsOptions>
3 -o dac
4 </CsOptions>
5 <CsInstruments>
6 sr = 44100
7 ksmps = 32
8 nchnls = 2
9 0dbfs = 1
10
11 instr Shift
12 aSig diskin "BratscheMono.wav"
13 fSig pvsanal aSig, 1024, 256, 1024, 1
14 fShift pvshift fSig, p4, p5
15 aShift pvsynth fShift
16 out aShift, aShift
17 endin
18
19 </CsInstruments>
20 <CsScore>
21 i "Shift" 0 9 0 0 ;no shift (base freq is 218)
22 i . + . 50 0 ;shift all by 50 Hz
23 i . + . 150 0 ;shift all by 150 Hz
24 i . + . 500 0 ;shift all by 500 Hz
25 i . + . 150 230 ;only above 230 Hz by 150 Hz
26 i . + . . 460 ;only above 460 Hz
27 i . + . . 920 ;only above 920 Hz
28 </CsScore>
29 </CsoundSynthesizer>
30 ;example by joachim heintz