C# 클래스 LitDev.LDWaveForm

파일 보기 프로젝트 열기: litdev1/LitDev

공개 프로퍼티들

프로퍼티 타입 설명
bLoop bool

공개 메소드들

메소드 설명
PlayDX7 ( Primitive channels ) : Primitive

Play DX7.

PlayHarmonics ( Primitive frequency, Primitive duration, Primitive harmonics ) : Primitive

Play a user defined wave form as a sum of harmonics.

PlaySineWave ( Primitive frequency, Primitive duration ) : Primitive

Play a Sine wave form.

PlaySquareWave ( Primitive frequency, Primitive duration ) : Primitive

Play a square wave form.

PlayWavFile ( Primitive fileName, Primitive duration ) : Primitive

Play a wav file.

PlayWave ( Primitive frequency, Primitive duration, Primitive waveform ) : Primitive

Play a user defined wave form.

Stop ( Primitive waveName ) : void

Stop a playing sound.

비공개 메소드들

메소드 설명
DoPlay ( Object obj ) : void
Initialise ( ) : void
NextName ( ) : string
_Play ( double frequency, double duration, int iType ) : string
_PlayDX7 ( Primitive channels ) : string
_PlayHarmonics ( double frequency, double duration, Primitive harmonics ) : string
_PlayWavFile ( string fileName, double duration ) : string
_PlayWave ( double frequency, double duration, Primitive waveform ) : string

메소드 상세

PlayDX7() 공개 정적인 메소드

Play DX7.
public static PlayDX7 ( Primitive channels ) : Primitive
channels Primitive An array of values for each channel (values between 0 and 1, usually 8 channels).
리턴 Primitive

PlayHarmonics() 공개 정적인 메소드

Play a user defined wave form as a sum of harmonics.
public static PlayHarmonics ( Primitive frequency, Primitive duration, Primitive harmonics ) : Primitive
frequency Primitive Frequency (HZ).
duration Primitive Duration (ms). If this is negative then the waveform is repeated (-duration) times.
harmonics Primitive Harmonic amplitudes. /// This is an array, where the index is a harmonic multiple of the base frequency (2, 3, etc) and the value is the relative amplitude of the harmonic. /// A square wave can be formed by (https://en.wikipedia.org/wiki/Square_wave): /// For i = 3 To 21 Step 2 /// harmonics[i] = 1/i /// EndFor /// squareWave = LDWaveForm.PlayHarmonics(256,1000,harmonics)
리턴 Primitive

PlaySineWave() 공개 정적인 메소드

Play a Sine wave form.
public static PlaySineWave ( Primitive frequency, Primitive duration ) : Primitive
frequency Primitive Frequency (HZ).
duration Primitive Duration (ms). If this is negative then the waveform is repeated (-duration) times.
리턴 Primitive

PlaySquareWave() 공개 정적인 메소드

Play a square wave form.
public static PlaySquareWave ( Primitive frequency, Primitive duration ) : Primitive
frequency Primitive Frequency (HZ).
duration Primitive Duration (ms). If this is negative then the waveform is repeated (-duration) times.
리턴 Primitive

PlayWavFile() 공개 정적인 메소드

Play a wav file.
public static PlayWavFile ( Primitive fileName, Primitive duration ) : Primitive
fileName Primitive The *.wav file.
duration Primitive Duration (ms). If this is negative then the waveform is repeated (-duration) times.
리턴 Primitive

PlayWave() 공개 정적인 메소드

Play a user defined wave form.
public static PlayWave ( Primitive frequency, Primitive duration, Primitive waveform ) : Primitive
frequency Primitive Frequency (HZ).
duration Primitive Duration (ms). If this is negative then the waveform is repeated (-duration) times.
waveform Primitive Form for the repeating wave. /// This is an array, where the index is an increasing relative time (the actual value is normalised to the frequency) and the value is an amplitude (-1 to 1). /// Example of a triangular wave would be "0=-1;1=1;2=-1;"
리턴 Primitive

Stop() 공개 정적인 메소드

Stop a playing sound.
public static Stop ( Primitive waveName ) : void
waveName Primitive The sound wave name.
리턴 void

프로퍼티 상세

bLoop 공개적으로 정적으로 프로퍼티

public static bool bLoop
리턴 bool