mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-27 05:28:41 +00:00
FIXES: prettier formatting
This commit is contained in:
parent
0fa5832b63
commit
b8929a0d18
@ -13,8 +13,7 @@ export const pc2chroma = (pc) => {
|
|||||||
return pcs.indexOf(letter.toLowerCase()) + rest.reduce((sum, sign) => sum + accs[sign], 0);
|
return pcs.indexOf(letter.toLowerCase()) + rest.reduce((sum, sign) => sum + accs[sign], 0);
|
||||||
};
|
};
|
||||||
|
|
||||||
export const rotateChroma = (chroma, steps) => ((chroma + steps % 12) + 12) % 12;
|
export const rotateChroma = (chroma, steps) => (chroma + (steps % 12) + 12) % 12;
|
||||||
|
|
||||||
|
|
||||||
export const chroma2pc = (chroma, sharp = false) => {
|
export const chroma2pc = (chroma, sharp = false) => {
|
||||||
return (sharp ? sharps : flats)[chroma];
|
return (sharp ? sharps : flats)[chroma];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user