Whatang / DrumBurp

A simple drum tab editor, designed to make it quick and easy to enter drum tabs.
http://whatang.org/
GNU General Public License v3.0
41 stars 12 forks source link

Lilypond note calculation overhaul #412

Closed Brayconn closed 4 years ago

Brayconn commented 4 years ago

I've wanted drumburp's lilypond export to have support for more note types for quite a while now, and here it finally is. All the old hard-coded stuff has been replaced with an actual equation that (as far as I can tell) would work with any Counter. I've also added a bunch of new counters: Quintuplets, Septuplets, and 64th notes.

A few things to note:

Brayconn commented 4 years ago

Quick update, it turns out I actually got part of the calculation for compoundStart wrong. Ratios are supposed to be /, so an 8th note triplet would be 3/2, a quintuplet 5/2, etc. And it turns out the code I put there isn't calculating the latter value of the ratio correctly.

Should I open a new pull request for this, or try and re-open this one?

Whatang commented 4 years ago

Hi - sorry not to respond, been doing other things. I think opening a new PR would be best.

Brayconn commented 4 years ago

Ok. I just fixed the code this evening, so I'll see about getting a new pull request made in the coming days