mirror of
https://github.com/aicodix/dsp.git
synced 2026-04-27 14:30:36 +00:00
added freq() to Phasor
This commit is contained in:
parent
fcffc56acc
commit
20515208f3
1 changed files with 4 additions and 0 deletions
|
|
@ -30,6 +30,10 @@ public:
|
|||
{
|
||||
delta = complex_type(cos(v), sin(v));
|
||||
}
|
||||
void freq(value_type v)
|
||||
{
|
||||
omega(Const<value_type>::TwoPi() * v);
|
||||
}
|
||||
complex_type operator()()
|
||||
{
|
||||
complex_type tmp = prev;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue