svcore
1.9
|
WritableWaveFileModel.h
Go to the documentation of this file.
184 std::vector<floatvec_t> getMultiChannelData(int fromchannel, int tochannel, sv_frame_t start, sv_frame_t count) const override;
Definition: WaveFileModel.h:23
Definition: WritableWaveFileModel.h:26
int getSummaryBlockSize(int desired) const override
Definition: WritableWaveFileModel.cpp:335
ReadOnlyWaveFileModel * m_model
Definition: WritableWaveFileModel.h:207
void writeCompleted(ModelId)
std::vector< floatvec_t > getMultiChannelData(int fromchannel, int tochannel, sv_frame_t start, sv_frame_t count) const override
Get the specified set of samples from given contiguous range of channels of the model in single-preci...
Definition: WritableWaveFileModel.cpp:327
int getWriteProportion() const
Get the proportion of the file which has been written so far, as a percentage.
Definition: WritableWaveFileModel.cpp:253
Range getSummary(int channel, sv_frame_t start, sv_frame_t count) const override
Return the range from the given start frame, corresponding to the given number of underlying sample f...
Definition: WritableWaveFileModel.cpp:352
std::vector< Range > RangeBlock
Definition: RangeSummarisableTimeValueModel.h:76
float getValueMaximum() const override
Return the minimum possible value found in this model type.
Definition: WritableWaveFileModel.h:175
sv_frame_t getTrueEndFrame() const override
Return the audio frame at the end of the model.
Definition: WritableWaveFileModel.h:178
QString getMaker() const override
Return the "artist" or "maker" of the model, if known.
Definition: ReadOnlyWaveFileModel.cpp:223
void componentModelChanged(ModelId)
Definition: WritableWaveFileModel.cpp:182
void setWriteProportion(int proportion)
Set the proportion of the file which has been written so far, as a percentage.
Definition: WritableWaveFileModel.cpp:247
sv_samplerate_t m_sampleRate
Definition: WritableWaveFileModel.h:228
QString getMaker() const override
Return the "artist" or "maker" of the model, if known.
Definition: WritableWaveFileModel.h:165
Normalisation m_normalisation
Definition: WritableWaveFileModel.h:227
QString m_temporaryPath
Definition: WritableWaveFileModel.h:214
std::vector< float, breakfastquay::StlAllocator< float > > floatvec_t
Definition: BaseTypes.h:53
void setStartFrame(sv_frame_t startFrame) override
Definition: WritableWaveFileModel.cpp:194
QString getTypeName() const override
Return the type of the model.
Definition: WritableWaveFileModel.h:193
void componentModelChangedWithin(ModelId, sv_frame_t, sv_frame_t)
Definition: WritableWaveFileModel.cpp:188
WavFileWriter * m_temporaryWriter
When normalising, this writer is used to write verbatim samples to the temporary file prior to normal...
Definition: WritableWaveFileModel.h:213
static const int PROPORTION_UNKNOWN
Definition: WritableWaveFileModel.h:133
floatvec_t getData(int channel, sv_frame_t start, sv_frame_t count) const override
Get the specified set of samples from the given channel of the model in single-precision floating-poi...
Definition: WritableWaveFileModel.cpp:320
QString getLocation() const override
Return the location of the data in this model (e.g.
Definition: WritableWaveFileModel.h:169
QString getTitle() const override
Return the "work title" of the model, if known.
Definition: ReadOnlyWaveFileModel.cpp:214
WavFileWriter * m_targetWriter
When not normalising, this writer is used to write verbatim samples direct to the target file...
Definition: WritableWaveFileModel.h:223
WritableWaveFileModel(QString path, sv_samplerate_t sampleRate, int channels, Normalisation normalisation)
Create a WritableWaveFileModel of the given sample rate and channel count, storing data in a new floa...
Definition: WritableWaveFileModel.cpp:40
int getChannelCount() const override
Return the number of distinct channels for this model.
Definition: WritableWaveFileModel.h:157
sv_frame_t getStartFrame() const override
Return the first audio frame spanned by the model.
Definition: WritableWaveFileModel.h:177
void normaliseToTarget()
Definition: WritableWaveFileModel.cpp:277
void getSummaries(int channel, sv_frame_t start, sv_frame_t count, RangeBlock &ranges, int &blockSize) const override
Return ranges from the given start frame, corresponding to the given number of underlying sample fram...
Definition: WritableWaveFileModel.cpp:342
QString getLocation() const override
Return the location of the data in this model (e.g.
Definition: ReadOnlyWaveFileModel.cpp:230
void toXml(QTextStream &out, QString indent="", QString extraAttributes="") const override
Stream this exportable object out to XML on a text stream.
Definition: WritableWaveFileModel.cpp:359
bool isOK() const override
Return true if the model was constructed successfully.
Definition: WritableWaveFileModel.cpp:241
QString getTitle() const override
Return the "work title" of the model, if known.
Definition: WritableWaveFileModel.h:161
const ZoomConstraint * getZoomConstraint() const override
If this model imposes a zoom constraint, i.e.
Definition: WritableWaveFileModel.h:151
float getValueMinimum() const override
Return the minimum possible value found in this model type.
Definition: WritableWaveFileModel.h:174
void updateModel()
Tell the model to update its own (read) view of the (written) file.
Definition: WritableWaveFileModel.cpp:233
ZoomConstraint is a simple interface that describes a limitation on the available zoom sizes for a vi...
Definition: ZoomConstraint.h:32
sv_frame_t getFrameCount() const override
Definition: WritableWaveFileModel.cpp:313
Definition: WavFileWriter.h:34
int getCompletion() const override
Return the generation completion percentage of this model.
Definition: WritableWaveFileModel.h:149
Definition: ReadOnlyWaveFileModel.h:36
sv_samplerate_t getNativeRate() const override
Return the frame rate of the underlying material, if the model itself has already been resampled...
Definition: WritableWaveFileModel.h:159
Definition: ById.h:115
sv_samplerate_t getSampleRate() const override
Return the frame rate in frames per second.
Definition: WritableWaveFileModel.h:158
~WritableWaveFileModel()
Definition: WritableWaveFileModel.cpp:170
virtual bool addSamples(const float *const *samples, sv_frame_t count)
Call addSamples to append a block of samples to the end of the file.
Definition: WritableWaveFileModel.cpp:203
Generated by 1.8.11