Removed cassert
This commit is contained in:
parent
00c3af6881
commit
d353ec1463
1 changed files with 3 additions and 4 deletions
|
|
@ -15,7 +15,6 @@
|
||||||
#include "Config.h"
|
#include "Config.h"
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <cassert>
|
|
||||||
#include <random>
|
#include <random>
|
||||||
|
|
||||||
template<class T>
|
template<class T>
|
||||||
|
|
@ -128,9 +127,9 @@ inline float midiNoteFrequency(const int noteNumber)
|
||||||
template<class T>
|
template<class T>
|
||||||
constexpr T clamp( T v, T lo, T hi )
|
constexpr T clamp( T v, T lo, T hi )
|
||||||
{
|
{
|
||||||
v = std::min(v, hi);
|
v = std::min(v, hi);
|
||||||
v = std::max(v, lo);
|
v = std::max(v, lo);
|
||||||
return v;
|
return v;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<int Increment = 1, class T>
|
template<int Increment = 1, class T>
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue