labels = ['a', 'a#', 'b', 'c', 'c#', 'd', 'd#', 'e', 'f', 'f#', 'g', 'g#']
name = lambda n: labels[n % len(labels)] + str(int((n + (9 + 4 * 12)) / 12))
How can i create a melody? Is there any sound-module?