Skip to content

Latest commit

 

History

History
77 lines (52 loc) · 4.13 KB

kata-04.md

File metadata and controls

77 lines (52 loc) · 4.13 KB

Kata 4 - Audio sampling

The purpose of this kata is to understand the use of sampling in music production and learn how to do sample playback in Web Audio.

Learning aims

The minimal target of this kata is to get acquainted with the concept of sampling:

  • Loading a sample
  • Setting up multiple sampled instruments
  • Understanding the basic theory behind sampling

Task

Complete the following:

  1. Set up a window where to load custom, sampled instruments
  2. Define several custom instruments using samples. Piano and different types of drums (see @teropa/drumkit) are good examples. You can find free-to-use samples on places like freesound.org.
  3. Optional - Make the samples play at different pitches (i.e., notes) by changing the playback rate.
  4. Optional - Load and play a looping sample such as the Amen break.
  5. Optional - Refactor your code to use a Tone.js Sampler
  6. Optional - Add an audio visualizer window to show the current waveform
  7. Optional - Figure out where the standard 44100 Hz and 48000 Hz sampling frequencies come from and what the implications of this limit for signal processing
  8. Optional - Record user audio to use as an instrument. See reference.

Reference

Web Audio

Samples

Theory

Visualization

Documentaries

AI

Books

Videos