Esempio n. 1
0
 public Voice(AudioSynth.Waveform waveform, double attack, double decay, float sustain, double release)
 {
     Oscillator = new Oscillator(440, waveform);
     ADSR       = new EnvelopeADSR(attack, decay, sustain, release);
 }
Esempio n. 2
0
 public Voice(AudioSynth.Waveform waveform)
 {
     Oscillator = new Oscillator(440, waveform);
     ADSR       = new EnvelopeADSR(0.01, 0, 1, 0.02);
 }