Skip to content

A simple javascript class for synchronising audio loops using web api.

Notifications You must be signed in to change notification settings

joelle-o-world/loopy-doopy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

loopy-doopy

A simple javascript class for synchronising audio loops using web api. Designed for use with video game stems.

Install

npm i loopy-doo

Usage

import LoopyDoopy from 'loopy-doopy';

// create a new instance
const myLooper = new LoopyDoopy();

// Add audio files (asynchronously with ajax)
myLooper.loadSamples(
  './bagpipe-loop.wav',
  './tin-whistle-riff.mp3',
  './distorted-yodelling.mp3',
)

// Start the looper once the samples have been loaded
myLooper.onload = () => {
  myLooper.start();
}

NOTE: For this to work your samples must have equal duration or durations that are integer mutliples of one another.

About

A simple javascript class for synchronising audio loops using web api.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published