Docker is the preferred development environment for this project. If you have the Docker engine already installed and configured on your machine you can jump directly to the next section otherwise you can follow the steps below
/resources/emulators/organ/
) run the command docker-compose up
in order to start the server.Play a chord: POST localhost:3000/notes
Request body:
{
"notes": ["C4", "E4", "G4"],
"duration": "64n" // note/chord duration
}
notes
: array of notes, max length 4duration
: note/chord duration as a fraction of unit length (1 -> base length, 2n -> 1/2 base length, 4n -> 1/4 base length, etc.)Set instrument: PUT localhost:3000/sound
Request body:
{
"instrument": "organ"
}
instrument
: name of instrument, currently piano
or organ