note sets for strings

This commit is contained in:
2025-12-26 18:42:41 +01:00
parent b8e8623024
commit bd18844c73
2 changed files with 30 additions and 3 deletions

View File

@@ -99,6 +99,21 @@ function App() {
return [];
}
if (config.type === 'specific_string') {
if (currentTuning && config.stringIndex !== undefined) {
const openNote = currentTuning.strings[config.stringIndex];
if (openNote === undefined) return [];
// Generate frets 0 to 12 for this string
const notes = [];
for (let i = 0; i <= 12; i++) {
notes.push(openNote + i);
}
return notes;
}
return [];
}
// Static fallback
if (config.notes) return config.notes;
if (config.min !== undefined && config.max !== undefined) {