|
DampingInverseLogarithmic Method
|
Produces an inverse logarithmic damping curve - slowly damping with a sharp end from 1 to 0 over the samplePeriod.
Namespace: GSF.Media.MusicAssembly: GSF.Media (in GSF.Media.dll) Version: 2.4.207-beta
Syntax public static double InverseLogarithmic(
long sampleIndex,
long samplePeriod,
int sampleRate
)
Public Shared Function InverseLogarithmic (
sampleIndex As Long,
samplePeriod As Long,
sampleRate As Integer
) As Double
static member InverseLogarithmic :
sampleIndex : int64 *
samplePeriod : int64 *
sampleRate : int -> float
GSF.Media.Music.Damping.InverseLogarithmic = function(sampleIndex, samplePeriod, sampleRate);
View SourceParameters
- sampleIndex Int64
- Sample index (0 to samplePeriod - 1).
- samplePeriod Int64
- Total period, in whole samples per second (i.e., seconds of time * sampleRate), over which to perform damping.
- sampleRate Int32
- Number of samples per second, if useful for calculation.
Return Value
DoubleScaling factor used to damp an amplitude at the given time.
Remarks
This damping would be similar to that of a note produced on an electronic keyboard or a breath based instrument.
See Also