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

« back to all changes in this revision

Viewing changes to examples/xtratim-2.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:
3
3
<CsOptions>
4
4
; Select audio/midi flags here according to platform
5
5
; Audio out   Audio in    Silent  MIDI in
6
 
-odac           -idac     -d       -M0  ;;;realtime I/O
 
6
-odac           -iadc     -d       -M0  ;;;realtime I/O
7
7
</CsOptions>
8
8
 
9
9
<CsInstruments>
10
10
;xtratim example by Jonathan Murphy Dec. 2006
11
 
 
12
 
  sr        =  44100
13
 
  ksmps     =  32
14
 
  nchnls    =  2
 
11
sr = 44100
 
12
ksmps = 10
 
13
nchnls = 2
15
14
 
16
15
            ; sine wave for oscillators
17
16
gisin       ftgen     1, 0, 4096, 10, 1
65
64
 
66
65
            ; control oscillator amplitude using envelopes
67
66
done:
68
 
  aosc1     oscil     aenv1, kcps, 1
69
 
  aosc2     oscil     aenv2, kcps * 1.5, 1
 
67
  aosc1     oscil     aenv1, kcps, gisin
 
68
  aosc2     oscil     aenv2, kcps * 1.5, gisin
70
69
  aosc1     =  aosc1 * kamp
71
70
  aosc2     =  aosc2 * kamp
72
71
 
85
84
 
86
85
</CsScore>
87
86
 
88
 
</CsoundSynthesizer>
 
 
b'\\ No newline at end of file'
 
87
</CsoundSynthesizer>