Google Summer of Code with Sugar Labs(week 4)
1 min readJul 3, 2024
Enhancing MIDI Import Support and Improving Functionality
As I progress further into my Google Summer of Code journey, Week 4 has been particularly productive. This week, my focus was primarily on refining the MIDI import support within Music Blocks, addressing various functionalities to improve user experience and functionality
- Note Value Approximation: Implementing note value approximation was crucial for accurately representing imported MIDI data within the system. This enhancement ensures that the nuances of timing and rhythm are faithfully preserved.
- Enhanced Visibility on Canvas: To enhance user interaction, I added offsets to action blocks. This adjustment significantly improves visibility on the canvas, making it easier for users to work with intricate musical arrangements.
- Testing and Bug Fixes: Tested the midi import with variety of midi file to identify and rectify bugs. This iterative process was instrumental in stabilizing the new functionalities and ensuring a seamless user experience.
- Action Block Management: Another significant improvement was the implementation of a feature to automatically break down sequences into multiple action blocks when the noteblock count exceeds 24.I also introduced a threshold feature. Now, when the number of noteblocks exceeds 100, Music Blocks displays a message notifying users that the “MIDI file is too large… generating only 100 noteblocks”.
You can find the “midi import” progress here :https://github.com/sugarlabs/musicblocks/pull/3904
Stay tuned for more updates as I continue to evolve and expand the capabilities of Music Blocks!