captainalan / ch_note_converter Goto Github PK
View Code? Open in Web Editor NEWFor making music with Ch and robots :)
For making music with Ch and robots :)
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).
We need to accept command line arguments to make automatic testing n stuff easier.
We want to be able to synthesize output with Tone.js.
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.
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.