Play music notes in rust

Hello,
I am actually searching a crate to play notes.
Like:
Piano::play(Note::C)
Thanks for your response.
Ccgauche.

2 Likes

A search over crates.io shows something like piston-music.

Have you got an example because the documentation says nothing about playing notes.

That crate will allow you to play back music or sound files, but it does not have tones hard coded. I think you are looking for something like synth, but look at the issues as there is a dependency to do with portaudio that keeps it from building currently. You might also look at hum.