Page 1 of 1

Programable length of musical note or rest

Posted: Mon Jun 16, 2025 1:20 pm
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 72 times
LengthNote.txt
(2.4 KiB) Downloaded 12 times