-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #391 from StoneyDSP/development
Development
- Loading branch information
Showing
33 changed files
with
1,873 additions
and
979 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2.0.1233.37366161623664 | ||
2.0.1265.37346335353431 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -39,6 +39,15 @@ | |
|
||
//============================================================================== | ||
|
||
#ifdef STONEYDSP_DEBUG | ||
#include <iostream> | ||
#define DBG(msg, ...) do { ::std::cerr << std::string(msg, ##__VA_ARGS__) << std::endl; } while (0) | ||
#else | ||
#define DBG(msg, ...) ::StoneyDSP::ignoreUnused(msg, ##__VA_ARGS__) | ||
#endif | ||
|
||
//============================================================================== | ||
|
||
/** | ||
* @brief The `StoneyDSP` namespace. | ||
* @author Nathan J. Hood ([email protected]) | ||
|
@@ -66,6 +75,89 @@ namespace StoneyVCV | |
* @{ | ||
*/ | ||
|
||
//============================================================================== | ||
|
||
namespace Tools { | ||
/** @addtogroup Tools | ||
* @{ | ||
*/ | ||
|
||
//============================================================================== | ||
|
||
const extern ::StoneyDSP::float_t vMin; | ||
const extern ::StoneyDSP::float_t vMax; | ||
const extern ::StoneyDSP::float_t vNominal; | ||
const extern ::StoneyDSP::float_t vBias; | ||
const extern ::StoneyDSP::float_t vGround; | ||
const extern ::StoneyDSP::float_t vFloor; | ||
|
||
//============================================================================== | ||
|
||
/// @} group Tools | ||
} // namespace Tools | ||
|
||
//============================================================================== | ||
|
||
// Declare an abstract base class with a pure virtual destructor. | ||
// It's the simplest possible abstract class. | ||
template <typename T> | ||
struct Engine | ||
{ | ||
|
||
//========================================================================== | ||
|
||
public: | ||
|
||
//========================================================================== | ||
|
||
Engine() | ||
{ | ||
DBG("Creating StoneyDSP::StoneyVCV::Engine"); | ||
}; | ||
|
||
virtual ~Engine() noexcept = 0; // pure virtual | ||
|
||
//========================================================================== | ||
|
||
virtual void processSample(T* sample) = 0; // pure virtual | ||
|
||
//========================================================================== | ||
|
||
private: | ||
|
||
//========================================================================== | ||
|
||
STONEYDSP_DECLARE_NON_COPYABLE(Engine) | ||
STONEYDSP_DECLARE_NON_MOVEABLE(Engine) | ||
}; | ||
|
||
template<class T> | ||
::StoneyDSP::StoneyVCV::Engine<T>::~Engine() noexcept | ||
{ | ||
DBG("Destroying StoneyDSP::StoneyVCV::Engine"); | ||
} | ||
|
||
template struct ::StoneyDSP::StoneyVCV::Engine<::StoneyDSP::float_t>; | ||
template struct ::StoneyDSP::StoneyVCV::Engine<::StoneyDSP::double_t>; | ||
|
||
//============================================================================== | ||
|
||
template <class TWidget = ::rack::widget::Widget> | ||
TWidget *createWidgetSized(::rack::math::Vec pos, ::rack::math::Vec size) | ||
{ | ||
TWidget* o = ::rack::createWidget<TWidget>(pos); | ||
o->box.size = size; | ||
return o; | ||
} | ||
|
||
template <class TWidget = ::rack::widget::Widget> | ||
TWidget* createWidgetCenteredSized(::rack::math::Vec pos, ::rack::math::Vec size) | ||
{ | ||
TWidget* o = ::rack::createWidgetCentered<TWidget>(pos); | ||
o->box.size = size; | ||
return o; | ||
} | ||
|
||
//============================================================================== | ||
|
||
/// @} group StoneyVCV | ||
|
@@ -77,3 +169,13 @@ namespace StoneyVCV | |
} // namespace StoneyDSP | ||
|
||
//============================================================================== | ||
|
||
// #include <StoneyVCV/version.hpp> | ||
// #include <StoneyVCV/ComponentLibrary.hpp> | ||
// #include <StoneyVCV/plugin.hpp> | ||
// #include <StoneyVCV/HP1.hpp> | ||
// #include <StoneyVCV/HP2.hpp> | ||
// #include <StoneyVCV/HP4.hpp> | ||
// #include <StoneyVCV/VCA.hpp> | ||
|
||
//============================================================================== |
Oops, something went wrong.