fixed a bug in strToKey function where the octaveNumber isn't parsed and filtering correctly highlighted notes to the correct octave (default broadcasted to every octave)

This commit is contained in:
Clément Le Bihan
2023-03-20 01:19:36 +01:00
parent d094c81418
commit c29740dc2e
4 changed files with 23 additions and 30 deletions
@@ -10,7 +10,6 @@ import {
} from "../../models/Piano";
type PianoKeyProps = {
key?: Key;
pianoKey: PianoKey;
showNoteName: NoteNameBehavior;
bg: string;
@@ -39,7 +38,6 @@ const isNoteVisible = (
};
const PianoKeyComp = ({
key,
pianoKey,
showNoteName,
bg,
@@ -64,7 +62,6 @@ const PianoKeyComp = ({
const textProps = { ...textDefaultProps, ...text };
return (
<Pressable
key={key}
onPressIn={onKeyDown}
onPressOut={onKeyUp}
style={style}