diff options
author | Felipe Sateler <fsateler@debian.org> | 2014-01-24 13:54:37 -0300 |
---|---|---|
committer | Felipe Sateler <fsateler@debian.org> | 2014-01-24 13:54:37 -0300 |
commit | bcf06a42deb371baf3deb9f4addb474b08273120 (patch) | |
tree | 4a8c3fb811dd164d4486628d8eff6043ebe8a6c3 /examples/fout.csd | |
parent | 3a91171181113761a14bcc36a086a8dda144b77b (diff) |
Imported Upstream version 6.02~dfsg
Diffstat (limited to 'examples/fout.csd')
-rw-r--r-- | examples/fout.csd | 49 |
1 files changed, 31 insertions, 18 deletions
diff --git a/examples/fout.csd b/examples/fout.csd index 89526af..33ea409 100644 --- a/examples/fout.csd +++ b/examples/fout.csd @@ -1,41 +1,54 @@ <CsoundSynthesizer> <CsOptions> ; Select audio/midi flags here according to platform -; Audio out Audio in No messages --odac -iadc -d ;;;RT audio I/O +-odac ;;;realtime audio out +;-iadc ;;;uncomment -iadc if realtime audio input is needed too ; For Non-realtime ouput leave only the line below: ; -o fout.wav -W ;;; for file output any platform </CsOptions> <CsInstruments> -; Initialize the global variables. sr = 44100 -kr = 4410 -ksmps = 10 -nchnls = 1 +ksmps = 32 +nchnls = 2 +0dbfs = 1 + +giSine ftgen 0, 0, 2^10, 10, 1 -; Instrument #1. instr 1 - iamp = 10000 - icps = 440 - iphs = 0 - ; Create an audio signal. - asig oscils iamp, icps, iphs +asig poscil3 .5, 880, giSine +;write a raw file: 32 bits with header + fout "fout_880.wav", 15, asig + outs asig, asig + +endin + +instr 2 + +klfo lfo 1, 2, 0 +asig poscil3 .5*klfo, 220, giSine +;write an aiff file: 32 bits with header + fout "fout_aif.aiff", 25, asig +; fout "fout_all3.wav", 14, asig + outs asig, asig - ; Write the audio signal to a headerless audio file - ; called "fout.raw". - fout "fout.raw", 1, asig endin +instr 99 ;read the stereo csound output buffer +allL, allR monitor +;write the output of csound to an audio file +;to a wav file: 16 bits with header + fout "fout_all.wav", 14, allL, allR + +endin </CsInstruments> <CsScore> -; Play Instrument #1 for 2 seconds. i 1 0 2 +i 2 0 3 +i 99 0 3 e - - </CsScore> </CsoundSynthesizer> |