public Sequencer(SynthEngine synthEngine, TrackInfo trackInfo) { InitializeComponent(); this.synthEngine = synthEngine; this.trackInfo = trackInfo; if (this.trackInfo.BPM == 0) { this.trackInfo.BPM = tb_BPM.Value * 4; } }
private void InitAudio() { synthEngine = new SynthEngine(48000, 32) { Amplitude = 0.1f }; trackInfo = new TrackInfo(); audioOutput = new AsioOut(); audioOutput.Init(synthEngine); audioOutput.Play(); }
public Synthesizers(SynthEngine synthEngine) { InitializeComponent(); noiseMakingUtils = new NoiseMakingUtils(); this.synthEngine = synthEngine; Osc1_waveform.SelectedIndex = 0; Osc2_waveform.SelectedIndex = 0; Osc3_waveform.SelectedIndex = 0; LFO_Waveform.SelectedIndex = 0; FilterType.SelectedIndex = 0; }
public PianoRoll(SynthEngine synthEngine) { InitializeComponent(); this.synthEngine = synthEngine; }