flutter_virtual_piano 0.0.9 copy "flutter_virtual_piano: ^0.0.9" to clipboard
flutter_virtual_piano: ^0.0.9 copied to clipboard

A package for rendering an interactive virtual piano with Flutter.

A virtual piano for flutter, that renders the keys of a piano and with support for interaction and highlighting.

Features #

Keys are based on MIDI note values so middle C (4) is 63. Key callback are onNoteReleased, onNotePressed and onNotePressSlide. onNoteReleased and onNotePressSlide has two arguments, the relevant note and the vertical position of the touch/slide on the key. The latter can be used for simulating variable velocity or polyphonic aftertouch.

Usage #

VirtualPiano(
  noteRange: const RangeValues(21, 108),
  highlightedNoteSets: const [
    HighlightedNoteSet({44, 55, 77, 32}, Colors.green),
  ],
  onNotePressed: (note, pos) {
    // Play note
  },
)
11
likes
130
pub points
73%
popularity

Publisher

verified publisherinvisiblewrench.com

A package for rendering an interactive virtual piano with Flutter.

Homepage

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_virtual_piano