@roudanio/lazy-melody
v0.8.5
Published
Lazymelody.com ==============
Downloads
533
Readme
Lazymelody.com
Development
Pre-requisites
- node.js >= 16
- pnpm >= 7
Setup
- Git clone this repo
- Install dependencies:
pnpm i
- Start the development server:
pnpm run dev
How to
Add a new score operator
A score operator is a function that takes a score and returns a new score. It is built with 3 parts:
- A score operator function, will do something to
MusicNote
- A keyboard shortcut to trigger the operator
- A UI menu component (not implemented yet)
- Text to score parser
- Score to text generator
- midi-player
The Operator Function
For the operator function, it should follow this signature:
(selectedNots: MusicNote[]) => boolean;
It should:
- validate the input, return
false
if the input is invalid - do the transformation, return
true
if the transformation is successful
The Keyboard Shortcut
The UI Menu Component
(Note: this is not implemented yet)