csound-expression-0.2.0: Csound combinator library

CsoundExpr.Opcodes.Math.Matfunc

Description

Mathematical Functions

Synopsis

Documentation

abs' :: X x0 => x0 -> x0Source

  • opcode : abs
  • syntax :
   abs(x) (no rate restriction)
  • description :

Returns the absolute value of x.

ceil :: X x0 => x0 -> x0Source

  • opcode : ceil
  • syntax :
   ceil(x) (init-, control-, or audio-rate arg allowed)
  • description :

Returns the smallest integer not less than x

exp' :: X x0 => x0 -> x0Source

  • opcode : exp
  • syntax :
   exp(x) (no rate restriction)
  • description :

Returns e raised to the xth power.

floor' :: X x0 => x0 -> x0Source

  • opcode : floor
  • syntax :
   floor(x) (init-, control-, or audio-rate arg allowed)
  • description :

Returns the largest integer not greater than x

frac :: K k0 => k0 -> k0Source

  • opcode : frac
  • syntax :
   frac(x) (init-rate or control-rate args; also works at audio rate in Csound5)
  • description :

Returns the fractional part of x.

int :: K k0 => k0 -> k0Source

  • opcode : int
  • syntax :
   int(x) (init-rate or control-rate; also works at audio rate in Csound5)
  • description :

Returns the integer part of x.

log' :: X x0 => x0 -> x0Source

  • opcode : log
  • syntax :
   log(x) (no rate restriction)
  • description :

Returns the natural log of x (x positive only).

log10 :: X x0 => x0 -> x0Source

  • opcode : log10
  • syntax :
   log10(x) (no rate restriction)
  • description :

Returns the base 10 log of x (x positive only).

logbtwo :: K k0 => k0 -> k0Source

  • opcode : logbtwo
  • syntax :
   logbtwo(x) (init-rate or control-rate args only)
  • description :

Performs a logarithmic base two calculation.

powA :: K k0 => [Irate] -> Arate -> k0 -> ArateSource

  • opcode : pow
  • syntax :
   ares pow aarg, kpow [, inorm]
   ires pow iarg, ipow [, inorm]
   kres pow karg, kpow [, inorm]
  • description :

Computes xarg to the power of kpow (or ipow) and scales the result by inorm.

powI :: [Irate] -> Irate -> Irate -> IrateSource

  • opcode : pow
  • syntax :
   ares pow aarg, kpow [, inorm]
   ires pow iarg, ipow [, inorm]
   kres pow karg, kpow [, inorm]
  • description :

Computes xarg to the power of kpow (or ipow) and scales the result by inorm.

powK :: (K k0, K k1) => [Irate] -> k0 -> k1 -> KrateSource

  • opcode : pow
  • syntax :
   ares pow aarg, kpow [, inorm]
   ires pow iarg, ipow [, inorm]
   kres pow karg, kpow [, inorm]
  • description :

Computes xarg to the power of kpow (or ipow) and scales the result by inorm.

powoftwo :: K k0 => k0 -> k0Source

  • opcode : powoftwo
  • syntax :
   powoftwo(x) (init-rate or control-rate args only)
  • description :

Performs a power-of-two calculation.

round' :: X x0 => x0 -> x0Source

  • opcode : round
  • syntax :
   round(x) (init-, control-, or audio-rate arg allowed)
  • description :

The integer value nearest to x ; if the fractional part of x is exactly 0.5, the direction of rounding is undefined.

sqrt' :: X x0 => x0 -> x0Source

  • opcode : sqrt
  • syntax :
   sqrt(x) (no rate restriction)
  • description :

Returns the square root of x (x non-negative).