This GitLab instance reached the end of its service life. It won't be possible to create new users or projects.

Please read the deprecation notice for more information concerning the deprecation timeline

Visit (internal network only) to import your old projects to the new GitLab platform 📥

Commit 309b375c by Henrik von Coler

Edited for the granular example!

parent bb980028
wav_example {#mainpage}
granular__example {#mainpage}
This example introduces the libsndfile
for reading a wav file and playing it
back in a loop. It is able to process
mono and stereo files.
This example uses the SingleSample
class in comination with a TriangularWindow
class for a basic granular synthesis.
The playback speed (resampling) can be
The playback speed (analysis window rate) can be
controlled using OSC. The OSC path
and port are hardcoded in the file
WavExample.cpp and oscman.cpp.
......@@ -23,8 +22,11 @@ The following libraries are used within this project:
# Usage
The binaray gain_example expects one command
line argument for wav file to read with the
flag '-f':
The binaray granular_example expects three
command line arguments:
./gain_example -f ../wav/stereo_sine.wav
\ No newline at end of file
- the wav file to read with the flag '-f'
- the grain size in samples '-l'
- the number of windows to be used '-n
./granular_example -f ../../wav/wos\ der\ chef.wav -l 1000 -n 4
PROJECT_NAME = "Wav_Example"
PROJECT_NAME = "Granular_Example"
PROJECT_BRIEF = "Simple wav file looper with adjustable playback speed!"
PROJECT_BRIEF = "Simple granular example playback speed!"
INPUT = "../"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment