canti primo tag

This commit is contained in:
David Frassi
2026-05-16 17:24:59 +02:00
commit 0c33fc6fcf
106 changed files with 28210 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
import { LyricsParserService } from './src/app/services/lyrics-parser.service';
const parser = new LyricsParserService();
function testTranspose(chord, semitones) {
const result = parser.transposeChord(chord, semitones);
console.log(`${chord} + ${semitones} -> ${result}`);
}
console.log('Testing Slash Chords:');
testTranspose('DO/SOL', 2);
testTranspose('REm/LA', 1);
testTranspose('MIb/SIb', -1);
testTranspose('FA#/DO#', 2);
console.log('\nTesting Single Chords:');
testTranspose('DO', 2);
testTranspose('REm', 1);
testTranspose('SIb', -1);