canti primo tag
This commit is contained in:
@@ -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);
|
||||
Reference in New Issue
Block a user