Live Keys Page
live_keys_pageOpens an on-screen keyboard page that plays into the running engine as the 'screen keys' input, letting users without a MIDI instrument play parts and read back live input.
Instructions
Optional: an on-screen keyboard for someone with no MIDI instrument who wants to play a part (a jam, a lead over the set). A real keyboard needs none of this (midi_sources, live_midi). The page plays straight into this project's running engine as the input 'screen keys', with no virtual MIDI port: patch it like any input, live_midi(source='screen keys', track=... or instrument=...), and live_played(source='screen keys') reads back what they played. It has two to three octaves (two rows on a phone held upright), octave shift, a sustain toggle, velocity from where the key is pressed (near the top is soft), multi-touch chords, the mouse, and the computer keyboard (Z and Q rows, arrows for octave, Space for the pedal); it says whether it is connected and what it plays. The reply gives the address on this computer (the engine serves it) and, while the phone server runs, the phone's. phone=True also puts a panel on the phone page with a button that opens the keys (sender: your name, as phone_panel_show takes it). The keys sound from this computer's speakers, not in the phone's stream, and opening them leaves the phone page (its stream stops): for someone in the room. Tell the person before their keys first sound.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| phone | No | ||
| sender | No | ||
| project | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |