diff options
author | John Glover <j@johnglover.net> | 2012-09-11 16:09:31 +0200 |
---|---|---|
committer | John Glover <j@johnglover.net> | 2012-09-11 16:09:31 +0200 |
commit | b85442ba775a54464772af9f2f653e4aba2caae6 (patch) | |
tree | 569199dab37fe88883bfc37f3f9729a6ee66f79f /src | |
parent | acb66816c83b2d8ce35bca015f2721d6aef5ad40 (diff) | |
download | simpl-b85442ba775a54464772af9f2f653e4aba2caae6.tar.gz simpl-b85442ba775a54464772af9f2f653e4aba2caae6.tar.bz2 simpl-b85442ba775a54464772af9f2f653e4aba2caae6.zip |
[base] Clean up: remove old Partial object.
Diffstat (limited to 'src')
-rw-r--r-- | src/simpl/base.cpp | 31 | ||||
-rw-r--r-- | src/simpl/base.h | 25 |
2 files changed, 0 insertions, 56 deletions
diff --git a/src/simpl/base.cpp b/src/simpl/base.cpp index f418bf5..ac4d120 100644 --- a/src/simpl/base.cpp +++ b/src/simpl/base.cpp @@ -19,37 +19,6 @@ Peak::~Peak() { // --------------------------------------------------------------------------- -// Partial -// --------------------------------------------------------------------------- -Partial::Partial() { - _starting_frame = 0; - _partial_number = -1; -} - -Partial::~Partial() { - _peaks.clear(); -} - -void Partial::add_peak(Peak* peak) { -} - -int Partial::length() { - return _peaks.size(); -} - -int Partial::first_frame_number() { - return _starting_frame; -} - -int Partial::last_frame_number() { - return _starting_frame + length(); -} - -Peak* Partial::peak(int peak_number) { - return _peaks[peak_number]; -} - -// --------------------------------------------------------------------------- // Frame // --------------------------------------------------------------------------- Frame::Frame() { diff --git a/src/simpl/base.h b/src/simpl/base.h index 83ab6bd..5a3bf5b 100644 --- a/src/simpl/base.h +++ b/src/simpl/base.h @@ -32,31 +32,6 @@ typedef std::vector<Peak*> Peaks; // --------------------------------------------------------------------------- -// Partial -// -// Represents a sinuoidal partial or track, an ordered sequence of Peaks -// --------------------------------------------------------------------------- -class Partial { - private: - int _starting_frame; - long _partial_number; - Peaks _peaks; - - public: - Partial(); - ~Partial(); - - void add_peak(Peak* peak); - int length(); - int first_frame_number(); - int last_frame_number(); - Peak* peak(int peak_number); -}; - -typedef std::vector<Partial*> Partials; - - -// --------------------------------------------------------------------------- // Frame // // Represents a frame of audio information. |