Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        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);
        }