AlpaKit Logo AlpaKit

Lo-Fi Rain Piano & Focus Music Box

Synthesize gentle Lo-Fi piano chords locally using Web Audio API, featuring canvas rain drops hitting virtual piano keys.

⚠️ Note: Please click the button above to enable Web Audio playback.

Ambient Background Sound
🎵 Scale: A Minor Pentatonic (Always Harmonious)

How to use this tool

  1. 1 Open Lo-Fi Rain Piano & Focus Music Box, then enter, paste, or choose the content you want to process.
  2. 2 Adjust the available options and output format for your task.
  3. 3 Review the instant result, then copy or download the available output.

Common use cases

Synthesize gentle Lo-Fi piano chords locally using Web Audio API, featuring canvas rain drops hitting virtual piano keys. Use it for everyday work, development, learning, or quick verification.

Privacy and data handling

This tool runs in your browser. Before working with sensitive data, make sure you trust your browser and device environment.

Let the rain play the piano: why a pentatonic scale always sounds good

The Lo-Fi Rain Piano is a relaxing music generator that plays itself. Press play and raindrops fall at random across the screen; whenever one hits a key at the bottom, that note sounds. The result is a piano melody that never repeats yet never sounds harsh, ideal for studying, coding, unwinding before bed or simply watching the rain.

It always sounds harmonious because all 12 keys come from the A minor pentatonic scale, A, C, D, E and G, spanning A3 (220 Hz) to C6 (about 1047 Hz). A pentatonic scale contains no notes a semitone apart, so any two notes played together avoid obvious dissonance. That is why folk music, blues improvisation and lo-fi tracks use it so often. A minor adds a gentle, slightly melancholic color that suits a rainy day.

The rain density slider (10%–100%) controls how many drops fall. Low density gives sparse notes, like a light drizzle outside the window, good for deep focus; high density makes a flowing melody, like an afternoon downpour. You can layer two ambient sounds underneath: rain made from filtered white noise, and a campfire built from low brown noise with random crackles. Use either one or both.

Every sound is synthesized live with the browser’s Web Audio API. The piano uses a soft triangle wave with a quick attack and a natural decay of about two seconds, close to an electric piano. No audio files are downloaded and nothing is uploaded. Browsers only allow sound after a user action, so click the play button first; on some phones, silent mode also mutes web audio.

Frequently asked questions

Why do random notes always sound harmonious?

All keys use the A minor pentatonic scale (A C D E G), which has no clashing semitones, so almost any combination sounds pleasant.

Can I change how busy the music is?

Yes. The rain density slider (10%–100%) sets how many drops fall; higher density means more notes.

What ambient sounds are available?

Rain and campfire. Turn on either one or mix both.

Why is there no sound?

Make sure you clicked play and turned the volume up. On devices like the iPhone, silent mode may mute web audio.

Browse this category: Image & Media

Suggested & Recent Tools
    ↑ ↓ Navigate ↵ Open ESC Close
    咩~
    Alpa Idle Alpa Walk 1 Alpa Walk 2 Alpa Walk 3 Alpa Walk 4 Alpa Dizzy Alpa Sleep