Because samples were downloaded on demand, only after the first key press. Now the samples are preloaded and decoded as soon as you start, so the piano sound is there from the very first key. If the network fails, a synth fallback keeps you playing.
Play a real piano in your browser, with keyboard, mouse, touch or MIDI
This piano plays samples of an acoustic grand piano, fetched and decoded as soon as you start playing, no more delay where the first note comes out as a synth. To keep the download small, only one sample every three semitones is downloaded and the in-between notes are tuned via `playbackRate`, preserving the original timbre. Holding a key sustains the note; releasing applies a soft damper, exactly like a real piano. The layout fits the screen width (no horizontal scrolling) and you can set the number of octaves, volume, keyboard mapping, and even connect a MIDI keyboard.
Paste the code into your HTML and the tool shows up on your page, without J-Kit's navigation and ads. It still runs in the browser of whoever visits your site.
<iframe
src="https://jkit.tools/embed/en-US/online-piano"
width="100%"
height="600"
style="border:0"
loading="lazy"
title="Online Piano"
></iframe>These references help contextualize formulas, standards, APIs and limitations used on this page. They do not replace professional validation when a result has legal, financial, medical or operational impact.
Because samples were downloaded on demand, only after the first key press. Now the samples are preloaded and decoded as soon as you start, so the piano sound is there from the very first key. If the network fails, a synth fallback keeps you playing.