Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using basic-pitch in an iOS application #61

Open
adamjuls opened this issue Feb 22, 2023 · 3 comments
Open

Using basic-pitch in an iOS application #61

adamjuls opened this issue Feb 22, 2023 · 3 comments

Comments

@adamjuls
Copy link

Hi,

I would like to use basic-pitch in an iOS mobile application. It seems that it is possible to convert the model into a tflite. format, but I am stuck trying to change the output into MIDI notes. Can someone help me with suggesting Pretty MIDI alternatives that work well with the basic pitch model for Swift?

@martingasser
Copy link

It shouldn't be too hard to port the Python code that converts the model outputs to notes (

def model_output_to_notes(
) to Swift, you could even try using a numpy-like library like https://github.com/jjjkkkjjj/Matft.

I did the same thing in C++ using the xtensor library and using onnxruntime for model inference, works great.

@adamjuls
Copy link
Author

Thank you for answering my question @martingasser . By any chance is your C++ implementation open source?

@e7mac
Copy link

e7mac commented Jan 24, 2024

@adamjuls did you end up making this work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants