-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
MIDITrackView does too much work in body #46
Comments
Yeah I made some improvements to the code which is available on my repo emurray2/SimpleMIDI . I can create a model which is injected into the view and only created once. That way there won't be multiple sequencers. |
@wtholliday What do you think about the new model? If you see any improvements to be made, please let me know. I'm a beginner still when it comes to MVVM, and I appreciate any feedback you have to offer. I'll start working on #47 this weekend when I get home for spring break. |
Hey @emurray2 , it looks like we could do some more work on it. I'll have to look in greater detail at some point, but it looks like it's still effectively doing the same work, just now here:
I also don't think it needs separate per-platform implementations. Should be entirely doable with SwiftUI, especially if we can use Canvas. |
Hi Taylor, thank you for taking the time to help me with this. As I mentioned, I really appreciate your feedback, especially since I don't know much about drawing graphics and SwiftUI yet. I see what you mean now by everything being moved to the |
This commit fixes AudioKit/AudioKitUI#46 and AudioKit/AudioKitUI#47. Rewrote the MIDITrackView entirely in SwiftUI, used `drawingGroup()` to render one path layer for the notes to improve drawing efficiency and created MIDITrackViewModel to store note rectangles and track properties for drawing.
It creates an AppleSequencer and reads files. Need to create a
MIDITrackViewModel
to store that.The text was updated successfully, but these errors were encountered: