Thanks to visit codestin.com
Credit goes to Github.com

Skip to content
/ Phase Public
forked from BafS/Phase

Generates sounds from javascript functions.

Notifications You must be signed in to change notification settings

mdheller/Phase

 
 

Repository files navigation

Phase

Evaluate, plot and listen given javascript functions using web audio api.

Example

const a = 440;
const sum = (fn, [min, max]) => Array(max - min + 1).fill().reduce((sum, _, i) => sum + fn(i + min), 0);

// 3 harmonics to have a more realistic sound
sum(n => Math.sin(2 * a * n * Math.PI * t) * .7 / n, [1, 3])

Dev

npm i to install the dependencies

  • npm start to dev and run a local server
  • npm run build to build in build/

About

Generates sounds from javascript functions.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 49.5%
  • JavaScript 31.6%
  • HTML 11.3%
  • CSS 7.6%