13 #ifndef __Pd____SoundFiler__
14 #define __Pd____SoundFiler__
19 #include "FileWrite.h"
42 std::vector<double> soundFileData;
45 void setArray(std::vector<double> );
50 double read(std::string file);
51 void write(std::string fileName,
52 unsigned int nChannels,
53 stk::FileWrite::FILE_TYPE type,
54 Stk::StkFormat format,
55 std::vector<double> array);
57 std::vector<double> getArray() {
return soundFileData;};
59 const std::string pdName =
"soundfiler";
Reads and writes sound files.
Definition: SoundFiler.h:38
The Pd++ namespace.
Definition: BandPass.cpp:14
STK audio file input class.
Definition: FileWvIn.h:42
A super class inherited by all Pd++ objects.
Definition: PdMaster.h:62
double read(std::string file)
Definition: SoundFiler.cpp:40
An STK class to handle vectorized audio data.
Definition: Stk.h:272
STK base class.
Definition: Stk.h:132
void write(std::string fileName, unsigned int nChannels, stk::FileWrite::FILE_TYPE type, Stk::StkFormat format, std::vector< double > array)
Definition: SoundFiler.cpp:93