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

« back to all changes in this revision

Viewing changes to examples/diskgrain.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
1
<CsoundSynthesizer>
2
2
<CsOptions>
3
3
; Select audio/midi flags here according to platform
4
 
; Audio out   Audio in
5
 
-odac           -iadc    ;;;RT audio I/O
 
4
-odac     ;;;RT audio out
 
5
;-iadc    ;;;uncomment -iadc if RT audio input is needed too
 
6
; For Non-realtime ouput leave only the line below:
 
7
; -o diskgrain.wav -W ;;; for file output any platform
6
8
</CsOptions>
7
9
<CsInstruments>
8
10
 
9
 
sr = 48000
10
 
ksmps = 128
 
11
sr     = 44100
 
12
ksmps  = 32
 
13
nchnls = 2
 
14
0dbfs  = 1
11
15
 
12
16
instr 1
13
 
iolaps = 2
 
17
 
 
18
iolaps  = 2
14
19
igrsize = 0.04
15
 
ifreq = iolaps/igrsize
16
 
ips = 1/iolaps
 
20
ifreq   = iolaps/igrsize
 
21
ips     = 1/iolaps
17
22
 
18
23
istr = p4  /* timescale */
19
24
ipitch = p5 /* pitchscale */
20
25
 
21
 
a1 diskgrain "mary.wav", 32000, ifreq, ipitch, igrsize, ips*istr, 1, iolaps
 
26
a1 diskgrain "mary.wav", 1, ifreq, ipitch, igrsize, ips*istr, 1, iolaps
 
27
   outs   a1, a1
22
28
 
23
 
out   a1
24
29
endin
25
30
 
26
31
</CsInstruments>
27
32
<CsScore>
28
 
f 1 0 8192 20   1   1  ;Hamming function
 
33
f 1 0 8192 20 2 1  ;Hanning function
29
34
 
30
35
;           timescale   pitchscale
31
36
i 1   0   5     1           1