-
-
Notifications
You must be signed in to change notification settings - Fork 2
Home
Josh Stovall edited this page Nov 22, 2020
·
7 revisions
var options = {
type: "oscilloscope",
color: "green",
background: "black",
framerate: 60
}
var myOscilloscope = new Oscilloscope(options);
Name | Type | Options | Default | Description |
---|---|---|---|---|
type |
string |
oscilloscope , bars , spectrogram , XY
|
oscilloscope |
Visual type |
color |
color |
green |
Foreground color | |
background |
color |
black |
Background color | |
framerate |
int |
1 to 120
|
24 |
How often to draw to the canvas (frames per second) |
thickness |
float |
0.01 to 10
|
10 |
Thickness of oscilloscope line or bar width |
fade |
float |
0 to 1
|
1 |
Adds a 'delay' to the animation |
window |
float |
1 to 10
|
2 |
Allows you to zoom in on an oscilloscope
|
direction |
string |
forward or backward
|
forward |
Changes the direction for spectrogram
|
smoothing |
float |
0 to 1
|
0.8 |
Changes the smoothingTimeConstant |
fftSize |
int |
32 , 64 , 128 , 256 , 512 , 1024 , 2048 , 4096 , 8192 , 16384 , 32768
|
2048 |
Changes the fftSize |