Bienvenue, Invité
Nom d'utilisateur : Mot de passe : Se souvenir de moi

SUJET : Trouble understanding envelopes

Trouble understanding envelopes il y a 1 mois 3 jours #1

  • Tyler
  • Portrait de Tyler
  • Hors Ligne
  • New Member
  • Messages : 1
I'm trying to create a basic SF2 or SFZ player for my web application, and I'm running into some trouble figuring out how envelopes are supposed to work.

In the Presets editor in Polyphone, many of the fields are marked with an (x), which seems to mean that the value will be multiplied by any inherited values from the Instrument used for the particular Preset zone. For example, I've imported the "GeneralUser GS MuseScore version 1.442" SoundFont, and looking at preset 49 (Stereo Strings Slow), I see this for the second non-global zone:

Strings_2 Pan, Velocity range 0-51: attackVolEnv= 1.1.
The matching instrument has a global setting for attackVolEnv = 0.8.

In playback and upon export to SFZ, the resulting output for the delay is ~0.88, which is 1.1 * 0.8.

However, from my reading of the specification at , I was expecting these values to be added rather than multiplied. At the bottom of page 57, it states:
"Generators at the Preset Level are instead considered “relative” and additive to all the default or instrument level generators within the Preset Zone. For example, a value of 2400 timecents for the attackVolEnv generator in a preset zone containing an instrument with two zones, one with the default attackVelEnv and one with an absolute attackVolEnv generator value of 1200 timecents would cause the default zone to actually have a value of -9600 timecents or 4 msec, and the other to have a value of 3600 timecents or 8 seconds attack time."

I haven't found any mention that any of the values for Presets should act as factors for their Instrument equivalents, so I'm wondering if I'm missing something. Is there a different version of the specification I should be working from?
L'administrateur a désactivé l'accès en écriture pour le public.
Temps de génération de la page : 0.062 secondes