Melody

No dependencies
Code format

Install with shadcn

Needs a free account token. Get a token

npx shadcn@latest add @movin/input-melody

About this component

Type note names and each one lands on its line or space of the stave with a little bounce; every four notes a bar line draws in to close the measure, with a double bar at the end.

Dependencies
None
Difficulty
Intermediate
Reduced motion
Respected
Theme
Light and dark
Follows page color-scheme

Triggers3

  • State change
  • Keyframe
  • Draw

Techniques3

  • SVG
  • Keyframes
  • stroke-dashoffset

Accessibility

Keyboard and screen readers

The native input is named "Notes, C to B"; the stave is aria-hidden.

Reduced motion

Everything changes at once, without the motion.

Use it in anything you build, commercial and client work included. Licence

More inputs

See all
MottoGet code
Keypad phoneGet code

6 of 12 letters, cut in one piece

Name necklaceGet code
Nixie alarmGet code