Skip to content

frisonisland/synesthetic-piano

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

synesthetic-piano

A piano that changes background color when played.

You can use a,w,s,e,d,f,t,g,h,u,j,k keys to play the piano.

The piano is supposed to sound like a "Hammond".

The waveform follows the equation: 1 + 2sin(2x)*cos(x)**2. Then I've calculated the first four Fourier coefficients and created a custom PeriodicWave using the Javascript Web Audio Api.

The result is a wave with less distortion and more smooth edges, to reduce noise when playing a chord.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published