outs1
Prev | Orchestra Opcodes and Operators | Next

## outs1

outs1 — Writes samples to stereo channel 1 of an external device or stream.

## Description

Writes samples to stereo channel 1 of an external device or stream.

## Syntax

    outs1 asig

## Performance

Sends audio samples to an accumulating output buffer (created at the beginning of performance) which serves to collect the output of all active instruments before the sound is written to disk. There can be any number of these output units in an instrument.

The type (mono, stereo, quad, hex, or oct) should agree with nchnls. But as of version 3.50, Csound will attempt to change an incorrect opcode to agree with the nchnls statement. Opcodes can be chosen to direct sound to any particular channel: outs1 sends to stereo channel 1, outq3 to quad channel 3, etc.

## Examples

Here is an example of the outs1 opcode. It uses the file outs1.csd.

Example 552. Example of the outs1 opcode.

See the sections Real-time Audio and Command Line Flags for more information on using command line flags.

    <CsoundSynthesizer>
    <CsOptions>
    ; Select audio/midi flags here according to platform
    -odac    ;;;realtime audio out
    ;-iadc    ;;;uncomment -iadc if realtime audio input is needed too
    ; For Non-realtime ouput leave only the line below:
    ; -o outs1.wav -W ;;; for file output any platform
    </CsOptions>
    <CsInstruments>

    sr = 44100
    ksmps = 32
    nchnls = 2
    0dbfs  = 1

    instr 1

    asig vco2 .01, 110	; sawtooth waveform at low volume
    kcut line 60, p3, 300	; Vary cutoff frequency
    kresonance = 3
    inumlayer = 3
    asig lowresx asig, kcut, kresonance, inumlayer
         outs1 asig		; output stereo channel 1 only

    endin
    </CsInstruments>
    <CsScore>

    i 1 0 3
    e
    </CsScore>
    </CsoundSynthesizer>

## See Also

out, outh, outo, outq, outq1, outq2, outq3, outq4, outs, outs2, soundout

## Credits

Author: Barry L. Vercoe, Matt Ingalls/Mike Berry
MIT, Mills College
1993-1997

Prev | Up | Next
outrg | Home | outs2