|
| 1 | +--- |
| 2 | +title: "GSoC '25 Week 2 Update by Shubham Singh" |
| 3 | +excerpt: "Adding the entire prototyped interface ON TO the music blocks" |
| 4 | +category: "DEVELOPER NEWS" |
| 5 | +date: "2025-06-14" |
| 6 | +slug: "2025-06-14-gsoc-25-firepheonix-week02" |
| 7 | +author: "@/constants/MarkdownFiles/authors/shubham-singh.md" |
| 8 | +tags: |
| 9 | + - gsoc25 |
| 10 | + - sugarlabs |
| 11 | + - week02 |
| 12 | + - firepheonix |
| 13 | +image: "assets/Images/GSOC.png" |
| 14 | +--- |
| 15 | + |
| 16 | +<!-- markdownlint-disable --> |
| 17 | + |
| 18 | +# Week 2 Progress Report by Shubham Singh |
| 19 | + |
| 20 | +**Project:** [Color Sensor for Music Blocks](https://github.com/sugarlabs/musicblocks/issues/4537) |
| 21 | +**Mentors:** [Devin Ulibarri](https://github.com/pikurasa), [Walter Bender](https://github.com/walterbender) |
| 22 | +**Reporting Period:** 2025-06-08 – 2025-06-15 |
| 23 | + |
| 24 | +--- |
| 25 | + |
| 26 | +## Goals for This Week |
| 27 | + |
| 28 | +- Basic UI for Image Upload/Real-time Video upload and adjustment. |
| 29 | +- Integrating the developed UIs onto the widget blocks within Music Blocks. |
| 30 | +- Researching existing audio integration patterns in the phrase maker and note blocks. |
| 31 | + |
| 32 | +--- |
| 33 | + |
| 34 | +## This Week's Achievements |
| 35 | + |
| 36 | +1. **Interface Implementation for Lego Notations** |
| 37 | + - Successfully integrated the LegoBricks block directly onto the Music Blocks canvas. |
| 38 | + - Modified 6 different files to implement an entirely new block type. |
| 39 | + - Music Blocks already has sophisticated color detection for internal pixels, but couldn't detect colors from external sources like uploaded images or webcam feeds — this limitation was addressed. |
| 40 | + - The codebase proved beautifully encapsulated and thoroughly documented, making the learning curve smoother. |
| 41 | +  |
| 42 | + |
| 43 | +2. **Real-time Video Integration** |
| 44 | + - Implemented real-time video functionality through webcam integration. |
| 45 | + - Added full editing capabilities and canvas manipulation for live video feeds. |
| 46 | + - Interface provides seamless interaction between video feed and detection algorithms. |
| 47 | +  |
| 48 | + |
| 49 | +3. **Export Mechanism Research** |
| 50 | + - Conducted extensive research into existing export mechanisms within Music Blocks. |
| 51 | + - Deep-dived into Phrase Maker widget documentation and codebase. |
| 52 | + - Studied how different blocks export output as both MIDI files and action blocks. |
| 53 | +  |
| 54 | + |
| 55 | +--- |
| 56 | + |
| 57 | +## Challenges & How I Overcame Them |
| 58 | + |
| 59 | +- **Challenge:** UI integration complexity — getting the UI integrated into Music Blocks proved more challenging than expected due to intricate dependencies and specific implementation patterns required by the block system. |
| 60 | +**Solution:** Leveraged multiple resources including mentor consultations, existing documentation on "how to add new blocks," and analyzed previous implementations for reference patterns. |
| 61 | + |
| 62 | +- **Challenge:** User workflow design — determining optimal user workflow for the Lego Bricks block required careful consideration of user interaction patterns and integration with existing functionality. |
| 63 | +**Solution:** Scheduled focused discussion with mentor during regular meeting to analyze phrase maker export functionality, gaining crucial insights into user experience patterns and technical approaches. |
| 64 | + |
| 65 | +--- |
| 66 | + |
| 67 | +## Key Learnings |
| 68 | + |
| 69 | +- Gained comprehensive understanding of **output mechanisms** and how different blocks handle their output generation and processing. |
| 70 | +- Deepened appreciation for **code architecture** including inheritance patterns, code modularity, and custom return types within the Music Blocks ecosystem. |
| 71 | +- Improved skills in **development workflow** including exports, imports, code reusability, documentation practices, and collaborative development workflows. |
| 72 | + |
| 73 | +--- |
| 74 | + |
| 75 | +## Next Week's Roadmap |
| 76 | + |
| 77 | +- Implement comprehensive mapping of musical notes to Lego brick colors. |
| 78 | +- Complete the core implementation during weeks 2 and 3, ensuring robust functionality and thorough testing. |
| 79 | +- Focus on algorithmic challenges for note-to-color mapping system. |
| 80 | + |
| 81 | +--- |
| 82 | + |
| 83 | +## Resources & References |
| 84 | + |
| 85 | +- **Project Issue:** [Color Sensor for Music Blocks](https://github.com/sugarlabs/musicblocks/issues/4537) |
| 86 | +- **Music Blocks Repository:** [sugarlabs/musicblocks](https://github.com/sugarlabs/musicblocks) |
| 87 | +- **Documentation:** Music Blocks Developer Guide |
| 88 | + |
| 89 | +--- |
| 90 | + |
| 91 | +## Acknowledgments |
| 92 | + |
| 93 | +Thank you to my mentors [Walter Bender](https://github.com/walterbender) and [Devin Ulibarri](https://github.com/pikurasa) for invaluable guidance throughout this development phase. Special thanks to Walter for his advice during our biweekly meeting on how the phrase maker exports output as ACTION blocks. |
| 94 | + |
| 95 | +--- |
0 commit comments