This folder contains the code for the Melody Generator that was extracted from the main repository.
MelodyGenerator.js: The main React component.
You will need to install the following dependencies in your new project:
tone: For audio synthesis and scheduling.lucide-react: For icons.
- Create a new React app (e.g., using
create-react-appor Vite). - Install dependencies:
npm install tone lucide-react
- Copy
MelodyGenerator.jsto yoursrcfolder. - Import and use it in your
App.js.