mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-09-03 16:50:40 +02:00
fix(audio-analysis): avoid spectrogram splice noise
This commit is contained in:
@@ -3,7 +3,7 @@ part of 'audio_analysis_widget.dart';
|
||||
// Analysis result models and per-run parameter records.
|
||||
|
||||
class AudioAnalysisData {
|
||||
static const cacheVersion = 12;
|
||||
static const cacheVersion = 13;
|
||||
|
||||
final String filePath;
|
||||
final int fileSize;
|
||||
|
||||
@@ -23,7 +23,12 @@ const int audioSpectrogramWidth = 1600;
|
||||
const int audioSpectrogramHeight = 800;
|
||||
const int audioSpectralAnalysisWidth = 400;
|
||||
const double audioSpectrogramDynamicRangeDb = 120;
|
||||
const int audioSpectrogramSampleWindowCount = 300;
|
||||
// Keep splice boundaries well below the cutoff estimator's top temporal
|
||||
// percentile. Too many short excerpts turn waveform discontinuities into a
|
||||
// persistent broadband floor, which can make a real low-pass edge look like
|
||||
// full-band content. Longer windows preserve the same whole-track coverage and
|
||||
// memory bound while making the small number of seams statistical outliers.
|
||||
const int audioSpectrogramSampleWindowCount = 16;
|
||||
const int audioSpectrogramMaxSelectedChannelSamples = 8 * 1024 * 1024;
|
||||
|
||||
String formatAudioAnalysisSpectralCutoff(
|
||||
|
||||
Reference in New Issue
Block a user