Skip to content

Batch Processor

Ccwilliams314 edited this page Apr 4, 2026 · 1 revision

Batch Processor

Module limewire/pages/batch_processor.py
Class BatchProcessorPage(ScrollFrame)

Overview

Batch audio processing page that applies multiple operations to many files at once. Supports loudness normalization, format conversion, fade in/out, silence trimming, and metadata stripping. Operations run in a background thread with progress tracking and cancellation support.

Features

  • Add files individually or scan entire folders
  • File list display with count
  • Six toggleable operations:
    • Normalize loudness (configurable target dBFS)
    • Convert format (mp3, wav, flac, ogg, m4a)
    • Fade in (configurable duration)
    • Fade out (configurable duration)
    • Trim silence (configurable threshold dBFS)
    • Strip metadata
  • Fade curve options: linear, exponential, logarithmic
  • Background processing with progress bar
  • Cancel button to abort mid-batch
  • Per-page settings: silence threshold, fade curve

Key Methods

Method Description
_add_files() Open file dialog to add audio files
_add_folder() Recursively add all audio files from a folder
_clear_files() Clear the file list
_run() Execute all enabled operations on all files in a background thread
_cancel() Set cancel flag to abort processing
_process_file(path) Apply selected operations to a single file

Clone this wiki locally