📜  audio yh (1)

📅  最后修改于: 2023-12-03 14:59:25.219000             🧑  作者: Mango

Audio YH

Audio YH is an audio processing library written in C++ that provides a range of audio effects and utilities. It is open source and can be used for both commercial and non-commercial projects.

Features

Some of the features of Audio YH are:

  • Audio resampling
  • Echo and reverb effects
  • Pitch shifting
  • Audio filtering
  • Audio time stretching
  • Peak normalization
  • Audio mixing
  • Audio analysis
Installation

Audio YH can be installed by cloning the repository from GitHub and building it using CMake. Here are the steps:

  1. Clone the repository using the following command:

    git clone https://github.com/audioyh/audioyh.git
    
  2. Navigate to the cloned directory using the following command:

    cd audioyh
    
  3. Create a build directory and navigate to it:

    mkdir build && cd build
    
  4. Run CMake to generate the build files:

    cmake ..
    
  5. Build the library:

    cmake --build .
    
  6. To use the library in your project, include the audioyh header files and link against the audioyh library.

Usage

Here's an example of how to use Audio YH to load an audio file, apply an echo effect, and save the resulting audio:

#include <audioyh/audioyh.h>

int main()
{
    // Load the input audio
    audioyh::AudioFile<float> audio("input.wav");

    // Apply an echo effect
    audio = audioyh::echo(audio, 0.5f, 0.5f);

    // Save the resulting audio
    audio.save("output.wav");

    return 0;
}
Documentation

The documentation for Audio YH can be found on the project's GitHub page.

Conclusion

Audio YH is a powerful audio processing library that can be easily integrated into your projects. Its range of features and ease of use make it a great choice for anyone looking to work with audio in C++.