Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
MovingCoilBallistics Class Reference

#include <Audio/MovingCoilBallistics.hpp>

Detailed Description

Definition at line 7 of file MovingCoilBallistics.hpp.

+ Collaboration diagram for MovingCoilBallistics:

Public Member Functions

 MovingCoilBallistics (float springConstant, float friction, float mass, float Ts=1.0/MAX_FPS)
 
float operator() (float input)
 

Static Public Member Functions

static MovingCoilBallistics officialVU ()
 
static MovingCoilBallistics responsiveVU (float Tsfactor=2.0)
 
static MovingCoilBallistics noOvershoot (float Tsfactor=1.0)
 

Private Attributes

const float springConstant
 
const float friction
 
const float Ts
 
float x = 0
 
float x_dot = 0
 

Constructor & Destructor Documentation

◆ MovingCoilBallistics()

MovingCoilBallistics ( float springConstant,
float friction,
float mass,
float Ts = 1.0 / MAX_FPS )
inline

Definition at line 9 of file MovingCoilBallistics.hpp.

Member Function Documentation

◆ operator()()

float operator() ( float input)
inline

Definition at line 16 of file MovingCoilBallistics.hpp.

◆ officialVU()

static MovingCoilBallistics officialVU ( )
inlinestatic

Definition at line 36 of file MovingCoilBallistics.hpp.

◆ responsiveVU()

static MovingCoilBallistics responsiveVU ( float Tsfactor = 2.0)
inlinestatic
Examples
2.VU-Meter-OLED-USB-DAC.ino.

Definition at line 40 of file MovingCoilBallistics.hpp.

◆ noOvershoot()

static MovingCoilBallistics noOvershoot ( float Tsfactor = 1.0)
inlinestatic
Examples
2.VU-Meter-OLED-USB-DAC.ino.

Definition at line 44 of file MovingCoilBallistics.hpp.

Member Data Documentation

◆ springConstant

const float springConstant
private

Definition at line 49 of file MovingCoilBallistics.hpp.

◆ friction

const float friction
private

Definition at line 50 of file MovingCoilBallistics.hpp.

◆ Ts

const float Ts
private

Definition at line 51 of file MovingCoilBallistics.hpp.

◆ x

float x = 0
private

Definition at line 53 of file MovingCoilBallistics.hpp.

◆ x_dot

float x_dot = 0
private

Definition at line 54 of file MovingCoilBallistics.hpp.


The documentation for this class was generated from the following file: