Skip to content

Latest commit

 

History

History
19 lines (16 loc) · 447 Bytes

functions.md

File metadata and controls

19 lines (16 loc) · 447 Bytes

Functions

Functions are used primarily in the Calculator block.

Example

static calculator_t calc;           // Declaration of a Mixer block

float myslope(float input) {
    // nonsense function...
    if( input > 1.0f )
        return input * -1.3f + input / 5;
    return return input * 0.7f + input / 4;
}
  :
  :
  calculator_configure_function(&calc, &myslope );  // calc log10() on input signal
  :