KeyPiano Op
Generates notes based on key presses
Summary (oneliner)
Can be used to generate notes based on keyboard presses together with the KeyLearn
-op. For every note the keyboard key can be defined in the corresponding KeyLearn-op
, so e.g. you would add a KeyLearn
-op, press its learn
-button to store e.g. the key code for the key c
and then you need to connect its on press
-port with the c note on
-port of KeyPiano
. Please note that key-presses are only detected in the preview window by default (click inside to set the focus).
Currently only one key can be played simultaneously.
The Note On
/ Note Off
can be connected to a Ops.Devices.Keyboard.KeyPressLearn op.
- Ops.WebAudio.KeyPiano
- Core Op - Official cables op
- MIT
Documentation (markdown)
Issues
Example patch id
Youtube ids (comma seperated)
Op Licence
Caniuse query
No op example found on this server
INPUT PORTS
The currently active octave – 1
is the lowest, 7
the highest. [1-7]
OUTPUT PORTS
The note frequency of the last pressed / released key in Hz, e.g. 440
for A4
(middle A). This port can be connected to the frequency
-port of an oscillator
-op e.g..
If one of the keys is currently pressed: 1.0
, if no key is pressed: 0.0
. Can e.g. be connected to a Gain
node, to control the volume of a Web Audio op.