Logo Search packages:      
Sourcecode: csound version File versions  Download package

csound::Soundfile Class Reference

#include <Soundfile.hpp>

List of all members.


Detailed Description

Simple, basic read/write access, in sample frames, to PCM soundfiles. Reads and writes any format, but write defaults to WAV float format. This class is designed for Python wrapping with SWIG. See http://www.mega-nerd.com/libsndfile for more information on the underlying libsndfile library.

Definition at line 86 of file Soundfile.hpp.


Public Member Functions

virtual void blank (double duration)
virtual void blank (double duration)
virtual int close ()
virtual int close ()
virtual void cosineGrain (double centerTimeSeconds, double durationSeconds, double frequencyHz, double amplitude, double phaseOffsetRadians, double pan, bool synchronousPhase=true, bool buffer=false)
virtual int create (std::string filename, int framesPerSecond=44100, int channelsPerFrame=2, int format=SF_FORMAT_WAV|SF_FORMAT_FLOAT)
virtual int create (std::string filename, int framesPerSecond=44100, int channelsPerFrame=2, int format=SF_FORMAT_WAV|SF_FORMAT_FLOAT)
virtual void error () const
virtual void error () const
virtual int getChannelsPerFrame () const
virtual int getChannelsPerFrame () const
virtual int getFormat () const
virtual int getFormat () const
virtual int getFrames () const
virtual int getFrames () const
virtual int getFramesPerSecond () const
virtual int getFramesPerSecond () const
virtual void jonesParksGrain (double centerTimeSeconds, double durationSeconds, double beginningFrequencyHz, double centerFrequencyHz, double centerAmplitude, double centerPhaseOffsetRadians, double pan, bool synchronousPhase=true, bool buffer=false)
virtual int mixFrames (double *inputFrames, int samples, double *mixedFrames)
virtual int mixFrames (double *inputFrames, int samples, double *mixedFrames)
virtual void mixGrain ()
virtual int open (std::string filename)
virtual int open (std::string filename)
virtual int readFrame (double *outputFrame)
virtual int readFrame (double *outputFrame)
virtual int readFrames (double *outputFrames, int samples)
virtual int readFrames (double *outputFrames, int samples)
virtual int seek (int frames, int whence=0)
virtual int seek (int frames, int whence=0)
virtual double seekSeconds (double seconds, int whence=0)
virtual double seekSeconds (double seconds, int whence=0)
virtual void setChannelsPerFrame (int channelsPerFrame)
virtual void setChannelsPerFrame (int channelsPerFrame)
virtual void setFormat (int format)
virtual void setFormat (int format)
virtual void setFramesPerSecond (int framesPerSecond)
virtual void setFramesPerSecond (int framesPerSecond)
virtual void updateHeader ()
virtual void updateHeader ()
virtual int writeFrame (double *inputFrame)
virtual int writeFrame (double *inputFrame)
virtual int writeFrames (double *inputFrames, int samples)
virtual int writeFrames (double *inputFrames, int samples)

Protected Member Functions

virtual void initialize ()
virtual void initialize ()

Private Attributes

boost::numeric::ublas::matrix
< double > 
grainBuffer
boost::numeric::ublas::matrix
< double > 
grainOutput
size_t sampleCount
SF_INFO sf_info
SNDFILE * sndfile
double startTimeSeconds

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index