bevy_rustysynth
A plugin which adds MIDI file and soundfont audio support to the bevy engine via rustysynth.
From version 0.4, the crate has undergone significant rewrites, and now works with the default bevy_audio backend (bevy_audio feature) OR bevy_kira_audio (kira feature)
Compatibility
| Crate Version | Bevy Version |
|---|---|
| 0.6 | 0.16 |
| 0.5 | 0.15 |
| 0.2 | 0.14 |
Installation
crates.io
[]
= "0.6"
Usage
In main.rs:
use *;
use *;
Then you can load and play a MIDI like any other audio file:
bevy_audio Example
let midi_handle = asset_server.;
commands.spawn;
bevy_kira_audio Example
let midi_handle = asset_server.;
audio.play;
License
This crate is licensed under your choice of 0BSD, Apache-2.0, or MIT license.