An Song writing generator. This Application allows AI to write songs through coding syntaxes.
And saves the song data to a bin folder. /bin/
Download the git repository, using GIT.
Run these commands in command prompt to download / Install dependencies.
git clone https://github.com/cassitly/music-code.git
cd music-code
npm run buildBe sure to create the file outside of the repository folder you downloaded.
Then create an javascript file. Name it whatever you like.
Write down this code in the Javascript File:
const { defineApp, appReady } = require("./music-code/app.js");
appReady(); // App Ready runs the file generation
await defineApp(); // Define App allows the generation of the itemThen run the code using NodeJS. This will generate an new song everytime it is ran.
This application requires:
- nodejs@latest For javascript file executions
- npm@latest For nodejs dependencies
NPMJS Dependencies:
- dotenv@latest For GROQ API key intergration
- fs@latest For File generations of the songs
- groq-sdk@latest For GROQ API Interactions
- path@latest For File path joining.