Mercurial > hg > svcore
annotate data/model/DenseTimeValueModel.cpp @ 585:cbc884787a08
* If we have track metadata, write it out in a separate mo:Track associated
with this audio file instead of incorrectly associating it with the Signal.
Also, make the audio file encode the signal instead of having the signal
"available_as" the audio file (apparently available_as is not in the domain
of signals).
author | Chris Cannam |
---|---|
date | Fri, 08 May 2009 10:09:47 +0000 |
parents | 5858cc462d0a |
children | 33fca917c800 |
rev | line source |
---|---|
Chris@147 | 1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ |
Chris@147 | 2 |
Chris@147 | 3 /* |
Chris@147 | 4 Sonic Visualiser |
Chris@147 | 5 An audio file viewer and annotation editor. |
Chris@147 | 6 Centre for Digital Music, Queen Mary, University of London. |
Chris@147 | 7 This file copyright 2006 Chris Cannam. |
Chris@147 | 8 |
Chris@147 | 9 This program is free software; you can redistribute it and/or |
Chris@147 | 10 modify it under the terms of the GNU General Public License as |
Chris@147 | 11 published by the Free Software Foundation; either version 2 of the |
Chris@147 | 12 License, or (at your option) any later version. See the file |
Chris@147 | 13 COPYING included with this distribution for more information. |
Chris@147 | 14 */ |
Chris@147 | 15 |
Chris@147 | 16 #include "DenseTimeValueModel.h" |
Chris@150 | 17 #include "base/PlayParameterRepository.h" |
Chris@147 | 18 |
Chris@147 | 19 DenseTimeValueModel::DenseTimeValueModel() |
Chris@147 | 20 { |
Chris@391 | 21 PlayParameterRepository::getInstance()->addPlayable(this); |
Chris@391 | 22 } |
Chris@391 | 23 |
Chris@391 | 24 DenseTimeValueModel::~DenseTimeValueModel() |
Chris@391 | 25 { |
Chris@391 | 26 PlayParameterRepository::getInstance()->removePlayable(this); |
Chris@147 | 27 } |
Chris@147 | 28 |