| 
            
              TimbreFunction Delegate
             | 
          
        
        
            Provides a function signature for methods that produce an amplitude representing the
            acoustic pressure of a represented musical timbre for the given time.
            
        
        Namespace: GSF.Media.MusicAssembly: GSF.Media (in GSF.Media.dll) Version: 2.4.258-beta
Syntaxpublic delegate double TimbreFunction(
	double frequency,
	long sampleIndex,
	long samplePeriod,
	int sampleRate
)
Public Delegate Function TimbreFunction ( 
	frequency As Double,
	sampleIndex As Long,
	samplePeriod As Long,
	sampleRate As Integer
) As Double
public delegate double TimbreFunction(
	double frequency, 
	long long sampleIndex, 
	long long samplePeriod, 
	int sampleRate
)
type TimbreFunction = 
    delegate of 
        frequency : float * 
        sampleIndex : int64 * 
        samplePeriod : int64 * 
        sampleRate : int -> floatfunction(frequency, sampleIndex, samplePeriod, sampleRate);
Parameters
- frequency  Double
 - Fundamental frequency of the desired note in Hz.
 - sampleIndex  Int64
 - Sample index (represents time anywhere from zero to full length of song).
 - samplePeriod  Int64
 - If useful, total period for note in whole samples per second (i.e., seconds of time * sampleRate) over which to compute timbre.
 - sampleRate  Int32
 - Number of samples per second.
 
Return Value
DoubleThe amplitude of the represented musical timbre (a value between zero and one) at the given time.
See Also