Skip to main content
100%

Arc Piano

✓ Published0🌍 Public
Mmbostock
Last edited Feb 8, 2017
Created on Dec 3, 2014

The visualization displays a semicircular piano keyboard whose keys extend outward when hovered or touched. It uses a D3 pie layout for the key positions, with custom arc tweening via `transition.attrTween` to animate the radial expansion. The code generates audio tones using the Web Audio API's `createOscillator` and `createGain` nodes, playing a square wave at a computed frequency for each key. The SVG rendering uses D3's `d3.arc` with corner radii and two inner-radius levels to distinguish sharp and white keys.

AI-generated description
gpl-3.0 Licensed

Similar vizzes