Skip to content

Implement Keyboard Mapping for 4 Octaves Using All Keyboard Rows #3

@baync180705

Description

@baync180705

Description:

After displaying 4 octaves on-screen (Issue #2 ), the next step is to map each octave to a specific keyboard row on the physical keyboard.
This allows the user to play all 4 octaves using their computer keyboard.

Each row will correspond to one octave as follows:

Keyboard Row Octave
Number row (1–0) Octave 7
QWERTY row Octave 6
ASDF row Octave 5
ZXCV row Octave 4

Tasks:

  • Update event handling logic to detect keypresses from all 4 rows.
  • Map keys to their corresponding musical notes and octaves.
  • Ensure proper handling of simultaneous key presses.
  • Keep the octave range in sync with the dropdown setting.
  • Test and verify that sounds play correctly for all octaves.

Expected Outcome:

  • All 4 octaves playable simultaneously via keyboard.
  • Smooth key-to-note mapping without overlap or lag.
  • Works seamlessly with the updated octave range UI.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions