even more stuff
This commit is contained in:
10
core/src/dsp/math/phasor.h
Normal file
10
core/src/dsp/math/phasor.h
Normal file
@@ -0,0 +1,10 @@
|
||||
#pragma once
|
||||
#include <math.h>
|
||||
#include "../types.h"
|
||||
|
||||
namespace dsp::math {
|
||||
inline complex_t phasor(float x) {
|
||||
complex_t cplx = { cosf(x), sinf(x) };
|
||||
return cplx;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user