Fix more broken whitespace.

git-svn-id: svn://localhost/ardour2/branches/3.0@8314 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard 2010-12-20 22:51:17 +00:00
parent 7e3404e2a0
commit f6ed36a457
9 changed files with 969 additions and 969 deletions

View file

@ -96,6 +96,7 @@ class MidiSource : virtual public Source, public boost::enable_shared_from_this<
int set_state (const XMLNode&, int version);
bool length_mutable() const { return true; }
double length_beats() const { return _length_beats; }
virtual void load_model(bool lock=true, bool force_reload=false) = 0;
virtual void destroy_model() = 0;

View file

@ -74,7 +74,9 @@ MidiRegion::MidiRegion (const SourceList& srcs)
: Region (srcs)
, _length_beats (Properties::length_beats, (Evoral::MusicalTime) 0)
{
update_length_beats ();
_length_beats = midi_source(0)->length_beats();
cout << "NEW MIDI REGION LENGTH BEATS: " << _length_beats << endl;
register_properties ();
midi_source(0)->ModelChanged.connect_same_thread (_source_connection, boost::bind (&MidiRegion::model_changed, this));

View file

@ -353,8 +353,6 @@ MidiSource::session_saved()
if (_model && _model->edited()) {
// if the model is edited, write its contents into
// the current source file (overwiting previous contents.

View file

@ -152,8 +152,7 @@ MidiStateTracker::resolve_notes (MidiSource& src, Evoral::MusicalTime time)
ev.set_velocity (0);
src.append_event_unlocked_beats (ev);
_active_notes[note + 128 * channel]--;
/* don't stack events up at the same time
*/
/* don't stack events up at the same time */
time += 1.0/128.0;
}
}