GithubHelp home page GithubHelp logo

motivejs's People

Contributors

jshanley avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

motivejs's Issues

combine primitives for intervals and fifths

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.

make Note and Pitch separate classes

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.

Improve the NoteCollection interface

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 names

move constructors to separate object

having 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

Add unicode formatting of notes and chords

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.