Skip to content
This repository has been archived by the owner on Sep 22, 2021. It is now read-only.
/ audio-table Public archive

Tables of common periodic signals

License

Notifications You must be signed in to change notification settings

scrapjs/audio-table

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Collection of common periodic audio signals.

npm install audio-table

var table = require('audio-table');

//get Float32Array of the length 1024 of the pure sine wave
var sin = table.sin(1024);
sin[0] === 0;
sin[256] === 1;
sin[512] === 0;

//API
table.<waveshape>( list|length, args... );

//signals
table.sin(list|length);
table.cos(list|length);
table.noise(list|length);
table.delta(list|length);
table.pulse(list|length, dutyRatio);
table.square(list|length); // table.pulse(list|length, 0.5);
table.triangle(list|length, scale);
table.saw(list|length); //table.triangle(length, 0);

Related

audio-buffer-utils — same functions but for audio buffers.
Periodic functions — list of periodic functions on wiki.

About

Tables of common periodic signals

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published