SynthMaker

I want to know how to downsample.

Archive · 2011 8 old posts

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].

Before your first post

A few rules keep this a friendly place. You agree to them once.

Shown next to what you post, here and in the app. It doesn’t have to be your real name: 3–24 lower-case letters, digits or _ (capitals become lower case, spaces become _).

    Then your post goes up straight away.

    Delete this reply?

    Open it in SynthMaker?

    It goes on the track you’re editing there, in place of that track’s sound, and into My sounds. Your other tracks stay as they are.

    Want to keep that track’s sound? Start a new song in SynthMaker first (Song › New song), then open this.

    Report this reply?

    Only the developer reads reports. The person isn’t told who reported them.

    What’s wrong with it?

    Block this person?

    You won’t see their posts and replies here any more. They aren’t told, and you can unblock them at any time.

    People you’ve blocked

    Their posts and replies are hidden from you. Unblock someone to see them again.

    The community rules

    A few rules keep this a friendly place. Everyone agrees to them once, before their first post.