Skip to content

guitar_prometheus::PianoKeyPicker

guitar_prometheus::PianoKeyPicker

Compact MIDI keyboard widget restricted to a configurable note range. More…

#include <PianoKeyPicker.h>

Inherits from juce::Component, juce::MidiKeyboardState::Listener

Public Functions

Name
PianoKeyPicker()
~PianoKeyPicker() override
voidsetRange(int lowestNote, int highestNote)
voidsetHighlightedNote(int midiNote)
voidresized() override

Public Attributes

Name
std::function< void(int)>onPicked

Detailed Description

class guitar_prometheus::PianoKeyPicker;

Compact MIDI keyboard widget restricted to a configurable note range.

Clicking a key fires onPicked with the chosen MIDI note (0..127). Wraps a juce::MidiKeyboardState + MidiKeyboardComponent; the parent owns none of that state.

Public Functions Documentation

function PianoKeyPicker

PianoKeyPicker()

function ~PianoKeyPicker

~PianoKeyPicker() override

function setRange

void setRange(
int lowestNote,
int highestNote
)

function setHighlightedNote

void setHighlightedNote(
int midiNote
)

function resized

void resized() override

Public Attributes Documentation

variable onPicked

std::function< void(int)> onPicked;

Updated on 2026-05-29 at 07:39:52 +0000