GNOME Bugzilla – Bug 387364
Standard OSC transpose intruduces aliasing
Last modified: 2006-12-19 14:53:25 UTC
The standard oscillator module of SVN r4184 prevents aliasing, if the frequency is set using the frequency property. However, if you set the frequency to something fixed (440), and then use the transpose property (set it to +40 or so), audible aliasing occurs.
Created attachment 78607 [details] Example where aliasing can be heard
do you have a concrete suggestion to alter the current behavior?
Created attachment 78622 [details] [review] Patch which fixes the problem This patch fixes the lookup for constant frequencies. I saw that the code already does the right thing when the oscillator frequency is an input signal, which is the more common usecase.
great looks good. please apply. preferrably with a test case that catches/checks this change.
(In reply to comment #4) > great looks good. please apply. Tue Dec 19 14:18:53 2006 Stefan Westerfeld <stefan@space.twc.de> * gsloscillator.c: Take transpose factor into account for table lookups when the oscillator frequency is constant. Fixes #387364. > preferrably with a test case that catches/checks this change. Tue Dec 19 15:12:18 2006 Stefan Westerfeld <stefan@space.twc.de> * tests/audio/Makefile.am: * tests/audio/osctranspose1.ref: * tests/audio/osctranspose1.bse: * tests/audio/osctranspose2.ref: * tests/audio/osctranspose2.bse: Added tests for the transpose property of BseStandardOsc. Should catch problems like #387364.