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); }
public Voice(AudioSynth.Waveform waveform) { Oscillator = new Oscillator(440, waveform); ADSR = new EnvelopeADSR(0.01, 0, 1, 0.02); }