What is Mini Synth?

Mini Synth is a simple Tone.js synthesizer built with SvelteKit. It runs in all major browsers and was designed to provide Ugandan refugees with a tool to create music digitally.

Launch the production website or learn more about this project in my portfolio.


Technical Overview

Mini Synth is built using SvelteKit, mostly written in TypeScript, and styled with Dart Sass. The production site is deployed using Vercel. All audio capabilities are built using Tone.js and all songs are stored using IndexedDB with Dexie.js.

Getting Started

To run the code locally, you must have Node.js installed. Then, run the following in a terminal in this project's root directory:

# this will install all dependencies
npm i

# this will start a development server and open the app in a new browser tab
npm run dev -- --open

Commit Messages

Commit messages are prefixed with the following labels to make them easier to read:

  • ♿️A11Y: accessibility
  • πŸ”§CNFG: configuration
  • πŸ’„CSS: styling (CSS or SCSS)
  • πŸ“DES: design
  • πŸ“DOC: documentation
  • πŸ›FIX: bug fix
  • 🟠SVLT: Svelte and SvelteKit
  • 🚧WIP: work in progress (broken/partial code)
  • πŸŽ‰RLS: new release

Architecture

This repository is separated into the designs, src, and static directories, along with a few top-level files.

designs
β”œβ”€β”€ MiniSynth-GitHub-banner.jpg                GitHub banner image
β”œβ”€β”€ MiniSynth-GitHub-socialPreview.jpg         GitHub social preview image
└── miniSynth-UIconcepts-1.ai                  Illustrator file with all assets

src
β”œβ”€β”€ lib                         libaray of Svelte components
β”‚   β”œβ”€β”€ SVGs                    all icon SVGs
β”‚   β”œβ”€β”€ BPMslider.svelte        cassette BPM slider and adjustment buttons (synth)
β”‚   β”œβ”€β”€ cassetteHeader.svelte   cassette header section (synth)
β”‚   β”œβ”€β”€ controls.svelte         cassette player controls (synth)
β”‚   β”œβ”€β”€ envLi.svelte            enviroment list item (info page)
β”‚   β”œβ”€β”€ footer.svlete           footer (index and info page)
β”‚   β”œβ”€β”€ helpers.ts              helper functions
β”‚   β”œβ”€β”€ indexHeader.svelte      header section (index page)
β”‚   β”œβ”€β”€ keyboard.svelte         piano keyboard for melody input (synth)
β”‚   β”œβ”€β”€ keyboardControls.svelte three buttons that scroll keyboard (synth)
β”‚   β”œβ”€β”€ reels.svelte            contrainer for melody and beats tapes (synth)
β”‚   β”œβ”€β”€ searchBar.svelte        search bar (index page)
β”‚   β”œβ”€β”€ songLi.svelte           song list item (index page)
β”‚   β”œβ”€β”€ soundboard.svelte       soundboard for beats input (synth)
β”‚   β”œβ”€β”€ synth.svelte            main synthesizer (song and demo page)
β”‚   └── tape.svelte             tape (reels)
β”‚
β”œβ”€β”€ routes                      all Svelte file for different pages of the web app
β”‚   β”œβ”€β”€ demo\[slug]
β”‚   β”‚   └── +page.svelte        dynamic demo page that loads the [slug] demo song
β”‚   β”‚
β”‚   β”œβ”€β”€ info
β”‚   β”‚   └── +page.svelte        info page
β”‚   β”‚
β”‚   β”œβ”€β”€ song\[slug]
β”‚   β”‚   └── +page.svelte        dynamic song page that loads the [slug] song
β”‚   β”‚
β”‚   β”œβ”€β”€ +layout.svelte          layout file (applied to all pages)
β”‚   └── +page.svelte            index page
β”‚
β”œβ”€β”€ storage
β”‚   β”œβ”€β”€ db.ts                   Dexie database (IndexedDB)
β”‚   └── store.ts                Svelte stores (state management)
β”‚
β”œβ”€β”€ styles                      global styling
β”‚   β”œβ”€β”€ _colors.scss            sass map with all colors
β”‚   β”œβ”€β”€ _index.scss             fowards all partial SCSS files in this folder
β”‚   β”œβ”€β”€ _variables.scss         CSS & SCSS variables
β”‚   β”œβ”€β”€ global.scss             global styles
β”‚   β”œβ”€β”€ resets.scss             style resets
β”‚   └── typeface.scss           typeface imports
β”‚
β”œβ”€β”€ app.d.ts                    type definitions
└── app.html                    main HTML

static
β”œβ”€β”€ audio                       audio samples
β”œβ”€β”€ icons                       web manifest icons
β”œβ”€β”€ typefaces                   typeface files
β”œβ”€β”€ app.webmanifest             web manifest
β”œβ”€β”€ *.png                       favicons and icons
└── og-image-1.jpg              Open Graph image

Top categories

Loading Svelte Themes