#include <AiffFile.h>
Public Types | |
| typedef std::vector< double > | samples_type |
| The type of the sample storage in an AiffFile. | |
| typedef samples_type::size_type | size_type |
| The type of all size parameters for AiffFile. | |
| typedef std::vector< Marker > | markers_type |
| The type of AIFF marker storage in an AiffFile. | |
Public Member Functions | |
| AiffFile (const std::string &filename) | |
| Initialize an instance of AiffFile by importing sample data from the file having the specified filename or path. | |
| template<typename Iter> | AiffFile (Iter begin_partials, Iter end_partials, double samplerate, double fadeTime=.001) |
| Initialize an instance of AiffFile with samples rendered from a sequnence of Partials. | |
| AiffFile (double samplerate, size_type numFrames=0) | |
| Initialize an instance of AiffFile having the specified sample rate, preallocating numFrames samples, initialized to zero. | |
| AiffFile (const double *buffer, size_type bufferlength, double samplerate) | |
| Initialize an instance of AiffFile from a buffer of sample data, with the specified sample rate. | |
| AiffFile (const std::vector< double > &vec, double samplerate) | |
| Initialize an instance of AiffFile from a vector of sample data, with the specified sample rate. | |
| AiffFile (const AiffFile &other) | |
| Initialize this and AiffFile that is an exact copy, having all the same sample data, as another AiffFile. | |
| AiffFile & | operator= (const AiffFile &rhs) |
| Assignment operator: change this AiffFile to be an exact copy of the specified AiffFile, rhs, that is, having the same sample data. | |
| markers_type & | markers (void) |
| Return a reference to the Marker (see Marker.h) container for this AiffFile. | |
| const markers_type & | markers (void) const |
| Return a const reference to the Marker (see Marker.h) container for this AiffFile. | |
| double | midiNoteNumber (void) const |
| Return the fractional MIDI note number assigned to this AiffFile. | |
| size_type | numFrames (void) const |
| Return the number of sample frames represented in this AiffFile. | |
| double | sampleRate (void) const |
| Return the sampling freqency in Hz for the sample data in this AiffFile. | |
| samples_type & | samples (void) |
| Return a reference (or const reference) to the vector containing the floating-point sample data for this AiffFile. | |
| const samples_type & | samples (void) const |
| Return a const reference (or const reference) to the vector containing the floating-point sample data for this AiffFile. | |
| void | addPartial (const Loris::Partial &p, double fadeTime=.001) |
| Render the specified Partial using the (optionally) specified Partial fade time, and accumulate the resulting samples into the sample vector for this AiffFile. | |
| template<typename Iter> void | addPartials (Iter begin_partials, Iter end_partials, double fadeTime=.001) |
| Accumulate samples rendered from a sequence of Partials. | |
| void | setMidiNoteNumber (double nn) |
| Set the fractional MIDI note number assigned to this AiffFile. | |
| void | write (const std::string &filename, unsigned int bps=16) |
| Export the sample data represented by this AiffFile to the file having the specified filename or path. | |
Since the sound analysis and synthesis algorithms in Loris and the reassigned bandwidth-enhanced representation are monaural, AiffFile manages only monaural (single channel) AIFF-format samples files.
|
|
Initialize an instance of AiffFile by importing sample data from the file having the specified filename or path.
|
|
||||||||||||||||||||||||
|
Initialize an instance of AiffFile with samples rendered from a sequnence of Partials. The Partials in the specified half-open (STL-style) range are rendered at the specified sample rate, using the (optionally) specified Partial fade time (see Synthesizer.h for an examplanation of fade time).
|
|
||||||||||||
|
Initialize an instance of AiffFile having the specified sample rate, preallocating numFrames samples, initialized to zero.
|
|
||||||||||||||||
|
Initialize an instance of AiffFile from a buffer of sample data, with the specified sample rate.
|
|
||||||||||||
|
Initialize an instance of AiffFile from a vector of sample data, with the specified sample rate.
|
|
|
Initialize this and AiffFile that is an exact copy, having all the same sample data, as another AiffFile.
|
|
||||||||||||
|
Render the specified Partial using the (optionally) specified Partial fade time, and accumulate the resulting samples into the sample vector for this AiffFile.
|
|
||||||||||||||||||||
|
Accumulate samples rendered from a sequence of Partials. The Partials in the specified half-open (STL-style) range are rendered at this AiffFile's sample rate, using the (optionally) specified Partial fade time (see Synthesizer.h for an examplanation of fade time).
|
|
|
Return the fractional MIDI note number assigned to this AiffFile. If the sound has no definable pitch, note number 60.0 is used. |
|
|
Return the number of sample frames represented in this AiffFile. A sample frame contains one sample per channel for a single sample interval (e.g. mono and stereo samples files having a sample rate of 44100 Hz both have 44100 sample frames per second of audio samples). |
|
|
Assignment operator: change this AiffFile to be an exact copy of the specified AiffFile, rhs, that is, having the same sample data.
|
|
|
Set the fractional MIDI note number assigned to this AiffFile. If the sound has no definable pitch, use note number 60.0 (the default).
|
|
||||||||||||
|
Export the sample data represented by this AiffFile to the file having the specified filename or path. Export signed integer samples of the specified size, in bits (8, 16, 24, or 32).
|
1.3.4