+
+
+ {getCharfromNoteIndex(autotuneNote)}
+
+
-
-
+
+
+
+
diff --git a/Assets/web/src/Components/MidiNoteInfo.js b/Assets/web/src/Components/MidiNoteInfo.js
index 077a3c5..1b4516e 100644
--- a/Assets/web/src/Components/MidiNoteInfo.js
+++ b/Assets/web/src/Components/MidiNoteInfo.js
@@ -31,8 +31,8 @@ export default function MidiNoteInfo() {
}, []);
return (
-
-
+
);
}
diff --git a/Assets/web/src/Components/PianoKeyboard.js b/Assets/web/src/Components/PianoKeyboard.js
index ec3f22d..748bb72 100644
--- a/Assets/web/src/Components/PianoKeyboard.js
+++ b/Assets/web/src/Components/PianoKeyboard.js
@@ -17,8 +17,8 @@ const NOTE_NAMES = [
const WHITE_KEYS = [0, 2, 4, 5, 7, 9, 11];
// C2 = 36, C5 = 72
-const LOWEST_MIDI = 24;
-const HIGHEST_MIDI = 84;
+// const LOWEST_MIDI = 24;
+// const HIGHEST_MIDI = 84;
function getNoteName(midi) {
const octave = Math.floor(midi / 12) - 1;
@@ -30,7 +30,12 @@ function isWhiteKey(midi) {
return WHITE_KEYS.includes(midi % 12);
}
-export default function PianoKeyboard({ heldNotes }) {
+export default function PianoKeyboard({
+ heldNotes,
+ LOWEST_MIDI,
+ HIGHEST_MIDI,
+ showNoteNames = true,
+}) {
const heldMap = {};
heldNotes.forEach((n) => (heldMap[n.midi] = n.voice));
@@ -78,11 +83,9 @@ export default function PianoKeyboard({ heldNotes }) {
@@ -123,28 +126,30 @@ export default function PianoKeyboard({ heldNotes }) {
borderBottomRightRadius: i === whiteKeys.length - 1 ? 6 : 0,
}}
>
-
- {k.noteName}
- {k.held && (
-
- {k.voice}
-
- )}
-
+ {showNoteNames && (
+
+ {k.noteName}
+ {k.held && (
+
+ {k.voice}
+
+ )}
+
+ )}
))}
diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp
index 9d2d38c..296db8e 100644
--- a/Source/PluginEditor.cpp
+++ b/Source/PluginEditor.cpp
@@ -181,7 +181,7 @@ WebViewPluginAudioProcessorEditor::WebViewPluginAudioProcessorEditor(WebViewPlug
webComponent->goToURL (WebBrowserComponent::getResourceProviderRoot());
#endif
- setSize(800, 390);
+ setSize(800, 436);
startTimerHz(60);