kaj ·
I'd like to downsample the internal audio stream (e.g. 44100 -> 22050), because the synth that I made costs a lot of cpu power. Is there such a kit in the primitive?
From the original SynthMaker forum (2004–2014), with its members’ names and dates.
kaj ·
I'd like to downsample the internal audio stream (e.g. 44100 -> 22050), because the synth that I made costs a lot of cpu power. Is there such a kit in the primitive?
loopeytunes ·
replace the normal sample rate that's inside the midi to poly module with this one and it should work
you can change the sample rate by inputting what sample rate you like inside the strings.
hope this is ok
Loopey
trogluddite ·
That will change the sample rate for the whole system via the soundcard settings though - it will work within SM, or exported to an exe, but once exported as a VST, the synth will still run at whatever sample rate is set by the host software.
Making the synth run at half the rate of the host is much more complex - all stream primitives would need replacing with hand coded alternatives that hop over every other sample, and all frequency calculations would need to account for the halving of the sample rate.
infuzion ·
Likely easier just to optimize & run your host at half sample rate. [old link]
kaj ·
To loopeytunes
Thank you very much. It works well in SM. But unfortunately it does not wok in VST version.
To trogluddite
Reaktor VST provides the sampling rate setting in which one can set several sampling rate regardless of host's sampling rate. I wish such an environment in SynthMaker as well.
kaj ·
To infuzion
I did optimizations. (e.g. I used Hop() in the code component...), but my synth costs a lot of cpu power. thanks.
Dell ·
Hi.
Down sampling to 22050 Hz is going to destroy the sound quality. 44100 Hz is not the best, but is the standard for popular music so there is no reason to go below the standards just to save CPU consumption.
It may be best to contact someone who is verse with optimisation, and let them modify the OSM to make it more efficient.
Or you could add on/off switches and use only what is needed instead of having everything on at the same time.
Cheers!
infuzion ·
kaj wrote: I did optimizations. (e.g. I used Hop() in the code component...), but my synth costs a lot of cpu power. thanks.
Oh, depending on your CPU & how you have the module configured, hand-editing to ASM can save you 10-30% CPU. And their could be other things that may be done more efficiently; I run across new ideas every few months myself.
Warning: Undersampling an OSC can lead to Nyquest nastyness. Sometimes if you want a synth or effect to sound better, you oversample it. Or just run your host at a higher sampling rate if the VST will go higher also 😉.
Wrote something here? To have a post removed or your name hidden, write to [email protected].