You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
synthio: make sustain level relative to attack level
and re-vamp overall envelope calculation again.
Now, if you set a low overall attack level like 0.2 this avoids the
"diminishing volume" effect when many notes sound at once. You need
simply choose a maximum attack level that is appropriate for the max
number of voices that will actually be played.
//| :param float attack_time: The time in seconds it takes to ramp from 0 volume to attack_volume
80
80
//| :param float decay_time: The time in seconds it takes to ramp from attack_volume to sustain_volume
81
81
//| :param float release_time: The time in seconds it takes to ramp from sustain_volume to release_volume. When a note is released before it has reached the sustain phase, the release is done with the same slope indicated by ``release_time`` and ``sustain_level``
82
-
//| :param float attack_level: The relative level, in the range ``0.0`` to ``1.0`` of the peak volume of the attack phase
83
-
//| :param float sustain_level: The relative level, in the range ``0.0`` to ``1.0`` of the volume of the sustain phase
82
+
//| :param float attack_level: The level, in the range ``0.0`` to ``1.0`` of the peak volume of the attack phase
83
+
//| :param float sustain_level: The level, in the range ``0.0`` to ``1.0`` of the volume of the sustain phase relative to the attack level
84
84
//| """
85
85
//| attack_time: float
86
86
//| """The time in seconds it takes to ramp from 0 volume to attack_volume"""
//| """The time in seconds it takes to ramp from sustain_volume to release_volume. When a note is released before it has reached the sustain phase, the release is done with the same slope indicated by ``release_time`` and ``sustain_level``"""
93
93
//|
94
94
//| attack_level: float
95
-
//| """The relative level, in the range ``0.0`` to ``1.0`` of the peak volume of the attack phase"""
95
+
//| """The level, in the range ``0.0`` to ``1.0`` of the peak volume of the attack phase"""
96
96
//|
97
97
//| sustain_level: float
98
-
//| """The relative level, in the range ``0.0`` to ``1.0`` of the volume of the sustain phase"""
98
+
//| """The level, in the range ``0.0`` to ``1.0`` of the volume of the sustain phase relative to the attack level"""
0 commit comments