Code Monkey home page Code Monkey logo

ch_note_converter's People

Watchers

 avatar  avatar

ch_note_converter's Issues

Fix beats

The current output does not give correct beats that are similar to the original song, nor incorporates rests.

Rests in Ch can be defined as (0, 8), with 0 being the rest and 8 being how long you want to hold it (in this case, for an eighth of a note).

Look at lambda function currently holding beats.
For now, we want to make 4/4 time generally. We can create edge cases later (3/4 time, etc.)
To make 4/4 time, imagine something like this:

A _ _ _ B means that A is a quarter note (1/4, in Ch, 4).
A _ B _ means that A is an eighth note (1/8, in Ch, 8), since B follows on the 3/4 beat/dash.
AB means that A is a sixteenth note (1/16, in Ch, 16).

If we have extra dashes, such as:

A _ _ _ _ _ _

Take the greatest common amount of beats of the time (in this case 4/4, so a factor of 4, the numerator) and make the remaining dashes a rest.

So in the case above, A is a quarter note (in Ch, 4) and there is 3/4 rest (in Ch, 4/3).

deMeasureTrack() cuts off character(s) from the end of measures

From the output of deMeasureTrack() I verified that the final characters of the last lines are chopped off... something like:

0--
0--

...would become

0-
0-
``

This appears to be a problem with deMeasureTrack, because the measures are properly represented before being combined.

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.