v1.0.4piano
ピアノ楽譜の学習に役立つユーティリティとウィジェット。
41いいね 13830日間ダウンロード120Pub ポイント
AndroidiOSWebmacOSWindowsLinux
ピアノのキーと楽譜を扱うためのFlutterパッケージ
{"sdk":"flutter"}^2.4.1^2.0.0^1.15.0^2.4.82.4.6{"sdk":"flutter"}以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。
A Flutter package that provides:
In "Learn The Notes", a simple sight reading trainer you can find on the iOS App Store here and macOS App Store here.
Example showing musical clef and interactive piano
Here's an example app:
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:piano/piano.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return CupertinoApp(
title: 'Piano Demo',
home: Center(
child: InteractivePiano(
highlightedNotes: [
NotePosition(note: Note.C, octave: 3)
],
naturalColor: Colors.white,
accidentalColor: Colors.black,
keyWidth: 60,
noteRange: NoteRange.forClefs([
Clef.Treble,
]),
onNotePositionTapped: (position) {
// Use an audio library like flutter_midi to play the sound
},
),
));
}
}