private void ProcessNoteArpeggioSlow(PicoNote note) { var noteToPlay = new Note(ref _audioBuffer, _sampleRate, ref _oscillator, duration, note.volume, note.waveform, note.pitch, note.pitch, 0, 0); _notesToPlay.Enqueue(noteToPlay); }
private void ProcessNoteVibrato(PicoNote note) { Note noteToPlay = new Note(ref _audioBuffer, _sampleRate, ref _oscillator, duration, note.volume, note.waveform, note.pitch, note.pitch, 0, 0, true); _notesToPlay.Enqueue(noteToPlay); }
private void ProcessNoteNoEffect(PicoNote note) { Note noteToPlay = new Note(ref _audioBuffer, _sampleRate, ref _oscillator, duration, note.volume, note.waveform, note.pitch, note.pitch, _fadeIn, 0); _notesToPlay.Enqueue(noteToPlay); }
private void ProcessNoteSlide(PicoNote note) { int pitchFrom = _currentNote == 0 ? 32 : notes[_currentNote - 1].pitch; Note noteToPlay = new Note(ref _audioBuffer, _sampleRate, ref _oscillator, duration, note.volume, note.waveform, note.pitch, pitchFrom, _fadeIn, 0); _notesToPlay.Enqueue(noteToPlay); }