by Synchron, published
Print the song of your life
This is a little handy script to create notes/clefs/accidentals.
added bars (keyword "bar")
fixed "stacking height"-bug
changed "stacking height" to "cutline height"
for creation i used:
For generating the openscad-code from svg i used:
The notes are typed in the notestring. The syntax is: "lenght:value"
a 1/4 c1 is notated as "4:c1"
Each value is seperated by comma. so the first 4 notes of the c-major-scale (in a 1/2 beat) looks like:
The notes from c1 to a2 are available.
Available values for the first part:
1 = 1/1
2 = 1/2
4 = 1/4
8 = 1/8
6 = 1/16
3 = 1/32
# = #
b = b
n = natural
Available values for the second part:
c1 - a2
br = break
I am sorry for this complicated syntax, but i found no better solution in openscad to allow you this flexibility.
If you like to print it in one step choose a "cutline height" of 0. All items will lie flat. In this case you would only be able to see one note.
Otherwise you can print the lines of staff seperate from the notes/clefs... In this case choose all your options, then change the "Show Lines Of Staff" in "cut lines" and print the notes. After that disable all other than the lines and print the lines. The notes etc. should fit in the lines now.
If you want this for education, use "cut all lines". so you will be able to put a note on/and between lines.
For education it would be great to print the notes in the boomwhacker-colors.
(My english is not the best, if someone has a better instruction, problems with mine or you found bugs, please post it in the comments. Thanks)