1
MilkyTracker Support / Envelope & fadeout meaning
« on: October 05, 2011, 05:23:19 »
I'm translating envelopes and have some questions.
Can you export or read off the numerical values of envelope points? I built something for this since posting, but it didn't work for all my modules.
What are the lengths of each sample distance in the envelope, i.e. the width of each square in seconds?
How do fadeout settings translate into seconds?
A for sample distance:
amp=65536((e_1.amp-e_2.amp)(e_2.amp-tickspassed)/distance(e_1,e_2)+e_2.amp)>>16
Amplitude is a function of ticks passed, & the distance b-n points is more an expression of how many ticks it takes to shift the weight of interpolation from one envelope point e_1 to the next e_2.
A for fadeout:
amp(tick)=65536-fadeout*tick.
Has points (0, 65536) & (65536/fadeout, 0).
When fadeout=0, the 0 is at never (infinity) & the amplitude is constantly 65536.
Can you export or read off the numerical values of envelope points? I built something for this since posting, but it didn't work for all my modules.
What are the lengths of each sample distance in the envelope, i.e. the width of each square in seconds?
How do fadeout settings translate into seconds?
A for sample distance:
amp=65536((e_1.amp-e_2.amp)(e_2.amp-tickspassed)/distance(e_1,e_2)+e_2.amp)>>16
Amplitude is a function of ticks passed, & the distance b-n points is more an expression of how many ticks it takes to shift the weight of interpolation from one envelope point e_1 to the next e_2.
A for fadeout:
amp(tick)=65536-fadeout*tick.
Has points (0, 65536) & (65536/fadeout, 0).
When fadeout=0, the 0 is at never (infinity) & the amplitude is constantly 65536.