mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
Dummy: fix sine/square frequency sweep
This commit is contained in:
parent
76b28e7ff2
commit
bb4576b700
1 changed files with 1 additions and 1 deletions
|
|
@ -1621,7 +1621,7 @@ void DummyAudioPort::setup_generator (GeneratorType const g, float const sampler
|
|||
#else
|
||||
const double phase = a * exp (b * j) - a;
|
||||
#endif
|
||||
_wavetable[i] = (float)sin (2. * M_PI * (phase - floor (phase)));
|
||||
_wavetable[i] = -(float)sin (2. * M_PI * (phase - floor (phase)));
|
||||
}
|
||||
if (_gen_type == SquareSweep) {
|
||||
for (uint32_t i = 0 ; i < _gen_period; ++i) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue