|
| 1 | +--- |
| 2 | +title: "DMP '25 Week 10 Update by Anvita Prasad" |
| 3 | +excerpt: "Improve Synth and Sample Feature for Music Blocks" |
| 4 | +category: "DEVELOPER NEWS" |
| 5 | +date: "2025-08-10" |
| 6 | +slug: "2025-08-10-DMP-25-AnvitaPrasad-week10" |
| 7 | +author: "@/constants/MarkdownFiles/authors/anvita-prasad.md" |
| 8 | +tags: "dmp25,sugarlabs,week10,AnvitaPrasad" |
| 9 | +image: "assets/Images/c4gt_DMP.webp" |
| 10 | +--- |
| 11 | + |
| 12 | +<!-- markdownlint-disable --> |
| 13 | + |
| 14 | +# Week 10 Progress Report by Anvita Prasad |
| 15 | + |
| 16 | +**Project:** [Music Blocks - Improve Synth and Sample Features](https://github.com/sugarlabs/musicblocks/issues/4539) |
| 17 | +**Mentors:** [Walter Bender](https://github.com/walterbender) |
| 18 | +**Assisting Mentors:** [Devin Ulibarri](https://github.com/pikurasa) |
| 19 | +**Reporting Period:** 2025-08-04 - 2025-08-10 |
| 20 | + |
| 21 | +--- |
| 22 | + |
| 23 | +## Goals for This Week |
| 24 | +- **Goal 1:** Implement multi-sample support for guitar and electric guitar instruments |
| 25 | +- **Goal 2:** Expand piano multi-sample coverage with additional samples |
| 26 | +- **Goal 3:** Establish consistent sample configuration structure across instruments |
| 27 | +- **Goal 4:** Test audio quality and range coverage for both instruments |
| 28 | +- **Goal 5:** Create testing framework for the respective instruments |
| 29 | + |
| 30 | +--- |
| 31 | + |
| 32 | +## This Week's Achievements |
| 33 | + |
| 34 | +1. **Guitar Multi-Sample Implementation** |
| 35 | + - Successfully created multi-sample configurations for both acoustic guitar and electric guitar with 10 samples each (A2, A4, B3, C5, D3, D4, E2, E5, F#3, F4) |
| 36 | + - Implemented instrument-specific sampling strategies optimized for string characteristics |
| 37 | + |
| 38 | +2. **Enhanced Piano Coverage** |
| 39 | + - Expanded piano multi-sample system from basic coverage to comprehensive 13-sample configuration (A1, A2, A3, A4, A5, A6, A7, C#2, C#3, C#4, C#5, C#6, C#8) covering nearly 8 octaves |
| 40 | + |
| 41 | +3. **Configuration Standardization** |
| 42 | + - Established consistent metadata structure including sample names, center notes, frequency mappings, and MIDI number associations |
| 43 | + - Created unified framework for multi-sample instrument integration |
| 44 | + |
| 45 | +4. **Testing Framework Development** |
| 46 | + - Built comprehensive testing framework for guitar and electric guitar sample validation |
| 47 | + - Implemented quality assurance protocols for audio sample consistency |
| 48 | + |
| 49 | +--- |
| 50 | + |
| 51 | +## Challenges & How I Overcame Them |
| 52 | + |
| 53 | +- **Challenge:** Initial samples had varying bit depths and sample rates causing audio artifacts |
| 54 | + **Solution:** Listened to each sample and edited them using Audacity to remove silence and normalize the samples for consistent quality |
| 55 | + |
| 56 | +- **Challenge:** Large File Size Issues - Base64 encoded samples were causing memory issues in the browser |
| 57 | + **Solution:** Optimized sample length to 2-3 seconds and implemented lazy loading patterns to load samples only when needed |
| 58 | + |
| 59 | +--- |
| 60 | + |
| 61 | +## Key Learnings |
| 62 | +- Gained experience with audio format conversion and optimization for JavaScript applications |
| 63 | +- Enhanced understanding of string instrument timbre characteristics and optimal sampling strategies |
| 64 | +- Learned importance of audio normalization and preprocessing for web-based audio applications |
| 65 | + |
| 66 | +--- |
| 67 | + |
| 68 | +## Next Week's Roadmap |
| 69 | +- Implement multi-sample support for wind instruments (flute, clarinet, oboe) |
| 70 | +- Develop cello multi-sample configuration for string section representation |
| 71 | +- Create automated testing suite for sample selection algorithm |
| 72 | +- Optimize performance and memory usage for large multi-sample libraries |
| 73 | +- Write week 11 blog post |
| 74 | + |
| 75 | +--- |
| 76 | + |
| 77 | +## Resources & References |
| 78 | +- **[Web Audio API Documentation](https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API)** |
| 79 | +- **[Audacity Audio Editor](https://www.audacityteam.org/)** |
| 80 | +- **Sample Sources:** [Philharmonia Orchestra](https://philharmonia.co.uk/resources/sound-samples/) |
| 81 | +- **Additional Samples:** [Freesound MTG Collection](https://freesound.org/people/MTG/) |
| 82 | + |
| 83 | +--- |
| 84 | + |
| 85 | +## Acknowledgments |
| 86 | +Thank you to my mentors, the Sugar Labs community, and fellow contributors for ongoing support. |
| 87 | + |
| 88 | +--- |
0 commit comments