fink
Prev | Orchestra Opcodes and Operators | Next

## fink

fink — Read signals from a file at k-rate.

## Description

Read signals from a file at k-rate.

## Syntax

    fink ifilename, iskipframes, iformat, kin1 [, kin2] [, kin3] [,...]

## Initialization

ifilename -- input file name (can be a string or a handle number generated by fiopen)

iskipframes -- number of frames to skip at the start (every frame contains a sample of each channel)

iformat -- a number specifying the input file format. If a header is found, this argument is ignored.

- 0 - 32 bit floating points without header

- 1 - 16 bit integers without header

## Performance

fink is the same as fin but operates at k-rate.

| Note
Please note that since this opcode generates its output using input parameters (on the right side of the opcode), these variables must be initialized before use, otherwise a 'used before defined' error will occur. You can use the init opcode for this.

## Examples

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

Example 280. Example of the fink opcode.

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

Note that this example requires the file test.txt to be created, for example by fouti

    <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 fink.wav -W ;;; for file output any platform
    </CsOptions>
    <CsInstruments>

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

    gihand fiopen "test.txt", 1

    instr 1

     khz  init 0
          fink gihand, 0, 1, khz
     ar   oscil 0.5, khz
          outs  ar, ar
    endin
    </CsInstruments>
    <CsScore>

    i 1 0 1

    e
    </CsScore>
    </CsoundSynthesizer>

## See Also

fin, fini

## Credits

Author: Gabriel Maldonado
Italy
1999

New in Csound version 3.56

Prev | Up | Next
fini | Home | fiopen