MIDI keyboard & wait-for-keys practice
Playback can pause on each chord until you play those keys — on one device, or with the display on a TV and the keyboard on another.
What it does
In Options → Practice, turn on Wait for keys. While a song plays, PianoSmith freezes on each chord until those MIDI notes are held. Difficulty still controls which notes appear. The MIDI button in Options still exports a file; this feature is live keyboard input.
Same device
Use a browser with Web MIDI (Chrome or Edge on desktop or Android). Safari on iPhone usually cannot read USB MIDI.
- Open PianoSmith and plug in a USB (or compatible) MIDI keyboard.
- Options → Practice → Wait for keys.
- Load a song and press Play. Notes wait until you play the highlighted chord.
No bridge code is needed when the keyboard is on the same device as the screen.
Display + keyboard on two devices
Samsung Tizen cannot read a USB MIDI keyboard plugged into the TV. Put the tutorial on the TV (or any display) and send keys from a phone, tablet, or PC that supports Web MIDI.
Both devices must use the same Server — your Railway URL, or http://<lan-host>:5173 while the PianoSmith server is running. The server relays notes between them.
- On the display: home → TV, devices, and server → set Server if needed → Display: create code. Keep the four-character code.
- On the keyboard device: open PianoSmith on that same Server (home is enough; you do not need to load a song) → enter the code → Connect → plug in the MIDI keyboard.
- On the display: Options → Wait for keys → load a song → Play. Playback pauses until the correct keys arrive from the other device.
Stop bridge ends the link on that device. Create/Connect live under TV, devices, and server on the home screen so a keyboard device can join without opening Options.
Technical notes
- Relay API: POST /api/midi/:code for note on/off; GET /api/midi/:code/stream (SSE) on the display.
- POST /api/midi/room creates a short-lived room code on the app server.
- Packaged Tizen defaults Server to the hosted Railway app when the widget has no usable page origin.