|
|
|
@ -12,7 +12,6 @@ const getCentDifference = (startingFrequency, newFrequency) => {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const generateCentsString = (centDifference) => {
|
|
|
|
const generateCentsString = (centDifference) => {
|
|
|
|
console.log(centDifference);
|
|
|
|
|
|
|
|
const flatSharpChar = (centDifference > 0) ? '♯' : '♭'
|
|
|
|
const flatSharpChar = (centDifference > 0) ? '♯' : '♭'
|
|
|
|
return flatSharpChar + Math.abs(parseInt(centDifference)).toString().padStart(2, '0')
|
|
|
|
return flatSharpChar + Math.abs(parseInt(centDifference)).toString().padStart(2, '0')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|