Skip to content

symphony2colour/wav-generator-pyqt6

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WAV Gen (PyQt6 GUI)

type audio python license

A small PyQt6 desktop app that generates a mono sine-wave WAV file.
Set sample rate, duration, frequency, volume, choose an output folder, and export a .wav.

What’s inside

  • wav_gen.py — main application (loads the UI, handles events, generates the WAV output)
  • interface_gen.py — PyQt6 UI layout (generated UI class used by wav_gen.py)

Features

  • Folder picker for output directory
  • Generates mono WAV (16-bit PCM)
  • Adjustable parameters:
    • Sample rate (e.g., 44100)
    • Duration (seconds)
    • Frequency (Hz)
    • Volume (float)
    • Output filename

Requirements

  • Python 3.x
  • PyQt6

Install:

pip install PyQt6

Run

python wav_gen.py

Usage

  1. Run the app.
  2. Click Select Folder and choose where to save the file.
  3. Enter:
    • sample rate
    • duration (seconds)
    • frequency (Hz)
    • volume
    • output filename
  4. Click Generate to create the .wav.

Output

The app saves the generated file to: <selected_folder>/<filename>.wav

Third‑party reference (MIT)

The WAV generation logic in this project is adapted from the MIT-licensed script:

If you further modify the WAV generation code, keep the attribution in the source file(s) that include adapted portions.

Notes

  • Output is mono only (this GUI version focuses on mono export).
  • interface_gen.py is generated UI code; typically you only edit logic in wav_gen.py.

About

PyQt6 GUI tool to generate mono sine-wave WAV files.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages