faust
faust copied to clipboard
Using os.oscsin at higher frequencies produces a triangular wave instead of a sine wave
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.
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.
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.
I understand it uses a sampling frequency of 192KHz. It seems like a problem with the faustide waveform display as I mentioned earlier.
@Fr0stbyteR any comment on that?
@sletz Can you reproduce it? from my side the os.oscsin(19200) looks fine at a sample rate of 192kHz..
os.oscsin(19200)
? 1/10 of the frequency ?