Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
/*****************************************************************************
VoiceBody.h
Copyright (c) 2020 Raphael DINGE
*Tab=3***********************************************************************/
/*\\\ INCLUDE FILES \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
#include "dsp/Ramp.h"
#include <cstddef>
class VoiceBody
{
/*\\\ PUBLIC \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
public:
VoiceBody () = default;
~VoiceBody () = default;
void trigger ();
void stop ();
void set_speed (float step_spl);
template <typename T>
float process (const T & sample);
/*\\\ PRIVATE \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\*/
private:
bool _active_flag = false;
float _pos = 0.f;
float _step_spl = 1.f;
dsp::Ramp <256>
_ramp = {1.f};
};
#include "VoiceBody.hpp"
1c962d8cfThis file is pinned to the selected release. Download the original to open it in your design tool.