A playable music application consisting of an interactive user interface that triggers synthesizer instruments in realtime.
- customizable keyboard layout
- customizable synth voices
- controlled with mouse actions on computer with keyboard
- controlled with touch on touch devices
- fullscreen
- settings interface
- colours are choosable
- settings are remembered for next visit
- fully web browser compatible
- Screen resizes if window is resized
- vertical or horizontal key layout
- 3D view !!
- outputs midi signals
- change scales and tunings
- arpeggiator
- add more instruments
- add expressive controls over synth voices with after touch.
- multitouch
- gesture control
- add percussion backing tracks
- record actions and playback
- record output to audio file
- add particle effects and visualizations
- if hosting on github,
- i.e.,
- USERNAME.github.io/REPO_NAME
- https://zeukterialpneumaion.github.io/the-instrument/
Step 1: Initialize Git Repository
Run the following commands to initialize a git repository in your Vite app and push your existing code to a remote repository on GitHub.
-
$ git init
-
$ git add .
-
$ git commit -m "initial-commit"
-
$ git branch -M main
-
$ git remote add origin http://github.com/{username}/{repo-name}.git
-
$ git push -u origin main
Step 2: Update vite.config.js
-
Add the base URL in this file by setting the base as “/{repo-name}/”.
-
For example, if your repository’s name is book-landing-page then set the base like this:
import { defineConfig } from 'vite' import react from '@vitejs/plugin-react'
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
base: "/book-landing-page/"
})
Step 3: Install gh-pages
-
Install gh-pages package as a dev dependency.
-
npm install gh-pages --save-dev
-
Step 4: Update package.json
-
Update package.json with the following predeploy and deploy scripts.
"scripts": {
"predeploy" : "npm run build",
"deploy" : "gh-pages -d dist",
...
}
-
Add the complete website URL by setting homepage in package.json
-
"homepage": "https://{username}.github.io/{repo-name}/"
-
Thus, your updated package.json will look like this:
{
"name": "book-product",
"private": true,
"version": "0.0.0",
"homepage": "https://zeukterialpneumaion.github.io/the-instrument/",
"type": "module",
"scripts": {
"predeploy" : "npm run build",
"deploy" : "gh-pages -d dist",
"dev": "vite",
"build": "vite build",
...
}
-
If you’ve made it till here, you’re almost there. Run the final command:
-
npm run deploy
-
And you’re done!
export default {
base: '/<REPO_NAME>/'
}
- to update from local repository when changes are made,
- follow this process:
- git add .
- git commit -m "ajh - adding some info to readme"
- git push -u origin main
- npm run deploy
ajh. march 2024. jezhoughton@proton.me