Skip to content
This repository was archived by the owner on Mar 29, 2026. It is now read-only.

Repository files navigation

This Repo is now archived, please use the appstore version, and report issues here.

PianoTranscription

Generates midi tracks on Piano from music using Machine Learning. This is the macOS executable and app of Piano transcription

Install

Please use the App Store Version, which uses CoreML instead of PyTorch.

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.

Interface

Written with SwiftUI.

Screen Shot 2022-03-16 at 7 03 43 PM

Example

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.

Arguments:

--audio_path: The path for the source.
--output_midi_path: The path for the destination.
--checkpoint_path: The path for checkpoint file

the checkpoint file can be obtained from Piano transcription

Additional Arguments:

These arguments are optional

--cuda: A boolean value determining whether gpu should be used.
--onsetThreshold
--offsetThreshold
--frameThreshold
--padelOffsetThreshold
--batchSize

Example:

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

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: You would find the files in Build Files helpful

Credits

About

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

Topics

Resources

Stars

11 stars

Watchers

1 watching

Forks

Releases

Used by

Contributors

Languages