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 // Setup state
this.paused = false; this.paused = false;
this.fullscreen = false; this.fullscreen = false;
this.min_db = -30; this.min_db = 20;
this.max_db = 50; this.max_db = 80;
this.spectrumHeight = 0; this.spectrumHeight = 0;
// Colors // Colors
this.colorindex = 0; this.colorindex = 0;
this.colormap = colormaps[2]; this.colormap = colormaps[2];
// Create main canvas and adjust dimensions to match actual // Create main canvas and adjust dimensions to match actual
this.canvas = document.getElementById(id); this.canvas = document.getElementById(id);