You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/core/src/augustinus.ts
+11-2Lines changed: 11 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ function psalmLogic(input: string[], notes: string[]) { //Função que aplica a
25
25
consti=input.length;
26
26
lettonicNote=notes.filter(note=>note.includes("r1")).reverse().map(note=>note.replace("r1",""));// Procura pela nota da tônica melódica
27
27
constreplaceAt=(index: number,value: string)=>{input[index]=input[index].replace("@",value)};// Função menor, parecida com a replaceFromEnd, mas para array
28
-
constisTonic=(index: number): boolean=>input[index]?.includes("#")??false;// Função que será usada mais tarde
28
+
// const isTonic = (index: number): boolean => input[index]?.includes("#") ?? false; // Função que será usada mais tarde
29
29
consttonicIndex=i-input.findLastIndex(syllable=>syllable.includes("#"));// Procura pelo índice da primeira sílaba tônica de trás pra frente
30
30
notes=notes.map(notes=>notes.replace("r1","").replace("r","")||"");// Limpa as marcações de acento das notas
0 commit comments