BGC Tools
Public Member Functions | Data Fields
BGC.Audio.ComplexCarrierTone Struct Reference

Double, Complex64-based description of a single carrier tone, for tone composition. More...

Collaboration diagram for BGC.Audio.ComplexCarrierTone:
Collaboration graph
[legend]

Public Member Functions

 ComplexCarrierTone (double frequency, Complex64 amplitude)
 
 ComplexCarrierTone (double frequency)
 
ComplexCarrierTone WithNewPhase (double newPhase)
 
ComplexCarrierTone RotatePhase (double rotator)
 
ComplexCarrierTone TimeShift (double deltaT)
 

Data Fields

readonly double frequency
 
readonly Complex64 amplitude
 

Detailed Description

Double, Complex64-based description of a single carrier tone, for tone composition.

Definition at line 10 of file ComplexCarrierTone.cs.

Constructor & Destructor Documentation

◆ ComplexCarrierTone() [1/2]

BGC.Audio.ComplexCarrierTone.ComplexCarrierTone ( double  frequency,
Complex64  amplitude 
)
inline

Definition at line 15 of file ComplexCarrierTone.cs.

16  {
17  this.frequency = frequency;
18  this.amplitude = amplitude;
19  }

◆ ComplexCarrierTone() [2/2]

BGC.Audio.ComplexCarrierTone.ComplexCarrierTone ( double  frequency)
inline

Definition at line 21 of file ComplexCarrierTone.cs.

References BGC.Mathematics.Complex64.FromPolarCoordinates().

22  {
23  this.frequency = frequency;
24  amplitude = 1.0;
25  }
Here is the call graph for this function:

Member Function Documentation

◆ RotatePhase()

ComplexCarrierTone BGC.Audio.ComplexCarrierTone.RotatePhase ( double  rotator)

◆ TimeShift()

ComplexCarrierTone BGC.Audio.ComplexCarrierTone.TimeShift ( double  deltaT)

◆ WithNewPhase()

ComplexCarrierTone BGC.Audio.ComplexCarrierTone.WithNewPhase ( double  newPhase)

Referenced by BGC.Audio.Stimuli.ClickStimulus.ConstructClick().

Here is the caller graph for this function:

Field Documentation

◆ amplitude

readonly Complex64 BGC.Audio.ComplexCarrierTone.amplitude

◆ frequency

readonly double BGC.Audio.ComplexCarrierTone.frequency

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