Git Product home page Git Product logo

muspl's People

Contributors

garncarz avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

muspl's Issues

Notation as a dict

Actual format: notation((1, 2.5, v), (a, 1), 8)
Proposed format: notation{position:position{...}, tone:tone{...}, dur:duration{...}}
Maybe dur should be incorporated into tone.

Maybe there should exist "global" functions on notation, like those from data: allStaffs, allBeats... maybe even data should be a dict? (Similar to how notationDb works now, so it would be generally possible to work with several songs at the same time. The first "db" could be default.)

Playback

play. and play(From, To). should be available to provide quick feedback of notation.

ASCII predicates/operators

and ♪= should be probably replaced by some ASCII notation, so they're easier to type and work also on Windows.

Unify construction predicates

extra title(...), extra composer(...), extra scale{...}, extra timeSignature(...) (maybe something else?) – all should go inside m.

Render tones right on time

So far, tones are rendered linearly, continuously, for the sake of demonstration. Their position should be respected, allowing multiple tones to sound at once.

Possibilities for storing both tones' and overall samples (hopefully it will be more saving than findall):

  1. assertz – global
  2. b_setval/nb_setval – global
  3. setarg/nb_setarg – local

Construction: deduplicate pitch/length sequences

Actual:

♪ melody{start:(1, 1, g), relative:(a, 1, 8),
    pitch:[0, 1, 0, -1, -2, -1, -2],
    len:[1, 1, 1, 1, 1, 1, 2]}.

Could be ~:

♪db(pitchSeqA, [0, 1, 0, -1, -2, -1, -2]).
♪db(lenSeqA, [1, 1, 1, 1, 1, 1, 2]).
♪ melody{start:(1, 1, g), relative:(a, 1, 8), pitch:pitchSeqA, len:lenSeqA}.

MIDI import

Adjust to the new position/duration format and ensure it works by creating tests/song.midi which would be imported by a test.

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.