If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
Chainsaw Oscillator
9 posts
• Page 1 of 1
Chainsaw Oscillator
Hey gang, here is something I've been working on lately. I call it the chainsaw oscillator .
The basic idea is to take a random sequence of samples (= a chunk of noise) and repeat it periodically. Like a random wavetable. The result is a tone with a funamental frequency according to the repetition rate and a random harmonic spectrum. (Cut the trebble if it sounds too harsh. ) The nice thing is that you can take a different random sequence and get a different random harmonic spectrum, so every note may sound slighlty different. It is very easy to generate a (pseudo-)random sequence.
Now if we slowly vary the random sequence, each sample individually while it is playing, we get a constant morphing between different timbres. At higher variation rates it sounds like many (hundreds) slightly detuned oscillators (phat! ). At still higher rates the sound gets more and more noisy.
You might think that it would be a tremendous CPU load to constantly update all samples of the random sequence. Like hundreds of simultaneous oscillators! The point is that you only need to update each sample once every cycle, not constantly. So the effective load is actually similar to one oscillator!
There are some details like what if the size of the sequence is not integer (which it never is), aliasing and so on. Perhaps the hardest part was to make the thing poly safe. Whatever.
Below is the chainsaw oscillator and a little demo synth. I imagine that it could be of use in EDM. However, with some proper filtering you can also create some very soft, evolving pad sounds.
The basic idea is to take a random sequence of samples (= a chunk of noise) and repeat it periodically. Like a random wavetable. The result is a tone with a funamental frequency according to the repetition rate and a random harmonic spectrum. (Cut the trebble if it sounds too harsh. ) The nice thing is that you can take a different random sequence and get a different random harmonic spectrum, so every note may sound slighlty different. It is very easy to generate a (pseudo-)random sequence.
Now if we slowly vary the random sequence, each sample individually while it is playing, we get a constant morphing between different timbres. At higher variation rates it sounds like many (hundreds) slightly detuned oscillators (phat! ). At still higher rates the sound gets more and more noisy.
You might think that it would be a tremendous CPU load to constantly update all samples of the random sequence. Like hundreds of simultaneous oscillators! The point is that you only need to update each sample once every cycle, not constantly. So the effective load is actually similar to one oscillator!
There are some details like what if the size of the sequence is not integer (which it never is), aliasing and so on. Perhaps the hardest part was to make the thing poly safe. Whatever.
Below is the chainsaw oscillator and a little demo synth. I imagine that it could be of use in EDM. However, with some proper filtering you can also create some very soft, evolving pad sounds.
- Attachments
-
- chainsaw-osc.fsm
- (47.84 KiB) Downloaded 1098 times
-
martinvicanek - Posts: 1328
- Joined: Sat Jun 22, 2013 8:28 pm
Re: Chainsaw Oscillator
First to download
I'm always delighted to have something genuinely new to play with (although taking something bog-standard and seeing how far you can go with it leads to some pretty amazing results too).
Of course, not only will this be fascinating to try as an osc, but as a modulation source etc.
Thank you so much!
I'm always delighted to have something genuinely new to play with (although taking something bog-standard and seeing how far you can go with it leads to some pretty amazing results too).
Of course, not only will this be fascinating to try as an osc, but as a modulation source etc.
Thank you so much!
We have to train ourselves so that we can improvise on anything... a bird, a sock, a fuming beaker! This, too, can be music. Anything can be music. -Biff Debris
-
Duckett - Posts: 132
- Joined: Mon Dec 14, 2015 12:39 am
Re: Chainsaw Oscillator
Below is a synth based on the chainsaw osc with filtering and a few more features. This implementation is in blue rather than poly (white). All presets use only one osc per note, and no chorus or other effects.
- Attachments
-
- ChainsawSynth.fsm
- Bugs pointed out by Adam (see below) fixed. Thanks Adam!
- (117.2 KiB) Downloaded 1075 times
Last edited by martinvicanek on Sun Mar 21, 2021 9:46 pm, edited 1 time in total.
-
martinvicanek - Posts: 1328
- Joined: Sat Jun 22, 2013 8:28 pm
Re: Chainsaw Oscillator
Another amazing oscillator idea Martin!
I did some quick experiments with envelope, LFO and audio rate modulation and got sounds that it would be difficult (and expensive) to get any other way. One I liked was a snare sound which was never the same per hit (just the snare, not the drum body). And all with one low CPU oscillator.
Martin, you are a treasure! Thank you so much for all you do for us.
I did some quick experiments with envelope, LFO and audio rate modulation and got sounds that it would be difficult (and expensive) to get any other way. One I liked was a snare sound which was never the same per hit (just the snare, not the drum body). And all with one low CPU oscillator.
Martin, you are a treasure! Thank you so much for all you do for us.
-
Spogg - Posts: 3358
- Joined: Thu Nov 20, 2014 4:24 pm
- Location: Birmingham, England
Re: Chainsaw Oscillator
Thank you! Very cool!
- Halon
- Posts: 321
- Joined: Sat Nov 28, 2015 4:42 pm
- Location: Norway
Re: Chainsaw Oscillator
Thanks Martin! You might want to upload an updated version with some fixes because it does not make sound in the alpha because of these errors (even though it doesnt show them, I had to hunt for them):
In the envelopes you comment the hop:
But do not comment out the closing tag.
In the Filter lowpass -> Approx. Matched LP module "movapsout,xmm0;" there is a whitespace typo in all of them.
In the envelopes you comment the hop:
- Code: Select all
//mov eax,ecx; and eax,15; cmp eax,0; jnz hop;
But do not comment out the closing tag.
In the Filter lowpass -> Approx. Matched LP module "movapsout,xmm0;" there is a whitespace typo in all of them.
- adamszabo
- Posts: 667
- Joined: Sun Jul 11, 2010 7:21 am
Re: Chainsaw Oscillator
Thanks for all your comments, guys!
Adam, many thanks for taking the pain to hunt down those bugs. I should make it a habit to check my uploads with FS alpha before posting!
Adam, many thanks for taking the pain to hunt down those bugs. I should make it a habit to check my uploads with FS alpha before posting!
-
martinvicanek - Posts: 1328
- Joined: Sat Jun 22, 2013 8:28 pm
Re: Chainsaw Oscillator
The strange thing is that it didnt even show any errors in the alpha, it just didnt make any sound, so then I started investigating.
- adamszabo
- Posts: 667
- Joined: Sun Jul 11, 2010 7:21 am
9 posts
• Page 1 of 1
Who is online
Users browsing this forum: Google [Bot] and 20 guests