Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -12,7 +12,7 @@ COLUMN_DURATION = 1 # Duration of each column in seconds
|
|
12 |
# Mapping of matrix numbers to musical notes
|
13 |
notes = ["A", "A#", "B", "C", "C#", "D", "D#", "E", "F", "F#", "G", "G#"]
|
14 |
note_map = {2: "A", 3: "A#", 4: "B", 5: "C", 6: "C#", 7: "D", 8: "D#", 9: "E",
|
15 |
-
10: "F", 11: "F#", 12: "G", 13: "G#"
|
16 |
|
17 |
def generate_tone(note, duration):
|
18 |
"""Generates a tone for a specified note and duration."""
|
|
|
12 |
# Mapping of matrix numbers to musical notes
|
13 |
notes = ["A", "A#", "B", "C", "C#", "D", "D#", "E", "F", "F#", "G", "G#"]
|
14 |
note_map = {2: "A", 3: "A#", 4: "B", 5: "C", 6: "C#", 7: "D", 8: "D#", 9: "E",
|
15 |
+
10: "F", 11: "F#", 12: "G", 13: "G#"}
|
16 |
|
17 |
def generate_tone(note, duration):
|
18 |
"""Generates a tone for a specified note and duration."""
|