~ubuntu-branches/ubuntu/trusty/csound-manual/trusty-proposed

« back to all changes in this revision

Viewing changes to examples/pvsmorph.csd

  • Committer: Bazaar Package Importer
  • Author(s): Felipe Sateler
  • Date: 2011-08-01 22:21:58 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110801222158-90kslkp5ujci2f5d
Tags: 1:5.13~dfsg-1
* New upstream release
 - Add Menno Knevel to the copyright file
 - Refresh patch 2000-stripped-opcodes.diff
 - Update copyright hints file
* Update Vcs-* headers
* Bump Standards-Version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<CsoundSynthesizer>
 
2
<CsOptions>
 
3
; Select audio/midi flags here according to platform
 
4
; Audio out   Audio in
 
5
-odac    ;;;RT audio I/O
 
6
; For Non-realtime ouput leave only the line below:
 
7
; -o pvsmorph.wav -W ;;; for file output any platform
 
8
</CsOptions>
 
9
<CsInstruments>
 
10
 
 
11
sr = 44100
 
12
ksmps = 16
 
13
nchnls = 1
 
14
0dbfs = 1
 
15
 
 
16
;; example written by joachim heintz 2009
 
17
 
 
18
giSine          ftgen           0, 0, 4096, 10, 1
 
19
 
 
20
instr 1
 
21
iampint1        =               p4
 
22
iampint2        =               p5
 
23
ifrqint1        =               p6
 
24
ifrqint2        =               p7
 
25
kampint linseg          iampint1, p3, iampint2
 
26
kfrqint linseg          ifrqint1, p3, ifrqint2
 
27
ifftsize        =               1024
 
28
ioverlap        =               ifftsize / 4
 
29
iwinsize        =               ifftsize
 
30
iwinshape       =               1; von-Hann window
 
31
Sfile1          =               "fox.wav"
 
32
ain1            soundin Sfile1
 
33
ain2            buzz            .2, 50, 100, giSine
 
34
fftin1          pvsanal ain1, ifftsize, ioverlap, iwinsize, iwinshape
 
35
fftin2          pvsanal ain2, ifftsize, ioverlap, iwinsize, iwinshape
 
36
fmorph          pvsmorph        fftin1, fftin2, kampint, kfrqint
 
37
aout            pvsynth fmorph
 
38
                out             aout * .5
 
39
endin
 
40
 
 
41
</CsInstruments>
 
42
<CsScore>
 
43
i 1 0 3 0 0 1 1
 
44
i 1 3 3 1 0 1 0
 
45
i 1 6 3 0 1 0 1
 
46
e
 
47
</CsScore>
 
48
</CsoundSynthesizer>