Bela
Real-time, ultra-low-latency audio and sensor processing system for BeagleBone Black
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups
BelaSteppedPot.h
1 #pragma once
2 #include <Bela.h>
3 #include "SteppedPot.h"
4 #include <libraries/OnePole/OnePole.h>
13 class BelaSteppedPot : public SteppedPot
14 {
15 public:
16  BelaSteppedPot() {};
17  BelaSteppedPot(BelaContext* context, unsigned int analogInCh, const std::vector<float>& levelsV, float toleranceV, float fullScale = 1);
22  void setup(BelaContext* context, unsigned int analogInCh, const std::vector<float>& levelsV, float toleranceV, float fullScale = 1);
29  bool process(BelaContext* context);
30 private:
31  OnePole filter;
32  unsigned int analogInCh;
33 };
Definition: OnePole.h:11
Connect a stepped potentiometer.
Definition: SteppedPot.h:10
Connect a stepped potentiometer and handle it at audio rate from Bela.
Definition: BelaSteppedPot.h:13
Structure holding audio and sensor settings and pointers to I/O data buffers.
Definition: Bela.h:229
void setup(BelaContext *context, unsigned int analogInCh, const std::vector< float > &levelsV, float toleranceV, float fullScale=1)
Definition: BelaSteppedPot.cpp:8
bool process(BelaContext *context)
Definition: BelaSteppedPot.cpp:15
Main Bela public API.