TEAMuP-dev / HARP

A sample editing application allowing for hosted, asynchronous, remote processing of audio with machine learning by routing through Gradio endpoints.
BSD 3-Clause "New" or "Revised" License
51 stars 3 forks source link

Support for MIDI models in HARP. #115

Closed cwitkowitz closed 3 months ago

cwitkowitz commented 6 months ago

Introduces basic support and display for Midi-to-Midi models along with a major cleanup of the underlying GUI components that control media display.

netlify[bot] commented 6 months ago

Deploy Preview for harp-plugin canceled.

Name Link
Latest commit d049f2d57c2de5be678d11318adb1361e40b03e7
Latest deploy log https://app.netlify.com/sites/harp-plugin/deploys/66a8f82b0145b200087eafdf
cwitkowitz commented 3 months ago

This should now be good to go. We just need to make sure we update the commit and branch for the pyharp submodule after https://github.com/TEAMuP-dev/pyharp/pull/15 is merged, and that we update the compatibility table in the README.

cwitkowitz commented 3 months ago

@xribene, @NathanPruyne, this branch has been rebased to the current main and can be merged if it all looks good to you guys. I also moved the undo/redo stuff to the MediaDisplayComponent class to decouple it from the model.

NathanPruyne commented 3 months ago

I'm currently having a failed build on Windows with:

C:\HARP\HARP\src\media\AudioDisplayComponent.h(100,1): error C4716: 'AudioDisplayComponent::getPlaybackPosition': must
return a value [C:\HARP\HARP\build-win\HARP.vcxproj]

Seems like the value isn't actually returned there explicitly (i.e. with "return"). I'll try to debug this and then pr a branch into this one, and also make sure it works on Linux with the fix.

NathanPruyne commented 3 months ago

Ok, that fix seems to have worked, and is in #192 . I think this is good to go!

Couple notes for improving the MIDI display in the future:

cwitkowitz commented 3 months ago

Nice catch @NathanPruyne. In terms of your comments on the MIDI display, I'm actually working on this right now in a separate branch (fc/pianoroll_improvements). I'm pretty much in agreement with what you're suggesting.