/* This file is part of Evoral. * Copyright (C) 2008 David Robillard * Copyright (C) 2000-2008 Paul Davis * * Evoral is free software; you can redistribute it and/or modify it under the * terms of the GNU General Public License as published by the Free Software * Foundation; either version 2 of the License, or (at your option) any later * version. * * Evoral is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the GNU General Public License for details. * * You should have received a copy of the GNU General Public License along * with this program; if not, write to the Free Software Foundation, Inc., * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ #include #include #include #include #include #include #include #if __clang__ #include "evoral/Note.hpp" #endif #include "pbd/compose.h" #include "pbd/error.h" #include "evoral/Beats.hpp" #include "evoral/Control.hpp" #include "evoral/ControlList.hpp" #include "evoral/ControlSet.hpp" #include "evoral/EventSink.hpp" #include "evoral/ParameterDescriptor.hpp" #include "evoral/Sequence.hpp" #include "evoral/TypeMap.hpp" #include "evoral/midi_util.h" #include "i18n.h" using namespace std; using namespace PBD; /** Minimum time between MIDI outputs from a single interpolated controller, expressed in beats. This is to limit the rate at which MIDI messages are generated. It is only applied to interpolated controllers. XXX: This is a hack. The time should probably be expressed in seconds rather than beats, and should be configurable etc. etc. */ static double const time_between_interpolated_controller_outputs = 1.0 / 256; namespace Evoral { // Read iterator (const_iterator) template Sequence