Voss Connection Detection  1
Detect a connector click using realtime code on Bela hardware
Pedal Class Reference

Class for obtaining the pedal state. More...

#include <pedal.h>

Public Member Functions

 Pedal (BelaContext *ctx)
 
bool get (BelaContext *ctx, us frameno) const
 Get the state of the pedal. True means it is pressed. More...
 

Detailed Description

Class for obtaining the pedal state.

Definition at line 8 of file pedal.h.

Constructor & Destructor Documentation

◆ Pedal()

Pedal::Pedal ( BelaContext *  ctx)

Definition at line 3 of file pedal.cpp.

Member Function Documentation

◆ get()

bool Pedal::get ( BelaContext *  ctx,
us  frameno 
) const

Get the state of the pedal. True means it is pressed.

Parameters
ctxBelaContext
framenoFrame number in the context.
Returns
Pedal state

Definition at line 9 of file pedal.cpp.


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