Crates.io | sinewave_gen |
lib.rs | sinewave_gen |
version | 0.1.0 |
source | src |
created_at | 2024-11-22 19:01:04.360237 |
updated_at | 2024-11-22 19:01:04.360237 |
description | A 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 | |
id | 1457618 |
size | 180,225 |
A Rust application that generates a 440 Hz sine wave and saves it as a .wav
file.
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.
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.
hound: A Rust library for reading and writing WAV audio files
This project is open source and available under the MIT License
Ben Santora bensatlantik@gmail.com