You just...
Code:
local number = GUI.Val("my_opt2")
https://github.com/jalovatt/Lokasenn...-Options-class
If you want to translate that to a string then you can store the note names in a table...
Code:
local note_names = { [1] = "A", [2] = "Bb"..... }
local selected_note = note_names[number]