SoundFileSource Class Reference
[Input/Output]
Interface for sound file sources.
More...
#include <SoundFileSource.h>
Inherits Marsyas::MarSystem.
Detailed Description
Interface for sound file sources.
Abstract base class for any type of sound file input. Specific IO classes for various formats like AuFileSource are children of this class.
Controls:
- mrs_string/filename [w] : name of the sound file to read
- mrs_bool/hasData [r] : is there any data left?
- mrs_bool/lastTickWithData [r]: true at the last buffer with data
- mrs_natural/pos [rw] : sample position currently read, in samples
- mrs_natural/loopPos [rw] : sample position at which to loop
- mrs_string/allfilenames [w] : a long string containing every sound file to read.
- mrs_natural/numFiles [r] : how many files to read
- mrs_natural/size [r] : number of samples in the current sound file
- mrs_real/frequency [r] : sample rate of the current sound file
- mrs_bool/noteon [rw] : used as a wavetable on receiving a noteon.
- mrs_real/repetitions [rw] : number of times to repeat the sound file
- mrs_real/duration [r] : number of seconds in the current sound file
- mrs_natural/advance [w] : go to the next sound file (collection only)
- mrs_bool/shuffle [w] : randomize the order of reading multiple sound files
- mrs_natural/cindex [rw] : number of the current sound file in the collection
- mrs_string/currentlyPlaying [r] : filename of the current sound file.
- mrs_string/previouslyPlaying [r] : filename of the previous sound file.
- mrs_bool/regression [w] : switch to regression instead of classification
- mrs_real/currentLabel [r] : current label of file played
- mrs_real/previousLabel [r] : previous label of file played
- mrs_natural/nLabels [r] : number of labels
- mrs_string/labelNames [r] : labels (for collections)
- mrs_bool/currentHasData [r] : is there any audio data remaining (for collections)
- mrs_bool/currentLastTickWithData [r]: The current file in a collection is at the last tick with data
- mrs_bool/currentCollectionNewFile [r] : the current tick began reading a new file (for collections)
- mrs_bool/startStable [r] : the current tick should begin a new stabilization count (for WekaSink resetStable).
- See also:
- SoundFileSourceHopper for generating an audio slices from a SoundFileSource in a sliding/hopping window fashion.
Definition at line 84 of file SoundFileSource.h.
The documentation for this class was generated from the following files: