Ramp up volume within 20 minutes?
bob
Independent Programmer
Hi guys,
What would be the best way to smoothly ramp up volume within a longer time interval, say 20 minutes?
Thanks much for any feedback!
What would be the best way to smoothly ramp up volume within a longer time interval, say 20 minutes?
Thanks much for any feedback!
Comments
-
Hi guys,
What would be the best way to smoothly ramp up volume within a longer time interval, say 20 minutes?
Thanks much for any feedback!
A timeline I guess -
Hi guys,
What would be the best way to smoothly ramp up volume within a longer time interval, say 20 minutes?
Thanks much for any feedback!
for a linear (which is not percieved as linear by human ears by the way) ramp take the ramp time divided by the number of intervals between the current volume and the desired volume and ramp up by that amount. Create a timeline using the interval as the event time and a counter to click of the number of times you need to get there.
So for example if your ramp is 40 units of volume over 20 minutes.
set the timeline interval at every 30 seconds, your counter at 40 and run the timeline.
You can dynamically change the ramp time and duration by doing the math prior to launching the timeline.
volatile long TL_My_Ramp_Time[1];
volatile integer TL_My_Ramp_ct
TL_My_Ramp_Time[=30000
TL_My_Ramp_ct=40
timeline_create (TL_My_Ramp,
TL_My_Ramp_Times,
length_array(TL_My_Ramp_Times),,
timline_absolute,
timeline_Repeat )
Timeline_event[TL_My_Ramp]{
// send the vol ramp
// decrement the counter and check for if done
} -
Thanks Eric!
Categories
- All Categories
- 2.5K AMX General Discussion
- 922 AMX Technical Discussion
- 514 AMX Hardware
- 502 AMX Control Products
- 3 AMX Video Distribution Products
- 9 AMX Networked AV (SVSI) Products
- AMX Workspace & Collaboration Products
- 3.4K AMX Software
- 151 AMX Resource Management Suite Software
- 386 AMX Design Tools
- 2.4K NetLinx Studio
- 135 Duet/Cafe Duet
- 248 NetLinx Modules & Duet Modules
- 57 AMX RPM Forum
- 228 MODPEDIA - The Public Repository of Modules for Everyone
- 943 AMX Specialty Forums
- 2.6K AMXForums Archive
- 2.6K AMXForums Archive Threads
- 1.5K AMX Hardware
- 432 AMX Applications and Solutions
- 249 Residential Forum
- 182 Tips and Tricks
- 146 AMX Website/Forums