mofu_synth Svelte Themes

Mofu_synth

๐Ÿฑ A cute Tauri desktop app that turns any YouTube song into 8-bit chiptune โ€” either by crushing the audio or re-synthesizing the actual notes with an ML model. Mofusand-themed.

Mofusand Synth icon

Mofusand Synth

๐Ÿฑ Paste a YouTube link, get 8-bit chiptune. A cute Tauri desktop app that converts songs into retro game music โ€” either by crushing the audio or by transcribing the actual notes and replaying them on chiptune oscillators.


โœจ Features

  • Two conversion modes
    • ๐ŸŽ› DSP Crush โ€” degrades the original recording in real time with a bitcrusher, lowpass filter, and sample-rate reducer. Tweak Bit Depth, Sample Rate, and Wave Crush live.
    • ๐ŸŽฎ True Chiptune โ€” uses Spotify's basic-pitch ML model to detect the notes in the song, then replays them on square / triangle / pulse / sawtooth oscillators. An actual 8-bit cover, not just lo-fi.
  • ๐ŸŽค Vocal removal โ€” center-channel cancellation for an instrumental mix
  • ๐ŸŒŠ Live oscilloscope โ€” watch the waveforms dance as they play
  • ๐Ÿ’พ WAV export โ€” save your creation via a native file dialog
  • ๐ŸŽ€ Mofusand-themed UI โ€” powder-blue hearts, cream card, gold filigree, cat ears

๐Ÿ›  Tech Stack

Desktop shell Tauri 2 (Rust)
Frontend SvelteKit + Svelte 5 (runes)
Audio Web Audio API (WaveShaper, AudioWorklet, OfflineAudioContext, OscillatorNode)
Note transcription @spotify/basic-pitch + TensorFlow.js
YouTube download yt-dlp

๐Ÿ“ฆ Prerequisites

  • Rust + Cargo
  • Node.js 18+
  • yt-dlp on your PATH (winget install yt-dlp.yt-dlp)
  • ffmpeg on your PATH (yt-dlp uses it to extract audio)

๐Ÿš€ Development

npm install
npm run tauri dev

๐Ÿ— Build a desktop installer

npm run tauri build

Installers land in src-tauri/target/release/bundle/ (.msi / .exe on Windows).

Note: the built app calls yt-dlp and ffmpeg from the system PATH. To distribute to machines that don't have them, bundle them as Tauri sidecar binaries.

๐Ÿง  How it works

YouTube URL โ†’ Rust (yt-dlp) โ†’ audio bytes โ†’ Web Audio API
   DSP mode:      bitcrusher โ†’ lowpass โ†’ downsampler โ†’ speakers
   Chiptune mode: basic-pitch โ†’ notes โ†’ oscillator synthesis โ†’ speakers
โ†’ OfflineAudioContext render โ†’ WAV export

See docs/ARCHITECTURE.md for the full breakdown.

โš ๏ธ Disclaimer

This is a personal, non-commercial hobby project made for fun and learning.

  • Mofusand characters and artwork are the property of their creator (ยฉmofusand). The icon is fan-use only; this project is not affiliated with, endorsed by, or sponsored by the Mofusand brand. If you fork or redistribute this, please replace the icon with your own art.
  • Downloading content from YouTube may conflict with YouTube's Terms of Service and copyright law. Use this tool only with content you have the right to download, and keep outputs to personal use.

๐Ÿ“„ License

No license yet โ€” all rights reserved by default. Add one (e.g. MIT) if you intend to open-source it.

Top categories

Loading Svelte Themes