mikeperri / flutter_sequencer

A Flutter plugin for music sequencing.
Other
90 stars 38 forks source link

Add reverb and pitch effects to playing note #27

Closed postacik closed 2 years ago

postacik commented 2 years ago

Hi, The flutter_midi plugin is not fast enough for playing single notes from an sf2 file (there's a huge of amount of delay) so I'm using your plugin with the following functions:

_selectedTrack?.startNoteNow(noteNumber: noteNumber, velocity: velocity);
_selectedTrack?.stopNoteNow(noteNumber: noteNumber);

And this plugin is super fast, thank you for your great work.

I use a midi keyboard with a pitch wheel and when I experiment with the wheel, I get pitch values between 0 (lowest) and 127 (highest).

So I assumed that, I can change the pitch of the playing note (triggered with startNoteNow() function) using the following function:

_selectedTrack?.midiPitchBendNow(value: (pitch - 64) / 64);

I assume the value parameter should be between -1 and 1.

However it has no effect on the playing note.

Can you please help about this function?

And is it also possible to apply reverb to the playing note?