Add boilerplate for the analyzer widget

This commit is contained in:
Robbert van der Helm
2023-03-20 14:56:43 +01:00
parent 990fe33ff7
commit 7c4ae32ba4
4 changed files with 112 additions and 12 deletions

View File

@@ -26,7 +26,7 @@ use crate::params;
use crate::spectrum::SpectrumOutput;
/// A very abstract spectrum analyzer. This draws the magnitude spectrum's bins as vertical lines
/// with the same distirubtion as the filter frequency parameter..
/// with the same distribution as the filter frequency parameter..
pub struct SpectrumAnalyzer {
spectrum: Arc<Mutex<SpectrumOutput>>,
sample_rate: Arc<AtomicF32>,