KeyPiano Op

KeyPiano

Generates notes based on key presses


<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>


Full Name
  • Ops.WebAudio.KeyPiano
Visibility
  • Core Op - Official cables op
License
  • MIT
AuthorgithubTest Patches








No op example found on this server

INPUT PORTS


c note on (Trigger)
c note off (Trigger)
cis note on (Trigger)
cis note off (Trigger)
d note on (Trigger)
d note off (Trigger)
dis note on (Trigger)
dis note off (Trigger)
e note on (Trigger)
e note off (Trigger)
f note on (Trigger)
f note off (Trigger)
fis note on (Trigger)
fis note off (Trigger)
g note on (Trigger)
g note off (Trigger)
gis note ons (Trigger)
gis note off (Trigger)
a note on (Trigger)
a note off (Trigger)
ais note on (Trigger)
ais note off (Trigger)
b note on (Trigger)
b note off (Trigger)
octave (Number)

<p>The currently active octave – <code>1</code> is the lowest, <code>7</code> the highest. <code>[1-7]</code></p>

OUTPUT PORTS


frequency (Number)

<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>

is pressed (Number)

<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>


Patches using KeyPiano

  • Examples
  • Public
  • My Patches