The only option is to play it immediately.Ĭonsider the scenario where you play rackspace1, then stop playing and there’s no sound. There’s no magic bullet that would allow you to determine how quickly one wants the new rackspace to start playing and there is no algorithm that would do that for you. I’m trying to explain the process once more to make sure that we all understand that this is working as designed and, more importantly, as it should. If you used hardware units you’d hear exactly the same thing.ĭuring that time both rackspaces “ring” with the old one quickly quieting down. The new rackspace plays full volume immediately as it should and the old one has 5 seconds to quiet down. You’re playing one rackspace then you switch to a new one while playing. ![]() There’s no reason why the level would not increase for a short period in this scenario. You had the same audio tail settings (fade in/out at 5s) for each rackspace and the level still increased during transitions? (formatted the code as “code” for better readability - schamass as Mod) SetWidgetValue(GAIN, StartValue + StartValue *70 *amplitudeY) // start value = 0.1 *70 to reach end value = 70 On TimePassing(timeX : integer, amplitudeY : double) from myRamp // This gets called by the ramp generator as time passes SetTimersRunning(true) // The ramp function generator will now start producing values MyRamp.EnableGenerator(True) // Arm the ramp function generator On WidgetValueChanged(newValue : double) from AUTO StartValue := GetWidgetValue(GAIN) // Get the initial level of the knob (NB make sure it's not already 0 On Activate // A new rackspace is selected MyRamp.SetGeneratorLength(5000) // MILLISECONDS ONLY? SetGeneratorOneShot(myRamp, true) // Generator will only run once when triggered Running : Boolean // Keep track of whether we are currently running the ramp StartValue : double // This remembers the initial value of the knob so that when we start again MyRamp : Ramp // A generator that moves smoothly from 0.0 to 1.0 over some specified time ![]() GAIN : Widget // A knob widget used to trigger the ramp TIME : Widget // A knob widget USED TO SET THE GENERATOR LENGHT Here is the script with some lines where I tried to insert timing elements but unfinished.ĪUTO : Widget // A button widget USED TO ENABLE THE RAMP I have also tried to create a “TIME” widget to select the duration of the fade-in, but I did not succeed in applying it to the SetGeneratorLength() function which seems to only accepts an integer… With a lot of difficulty because I don’t understand anything about scripts, I succeeded in creating an “ON/OFF” button to make or not the script running on rackspace activation. I took inspiration from Automatic Fade Out written by to perform a guitar gain fade-in when a new rackspace is activated. As this post is about a script, I have deleted it from the previous topic and moved it to this section.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |