-
-
Notifications
You must be signed in to change notification settings - Fork 10
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
mask creator? #5
Comments
hmm, I thought about that too, I think it might be challeging to make it fail proof though.. |
So I wrote a script to do exactly this; figured I might as well share in case anybody else would find it useful. syn2midi-maskmaker.bat It uses ffmpeg to extract frame of video, and imagemagick to quickly generate the BMP. Takes optional geometry parameters to accommodate for videos having keys lower or higher; I've included in the repo a reference image of what output should look like, and where to position the rectangle. You'll want it between all the keys due to how it works. Set the fuzz variable to a higher value than 5 if the white notes are darker (5-25 seems to be a good range). The way it works is by creating boundaries; it stacks left and right-shifted images and fills in the between parts. 2024-10-06_15-13-31.mp4Which finally looks like this. (shrunk PNG for preview sake; full size BMP is here) Let me know if any videos break it, so I can work on making it even more foolproof. And thanks again @minyor for writing this cool utility :) |
Hello, wow I didn't know we could write such complex bat scripts.. Cool :) |
Just a quik thought, I think, to make it even more foolproof, you could use some probability averaging. |
yow you should add an AI that automatically creates masks from the videos lol, like detects black keys and white keys
The text was updated successfully, but these errors were encountered: