first working fft

This commit is contained in:
DJ2LS 2021-09-05 11:26:37 +02:00 committed by GitHub
parent ad018e9a31
commit 27cd7493ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -395,13 +395,13 @@ function Spectrum(id, options) {
// Setup state
this.paused = false;
this.fullscreen = false;
this.min_db = -30;
this.max_db = 50;
this.min_db = 20;
this.max_db = 80;
this.spectrumHeight = 0;
// Colors
this.colorindex = 0;
this.colormap = colormaps[2];
this.colormap = colormaps[2];
// Create main canvas and adjust dimensions to match actual
this.canvas = document.getElementById(id);