{"id":15531169,"url":"https://github.com/rodydavis/flutter_midi","last_synced_at":"2025-09-02T15:31:23.799Z","repository":{"id":45398460,"uuid":"233691866","full_name":"rodydavis/flutter_midi","owner":"rodydavis","description":"Midi Playback in Flutter","archived":false,"fork":false,"pushed_at":"2024-03-10T10:44:15.000Z","size":13376,"stargazers_count":62,"open_issues_count":29,"forks_count":56,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-24T00:10:28.229Z","etag":null,"topics":["dart","flutter","midi","midi-player","music"],"latest_commit_sha":null,"homepage":"https://rodydavis.github.io/flutter_midi/","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rodydavis.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-01-13T20:56:07.000Z","updated_at":"2024-11-26T08:53:07.000Z","dependencies_parsed_at":"2024-06-21T13:08:38.224Z","dependency_job_id":null,"html_url":"https://github.com/rodydavis/flutter_midi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodydavis%2Fflutter_midi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodydavis%2Fflutter_midi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodydavis%2Fflutter_midi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rodydavis%2Fflutter_midi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rodydavis","download_url":"https://codeload.github.com/rodydavis/flutter_midi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231797621,"owners_count":18428059,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","flutter","midi","midi-player","music"],"created_at":"2024-10-02T11:25:05.606Z","updated_at":"2024-12-29T23:44:36.965Z","avatar_url":"https://github.com/rodydavis.png","language":"Swift","funding_links":["https://www.buymeacoffee.com/rodydavis","https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=WSH3GVC49GNNJ"],"categories":[],"sub_categories":[],"readme":"[![Buy Me A Coffee](https://img.shields.io/badge/Donate-Buy%20Me%20A%20Coffee-yellow.svg)](https://www.buymeacoffee.com/rodydavis)\n[![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=WSH3GVC49GNNJ)\n![github pages](https://github.com/rodydavis/flutter_midi/workflows/github%20pages/badge.svg)\n[![GitHub stars](https://img.shields.io/github/stars/rodydavis/flutter_midi?color=blue)](https://github.com/rodydavis/flutter_midi)\n[![flutter_midi](https://img.shields.io/pub/v/flutter_midi.svg)](https://pub.dev/packages/flutter_midi)\n\n# flutter_midi\n\nA FLutter Plugin to Play midi on iOS and Android. This uses SoundFont (.sf2) Files.\n\nOnline Demo: https://rodydavis.github.io/flutter_midi/\n\n## Installation\n\nDownload a any sound font file, example: `sound_font.SF2` file.\n\nCreate an /assets folder and store the .sf2 files\n\nUpdate pubspec.yaml\n\n``` ruby\nassets:\n   - assets/sf2/Piano.SF2\n   - assets/sf2/SmallTimGM6mb.sf2\n```\n \nLoad the sound font to prepare to play;\n\n```dart\n @override\n  void initState() {\n    load('assets/sf2/Piano.SF2');\n    super.initState();\n  }\n  \n void load(String asset) async {\n    FlutterMidi.unmute(); // Optionally Unmute\n    ByteData _byte = await rootBundle.load(asset);\n    FlutterMidi.prepare(sf2: _byte);\n  }\n```\n\nPlay and Stop the Midi Notes\n\n```dart\n FlutterMidi.playMidiNote(midi: 60);\n FlutterMidi.playMidiNote(midi: 60, velocity: 120);\n\n FlutterMidi.stopMidiNote(midi: 60);\n FlutterMidi.stopMidiNote(midi: 60, velocity: 120);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodydavis%2Fflutter_midi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frodydavis%2Fflutter_midi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frodydavis%2Fflutter_midi/lists"}