MacOS executable and app of Piano transcription, which generates midi files with music using Machine Learning

PianoTranscription

MacOS executable and app of Piano transcription, which generates midi files with music using Machine Learning.

Install

Files and source code could be found in releases.

Note: If mac says the app was damaged / unknown developer, please go to System Preferences > Security & Privacy > General, and click Open Anyway. Show Details.

You might want to allow apps downloaded from Anywhere, by entering this into Terminal: sudo spctl --master-disable. Otherwise, mac would keep telling you that it cannot varify the developer. (As the app use a lots of third party programs, all of which included in Piano transcription)

Interface

Written with SwiftUI.

Note

If you quit the app during inference, you need to force quit PianoTranscription in Activity Monity manually, otherwise, the inference would not stop.

Portable Executable File

All the files are complied from Piano transcription.

This is a portable executable file, hence you do not need to install anything.

Download here.

Arguments:

--audio_path
--output_midi_path
--checkpoint_path
--cuda

checkpoint_path the path for the checkpoint file (from Piano transcription, download here).

Example:

PianoTranscription --audio_path='music.m4a' --output_midi_path='file.midi' --checkpoint_path='checkpoint.pth'

You might want to allow apps downloaded from Anywhere, by entering this into Terminal: sudo spctl --master-disable. Otherwise, mac would keep telling you that it cannot varify the developer.

If you want to build it yourself:

install pyinstaller > In your terminal,

pyinstaller example.py --collect-all piano_transcription_inference --collect-all torch --collect-all librosa --collect-all sklearn --collect-all scipy --collect-all audioread --collect-all numpy --collect-all mido

Note: example.py from Piano transcription.

Credits

GitHub

View Github