ATK-Sharp  1.0
The ATK library for C#.
ATKSharp.Generators.Oscillators.Wavetable.WTSine Class Reference

The WTSine class. Contains the functionality to generate a wavetable sine oscillator. More...

Inheritance diagram for ATKSharp.Generators.Oscillators.Wavetable.WTSine:
ATKSharp.Generators.BaseGenerator ATKSharp.Generators.IGenerator

Public Member Functions

 WTSine (float initialFrequency=440f, float initialAmplitude=1f, double initialPhase=0)
 Initializes a new instance of the WTSine class. More...
 
override float Generate ()
 Generates a signal. More...
 

Properties

override double Increment [get]
 Gets the increment. More...
 
- Properties inherited from ATKSharp.Generators.BaseGenerator
virtual float Frequency [get, set]
 Gets or sets the oscillator frequency. More...
 
virtual float Amplitude [get, set]
 Gets or sets the oscillator frequency. More...
 
virtual double Phase [get, set]
 Gets or sets the oscillator phase. More...
 
virtual double Increment [get]
 Gets the oscillator increment. More...
 
virtual float CurrentSample [get, protected set]
 Gets or sets the oscillator current sample. More...
 
virtual float CurrentOctave [get, protected set]
 Gets or sets the oscillator current octave. More...
 
- Properties inherited from ATKSharp.Generators.IGenerator
float CurrentSample [get]
 Gets the current sample of this generator. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ATKSharp.Generators.BaseGenerator
 BaseGenerator (float initialFrequency=440f, float initialAmplitude=1f, double initialPhase=0)
 Initializes a new instance of the BaseGenerator class. More...
 
float WhichOctave (float[] lowestFreqList, float freq)
 Selects which ocatve. More...
 

Detailed Description

The WTSine class. Contains the functionality to generate a wavetable sine oscillator.

Constructor & Destructor Documentation

◆ WTSine()

ATKSharp.Generators.Oscillators.Wavetable.WTSine.WTSine ( float  initialFrequency = 440f,
float  initialAmplitude = 1f,
double  initialPhase = 0 
)

Initializes a new instance of the WTSine class.

Parameters
initialFrequencyThe initial frequency.
initialAmplitudeThe initial amplitude.
initialPhaseThe initial phase.

Member Function Documentation

◆ Generate()

override float ATKSharp.Generators.Oscillators.Wavetable.WTSine.Generate ( )
virtual

Generates a signal.

Returns
The signal.

Reimplemented from ATKSharp.Generators.BaseGenerator.

Property Documentation

◆ Increment

override double ATKSharp.Generators.Oscillators.Wavetable.WTSine.Increment
get

Gets the increment.


The documentation for this class was generated from the following file: