faust icon indicating copy to clipboard operation
faust copied to clipboard

Using os.oscsin at higher frequencies produces a triangular wave instead of a sine wave

Open mouseos opened this issue 2 years ago • 6 comments

スクリーンショット (36) Using os.oscsin at higher frequencies produces a triangular wave instead of a sine wave. The upper part of the image is 19KHz and the lower part is 38Khz. I want to make an FM stereo encoder that uses these two signals, but I cannot make it because the 38KHz signal does not come out correctly.

mouseos avatar Jun 29 '22 13:06 mouseos

The problem of not being able to create an FM stereo encoder has been resolved. Sorry. This just looks like a triangular wave when the faustide scope is zoomed in, but in reality it seems to be a sine wave.

mouseos avatar Jun 29 '22 13:06 mouseos

It looks like you're using a 48KHz sample rate. It's not possible for a 48KHz sample rate to accurately represent any data above 24KHz as there simply aren't enough data points to do so.

EDIT: I may have misread your screenshot, yeah if you've got 192KHz as your sample rate then that's fine.

dxinteractive avatar Jun 29 '22 13:06 dxinteractive

I understand it uses a sampling frequency of 192KHz. It seems like a problem with the faustide waveform display as I mentioned earlier.

mouseos avatar Jun 29 '22 13:06 mouseos

@Fr0stbyteR any comment on that?

sletz avatar Jun 29 '22 13:06 sletz

image

@sletz Can you reproduce it? from my side the os.oscsin(19200) looks fine at a sample rate of 192kHz..

Fr0stbyteR avatar Jun 29 '22 14:06 Fr0stbyteR

os.oscsin(19200) ? 1/10 of the frequency ?

sletz avatar Jun 29 '22 15:06 sletz