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

« back to all changes in this revision

Viewing changes to examples/pvsfreeze.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
-odac
 
4
</CsOptions>
 
5
<CsInstruments>
 
6
 
 
7
sr = 44100
 
8
ksmps = 16
 
9
nchnls = 1
 
10
0dbfs = 1
 
11
 
 
12
;; example written by joachim heintz 2009
 
13
 
 
14
                seed            0
 
15
 
 
16
instr 1
 
17
ifftsize        =               1024
 
18
ioverlap        =               ifftsize / 4
 
19
iwinsize        =               ifftsize
 
20
iwinshape       =               1; von-Hann window
 
21
Sfile1          =               "fox.wav"
 
22
ain             soundin Sfile1
 
23
kfreq           randomh .7, 1.1, 3; probability of freezing freqs: 1/4
 
24
kamp            randomh .7, 1.1, 3; idem for amplitudes
 
25
fftin           pvsanal ain, ifftsize, ioverlap, iwinsize, iwinshape; fft-analysis of file
 
26
freeze          pvsfreeze       fftin, kamp, kfreq; freeze amps or freqs independently
 
27
aout            pvsynth freeze; resynthesize
 
28
                out             aout
 
29
endin
 
30
 
 
31
</CsInstruments>
 
32
<CsScore>
 
33
r 10
 
34
i 1 0 2.757
 
35
e
 
36
</CsScore>
 
37
</CsoundSynthesizer>
 
38