jshanley / motivejs Goto Github PK
View Code? Open in Web Editor NEWJavaScript music theory library
License: MIT License
JavaScript music theory library
License: MIT License
Update the Chord constructor so that it returns the new motive.noteCollection
type.
The data structures for the fifths
and intervals
primitives have a lot of overlap, and most of the time they are used in combination rather than separately. It might make more sense to combine them into a single model.
Right now, for notes that do not have an octave assigned Note.type === 'note'
and for those that do have an octave assigned Note.type === 'pitch'
.
It would make more sense to separate them into two different classes.
A NoteCollection wraps an array of notes, so it should give some useful shortcut methods for manipulating that array, and returning different representations of it.
For now, it should include these methods:
.contents
to return the underlying array.each
to iterate over the collection.contains
to test if a certain note is present.add
to add a note.remove
to remove a note.map
to map the underlying array.names
as a shortcut to mapping the note nameshaving motive.Note
and motive.note
side-by-side is confusing.
constructors for Note
, Interval
and Chord
should have their own home.
motive.constructors
might work
Note
and Chord
objects should have a built-in method that outputs a string using unicode characters for accidentals, as well as symbols for major-7-type (delta), diminished and half-diminished chords (circle and slashed-circle). Also, it would be excellent to include superscripted chord types and extensions.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.