My Synth is done (no really)

:smiley:
Have a look. Source included.

And hereā€™s the gui:

Woah :shock:

That is seriously impressive stuff!! And youā€™ve been doing C++ for only a year??

Thanks Pukeweed this makes a fantastic (if not slightly complex :oops: ) tutorial for a relative beginner to C++ and JUCE.

Cool GUI as well

Whats next on the Pukeweed VST hitlist?

Thanks :smiley:

Yup, one year of C++ and a few months of JUCE. (But Iā€™ve programmed in other langues before, professionally even.)

I am still really foggy on some of the DSP stuff. The filter is basically a copy/paste job, and Iā€™m not a 100% on how the cubic interpolations I used in the osc works! :shock:
So my next mission will probably invole learning some real DSP. Or maybe Iā€™ll make a mono/lead oriented version of this synth.

I guess I should have kept the simpler version, before I added oversampling and restructured it for per buffer processing. It was way more clear, consistent and instructive.
But it is often the case that clarity must be sacrificed on the altar of performance. :frowning:

Sounds interesting :slight_smile:

A question, I have seen you have used sampled waveforms, how many samples are these wavesā€™ length ? Iā€™m developping a synth too, with 1024 samples for each waveform (sine, sawtooth, pulse, triangleā€¦) and it looks like itā€™s not enough, because my sawtooths/pulses/triangles sounds the same at 440 Hz ! I have used only linear interoplation, but I donā€™t think itā€™s just that :? Iā€™m looking for other waveforms too, I donā€™t know what to take and how to synthesize themā€¦

If you have some suggestions, they will be great :stuck_out_tongue:

PS. About ā€œrealā€ DSP, I like MusicDSPā€™s website/forum/Mailing List, I have found a lot of interesting things there. And there is a free DSP book to download on http://www.dspguide.com

PPS. Some other links :
http://www.earlevel.com/Digital%20Audio/Bilinear.html
http://www-ccrma.stanford.edu/%7Estilti/papers/moogvcf.pdf
http://www.theprojectstudiohandbook.com/articles17.htm
http://crca.ucsd.edu/%7Emsp/techniques.htm
http://www.acoustics.hut.fi/publications/reports/sound_synth_report.pdf
http://ccrma.stanford.edu/%7Ejos/pasp/pasp.html

I used 512 samples. All the waveforms are just a single cycle and 512 is plenty. I just made the waveforms in soundforge and exported them as raw/32 bit floats. Then I used the binary builder to make them into source files (osc_tables.h /osc_tables.cpp).

With 1024 samples per cycle you should pretty much be able to just skip the interpolation and just truncate the phase counter to get the sample index, and still get a pretty good result.
So my bet is that youā€™re either messing up in the interpolation, or the waveforms are wrong to begin with.

aliasing aliasing aliasing aaaaallll the ttiiiime :wink:

Thanks for the answer, I will try to find some papers about the interpolations :wink:

Kraken > :?:

Have a look at the ā€œAlmost ready to use oscillatorsā€ at music dsp. Iā€™m using the cubic version of that code, more or less. The linear version is also good. Fast as greased ninja.

http://ldesoras.free.fr/doc/articles/resampler-en.pdf
http://ldesoras.free.fr/src/resampler-1.02.zip

donā€™t forget that juce has got a ResamplingAudioSourceā€¦ if you used the Synthesiser base class you could hook one of those up in a Voice object and use that.

Thanks everybody 8)

Synthesiser base class?? where did that spring from?? JUCE changes at a faster rate than my noobie C++ skills are improving at!! :slight_smile:

Is there any example code featuring the sythesiser class I can have a nosey at anywhere??

[quote=ā€œcacoā€]Synthesiser base class?? where did that spring from?? JUCE changes at a faster rate than my noobie C++ skills are improving at!! :slight_smile:

Is there any example code featuring the sythesiser class I can have a nosey at anywhere??[/quote]

jucedemo has the coolest sinf efa!

hey lets be KVR!

teh jucedemo is sounding warmer than teh roid! any1 got teh roid manual?

:lol:

[quote=ā€œKarbon L. Formsā€][quote=ā€œcacoā€]Synthesiser base class?? where did that spring from?? JUCE changes at a faster rate than my noobie C++ skills are improving at!! :slight_smile:

Is there any example code featuring the sythesiser class I can have a nosey at anywhere??[/quote]

jucedemo has the coolest sinf efa![/quote]

Oooh that wasnā€™t there last time i looked

Jules slow down with the coding I canā€™t keep up!! :stuck_out_tongue:

OMG PLZ! WAREZ USER!!!


Actually, I donā€™t exactly get the synt/voice objects either. They look sort of like the setup I use already, but I suspect they have some advantage over starting with empty classes?

wow!

teh hummeer!