Updated frequency-domain filtering example

11 marca 2013 09:20 tags:

The FFT example using Fourier Transform to perform frequency-domain filtering has been updated to reflect latest API changes in Aquila. See previous version of this example.

#include "aquila/global.h" ...

Iteration over wave file data: revisited

3 lutego 2013 11:42 tags:

The iteration example has been updated using some features from C++11:

Sawtooth and triangle wave generator

8 sierpnia 2010 13:52 tags:

TriangleGenerator class can be used to create sawtooth and triangle waveforms. The default behaviour is to generate a sawtooth wave, where a rising slope fills the entire period of a ...

Square wave generator

8 sierpnia 2010 01:41 tags:

The following code demonstrates how to use SquareGenerator class. As it is derived from SignalSource, it can be directly plotted with TextPlot. The square wave generator supports setting duty cycle ...

FFT examples

29 kwietnia 2010 02:07 tags:

Two new FFT-related examples appeared. Simpler one shows how to calculate the spectrum, and another one demonstrates frequency-domain signal filtering.

The window functions example was simplified, thanks to the ...

Frequency-domain filtering with FFT

29 kwietnia 2010 01:47 tags:

Signal filtering can be expressed in two (equivalent) approaches.

  1. convolution of the signal and impulse response of the filter - in time domain
  2. multiplication of signal spectrum and filter's transfer ...

A simple FFT example

28 kwietnia 2010 22:03 tags:

The following example shows how to use FFT to calculate spectrum of a signal. The input signal is a sum of two sine waves (125 and 700 Hz) sampled at ...

TextPlot and a C-style array

14 kwietnia 2010 21:05 tags:

Aquila::TextPlot can be used to output a one-dimensional data array to console.

#include "aquila/tools/TextPlot.h"
#include <cstddef>

int main(int argc, char *argv[])
    const std::size_t SIZE ...

Iterating over wave file data

8 kwietnia 2010 00:33 tags:

#include "aquila/global.h"
#include "aquila/source/WaveFile.h"
#include <algorithm>
#include <cstdlib>
#include <iostream>

int main(int argc, char *argv[])
    if (argc < 2)
        std::cout << "Usage: wave_iteration ...

Plotting window functions

8 kwietnia 2010 00:33 tags:

This is a very simple way to get a preview of window function shape. The example uses Aquila::TextPlot as a drawing tool. Windows are drawn as simple asterisk patterns ...

Wave file information

8 kwietnia 2010 00:32 tags:

Aquila::WaveFile class allows accessing audio data stored in a .wav file. Apart from reading audio samples, you can query the WaveFile object for header meta information.

#include "aquila/source ...