Skip to content

d-rowe/motate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Motate

Music notation rendering engine for interactive applications. Motate optimizes for performant re-renders.

Still in very early phase of development.

Motate is built off of VexFlow.

Example

Let's create a simple duet of the first measure of Twinkle Twinkle Little Star.

import Motate from 'motate';

function App() {
    return (
        <Motate
            staves: [
                {
                    name: 'Violin',
                    clef: 'treble',
                    measures: [{
                        chords: [
                            {pitches: ['c4'], duration: 4},
                            {pitches: ['c4'], duration: 4},
                            {pitches: ['g4'], duration: 4},
                            {pitches: ['g4'], duration: 4},
                        ]
                    }],
                },
                {
                    name: 'String Bass',
                    clef: 'bass',
                    measures: [{
                        chords: [
                            {pitches: ['c2'], duration: 4},
                            {pitches: ['c3'], duration: 4},
                            {pitches: ['e3'], duration: 4},
                            {pitches: ['c3'], duration: 4},
                        ]
                    }],
                },
            ],
        />
    )
}

export default App;

Setup

  1. Install dependencies
npm install
  1. Run storybook
npm start
  1. Navigate to localhost:6006

About

Responsive music notation rendering with React

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published