Sine Wave test

An area for people to discuss Scope related problems, issues, etc.

Moderators: valis, garyb

Post Reply
Music Manic
Posts: 1739
Joined: Wed May 15, 2002 4:00 pm
Contact:

Sine Wave test

Post by Music Manic »

Hi guys

I've just conducted a test with sine waves at different frequencies and found something interesting with the vst oscilloscope

At High frequencies, around 10kHz and above there seems to be extreme amplitude modulation with the frequency in question. There also seems to be errors in the smoothness of the sine wave too. Not sure that's a graphical thing.

The Low Mids are very stable

The Upper mIds, the modualation is slight.

The lows look clipped but I guesss that's graphics

Could anyone expand or tell me which measurement tools are true and how to read them properly?


Thanks
User avatar
valis
Posts: 7312
Joined: Sun Sep 23, 2001 4:00 pm
Location: West Coast USA
Contact:

Re: Sine Wave test

Post by valis »

You sure you're not seeing the effects of dither?
Music Manic
Posts: 1739
Joined: Wed May 15, 2002 4:00 pm
Contact:

Re: Sine Wave test

Post by Music Manic »

valis wrote: Wed Jan 27, 2021 5:38 pm You sure you're not seeing the effects of dither?
Well it’s an internal test so I don’t think dither applies.
Music Manic
Posts: 1739
Joined: Wed May 15, 2002 4:00 pm
Contact:

Re: Sine Wave test

Post by Music Manic »

Would a power supply create this phenomenon?
User avatar
valis
Posts: 7312
Joined: Sun Sep 23, 2001 4:00 pm
Location: West Coast USA
Contact:

Re: Sine Wave test

Post by valis »

It's difficult to say without examples and your process. You can attach files to posts...
User avatar
garyb
Moderator
Posts: 23246
Joined: Sun Apr 15, 2001 4:00 pm
Location: ghetto by the sea

Re: Sine Wave test

Post by garyb »

does the music sound bad?
fra77x2
Posts: 414
Joined: Sun May 03, 2015 3:23 pm

Re: Sine Wave test

Post by fra77x2 »

Have you recorded the waveform and observe it in a wave editor?
David
Posts: 733
Joined: Wed Jan 09, 2002 4:00 pm
Location: Modular IV

Re: Sine Wave test

Post by David »

User avatar
valis
Posts: 7312
Joined: Sun Sep 23, 2001 4:00 pm
Location: West Coast USA
Contact:

Re: Sine Wave test

Post by valis »

Examples please. We can analyze on our end and report our feedback.
User avatar
Spindrift
Posts: 100
Joined: Mon May 18, 2020 1:04 am

Re: Sine Wave test

Post by Spindrift »

Can only guess since I don't know neither what you use to generate or analyze the sine wave.

But generally, unless the oscilloscope applies a sinc function, high frequencies will become jagged since unlike the output from the DAC which has sinc applied, it will just draw a straight line between samples.

For exampe it looks like oscilloSCOPE doesn't apply sinc, so high frequencies will not look right at all.
However oscilloscope in bitwig grid does, and will show the waveform as it will be coming out from the DAC, not as numerically represented in the data.
Music Manic
Posts: 1739
Joined: Wed May 15, 2002 4:00 pm
Contact:

Re: Sine Wave test

Post by Music Manic »

valis wrote: Thu Jan 28, 2021 4:45 pm It's difficult to say without examples and your process. You can attach files to posts...
Here's some pics that show you what I mean:

I tried it at 96kHz and it explains it's a samplerate problem.
Attachments
300 Hz - 41.kHz SR.jpg
300 Hz - 41.kHz SR.jpg (204.17 KiB) Viewed 2164 times
Smoother response at 96kHz
Smoother response at 96kHz
15kHz - 96kHz SR.jpg (230.87 KiB) Viewed 2164 times
15kHz - 41.kHz SR.jpg
15kHz - 41.kHz SR.jpg (228.49 KiB) Viewed 2164 times
11kHz - 41.kHz SR.jpg
11kHz - 41.kHz SR.jpg (239.86 KiB) Viewed 2164 times
1kHz - 41.kHz SR.jpg
1kHz - 41.kHz SR.jpg (194.42 KiB) Viewed 2164 times
Music Manic
Posts: 1739
Joined: Wed May 15, 2002 4:00 pm
Contact:

Re: Sine Wave test

Post by Music Manic »

garyb wrote: Thu Jan 28, 2021 7:19 pm does the music sound bad?
Not bad Gary but I've been testing it for an hour or so and at 96kHz the Highs and Lows are much cleaner and crispier. Pulsar is stunning in its quality still. It's a shame 3 PCI's cant run 96kHz smoothly for me but my system is old. I will upgrade to my MSI and see if it performs better in the future.

My guess is that the "brittle" sound comes from those highs around 10kHz when pushed hard, which people talk of in the digital domain.
Music Manic
Posts: 1739
Joined: Wed May 15, 2002 4:00 pm
Contact:

Re: Sine Wave test

Post by Music Manic »

Spindrift wrote: Fri Jan 29, 2021 7:06 am Can only guess since I don't know neither what you use to generate or analyze the sine wave.

But generally, unless the oscilloscope applies a sinc function, high frequencies will become jagged since unlike the output from the DAC which has sinc applied, it will just draw a straight line between samples.

For exampe it looks like oscilloSCOPE doesn't apply sinc, so high frequencies will not look right at all.
However oscilloscope in bitwig grid does, and will show the waveform as it will be coming out from the DAC, not as numerically represented in the data.
I've used the Pulsar Scope control room to generate the sine wave internally Spindrift and also a vst one. They both produce the same results. I haven't tried D/A conversion or a D/D Loopback.

Could you expand more on how the software gives us our information and if graphics cards play any part in it too? Any pointers or links would be appreciated in learning how things work.

Thanks
Music Manic
Posts: 1739
Joined: Wed May 15, 2002 4:00 pm
Contact:

Re: Sine Wave test

Post by Music Manic »

David wrote: Thu Jan 28, 2021 10:42 pm Gost - Analyzer?
Yes I've tried analysing it with GOST and it shows sine wave amplitude modulation clearly at high frequencies unless sidebands are creating that. I'm not sure, maybe you experts could say.
Music Manic
Posts: 1739
Joined: Wed May 15, 2002 4:00 pm
Contact:

Re: Sine Wave test

Post by Music Manic »

fra77x2 wrote: Thu Jan 28, 2021 8:11 pm Have you recorded the waveform and observe it in a wave editor?
No I'll try it.
User avatar
Spindrift
Posts: 100
Joined: Mon May 18, 2020 1:04 am

Re: Sine Wave test

Post by Spindrift »

Music Manic wrote: Fri Jan 29, 2021 2:35 pm
Spindrift wrote: Fri Jan 29, 2021 7:06 am Can only guess since I don't know neither what you use to generate or analyze the sine wave.

But generally, unless the oscilloscope applies a sinc function, high frequencies will become jagged since unlike the output from the DAC which has sinc applied, it will just draw a straight line between samples.

For exampe it looks like oscilloSCOPE doesn't apply sinc, so high frequencies will not look right at all.
However oscilloscope in bitwig grid does, and will show the waveform as it will be coming out from the DAC, not as numerically represented in the data.
I've used the Pulsar Scope control room to generate the sine wave internally Spindrift and also a vst one. They both produce the same results. I haven't tried D/A conversion or a D/D Loopback.

Could you expand more on how the software gives us our information and if graphics cards play any part in it too? Any pointers or links would be appreciated in learning how things work.

Thanks
Yes, looking at you picture this is what is happening.

At the very foundation of digital audio is the Nyquist theorem. It states that "a sinuisoidal function in time or distance can be regenerated with no loss of information as long as it is sampled at a frequency greater than or equal to twice per cycle".

If you just glance over it, it might seems intuitive and somewhat obvious. A waveform at 20kHz the frequency between the valleys and peaks in the signal will be 40kHz...makes sense.
However when you think about it, it seems wrong. First of all it would be a triangle wave not a sine, as as you know a triangle contains harmonics, and there should be "no loss of information", so we should get a perfect reproduction, ie a perfect sine. And if it is not exactly half the frequency the waveform will be very jagged, like you see in your pictures.

But the important part is that sound is a "sinuisoidal function". When the signal goes thru the DAC a sinc function will be applied, interpolating between the values in a sinuisoidal fashion.

Some oscilloscopes and editors will display a visual representation including the application of a sinc function, but most wont and instead draw straight lines between each sample.

Here is a video visualizing the concept:
https://www.youtube.com/watch?v=-jCwIsT0X8M
Music Manic
Posts: 1739
Joined: Wed May 15, 2002 4:00 pm
Contact:

Re: Sine Wave test

Post by Music Manic »

Spindrift wrote: Fri Jan 29, 2021 11:41 pm
Music Manic wrote: Fri Jan 29, 2021 2:35 pm
Spindrift wrote: Fri Jan 29, 2021 7:06 am Can only guess since I don't know neither what you use to generate or analyze the sine wave.

But generally, unless the oscilloscope applies a sinc function, high frequencies will become jagged since unlike the output from the DAC which has sinc applied, it will just draw a straight line between samples.

For exampe it looks like oscilloSCOPE doesn't apply sinc, so high frequencies will not look right at all.
However oscilloscope in bitwig grid does, and will show the waveform as it will be coming out from the DAC, not as numerically represented in the data.
I've used the Pulsar Scope control room to generate the sine wave internally Spindrift and also a vst one. They both produce the same results. I haven't tried D/A conversion or a D/D Loopback.

Could you expand more on how the software gives us our information and if graphics cards play any part in it too? Any pointers or links would be appreciated in learning how things work.

Thanks
Yes, looking at you picture this is what is happening.

At the very foundation of digital audio is the Nyquist theorem. It states that "a sinuisoidal function in time or distance can be regenerated with no loss of information as long as it is sampled at a frequency greater than or equal to twice per cycle".

If you just glance over it, it might seems intuitive and somewhat obvious. A waveform at 20kHz the frequency between the valleys and peaks in the signal will be 40kHz...makes sense.
However when you think about it, it seems wrong. First of all it would be a triangle wave not a sine, as as you know a triangle contains harmonics, and there should be "no loss of information", so we should get a perfect reproduction, ie a perfect sine. And if it is not exactly half the frequency the waveform will be very jagged, like you see in your pictures.

But the important part is that sound is a "sinuisoidal function". When the signal goes thru the DAC a sinc function will be applied, interpolating between the values in a sinuisoidal fashion.

Some oscilloscopes and editors will display a visual representation including the application of a sinc function, but most wont and instead draw straight lines between each sample.

Here is a video visualizing the concept:
https://www.youtube.com/watch?v=-jCwIsT0X8M
I’ve read up all week on what you’ve pointed out and that indeed is what’s happening. Is there an software oscillator that gives a DFT plot?

Thanks for information btw.
Music Manic
Posts: 1739
Joined: Wed May 15, 2002 4:00 pm
Contact:

Re: Sine Wave test

Post by Music Manic »

fra77x2 wrote: Thu Jan 28, 2021 8:11 pm Have you recorded the waveform and observe it in a wave editor?
I’ve just tried re-recording the sine wave at 10kHz through the analogue I/O and it was a perfect sine wave.
It is purely a graphical mis-representation.

You learn something new every day.
Post Reply