svelte-piano-app Svelte Themes

Svelte Piano App

Svelte Piano App

This is a simple piano app built using Svelte. It allows users to play notes using their computer keyboard or by clicking on the piano keys.

Getting Started

To run this app on your local machine, you will need to have Node.js installed.

  1. Clone this repository:
git clone https://github.com/rodrigodagostino/svelte-piano-app.git
  1. Navigate to the project directory and install the dependencies:
cd svelte-piano-app
pnpm install
  1. Start the development server:
pnpm dev

The app should now be running on http://localhost:5173.

Usage

To play notes on the piano, either click on the keys or use your computer keyboard. The mapping of the keys to notes is as follows:

Key Note
A C
W C#/Db
S D
E D#/Eb
D E
F F
T F#/Gb
G G
Y G#/Ab
H A
U A#/Bb
J B

Contributing

If you'd like to contribute to this project, please fork the repository and create a pull request. We welcome contributions of all kinds, including bug fixes, feature additions, and documentation improvements.

License

This project is licensed under the MIT License.

Top categories

Loading Svelte Themes