Skip to content

Samples

Ccwilliams314 edited this page Apr 4, 2026 · 1 revision

Samples

Module limewire/pages/samples.py
Class SamplesPage(ScrollFrame)

Overview

Freesound.org sample browser and downloader. Search for loops, sound effects, and one-shots with filters for duration, sort order, and license type. Preview samples inline and download directly to a local folder.

Features

  • Search Freesound.org API with text queries
  • Duration filters: any, 0-5s, 5-30s, 30s-2m, 2m+
  • Sort options: relevance score, downloads, rating, duration, creation date
  • Results display: name, duration, sample rate, download count, license
  • Inline audio preview via pyglet backend
  • Direct download of selected samples
  • Open sample page in system browser
  • API key management (saved to app settings)
  • Per-page settings: results per page, request timeout

Key Methods

Method Description
_search() Query Freesound API with current filters and populate results list
_preview() Download and play a preview of the selected sample
_download() Download selected sample to the configured output folder
_open_web() Open the Freesound page for the selected sample in a browser
_save_key() Save the Freesound API key to application settings

Clone this wiki locally