I'm afraid there was nothing automated here.
I took a sheet-music version I found and encoded each note by hand into the internal format that I use.
This internal format is essentially an array of 'duration' + 'note' values.
The 'note' value is an index into a separate lookup table for the frequency.