mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 13:48:34 +00:00
comment
This commit is contained in:
parent
70d6f3000a
commit
9438c69bed
@ -31,6 +31,7 @@ export const note2midi = (note) => {
|
||||
return pc2chroma(pc) + oct * 12 + 12;
|
||||
};
|
||||
|
||||
// duplicate: util.mjs (does not support sharp flag)
|
||||
export const midi2note = (midi, sharp = false) => {
|
||||
const oct = Math.floor(midi / 12) - 1;
|
||||
const pc = (sharp ? sharps : flats)[midi % 12];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user