搜索插件、代码仓与 APP 分类

piano 封面
插件详情v1.0.4

piano

用于钢琴乐谱学习的实用工具和小部件。

AndroidiOSWebmacOSWindowsLinux
近 30 天下载
108
喜欢数
41
Pub 分数
30

安装插件

flutter pub add piano

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

钢琴包提供了一系列工具和小部件,旨在支持学习钢琴乐谱。它提供了交互式组件,用于显示和参与音乐记谱法,使用户能够可视化音符、练习节奏并提高识谱能力。该包基于 Flutter 构建,可无缝集成到移动、网页和桌面平台,非常适合专注于音乐教育的教育应用程序。该包轻量且可定制,有助于开发者创建直观的钢琴学习体验。

适合场景

  • 交互式乐谱显示
  • 钢琴音符识别
  • 音乐教育应用
  • 练习计时器集成
  • 实时反馈系统

主要特点

  • 注意可视化
  • 跨平台兼容性
  • 可自定义的 UI 小部件
  • 支持MIDI输入
  • 与 Flutter 渲染引擎的集成

适合对象

  • 音乐教育工作者
  • 应用开发者
  • 学习钢琴的学生
  • 教育软件创作者

使用建议

  • 需要了解音乐记谱法
  • 仅限钢琴相关内容
  • 依赖外部MIDI或输入源
  • 最适合结构化学习环境

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Piano

A Flutter package that provides:

  • logic for working with musical notes, clefs and octaves;
  • a widget that can render notes on a clef;
  • an interactive piano widget.

Where is it used?

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

How do I use it?

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
            },
          ),
        ));
  }
}

More like this

  • I blog about Flutter here: https://handform.net/
  • I'm on LinkedIn: https://www.linkedin.com/in/craigbmcmahon/

所属分类

依赖

依赖清单 3 项

源码仓库

使用此插件的项目

暂无相关数据。