From number to note

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

From number to note

Post by Dutchman »

For a musical project, I needed a way to choose musical tones at equal intervals on the musical scale. Therefore, I created a function that generates the desired note string from a note number.
The function is in the attached file that can be 'included' in the main program. If you remove the */ and /* characters, the file can be started as a test program. The output is shown in the screenshot below.
ouitput of test.jpg
ouitput of test.jpg (42.16 KiB) Viewed 220 times
NumberNote.txt
(1.42 KiB) Downloaded 20 times

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

Re: Update "From number to note"

Post by Dutchman »

There was an error in the function.
The OPTION BASE value was not correctly saved.
The error has been corrected in the attached file above.
Sorry for the inconvenience

Post Reply