SynthMaker

playing a few samples in once witout having volume raise

Archive · 2008 8 old posts

From the original SynthMaker forum (2004–2014), with its members’ names and dates.

gilwe ·

This is a bit tricky. I'm trying a few approaches for building a multisample based instrument. In all methods, any time you play more than one note at once (=using polyphony), the overall output volume is raised, not quite like a "real" acoustic instrument. For example, on a real piano, you can hit 10 keys at once but the overall voume of the instrument is more or less the same. On the SM instrument, hit 10 keys and you get x10 the overall volume!

Any ideas ? 😉

oddson ·

Playing ten keys on a real piano is surely louder than playing one, unless you hammer the one...

I posted what follows without testing the results... the problem with my initial thinking is as soon as you start releasing notes the volume goes back up in a very unnatural way. ...if you want to lower the overall volume based on the number of notes played you can do that by modulating the volume with an inverse value from the 'Trigger Counter' output from the Voices to Poly primitive inside the MIDI to Poly module.

That might cost a bit in CPU (though not very much) so you could also use the MIDI to Mono primitive which has an output that gives how many notes are active as green data. An inverse of this value could be used to control the volume in the poly or even mono section of the instrument.

Using a straight inverse will give you the reverse problem (diminishing overall volume with each extra voice) so you need to come up with some means of cutting the volume that is more tapered than that.

Try something like this:

oddson ·

You could do it by diminishing the velocity values while still in MIDI. Then the volume reduction is based on how many notes are active when the note on message is received and you don't get strange envelope changes.

diminishVelo.osm

stefan ·

This is a quite classic misconception.

You could in the digital case use a limiter, but it will sound unnatural.

The piano raises its total volume when you play more and more keys in almost the same way playing the same keys as samples in a virtual instrument does (there are of course more advanced physical processes going on, but overall, the volume will act the same).

FWIW, the volume does not get 10 times as loud when playing 10 different piano samples at once instead of just one 🙂 More like, maybe around 9dB or something, which is about 2.8 times as loud, linearly speaking. You can however get peaks that are at values 10 times as high as when playing just one sample, but that applies in both the "real" and the virtual domain.

oddson ·

I'm with Stefan on this point. While the velocity approach above does more or less what you've asked for I'm very skeptical that it is an improvement over doing nothing.

gilwe ·

Thanks guys,

Sure a piano will sound louder, as any other software synth will, but I feel that the raise in level is a bit exaggerated on SM.

Will surely try oddson idea, although I thought that being a synth "maker", SM must have some more basic way to handle these issues...

stefan ·

gilwe wrote: Thanks guys,

Sure a piano will sound louder, as any other software synth will, but I feel that the raise in level is a bit exaggerated on SM.

Will surely try oddson idea, although I thought that being a synth "maker", SM must have some more basic way to handle these issues...

The raise is not exaggerated, it's just waveforms being added together 🙂 Unless there's something odd going on in your specific scenario, but I doubt it. Keep in mind however that the total _perceived_ rise in volume depends on how the energy is spread over the spectra in the samples you are using.

gilwe ·

You're probably right.

I tried my project with *piano* samples instead of the drums samples I had there at first, and the behavior *does* sound more natural. Will keep checking into it. Thanks.

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.