Real Time Open Sound Control librtosc: /build/rtosc/src/rtosc-0.3.1/include/rtosc/arg-val-math.h File Reference

Real Time Open Sound Control librtosc

Loading...
Searching...
No Matches
Functions
arg-val-math.h File Reference

Math functions for arg values, respecting their types. More...

`#include <rtosc/rtosc.h>`

Go to the source code of this file.

## Functions
int | rtosc_arg_val_null (rtosc_arg_val_t *av, char type)
int | rtosc_arg_val_from_int (rtosc_arg_val_t *av, char type, int number)
int | rtosc_arg_val_from_double (rtosc_arg_val_t *av, char type, double number)
int | rtosc_arg_val_negate (rtosc_arg_val_t *av)
int | rtosc_arg_val_round (rtosc_arg_val_t *av)
int | rtosc_arg_val_add (const rtosc_arg_val_t *lhs, const rtosc_arg_val_t *rhs, rtosc_arg_val_t *res)
int | rtosc_arg_val_sub (const rtosc_arg_val_t *lhs, const rtosc_arg_val_t *rhs, rtosc_arg_val_t *res)
int | rtosc_arg_val_mult (const rtosc_arg_val_t *lhs, const rtosc_arg_val_t *rhs, rtosc_arg_val_t *res)
int | rtosc_arg_val_div (const rtosc_arg_val_t *lhs, const rtosc_arg_val_t *rhs, rtosc_arg_val_t *res)
int | rtosc_arg_val_to_int (const rtosc_arg_val_t *av, int *res)
rtosc_arg_val_t * | rtosc_arg_val_range_arg (const rtosc_arg_val_t *range_arg, int ith, rtosc_arg_val_t *result)
| Calculate the range's i'th argument.

## Detailed Description

Math functions for arg values, respecting their types.

All functions must support all types in "ichfdTF".

Note
  Chaining these functions can be inefficient: a+b+c involves (at least) two switch statements about the types, though one would suffice. Use these functions if runtime is not too critical.

Test
  arg-val-math.c