*/
#include "temporal/beats.h"
+
#include "evoral/Note.hpp"
#include "canvas/polygon.h"
*/
const samplepos_t ref_point = source_beats_to_absolute_samples ((*(_selection.begin()))->note()->time());
- Temporal::Beats delta;
+ Temporal::Beats delta;
if (!fine) {
const Temporal::Beats snap_duration = duration.snap_to(snap_beats);
const Temporal::Beats paste_offset = snap_duration * paste_count;
const Temporal::Beats quarter_note = absolute_samples_to_source_beats(pos) + paste_offset;
- Temporal::Beats end_point = Temporal::Beats();
+ Temporal::Beats end_point = Temporal::Beats();
DEBUG_TRACE (DEBUG::CutNPaste, string_compose ("Paste data spans from %1 to %2 (%3) ; paste pos beats = %4 (based on %5 - %6)\n",
first_time,
double _last_ghost_x;
double _last_ghost_y;
ArdourCanvas::Rectangle* _step_edit_cursor;
- Temporal::Beats _step_edit_cursor_width;
- Temporal::Beats _step_edit_cursor_position;
+ Temporal::Beats _step_edit_cursor_width;
+ Temporal::Beats _step_edit_cursor_position;
NoteBase* _channel_selection_scoped_note;
MouseState _mouse_state;
#include <gtkmm/notebook.h>
#include <sigc++/signal.h>
+#include "pbd/statefuldestructible.h"
+
#include "temporal/beats.h"
-#include "evoral/Note.hpp"
-#include "pbd/statefuldestructible.h"
+#include "evoral/Note.hpp"
#include "ardour/session_handle.h"
#include <sigc++/trackable.h>
#include "pbd/signals.h"
+
#include "temporal/beats.h"
namespace ARDOUR {
private:
ARDOUR::samplepos_t step_edit_insert_position;
- Temporal::Beats step_edit_beat_pos;
+ Temporal::Beats step_edit_beat_pos;
boost::shared_ptr<ARDOUR::MidiRegion> step_edit_region;
MidiRegionView* step_edit_region_view;
uint8_t _step_edit_triplet_countdown;
bool _step_edit_within_chord;
- Temporal::Beats _step_edit_chord_duration;
+ Temporal::Beats _step_edit_chord_duration;
PBD::ScopedConnection step_edit_region_connection;
PublicEditor& _editor;
boost::shared_ptr<ARDOUR::MidiTrack> _track;
StepEntry* step_editor;
MidiTimeAxisView& _mtv;
int8_t last_added_pitch;
- Temporal::Beats last_added_end;
+ Temporal::Beats last_added_end;
void region_removed (boost::weak_ptr<ARDOUR::Region>);
void playlist_changed ();
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")); }
#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 {
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
*/
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
*/
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).
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();
#include <boost/utility.hpp>
-#include "ardour/midi_model.h"
-#include "ardour/types.h"
#include "temporal/beats.h"
+
#include "evoral/Note.hpp"
+#include "ardour/midi_model.h"
+#include "ardour/types.h"
+
namespace Evoral { template<typename Time> class EventSink; }
namespace ARDOUR {
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;
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"); }
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"); }
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 ());
#include "pbd/failed_constructor.h"
#include "temporal/time.h"
+
#include "ardour/ltc_file_reader.h"
#include "pbd/i18n.h"
#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"
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);
#include "pbd/enumwriter.h"
#include "pbd/xml++.h"
+
#include "temporal/beats.h"
#include "ardour/debug.h"
Command*
Transform::operator()(boost::shared_ptr<MidiModel> model,
- Temporal::Beats position,
+ Temporal::Beats position,
std::vector<Notes>& seqs)
{
typedef MidiModel::NoteDiffCommand Command;
Command*
Transpose::operator()(boost::shared_ptr<MidiModel> model,
- Temporal::Beats position,
+ Temporal::Beats position,
std::vector<Notes>& seqs)
{
typedef MidiModel::NoteDiffCommand Command;
#include "pbd/enumwriter.h"
#include "midi++/parser.h"
+
#include "temporal/time.h"
#include "temporal/bbt_time.h"
#include "pbd/enumwriter.h"
#include "midi++/parser.h"
+
#include "temporal/time.h"
#include "temporal/bbt_time.h"
#include "pbd/enumwriter.h"
#include "midi++/parser.h"
+
#include "temporal/time.h"
#include "temporal/bbt_time.h"
ExplicitInfo _explicit;
};
superclock_t _sclock;
- Temporal::Beats _quarters;
+ Temporal::Beats _quarters;
Timecode::BBT_Time _bbt;
bool _dirty;
TempoMap* _map;