Skip to content

lvm/pcdrum-hat-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PC Drum - Hats

Module for PC Drum.

Install

npm install pcdrum-hat

Usage

var hat = require('pcdrum-hat'),
    context = new AudioContext(),
    ch = hat(context,
            {freq: 7000,
             attack: 0.001,
             decay: 0.05,
             sustain: 0,
             release: 0.1
             }),
    oh = hat(context,
            {freq: 10000,
             attack: 0.001,
             decay: 0.05,
             sustain: 0,
             release: 0.6
             })
;

ch.trigger();
oh.trigger();

License

See LICENSE

About

PC Drum - Hats

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published