Add cabpack generation with default mode and file organization

This commit is contained in:
Bastian Bührig
2025-12-02 14:28:39 +01:00
parent 1954312833
commit 73cff7ea08
4 changed files with 1076 additions and 171 deletions

View File

@@ -62,8 +62,9 @@ func PlotIR(ir []float64, sampleRate int, irFileName string) error {
}
}
fmt.Printf("[PlotIR] minDb in plotted range: %.2f dB at %.2f Hz\n", minDb, minDbFreq)
irBaseName := filepath.Base(irFileName)
p := plot.New()
p.Title.Text = "IR Frequency Response (dB, 2048-sample window)"
p.Title.Text = fmt.Sprintf("IR Frequency Response: %s", irBaseName)
p.X.Label.Text = "Frequency (Hz)"
p.Y.Label.Text = "Magnitude (dB)"
p.X.Scale = plot.LogScale{}
@@ -111,7 +112,7 @@ func PlotIR(ir []float64, sampleRate int, irFileName string) error {
// --- Time-aligned waveform plot ---
p2 := plot.New()
p2.Title.Text = "IR Waveform (Time Aligned)"
p2.Title.Text = fmt.Sprintf("IR Waveform: %s", irBaseName)
p2.X.Label.Text = "Time (ms)"
p2.Y.Label.Text = "Amplitude"
// Prepare waveform data (only first 10ms)