sinewave_gen

Crates.iosinewave_gen
lib.rssinewave_gen
version0.1.0
sourcesrc
created_at2024-11-22 19:01:04.360237
updated_at2024-11-22 19:01:04.360237
descriptionA Rust application that generates a 440 Hz sine wave and saves it as a WAV file. Useful for learning audio processing basics or testing audio systems.
homepage
repository
max_upload_size
id1457618
size180,225
Ben Santora (bensatlantik)

documentation

README

Sinewave Generator

A Rust application that generates a 440 Hz sine wave and saves it as a .wav file.

Overview

This project creates a simple sine wave audio file (sine_wave_440hz.wav) using the hound crate for handling the WAV format. The generated audio is 2 seconds long, with a single channel (mono) and a sample rate of 44.1 kHz.

How to Run

Clone this repository or navigate to the sinewave_gen directory.

Build the project:

   cargo build

Run the project:

   cargo run

This will generate the sine_wave_440hz.wav file in the current directory.

Dependencies

hound: A Rust library for reading and writing WAV audio files

License

This project is open source and available under the MIT License

Author

Ben Santora bensatlantik@gmail.com

Commit count: 0

cargo fmt