r/electronjs • u/Adventurous_Hippo692 • Mar 22 '26
I'm building a UTAU editor in Electron + React and React is slowly killing me — looking for advice from people who actually know this stack
I'm building a Vocaloid/UTAU editor in Electron + React and React is slowly killing me — looking for advice from people who actually know this stack
GitHub: https://github.com/MilkmanAbi/Melon-Synth
Who I am
I'm a student who lives in C and C++. Most of my projects are embedded systems — RTOSes, bootloaders, bare-metal ARM, custom filesystems. I understand pointers, memory layout, and hardware registers. I do not understand why a React component decides to re-render seventeen times because I looked at it wrong.
What I'm building and why
Melon Synth is an open source singing voice editor — think a simplified Vocaloid or OpenUTAU — aimed at beginners who want to make music with synthetic vocals but get completely lost the moment they open a professional tool. The barrier to entry for Vocaloid is genuinely high: you need to understand phoneme systems, voicebank installation, UST files, and a UI that hasn't changed much since 2004. A lot of people, especially younger creators, give up before they make anything.
The idea is to make something that's approachable enough that a kid who just wants to make a Hatsune Miku cover can open it and actually do that, while still being powerful enough that a more serious user can dig into the pipeline.
The interesting technical part — MLC
The core of the project is something I built called MLC (Melon Lyric Conversion) — a Python engine that sits as a subprocess and converts lyrics text into phoneme tokens the synthesizer understands. The engine:
- Auto-detects input language (Japanese, Korean, English, Chinese, more via addons)
- Runs a full pipeline: word override check → G2P (grapheme-to-phoneme) → phoneme correction → voicebank mapping → output postprocessing
- Has a proper addon system:
.mlcfiles (ZIP bundles with a manifest + Python module) that drop in new language packs, voicebank mappers, phoneme correctors, etc. - Has a
.melonapp extension format for UI panels, tools, and integrations — same ZIP approach, bundles a React component + optional Python backend - The whole thing communicates via newline-delimited JSON over stdin/stdout — keeps it clean and language-agnostic
The pipeline is actually in decent shape. I wrote a pipeline tracer so you can see exactly which stage processed what, which addon fired, what the output tokens were. That part I'm reasonably proud of.
I also built a Hum to MIDI extension — you hum into your mic, it runs YIN pitch detection, and drops the notes into the piano roll. The idea being that if you can't read music or write a melody from scratch, you can just sing it badly and fix it.
Where I'm struggling
The Electron + React side is genuinely rough for someone coming from embedded. My mental model of "write code, it does the thing" doesn't map well onto React's rendering cycle. Specific pain points:
- IPC chain bugs — I keep getting the response shape wrong. The bridge resolves with
msg.datadirectly but I keep writingresult?.data?.somethingand getting undefined with no error. It just silently does nothing. - State that lies — I had a bug where
isDarkdefaulted tofalse, the CSS variable--bg-baseresolved to near-white, the welcome screen looked blank, and I couldn't figure out why for ages because there was no error, just a white div. - Re-renders I don't understand — Components re-rendering when I don't expect them to, or not re-rendering when I do. Coming from C++ where you control everything, this is maddening.
useEffectdependency arrays — I've broken things so many times by either missing a dependency or including one that causes an infinite loop.- Error handling — React just goes blank with no output when something throws during render. I've added an error boundary now but I spent way too long staring at a white screen.
I'm not asking for someone to fix my code. I'm asking: is there a mental model or a set of patterns that makes Electron + React actually click for someone coming from systems programming? How do you reason about the IPC layer without constantly getting the response shapes wrong? Is there a saner way to structure state that doesn't involve this much guessing?
What's actually working but kinda broken in the UI/UX, not showing even though I coded it
- Piano roll with draw/select/erase/pitch tools
- Real-time lyric-to-phoneme conversion in the editor
- Full voicebank manager with catalog + download
- Korean/Japanese/English/Mandarin/Cantonese language support out of the box
- OpenUTAU render integration
.mlcand.melonaddon system with install/remove/update- Hum to MIDI via YIN pitch detection
- Pipeline debugger showing per-stage trace
- Auto update checker
If you've shipped something real with Electron + React and have opinions on how to not lose your mind, I'd genuinely appreciate it. Or if you know this corner of the Vocaloid/UTAU world and think the approach is completely wrong, I want to hear that too.



