diff options
author | Felipe Sateler <fsateler@gmail.com> | 2008-03-24 16:39:11 -0300 |
---|---|---|
committer | Felipe Sateler <fsateler@gmail.com> | 2008-03-24 16:39:11 -0300 |
commit | 2af72543872544f18b7e3812cb64d9fe5886c47b (patch) | |
tree | e35d9468794be891222d3ddc05e46e2810add952 /examples/voice.csd |
Imported Upstream version 5.08
Diffstat (limited to 'examples/voice.csd')
-rw-r--r-- | examples/voice.csd | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/examples/voice.csd b/examples/voice.csd new file mode 100644 index 0000000..c27c8e8 --- /dev/null +++ b/examples/voice.csd @@ -0,0 +1,50 @@ +<CsoundSynthesizer> +<CsOptions> +; Select audio/midi flags here according to platform +; Audio out Audio in No messages +-odac -iadc -d ;;;RT audio I/O +; For Non-realtime ouput leave only the line below: +; -o voice.wav -W ;;; for file output any platform +</CsOptions> +<CsInstruments> + +; Initialize the global variables. +sr = 22050 +kr = 2205 +ksmps = 10 +nchnls = 1 + +; Instrument #1. +instr 1 + kamp = 3 + kfreq = 0.8 + kphoneme = 6 + kform = 0.488 + kvibf = 0.04 + kvamp = 1 + ifn = 1 + ivfn = 2 + + av voice kamp, kfreq, kphoneme, kform, kvibf, kvamp, ifn, ivfn + + ; It tends to get loud, so clip voice's amplitude at 30,000. + a1 clip av, 2, 30000 + out a1 +endin + + +</CsInstruments> +<CsScore> + +; Table #1, an audio file for the carrier waveform. +f 1 0 256 1 "impuls20.aiff" 0 0 0 +; Table #2, a sine wave for the vibrato waveform. +f 2 0 256 10 1 + +; Play Instrument #1 for a half-second. +i 1 0 0.5 +e + + +</CsScore> +</CsoundSynthesizer> |