KeyPiano Op
Generates notes based on key presses
Summary (oneliner)
<p>Can be used to generate notes based on keyboard presses together with the <code>KeyLearn</code>-op. For every note the keyboard key can be defined in the corresponding <code>KeyLearn-op</code>, so e.g. you would add a <code>KeyLearn</code>-op, press its <code>learn</code>-button to store e.g. the key code for the key <code>c</code> and then you need to connect its <code>on press</code>-port with the <code>c note on</code>-port of <code>KeyPiano</code>. Please note that key-presses are only detected in the preview window by default (click inside to set the focus).<br>Currently only one key can be played simultaneously.</p> <p>The <code>Note On</code> / <code>Note Off</code> can be connected to a <a href="/op/Ops.Devices.Keyboard.KeyPressLearn">Ops.Devices.Keyboard.KeyPressLearn</a> op.</p>
- 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
<p>The currently active octave – <code>1</code> is the lowest, <code>7</code> the highest. <code>[1-7]</code></p>
OUTPUT PORTS
<p>The note frequency of the last pressed / released key in <em>Hz</em>, e.g. <code>440</code> for <code>A4</code> (middle A). This port can be connected to the <code>frequency</code>-port of an <code>oscillator</code>-op e.g..</p>
<p>If one of the keys is currently pressed: <code>1.0</code>, if no key is pressed: <code>0.0</code>. Can e.g. be connected to a <code>Gain</code> node, to control the volume of a Web Audio op.</p>