electro-music.com   Dedicated to experimental electro-acoustic
and electronic music
 
    Front Page  |  Radio
 |  Media  |  Forum  |  Wiki  |  Links
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » Clavia Nord Modular » Nord Modular G2 Discussion
Anti-aliased osc effect?
Post new topic   Reply to topic Moderators: Nord Modular Editors
Page 1 of 1 [9 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
Fozzie



Joined: Jun 04, 2004
Posts: 875
Location: Near Wageningen, the Netherlands
Audio files: 8
G2 patch files: 49

PostPosted: Thu May 10, 2007 1:29 pm    Post subject: Anti-aliased osc effect? Reply with quote  Mark this post and the followings unread

I noticed this when I was fooling around with the 0Hz Phase Osc: if it is fed by a saw-LFO, the resulting output is a perfect sine as expected, but if a saw-osc is used, there is a distortion of the waveform much like a discontinuance (at lower frequencies; at higher frequencies the whole waveform is off). I thought at first that this might be some bug, but then it dawned on me it could be an anti-aliasing thing. Correct?


SawOscAntiAlias.jpg
 Description:
 Filesize:  58.78 KB
 Viewed:  6587 Time(s)

SawOscAntiAlias.jpg



_________________
Spinning at ~0.0000115740740741 Hz
Back to top
View user's profile Send private message
ian-s



Joined: Apr 01, 2004
Posts: 2672
Location: Auckland, New Zealand
Audio files: 42
G2 patch files: 626

PostPosted: Thu May 10, 2007 2:33 pm    Post subject: Re: Anti-aliased osc effect? Reply with quote  Mark this post and the followings unread

Fozzie wrote:
it could be an anti-aliasing thing. Correct?


Yes, it looks like a windowed sinc. As used in MinBLEP
Back to top
View user's profile Send private message
Tim Kleinert



Joined: Mar 12, 2004
Posts: 1148
Location: Zürich, Switzerland
Audio files: 7
G2 patch files: 236

PostPosted: Sun May 13, 2007 2:37 am    Post subject: Reply with quote  Mark this post and the followings unread

The flank of the sawtooth oscillator is not a 100% perfect flank. A perfect flank is most susceptible to the jitter caused by the sampling frequency of the system, which therefore, at higher oscillation frequencies, will produce aliasing artefacts and render the oscillation not useful as a tone source.

The waveform is therefore treated by a process called bandlimited interpolation, which rounds off those flanks just enough to make them immune to sampling frequency jitter. The same happens (doubly) with pulse wave oscillators. You'll notice that the higher you sweep pulse waves on a digital synth which sports good anti-aliasing, the more they will start to look like simple sine waves, as the bandlimiting flank will take up more and more of the waveform cycle.

Normally all of this goes unnoticed. But in cases like yours, it manifests. Other examples are deriving a pulse wave from a sawtooth wave via a comparator (the resulting pulse wave will be jittered), or deriving a triangle waveform from the sawtooth via a rectifier (the resulting triangle wave will be slightly jagged on one of its edges).

The sawtooth LFO however has a perfect flank, as it is not intended to be a tone source. Hence, sweeping the phase osc through 0-360 degrees with a sawtooth LFO will not produce any discontinuities.
Back to top
View user's profile Send private message
Tim Kleinert



Joined: Mar 12, 2004
Posts: 1148
Location: Zürich, Switzerland
Audio files: 7
G2 patch files: 236

PostPosted: Sun May 13, 2007 2:45 am    Post subject: Reply with quote  Mark this post and the followings unread

BTW, what's that oscilloscope software you are using? Can one use it in tandem with the demo software? If so, I want to have that. Smile
Back to top
View user's profile Send private message
Tim Kleinert



Joined: Mar 12, 2004
Posts: 1148
Location: Zürich, Switzerland
Audio files: 7
G2 patch files: 236

PostPosted: Sun May 13, 2007 3:10 am    Post subject: Reply with quote  Mark this post and the followings unread

Just for fun -here's an non-bandlimited DIY sawtooth oscillator. Compared to the saw LFO, it has the advantage of audiorate (96kHz) processing. It doesn't sound that bad actually. However, the exponential tracking isn't 100% accurate (due to math precision of the LevelScaler module), but still usable.


nonbandlimsaw_TK.pch2
 Description:

Download (listen)
 Filename:  nonbandlimsaw_TK.pch2
 Filesize:  1.18 KB
 Downloaded:  1613 Time(s)


Last edited by Tim Kleinert on Sun May 13, 2007 3:33 am; edited 1 time in total
Back to top
View user's profile Send private message
Fozzie



Joined: Jun 04, 2004
Posts: 875
Location: Near Wageningen, the Netherlands
Audio files: 8
G2 patch files: 49

PostPosted: Sun May 13, 2007 3:30 am    Post subject: Reply with quote  Mark this post and the followings unread

tim wrote:
BTW, what's that oscilloscope software you are using? Can one use it in tandem with the demo software? If so, I want to have that. Smile

Yes, you can use it in tandem with the demo; no cables necessary, it can monitor the output of your soundcard(the output drivers I guess), I use it with my laptop built-in low quality soundcard without problems. It is visual analyser 8, available as free- or donationware at http://www.sillanumsoft.com. I noticed that v9 is now available, but have no idea what has changed. It is a very nice way to directly monitor what is going on!!

_________________
Spinning at ~0.0000115740740741 Hz
Back to top
View user's profile Send private message
Tim Kleinert



Joined: Mar 12, 2004
Posts: 1148
Location: Zürich, Switzerland
Audio files: 7
G2 patch files: 236

PostPosted: Sun May 13, 2007 3:39 am    Post subject: Reply with quote  Mark this post and the followings unread

Very practical, thanks!
Back to top
View user's profile Send private message
Fozzie



Joined: Jun 04, 2004
Posts: 875
Location: Near Wageningen, the Netherlands
Audio files: 8
G2 patch files: 49

PostPosted: Sun May 13, 2007 4:25 am    Post subject: Reply with quote  Mark this post and the followings unread

tim wrote:
Just for fun -here's an non-bandlimited DIY sawtooth oscillator. Compared to the saw LFO, it has the advantage of audiorate (96kHz) processing. It doesn't sound that bad actually. However, the exponential tracking isn't 100% accurate (due to math precision of the LevelScaler module), but still usable.

Thanks for your patch and sharing of knowledge! I'll study it and see if it is usefull for what I was trying to do (was looking into synced sinewaves because of the hammond thread here).

.... Ok, forgot posting this message and played around with it. You are really good in scaling signals! Nice mechanism; how dis you figure out the (mixer/levelscaler) settings, is it trial & error or is it calculated somehow?

(edit: BTW, using a bit of keyboard morph on the fine tune helps to even the tuning out a bit, although it then varies per note. Nothing noone could figure out for themselves, but I thought I'd just post it)

_________________
Spinning at ~0.0000115740740741 Hz
Back to top
View user's profile Send private message
Tim Kleinert



Joined: Mar 12, 2004
Posts: 1148
Location: Zürich, Switzerland
Audio files: 7
G2 patch files: 236

PostPosted: Sun May 13, 2007 3:29 pm    Post subject: Reply with quote  Mark this post and the followings unread

Fozzie wrote:
.... Ok, forgot posting this message and played around with it. You are really good in scaling signals! Nice mechanism; how dis you figure out the (mixer/levelscaler) settings, is it trial & error or is it calculated somehow?


Both, actually. I use the LevelScaler for the linear-to-exponential conversion, so that the sawtooth circuit tracks the chromatic scale. The same technique is used to tune delay lines to make physical models.

The levels on the 4-channel-mixer within the oscillation-generating feedback loop are then tuned by ear.

BTW: I hope you downloaded the last&final version of the sawtooth circuit, because I uploaded several versions of it (always finding a better way to patch it a few minutes after uploading -sorry 'bout that).

Fozzie wrote:
(edit: BTW, using a bit of keyboard morph on the fine tune helps to even the tuning out a bit, although it then varies per note. Nothing noone could figure out for themselves, but I thought I'd just post it)


Oh, great, I'll try that.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: Nord Modular Editors
Page 1 of 1 [9 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » Clavia Nord Modular » Nord Modular G2 Discussion
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2009 by electro-music.com - Conditions Of Use