|
Nsound
0.9.4
|
Classes | |
| class | AudioBackend |
| class | AudioBackendLibao |
| class | AudioBackendLibportaudio |
| class | AudioPlayback |
| struct | AudioPlaybackRtDebug |
| class | AudioPlaybackRt |
| class | AudioStream |
| class | AudioStreamSelection |
| A helper class for advance operators. More... | |
| class | Buffer |
| A Buffer for storing audio samples. More... | |
| class | BufferSelection |
| A helper class for advance operators. More... | |
| class | BufferWindowSearch |
| Searches the target Buffer for zero crossings at or after the window_size position. More... | |
| class | CircularBuffer |
| class | circular_iterator |
| A circulator iterator for class Buffer. More... | |
| class | const_circular_iterator |
| class | Clarinet |
| Class Drum. More... | |
| class | Cosine |
| DOXME. More... | |
| struct | Context |
| class | DelayLine |
| class | DrumBD01 |
| Class DrumBD01. More... | |
| class | DrumKickBass |
| Class Drum. More... | |
| class | EnvelopeAdsr |
| class | FFTChunk |
| Results of performing an FFT are stored in this class. More... | |
| class | FFTransform |
| A Class that performes the Fast Fouier Transfrom on a Buffer. More... | |
| class | Filter |
| Base class for IIR Filters, defines the interface. More... | |
| class | FilterAllPass |
| class | FilterBandPassFIR |
| class | FilterBandPassIIR |
| class | FilterBandPassVocoder |
| class | FilterBandRejectFIR |
| class | FilterBandRejectIIR |
| class | FilterCombLowPassFeedback |
| A class for filtering audio in the frequecy domain. More... | |
| class | FilterDC |
| class | FilterDelay |
| A class for filtering audio in the frequecy domain. More... | |
| class | FilterFlanger |
| A class for filtering audio in the frequecy domain. More... | |
| class | FilterHighPassFIR |
| class | FilterHighPassIIR |
| A class for filtering audio in the frequecy domain. More... | |
| class | FilterIIR |
| class | FilterLeastSquaresFIR |
| A FIR filter that is defined as the least square error to the desired requency response. More... | |
| class | FilterLowPassFIR |
| class | FilterLowPassIIR |
| A class for filtering audio in the frequecy domain. More... | |
| class | FilterLowPassMoogVcf |
| class | FilterMovingAverage |
| class | FilterParametricEqualizer |
| Implementation of Zoelzer's parametric equalizer filters, with some modifications by the author. More... | |
| class | FilterPhaser |
| A class for filtering audio in the frequecy domain. More... | |
| class | FilterSlinky |
| Base class for IIR Filters, defines the interface. More... | |
| class | FilterStageIIR |
| A class for filtering audio in the frequecy domain. More... | |
| class | FilterTone |
| class | FluteSlide |
| Class Drum. More... | |
| class | Generator |
| A class the provides draw utilities and a wavetable oscillator. More... | |
| class | GeneratorDecay |
| A class tha generates decay curves. More... | |
| class | Granulator |
| class | GuitarBass |
| Class Drum. More... | |
| class | Hat |
| Class Hat. More... | |
| class | Instrument |
| The Nsound Instrument baseclass. All Nsound instruments extend this class. More... | |
| class | Kernel |
| class | Mesh2D |
| class | MeshJunction |
| class | Mixer |
| This class enables easy scheduling and mixing of multiple AudioStreams. More... | |
| class | MixerNode |
| This class holds the nodes for use with the Mixer class. More... | |
| struct | Exception |
| class | OrganPipe |
| Class OrganPipe. More... | |
| class | Axes |
| A wrapper around a Matplotlib Axes object. More... | |
| class | Plotter |
| class | Pluck |
| Implements a simple Karplus-Strong String Synthesis algorithim. More... | |
| class | Pulse |
| A Pulse Generator. More... | |
| class | RandomNumberGenerator |
| Base class for random number generators. More... | |
| class | ReverberationRoom |
| class | RngTausworthe |
| class | Sawtooth |
| DOXME. More... | |
| class | Sine |
| DOXME. More... | |
| class | Spectrogram |
| The result from an STFT. More... | |
| class | Square |
| Square generator. More... | |
| class | Stretcher |
| WSOLA. More... | |
| class | Triangle |
| Triangle generator. More... | |
| class | Vocoder |
| class | Wavefile |
| Very simple Wavefile reading class. More... | |
| class | ID3v1Tag |
Typedefs | |
| typedef std::vector < std::vector< boolean > > | BooleanVectorVector |
| typedef std::vector< Buffer > | BufferVector |
| typedef std::vector< Buffer * > | BufferPointerVector |
| typedef std::vector< boolean > | BooleanVector |
| typedef std::vector< uint32 > | Uint32Vector |
| typedef std::vector< float64 > | FloatVector |
| typedef std::vector< FFTChunk > | FFTChunkVector |
| typedef std::set< Kernel > | KernelCache |
| typedef std::set< MixerNode > | MixerSet |
| typedef bool | boolean |
| typedef signed char | byte |
| typedef signed char | int8 |
| typedef signed short | int16 |
| typedef signed int | int32 |
| typedef signed long long | int64 |
| typedef float | float32 |
| typedef double | float64 |
| typedef unsigned char | ubyte |
| typedef unsigned char | uint8 |
| typedef unsigned short | uint16 |
| typedef unsigned int | uint32 |
| typedef unsigned long long | uint64 |
| typedef signed long long | raw_int64 |
| typedef unsigned long long | raw_uint64 |
| typedef double | raw_float64 |
| typedef void | PyObject |
Enumerations | |
| enum | AudioBackendType { BACKEND_TYPE_NONE, BACKEND_TYPE_LIBAO, BACKEND_TYPE_LIBPORTAUDIO } |
| enum | BufferUnderrunMode { BUM_SILENCE, BUM_NOISE, BUM_TONE } |
| enum | WindowType { BARTLETT, BLACKMAN, BLACKMAN_HARRIS, GAUSSIAN, GAUSSIAN_05, GAUSSIAN_10, GAUSSIAN_15, GAUSSIAN_20, GAUSSIAN_25, GAUSSIAN_30, GAUSSIAN_33, GAUSSIAN_35, GAUSSIAN_40, GAUSSIAN_45, GAUSSIAN_50, GAUSSIAN_55, GAUSSIAN_60, GAUSSIAN_65, GAUSSIAN_66, GAUSSIAN_70, GAUSSIAN_75, GAUSSIAN_80, GAUSSIAN_85, GAUSSIAN_90, GAUSSIAN_95, GAUSSIAN_99, HAMMING, HANNING, KAISER, NUTTALL, PARZEN, RECTANGULAR } |
Functions | |
| void | operator>> (const AudioStream &lhs, AudioPlayback &rhs) |
| void | operator>> (const Buffer &lhs, AudioPlayback &rhs) |
| void | use (const std::string &backend) |
| Selects the AudioBackend to use by name. More... | |
| void | use (const AudioBackendType &type) |
| std::vector< std::string > | getBackends () |
| Returns a list of the available audio backends by name. More... | |
| std::vector< AudioBackendType > | getBackendTypes () |
| Returns a list of the available audio backends types. More... | |
| void | operator>> (const AudioStream &lhs, AudioPlaybackRt &rhs) |
| void | operator>> (const Buffer &lhs, AudioPlaybackRt &rhs) |
| void | operator>> (float64 sample, AudioPlaybackRt &rhs) |
| AudioStream | operator+ (const AudioStream &lhs, const AudioStream &rhs) |
| AudioStream | operator- (const AudioStream &lhs, const AudioStream &rhs) |
| AudioStream | operator* (const AudioStream &lhs, const AudioStream &rhs) |
| AudioStream | operator/ (const AudioStream &lhs, const AudioStream &rhs) |
| AudioStream | operator^ (const AudioStream &lhs, const AudioStream &rhs) |
| AudioStream | operator+ (const AudioStream &lhs, const Buffer &rhs) |
| AudioStream | operator- (const AudioStream &lhs, const Buffer &rhs) |
| AudioStream | operator* (const AudioStream &lhs, const Buffer &rhs) |
| AudioStream | operator/ (const AudioStream &lhs, const Buffer &rhs) |
| AudioStream | operator^ (const AudioStream &lhs, const Buffer &rhs) |
| AudioStream | operator+ (const AudioStream &lhs, float64 d) |
| AudioStream | operator- (const AudioStream &lhs, float64 d) |
| AudioStream | operator* (const AudioStream &lhs, float64 d) |
| AudioStream | operator/ (const AudioStream &lhs, float64 d) |
| AudioStream | operator^ (const AudioStream &lhs, float64 d) |
| AudioStream | operator+ (float64 d, const AudioStream &rhs) |
| AudioStream | operator- (float64 d, const AudioStream &rhs) |
| AudioStream | operator* (float64 d, const AudioStream &rhs) |
| AudioStream | operator/ (float64 d, const AudioStream &rhs) |
| std::ostream & | operator<< (std::ostream &out, const Buffer &rhs_buffer) |
| void | find_fraction (float64 fraction, float64 gamma, uint32 &a, uint32 &b) |
| Buffer | operator+ (const Buffer &lhs, const Buffer &rhs) |
| Add the Buffers together on a sample by sample basis. More... | |
| Buffer | operator- (const Buffer &lhs, const Buffer &rhs) |
| Subtract the Buffers together on a sample by sample basis. More... | |
| Buffer | operator* (const Buffer &lhs, const Buffer &rhs) |
| Multiply the Buffers together on a sample by sample basis. More... | |
| Buffer | operator/ (const Buffer &lhs, const Buffer &rhs) |
| Divide the samples in the Buffers sample by sample basis. More... | |
| Buffer | operator^ (const Buffer &lhs, const Buffer &rhs) |
| Raise the left hand side (lhs) samples to the power in the of the samples in the right hand side (rhs). More... | |
| Buffer | operator+ (const Buffer &lhs, float64 d) |
| Add the scalar d to every sample in the Buffer. More... | |
| Buffer | operator- (const Buffer &lhs, float64 d) |
| Subtract the scalar d to every sample in the Buffer. More... | |
| Buffer | operator* (const Buffer &lhs, float64 d) |
| Multiply the scalar d to every sample in the Buffer. More... | |
| Buffer | operator/ (const Buffer &lhs, float64 d) |
| Divide every sample in the Buffer by d. More... | |
| Buffer | operator^ (const Buffer &lhs, float64 d) |
| Each sample in the Buffer becomes the power x^n. More... | |
| Buffer | operator+ (float64 d, const Buffer &rhs) |
| Add every sample in the Buffer to the scalar d. More... | |
| Buffer | operator- (float64 d, const Buffer &rhs) |
| Subtract every sample in the Buffer from the scalar d. More... | |
| Buffer | operator* (float64 d, const Buffer &rhs) |
| Multiply the scalar d by every sample in the Buffer. More... | |
| Buffer | operator/ (float64 d, const Buffer &rhs) |
| Divide the scalar d by every sample in the Buffer. More... | |
| Buffer | operator^ (float64 d, const Buffer &rhs) |
| Raise the scalar d to the power of every sample in the Buffer. More... | |
| circular_iterator | operator+ (const circular_iterator &lhs, int32 rhs) |
| circular_iterator | operator- (const circular_iterator &lhs, int32 rhs) |
| const_circular_iterator | operator+ (const const_circular_iterator &lhs, int32 rhs) |
| const_circular_iterator | operator- (const const_circular_iterator &lhs, int32 rhs) |
| std::ostream & | operator<< (std::ostream &out, const FilterIIR &rhs) |
| std::ostream & | operator<< (std::ostream &out, const Kernel &rhs) |
| void | __throw__ (const std::string &message) |
| template<class T > | |
| std::ostream & | _write (std::ostream &out, T value) |
| std::ostream & | operator& (std::ostream &out, char value) |
| std::ostream & | operator& (std::ostream &out, uint32 value) |
| std::ostream & | operator& (std::ostream &out, uint64 value) |
| std::ostream & | operator& (std::ostream &out, float32 value) |
| std::ostream & | operator& (std::ostream &out, float64 value) |
| template<class T > | |
| std::istream & | _read (std::istream &in, T &value) |
| std::istream & | operator& (std::istream &in, char &value) |
| std::istream & | operator& (std::istream &in, uint32 &value) |
| std::istream & | operator& (std::istream &in, uint64 &value) |
| std::istream & | operator& (std::istream &in, float32 &value) |
| std::istream & | operator& (std::istream &in, float64 &value) |
| template<class T > | |
| T | peek (std::istream &in) |
| void | searchForBestMatch_f64 (double *rss, const double *source, const unsigned int source_index, const unsigned int search_index, const unsigned int window_length, const unsigned int max_delta) |
| void | searchForBestMatch_f32 (float *rss, const float *source, const unsigned int source_index, const unsigned int search_index, const unsigned int window_length, const unsigned int max_delta) |
| void | Tic () |
| Nsound::float64 | Toc () |
| float64 | getFrequencyOffset (const float64 &f1, const float64 &octaves, const float64 ¢s) |
| Buffer & | operator<< (Buffer &lhs, const char *rhs) |
| void | operator>> (const Buffer &lhs, const char *rhs) |
| AudioStream & | operator<< (AudioStream &lhs, const char *rhs) |
| void | operator>> (const AudioStream &lhs, const char *rhs) |
| std::ostream & | operator<< (std::ostream &out, const ID3v1Tag &rhs) |
Variables | |
| static double | start_time = 0.0 |
| typedef std::vector< std::vector< boolean > > Nsound::BooleanVectorVector |
Definition at line 44 of file AudioStreamSelection.h.
| typedef std::vector<Buffer> Nsound::BufferVector |
| typedef std::vector<Buffer *> Nsound::BufferPointerVector |
| typedef std::vector< boolean > Nsound::BooleanVector |
Definition at line 44 of file BufferSelection.h.
| typedef std::vector< uint32 > Nsound::Uint32Vector |
Definition at line 44 of file CircularIterators.h.
| typedef std::vector< float64 > Nsound::FloatVector |
Definition at line 45 of file CircularIterators.h.
| typedef std::vector< FFTChunk > Nsound::FFTChunkVector |
Definition at line 119 of file FFTChunk.h.
| typedef std::set<Kernel> Nsound::KernelCache |
| typedef std::set<MixerNode> Nsound::MixerSet |
| typedef bool Nsound::boolean |
| typedef signed char Nsound::byte |
| typedef signed char Nsound::int8 |
| typedef signed short Nsound::int16 |
| typedef signed int Nsound::int32 |
| typedef signed long long Nsound::int64 |
| typedef float Nsound::float32 |
| typedef double Nsound::float64 |
| typedef unsigned char Nsound::ubyte |
| typedef unsigned char Nsound::uint8 |
| typedef unsigned short Nsound::uint16 |
| typedef unsigned int Nsound::uint32 |
| typedef unsigned long long Nsound::uint64 |
| typedef signed long long Nsound::raw_int64 |
| typedef unsigned long long Nsound::raw_uint64 |
| typedef double Nsound::raw_float64 |
| typedef void Nsound::PyObject |
| Enumerator | |
|---|---|
| BACKEND_TYPE_NONE | |
| BACKEND_TYPE_LIBAO | |
| BACKEND_TYPE_LIBPORTAUDIO | |
Definition at line 38 of file AudioBackendType.h.
| Enumerator | |
|---|---|
| BUM_SILENCE | |
| BUM_NOISE | |
| BUM_TONE | |
Definition at line 61 of file AudioPlaybackRt.h.
| enum Nsound::WindowType |
Definition at line 39 of file WindowType.h.
| void Nsound::operator>> | ( | const AudioStream & | lhs, |
| AudioPlayback & | rhs | ||
| ) |
Definition at line 542 of file AudioPlayback.cc.
References Nsound::AudioPlayback::play().
Referenced by Nsound::Buffer::writeWavefile().
| void Nsound::operator>> | ( | const Buffer & | lhs, |
| AudioPlayback & | rhs | ||
| ) |
Definition at line 549 of file AudioPlayback.cc.
References Nsound::AudioPlayback::play().
| void Nsound::use | ( | const std::string & | backend | ) |
Selects the AudioBackend to use by name.
| backend | the common name for the backend to use |
Definition at line 564 of file AudioPlayback.cc.
References BACKEND_TYPE_LIBAO, BACKEND_TYPE_LIBPORTAUDIO, getBackends(), M_THROW, mylower(), and Nsound::AudioPlayback::setBackendType().
Referenced by use().
| void Nsound::use | ( | const AudioBackendType & | type | ) |
Definition at line 603 of file AudioPlayback.cc.
References BACKEND_TYPE_LIBAO, BACKEND_TYPE_LIBPORTAUDIO, M_THROW, and use().
| std::vector< std::string > Nsound::getBackends | ( | ) |
Returns a list of the available audio backends by name.
Definition at line 624 of file AudioPlayback.cc.
Referenced by Nsound::AudioPlayback::scanDevices(), and use().
| std::vector< AudioBackendType > Nsound::getBackendTypes | ( | ) |
Returns a list of the available audio backends types.
Definition at line 641 of file AudioPlayback.cc.
References BACKEND_TYPE_LIBAO, and BACKEND_TYPE_LIBPORTAUDIO.
Referenced by Nsound::AudioPlayback::scanDevices().
| void Nsound::operator>> | ( | const AudioStream & | lhs, |
| AudioPlaybackRt & | rhs | ||
| ) |
Definition at line 872 of file AudioPlaybackRt.cc.
References Nsound::AudioPlaybackRt::play().
| void Nsound::operator>> | ( | const Buffer & | lhs, |
| AudioPlaybackRt & | rhs | ||
| ) |
Definition at line 878 of file AudioPlaybackRt.cc.
References Nsound::AudioPlaybackRt::play().
| void Nsound::operator>> | ( | float64 | sample, |
| AudioPlaybackRt & | rhs | ||
| ) |
Definition at line 884 of file AudioPlaybackRt.cc.
References Nsound::AudioPlaybackRt::play().
|
inline |
Definition at line 629 of file AudioStream.h.
|
inline |
Definition at line 635 of file AudioStream.h.
|
inline |
Definition at line 641 of file AudioStream.h.
|
inline |
Definition at line 647 of file AudioStream.h.
|
inline |
Definition at line 653 of file AudioStream.h.
|
inline |
Definition at line 659 of file AudioStream.h.
|
inline |
Definition at line 665 of file AudioStream.h.
|
inline |
Definition at line 671 of file AudioStream.h.
|
inline |
Definition at line 677 of file AudioStream.h.
|
inline |
Definition at line 683 of file AudioStream.h.
|
inline |
Definition at line 689 of file AudioStream.h.
|
inline |
Definition at line 695 of file AudioStream.h.
|
inline |
Definition at line 701 of file AudioStream.h.
|
inline |
Definition at line 707 of file AudioStream.h.
|
inline |
Definition at line 713 of file AudioStream.h.
|
inline |
Definition at line 719 of file AudioStream.h.
|
inline |
Definition at line 725 of file AudioStream.h.
|
inline |
Definition at line 731 of file AudioStream.h.
|
inline |
Definition at line 737 of file AudioStream.h.
References Nsound::AudioStream::getNChannels(), and Nsound::AudioStream::getSampleRate().
| std::ostream & Nsound::operator<< | ( | std::ostream & | out, |
| const Buffer & | rhs_buffer | ||
| ) |
Definition at line 1338 of file Buffer.cc.
References Nsound::Buffer::data_.
| void Nsound::find_fraction | ( | float64 | fraction, |
| float64 | gamma, | ||
| uint32 & | a, | ||
| uint32 & | b | ||
| ) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Each sample in the Buffer becomes the power x^n.
Each sample in the Buffer becomes the power x^n, where x is the Buffer sample and N is the power.
|
inline |
|
inline |
|
inline |
|
inline |
Divide the scalar d by every sample in the Buffer.
Definition at line 2009 of file Buffer.h.
References Nsound::Buffer::getLength().
|
inline |
Raise the scalar d to the power of every sample in the Buffer.
Definition at line 2024 of file Buffer.h.
References Nsound::Buffer::getLength().
|
inline |
Definition at line 188 of file CircularIterators.h.
|
inline |
Definition at line 199 of file CircularIterators.h.
|
inline |
Definition at line 319 of file CircularIterators.h.
|
inline |
Definition at line 330 of file CircularIterators.h.
| std::ostream & Nsound::operator<< | ( | std::ostream & | out, |
| const FilterIIR & | rhs | ||
| ) |
Definition at line 715 of file FilterIIR.cc.
References Nsound::Kernel::getALength(), Nsound::Kernel::getBLength(), and Nsound::FilterIIR::kernel_.
| std::ostream & Nsound::operator<< | ( | std::ostream & | out, |
| const Kernel & | rhs | ||
| ) |
Definition at line 174 of file Kernel.cc.
References Nsound::Kernel::a_, Nsound::Kernel::a_length_, Nsound::Kernel::b_, Nsound::Kernel::b_length_, and FORMAT.
|
inline |
Definition at line 54 of file Macros.h.
| std::ostream& Nsound::_write | ( | std::ostream & | out, |
| T | value | ||
| ) |
Definition at line 36 of file StreamOperators.cc.
Referenced by operator&().
| std::ostream & Nsound::operator& | ( | std::ostream & | out, |
| char | value | ||
| ) |
| std::ostream & Nsound::operator& | ( | std::ostream & | out, |
| uint32 | value | ||
| ) |
| std::ostream & Nsound::operator& | ( | std::ostream & | out, |
| uint64 | value | ||
| ) |
| std::ostream & Nsound::operator& | ( | std::ostream & | out, |
| float32 | value | ||
| ) |
| std::ostream & Nsound::operator& | ( | std::ostream & | out, |
| float64 | value | ||
| ) |
| std::istream& Nsound::_read | ( | std::istream & | in, |
| T & | value | ||
| ) |
Definition at line 59 of file StreamOperators.cc.
Referenced by operator&().
| std::istream & Nsound::operator& | ( | std::istream & | in, |
| char & | value | ||
| ) |
| std::istream & Nsound::operator& | ( | std::istream & | in, |
| uint32 & | value | ||
| ) |
| std::istream & Nsound::operator& | ( | std::istream & | in, |
| uint64 & | value | ||
| ) |
| std::istream & Nsound::operator& | ( | std::istream & | in, |
| float32 & | value | ||
| ) |
| std::istream & Nsound::operator& | ( | std::istream & | in, |
| float64 & | value | ||
| ) |
| T Nsound::peek | ( | std::istream & | in | ) |
Definition at line 59 of file StreamOperators.h.
| void Nsound::searchForBestMatch_f64 | ( | double * | rss, |
| const double * | source, | ||
| const unsigned int | source_index, | ||
| const unsigned int | search_index, | ||
| const unsigned int | window_length, | ||
| const unsigned int | max_delta | ||
| ) |
| void Nsound::searchForBestMatch_f32 | ( | float * | rss, |
| const float * | source, | ||
| const unsigned int | source_index, | ||
| const unsigned int | search_index, | ||
| const unsigned int | window_length, | ||
| const unsigned int | max_delta | ||
| ) |
| void Nsound::Tic | ( | ) |
Definition at line 37 of file TicToc.cc.
References start_time.
Referenced by main(), and testAutioStream().
| Nsound::float64 Nsound::Toc | ( | ) |
Definition at line 42 of file TicToc.cc.
References start_time.
Referenced by main(), and testAutioStream().
| void Nsound::operator>> | ( | const Buffer & | lhs, |
| const char * | rhs | ||
| ) |
Definition at line 1488 of file Wavefile.cc.
References Nsound::Wavefile::getDefaultSampleRate(), Nsound::Wavefile::getDefaultSampleSize(), and Nsound::Wavefile::write().
| AudioStream & Nsound::operator<< | ( | AudioStream & | lhs, |
| const char * | rhs | ||
| ) |
Definition at line 1500 of file Wavefile.cc.
References Nsound::Wavefile::read().
| void Nsound::operator>> | ( | const AudioStream & | lhs, |
| const char * | rhs | ||
| ) |
Definition at line 1509 of file Wavefile.cc.
References Nsound::Wavefile::getDefaultSampleSize(), and Nsound::Wavefile::write().
| std::ostream & Nsound::operator<< | ( | std::ostream & | out, |
| const ID3v1Tag & | rhs | ||
| ) |
Definition at line 1860 of file Wavefile.cc.
References Nsound::ID3v1Tag::album, Nsound::ID3v1Tag::artist, Nsound::ID3v1Tag::comment, Nsound::ID3v1Tag::genre, Nsound::ID3v1Tag::title, and Nsound::ID3v1Tag::year.
|
static |
Definition at line 35 of file TicToc.cc.
Referenced by Nsound::Mixer::getStream(), Tic(), and Toc().
1.8.6