Skip to content

Latest commit

 

History

History
64 lines (48 loc) · 105 KB

README.md

File metadata and controls

64 lines (48 loc) · 105 KB

doughbeat

doughbeat is a very minimal livecoding editor. Principles:

  • Minimal API
  • Bring your own abstractions
  • Just a single HTML file

You can use it here: https://felixroos.github.io/doughbeat/

Usage

The application is very simple, you just have to write a dsp function that uses its only argument t (time in seconds) to calculate a number between -1 and 1. The returned number represents the speaker position for that moment in time: 0 is the resting position while -1 and 1 are maximum in / out. The dsp function will be called 44100 times per second! Example:

Example:

function dsp(t) {
  return (110 * t) % 1 - 0.5;
}

This is a simple sawtooth wave... The returned numbers will rise from -0.5 to 0.5 at a frequency of 110Hz. This is just a very basic example. You can actually write full music pieces with this abstraction.

Examples

The following examples are all shamelessly copied from wavepot, all rights / credits go to the respective authors! I will first have to learn how to use this tool myself to add some of my own tunes -_- This is just to give some inspiration of what's possible

Read More

To understand more about making music with maths, read my blog post series:

Credits