mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-14 18:46:34 +01:00
fix header order and space alignment
This commit is contained in:
parent
7db12f6b12
commit
b9c6ffac21
24 changed files with 47 additions and 31 deletions
|
|
@ -42,7 +42,7 @@ public:
|
|||
typedef Evoral::Sequence<Temporal::Beats>::Notes Notes;
|
||||
|
||||
Command* operator()(boost::shared_ptr<ARDOUR::MidiModel> model,
|
||||
Temporal::Beats position,
|
||||
Temporal::Beats position,
|
||||
std::vector<Notes>& seqs);
|
||||
|
||||
std::string name () const { return (_shrink_only ? std::string ("remove overlap") : std::string ("legatize")); }
|
||||
|
|
|
|||
|
|
@ -24,10 +24,14 @@
|
|||
|
||||
#include <boost/utility.hpp>
|
||||
|
||||
#include "ardour/types.h"
|
||||
|
||||
|
||||
#include "pbd/signals.h"
|
||||
|
||||
#include "temporal/beats.h"
|
||||
#include "evoral/Sequence.hpp"
|
||||
#include "pbd/signals.h"
|
||||
|
||||
#include "ardour/types.h"
|
||||
|
||||
namespace ARDOUR {
|
||||
|
||||
|
|
|
|||
|
|
@ -265,8 +265,8 @@ public:
|
|||
|
||||
bool write_section_to(boost::shared_ptr<MidiSource> source,
|
||||
const Glib::Threads::Mutex::Lock& source_lock,
|
||||
Temporal::Beats begin = Temporal::Beats(),
|
||||
Temporal::Beats end = std::numeric_limits<Temporal::Beats>::max(),
|
||||
Temporal::Beats begin = Temporal::Beats(),
|
||||
Temporal::Beats end = std::numeric_limits<Temporal::Beats>::max(),
|
||||
bool offset_events = false);
|
||||
|
||||
// MidiModel doesn't use the normal AutomationList serialisation code
|
||||
|
|
|
|||
|
|
@ -62,8 +62,8 @@ class LIBARDOUR_API MidiSource : virtual public Source, public boost::enable_sha
|
|||
*/
|
||||
int write_to (const Lock& lock,
|
||||
boost::shared_ptr<MidiSource> newsrc,
|
||||
Temporal::Beats begin = Temporal::Beats(),
|
||||
Temporal::Beats end = std::numeric_limits<Temporal::Beats>::max());
|
||||
Temporal::Beats begin = Temporal::Beats(),
|
||||
Temporal::Beats end = std::numeric_limits<Temporal::Beats>::max());
|
||||
|
||||
/** Export the midi data in the given time range to another MidiSource
|
||||
* \param newsrc MidiSource to which data will be written. Should be a
|
||||
|
|
@ -75,8 +75,8 @@ class LIBARDOUR_API MidiSource : virtual public Source, public boost::enable_sha
|
|||
*/
|
||||
int export_write_to (const Lock& lock,
|
||||
boost::shared_ptr<MidiSource> newsrc,
|
||||
Temporal::Beats begin,
|
||||
Temporal::Beats end);
|
||||
Temporal::Beats begin,
|
||||
Temporal::Beats end);
|
||||
|
||||
/** Read the data in a given time range from the MIDI source.
|
||||
* All time stamps in parameters are in audio samples (even if the source has tempo time).
|
||||
|
|
@ -156,7 +156,7 @@ class LIBARDOUR_API MidiSource : virtual public Source, public boost::enable_sha
|
|||
virtual void mark_midi_streaming_write_completed (
|
||||
const Lock& lock,
|
||||
Evoral::Sequence<Temporal::Beats>::StuckNoteOption stuck_option,
|
||||
Temporal::Beats when = Temporal::Beats());
|
||||
Temporal::Beats when = Temporal::Beats());
|
||||
|
||||
virtual void session_saved();
|
||||
|
||||
|
|
|
|||
|
|
@ -24,10 +24,12 @@
|
|||
|
||||
#include <boost/utility.hpp>
|
||||
|
||||
#include "temporal/beats.h"
|
||||
|
||||
#include "evoral/Note.hpp"
|
||||
|
||||
#include "ardour/midi_model.h"
|
||||
#include "ardour/types.h"
|
||||
#include "temporal/beats.h"
|
||||
#include "evoral/Note.hpp"
|
||||
|
||||
namespace Evoral { template<typename Time> class EventSink; }
|
||||
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ public:
|
|||
|
||||
private:
|
||||
bool _open;
|
||||
Temporal::Beats _last_ev_time_beats;
|
||||
Temporal::Beats _last_ev_time_beats;
|
||||
samplepos_t _last_ev_time_samples;
|
||||
/** end time (start + duration) of last call to read_unlocked */
|
||||
mutable samplepos_t _smf_last_read_end;
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@ public:
|
|||
Transform(const Program& prog);
|
||||
|
||||
Command* operator()(boost::shared_ptr<ARDOUR::MidiModel> model,
|
||||
Temporal::Beats position,
|
||||
Temporal::Beats position,
|
||||
std::vector<Notes>& seqs);
|
||||
|
||||
std::string name() const { return std::string ("transform"); }
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ public:
|
|||
Transpose (int semitones);
|
||||
|
||||
Command* operator() (boost::shared_ptr<ARDOUR::MidiModel> model,
|
||||
Temporal::Beats position,
|
||||
Temporal::Beats position,
|
||||
std::vector<Notes>& seqs);
|
||||
|
||||
std::string name () const { return std::string ("transpose"); }
|
||||
|
|
|
|||
|
|
@ -31,7 +31,7 @@ Legatize::~Legatize ()
|
|||
|
||||
Command*
|
||||
Legatize::operator()(boost::shared_ptr<ARDOUR::MidiModel> model,
|
||||
Temporal::Beats position,
|
||||
Temporal::Beats position,
|
||||
std::vector<Legatize::Notes>& seqs)
|
||||
{
|
||||
MidiModel::NoteDiffCommand* cmd = new MidiModel::NoteDiffCommand(model, name ());
|
||||
|
|
|
|||
|
|
@ -30,6 +30,7 @@
|
|||
#include "pbd/failed_constructor.h"
|
||||
|
||||
#include "temporal/time.h"
|
||||
|
||||
#include "ardour/ltc_file_reader.h"
|
||||
|
||||
#include "pbd/i18n.h"
|
||||
|
|
|
|||
|
|
@ -18,9 +18,11 @@
|
|||
|
||||
#include <glibmm.h>
|
||||
|
||||
#include "temporal/bbt_time.h"
|
||||
#include "pbd/stateful_diff_command.h"
|
||||
#include "pbd/openuri.h"
|
||||
|
||||
#include "temporal/bbt_time.h"
|
||||
|
||||
#include "evoral/Control.hpp"
|
||||
#include "evoral/ControlList.hpp"
|
||||
#include "evoral/Range.hpp"
|
||||
|
|
|
|||
|
|
@ -357,7 +357,7 @@ MidiSource::mark_streaming_write_started (const Lock& lock)
|
|||
void
|
||||
MidiSource::mark_midi_streaming_write_completed (const Lock& lock,
|
||||
Evoral::Sequence<Temporal::Beats>::StuckNoteOption option,
|
||||
Temporal::Beats end)
|
||||
Temporal::Beats end)
|
||||
{
|
||||
if (_model) {
|
||||
_model->end_write (option, end);
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
|
||||
#include "pbd/enumwriter.h"
|
||||
#include "pbd/xml++.h"
|
||||
|
||||
#include "temporal/beats.h"
|
||||
|
||||
#include "ardour/debug.h"
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@ Transform::Operation::eval(Context& ctx) const
|
|||
|
||||
Command*
|
||||
Transform::operator()(boost::shared_ptr<MidiModel> model,
|
||||
Temporal::Beats position,
|
||||
Temporal::Beats position,
|
||||
std::vector<Notes>& seqs)
|
||||
{
|
||||
typedef MidiModel::NoteDiffCommand Command;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ Transpose::Transpose(int semitones)
|
|||
|
||||
Command*
|
||||
Transpose::operator()(boost::shared_ptr<MidiModel> model,
|
||||
Temporal::Beats position,
|
||||
Temporal::Beats position,
|
||||
std::vector<Notes>& seqs)
|
||||
{
|
||||
typedef MidiModel::NoteDiffCommand Command;
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@
|
|||
#include "pbd/enumwriter.h"
|
||||
|
||||
#include "midi++/parser.h"
|
||||
|
||||
#include "temporal/time.h"
|
||||
#include "temporal/bbt_time.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -28,6 +28,7 @@
|
|||
#include "pbd/enumwriter.h"
|
||||
|
||||
#include "midi++/parser.h"
|
||||
|
||||
#include "temporal/time.h"
|
||||
#include "temporal/bbt_time.h"
|
||||
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@
|
|||
#include "pbd/enumwriter.h"
|
||||
|
||||
#include "midi++/parser.h"
|
||||
|
||||
#include "temporal/time.h"
|
||||
#include "temporal/bbt_time.h"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue