fmin
Prev | Orchestra Opcodes and Operators | Next

## fmin

fmin — Minimum value function.

## Description

Returns the minimum of its two arguments.

## Syntax

    ires[] fmin iarg1[], iarg2[]

    kres[] fmin karg1[], karg2[]

    ires[] fmin iarg1[], iarg2

    kres[] fmin karg[], karg2

## Initialization

iarg[]1/2, iarg2 -- the operands.

## Performance

karg[]1/2, karg2 -- the operands

## Examples

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

Example 343. Example of the fmin opcode.

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

    <CsoundSynthesizer>
    <CsOptions>
    </CsOptions>
    <CsInstruments>

    instr 1

    iArg1[] fillarray 1,8,3
    iArg2[] fillarray 4,5,6
    iRes[] fmin iArg1,iArg2
    ik init 0

    while ik < lenarray(iRes) do
     print iRes[ik]
     ik += 1
    od

    endin

    </CsInstruments>
    <CsScore>
    i1 0 0
    </CsScore>
    </CsoundSynthesizer>

## Credits

Author: Victor Lazzarini
2017

Prev | Up | Next
fmbell | Home | fmmetal