Programable length of musical note or rest

Post Reply
User avatar
Dutchman
Posts: 869
Joined: Mon May 06, 2013 9:21 am
My devices: iMac, iPad Air, iPhone
Location: Netherlands
Flag: Netherlands

Programable length of musical note or rest

Post by Dutchman »

For a musical project, I needed a way to determine the length of a note or rest based on the outcome of a calculation.
Therefore, I have created the accompanying function that generates the code, depending on the desired length in 'tics'.
A 'tic' is defined as the length of the note or rest as determined by the code 'T', which is 1/8 of a 'beat'.
The function can be included. The test can be run by removing the /* and */.
The screenshot shows the output of the test.
Screenshot.jpg
Screenshot.jpg (27.94 KiB) Viewed 70 times
LengthNote.txt
(2.4 KiB) Downloaded 11 times

Post Reply