spotify / basic-pitch-ts Goto Github PK
View Code? Open in Web Editor NEWA lightweight yet powerful audio-to-MIDI converter with pitch bend detection.
Home Page: https://basicpitch.io
License: Apache License 2.0
A lightweight yet powerful audio-to-MIDI converter with pitch bend detection.
Home Page: https://basicpitch.io
License: Apache License 2.0
As a caption
I think it would better to have some show case / references implementation about how to use this module .
for example, if would be great if the official one can be open sourced
Hi is there any documentation to start contributing to this interesting project ?
My goal is to try adapt it to real time audio2midi.
I would like to understand better the application flow with some description of the functions and input and output parameters without interpreting all the code.
For example :
Do you have some performance numbers for the model.execute call in ms (single batch) ?
Thx a lot
This library is amazing! However, when it's processing it locks up the UI so animations stop and buttons are not clickable.
I was wondering if I could put this in a service worker and am not sure if that has been done before.
The first problem is that a service worker can't import files and I can't figure out how to have my service worker use files in node_modules
. I'm guessing I'll need a build step.
I was wondering if there were already a build option in this library for being able to load it the using a single <script>
tag, because I think I'd be able to use that in my service worker. I didn't see that.
So I think I might need to write that, which I'll try to do but I'm not sure if I can.
Also I'm not sure if that will even work since there are two other files that get loaded in (the bin and the json files) and I'm not sure if that will work inside the service worker.
Any pointers you can give while I flail away at this would be appreciated.
Thanks!
In what units are the values given in the pitchBend array on a note event?
In my experiments, I'm seeing values like 0, -1, 1, 2, 4, and 5. I see from the other basic pitch repo an issue that seems to suggest these values are semitones, but numbers like 4 and 5 make that seem odd. Further, I'm not seeing any non-integer values, meaning that if we're in semitones, the resolution of this library doesn't consider cents, which also seems odd.
Hoping for some clarification, thank you!
Hi everyone ๐
Documentation say: "While you may use stereo audio as an input to our model, at prediction time, the channels of the input will be down-mixed to mono, and then analyzed and transcribed."
I'm trying to get stereo audio notes using basic-pitch and I got this error:
Error: Input audio buffer is not mono! Number of channels is 2. Should be 1
Why this happens?
Hey all, amazing library. As I was setting it up I ran into:
It looks like the onsets, frames, and contours, get defined. Pct is 1 as well after await basicPitch.evaluateModel
. The problem i'm running into is after the model runs noteFramesToTime(addPitchBendsToNoteEvents()))
keep throwing errors. I was wondering if ya'll had run into this by any chance? It seems to be happening around toMidi && globalMax
.
I'm using NextJs and typescript as well. I verified that my audioRecording was a mono recording and set to the correct sampleRate.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.