![]() |
:)
|
RustyAudioLib is an easy to use AudioLibrary that allows users to instantiate a variety of processing units and apply them to a signal chain. RustyAudioLib projects can then be compiled out and used to create real-time audio processing effects.
Let's get you on the way to using RustyAudioLibrary.
RustyAudioLib comes with a package handling script. This script builds an appropriate version of PortAudio to be used on your machine, then compiles RustyAudioLib into a static binary and brings everything together in a nice neat project folder. The project/ directory. From project/ you can start using the library.
To begin the build script, open a terminal in the RustyAudioLib-dist/ directory and run:
This will begin the build script, then run and shutdown a copy of RustyAudioLib.
Provided there are no issues, you should have a ready to use RustyAudioLibrary build. Navigate to project/ and open the main.cpp to begin.
Once built the example project comes with a very simple .cpp file.
This example project simply tests if the project can run. To actually use the library you'll want something closer to this:
Here we've made use of our creation functions to create two RustyProcessor units, a RustyFilter and a RustyOverdrive. We've also created a RustyModulator, that is our RustyLFO. We then add our processors to the signal chain in a sequential order (the order of adding to the signal chain will be the order of processing). We then bind our LFO to the frequency of our filter. And finally we set the IO devices appropriately before initialising the library.
Feel free to click the functions in the above code snippets to go to their documentation page and get more information about how to use them.
RustyAudioLib requires an instantiation (RustyAudioLibAPI), IO settings (setIO) and an initialise call (init) to work properly.
You should now be able to play around with RustyAudioLib. Have fun!!!
Consult the Modules section of these docs to better understand what the RustyAudioLibrary is made from.