From 140258d8abc366ddd600a7b3079b55a730b10225 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sun, 10 Jul 2016 15:30:41 +0200 Subject: remove reference "const int32_t&" -> const int32_t" this simplifies lua-bindings and also let's the compiler worry about constant primitive types. --- libs/ardour/ardour/audioregion.h | 2 +- libs/ardour/ardour/midi_region.h | 12 ++++++------ libs/ardour/ardour/playlist.h | 12 ++++++------ libs/ardour/ardour/region.h | 30 +++++++++++++++--------------- libs/ardour/ardour/region_factory.h | 4 ++-- libs/ardour/ardour/tempo.h | 4 ++-- libs/ardour/audioregion.cc | 2 +- libs/ardour/midi_region.cc | 12 ++++++------ libs/ardour/playlist.cc | 12 ++++++------ libs/ardour/region.cc | 30 +++++++++++++++--------------- libs/ardour/region_factory.cc | 4 ++-- libs/ardour/tempo.cc | 4 ++-- 12 files changed, 64 insertions(+), 64 deletions(-) (limited to 'libs') diff --git a/libs/ardour/ardour/audioregion.h b/libs/ardour/ardour/audioregion.h index bed64615b5..c3003e587b 100644 --- a/libs/ardour/ardour/audioregion.h +++ b/libs/ardour/ardour/audioregion.h @@ -180,7 +180,7 @@ class LIBARDOUR_API AudioRegion : public Region AudioRegion (boost::shared_ptr); AudioRegion (const SourceList &); AudioRegion (boost::shared_ptr); - AudioRegion (boost::shared_ptr, frameoffset_t offset, const int32_t& sub_num); + AudioRegion (boost::shared_ptr, frameoffset_t offset, const int32_t sub_num); AudioRegion (boost::shared_ptr, const SourceList&); AudioRegion (SourceList &); diff --git a/libs/ardour/ardour/midi_region.h b/libs/ardour/ardour/midi_region.h index 21d6c13ade..197dcdbe6c 100644 --- a/libs/ardour/ardour/midi_region.h +++ b/libs/ardour/ardour/midi_region.h @@ -116,7 +116,7 @@ class LIBARDOUR_API MidiRegion : public Region MidiRegion (const SourceList&); MidiRegion (boost::shared_ptr); - MidiRegion (boost::shared_ptr, frameoffset_t offset, const int32_t& sub_num = 0); + MidiRegion (boost::shared_ptr, frameoffset_t offset, const int32_t sub_num = 0); framecnt_t _read_at (const SourceList&, Evoral::EventSink& dst, framepos_t position, @@ -132,11 +132,11 @@ class LIBARDOUR_API MidiRegion : public Region void recompute_at_start (); void recompute_at_end (); - void set_position_internal (framepos_t pos, bool allow_bbt_recompute, const int32_t& sub_num); - void set_length_internal (framecnt_t len, const int32_t& sub_num); - void set_start_internal (framecnt_t, const int32_t& sub_num); - void trim_to_internal (framepos_t position, framecnt_t length, const int32_t& sub_num); - void update_length_beats (const int32_t& sub_num); + void set_position_internal (framepos_t pos, bool allow_bbt_recompute, const int32_t sub_num); + void set_length_internal (framecnt_t len, const int32_t sub_num); + void set_start_internal (framecnt_t, const int32_t sub_num); + void trim_to_internal (framepos_t position, framecnt_t length, const int32_t sub_num); + void update_length_beats (const int32_t sub_num); void model_changed (); void model_automation_state_changed (Evoral::Parameter const &); diff --git a/libs/ardour/ardour/playlist.h b/libs/ardour/ardour/playlist.h index 09c31360ec..04615acb26 100644 --- a/libs/ardour/ardour/playlist.h +++ b/libs/ardour/ardour/playlist.h @@ -128,14 +128,14 @@ public: /* Editing operations */ - void add_region (boost::shared_ptr, framepos_t position, float times = 1, bool auto_partition = false, const int32_t& sub_num = 0); + void add_region (boost::shared_ptr, framepos_t position, float times = 1, bool auto_partition = false, const int32_t sub_num = 0); void remove_region (boost::shared_ptr); void get_equivalent_regions (boost::shared_ptr, std::vector >&); void get_region_list_equivalent_regions (boost::shared_ptr, std::vector >&); void get_source_equivalent_regions (boost::shared_ptr, std::vector >&); void replace_region (boost::shared_ptr old, boost::shared_ptr newr, framepos_t pos); - void split_region (boost::shared_ptr, framepos_t position, const int32_t& sub_num); - void split (framepos_t at, const int32_t& sub_num); + void split_region (boost::shared_ptr, framepos_t position, const int32_t sub_num); + void split (framepos_t at, const int32_t sub_num); void shift (framepos_t at, frameoffset_t distance, bool move_intersected, bool ignore_music_glue); void partition (framepos_t start, framepos_t end, bool cut = false); void duplicate (boost::shared_ptr, framepos_t position, float times); @@ -161,7 +161,7 @@ public: boost::shared_ptr cut (std::list&, bool result_is_hidden = true); boost::shared_ptr copy (std::list&, bool result_is_hidden = true); - int paste (boost::shared_ptr, framepos_t position, float times, const int32_t& sub_num); + int paste (boost::shared_ptr, framepos_t position, float times, const int32_t sub_num); const RegionListProperty& region_list_property () const { return regions; } boost::shared_ptr region_list(); @@ -362,7 +362,7 @@ public: virtual XMLNode& state (bool); - bool add_region_internal (boost::shared_ptr, framepos_t position, const int32_t& sub_num = 0); + bool add_region_internal (boost::shared_ptr, framepos_t position, const int32_t sub_num = 0); int remove_region_internal (boost::shared_ptr); void copy_regions (RegionList&) const; @@ -380,7 +380,7 @@ public: void begin_undo (); void end_undo (); - void _split_region (boost::shared_ptr, framepos_t position, const int32_t& sub_num); + void _split_region (boost::shared_ptr, framepos_t position, const int32_t sub_num); typedef std::pair, boost::shared_ptr > TwoRegions; diff --git a/libs/ardour/ardour/region.h b/libs/ardour/ardour/region.h index 7f41cb6e5a..4c3facf511 100644 --- a/libs/ardour/ardour/region.h +++ b/libs/ardour/ardour/region.h @@ -172,7 +172,7 @@ class LIBARDOUR_API Region PositionLockStyle position_lock_style () const { return _position_lock_style; } void set_position_lock_style (PositionLockStyle ps); - void recompute_position_from_lock_style (const int32_t& sub_num); + void recompute_position_from_lock_style (const int32_t sub_num); double beat () const { return _beat; } void set_beat (double beat) { _beat = beat; } @@ -207,7 +207,7 @@ class LIBARDOUR_API Region /* EDITING OPERATIONS */ - void set_length (framecnt_t, const int32_t& sub_num); + void set_length (framecnt_t, const int32_t sub_num); void set_start (framepos_t); void set_position (framepos_t, int32_t sub_num = 0); void set_initial_position (framepos_t); @@ -218,15 +218,15 @@ class LIBARDOUR_API Region bool at_natural_position () const; void move_to_natural_position (); - void move_start (frameoffset_t distance, const int32_t& sub_num = 0); - void trim_front (framepos_t new_position, const int32_t& sub_num = 0); - void trim_end (framepos_t new_position, const int32_t& sub_num = 0); - void trim_to (framepos_t position, framecnt_t length, const int32_t& sub_num = 0); + void move_start (frameoffset_t distance, const int32_t sub_num = 0); + void trim_front (framepos_t new_position, const int32_t sub_num = 0); + void trim_end (framepos_t new_position, const int32_t sub_num = 0); + void trim_to (framepos_t position, framecnt_t length, const int32_t sub_num = 0); virtual void fade_range (framepos_t, framepos_t) {} - void cut_front (framepos_t new_position, const int32_t& sub_num = 0); - void cut_end (framepos_t new_position, const int32_t& sub_num = 0); + void cut_front (framepos_t new_position, const int32_t sub_num = 0); + void cut_end (framepos_t new_position, const int32_t sub_num = 0); void set_layer (layer_t l); /* ONLY Playlist can call this */ void raise (); @@ -341,7 +341,7 @@ class LIBARDOUR_API Region Region (boost::shared_ptr); /** Construct a region from another region, at an offset within that region */ - Region (boost::shared_ptr, frameoffset_t start_offset, const int32_t& sub_num); + Region (boost::shared_ptr, frameoffset_t start_offset, const int32_t sub_num); /** Construct a region as a copy of another region, but with different sources */ Region (boost::shared_ptr, const SourceList&); @@ -358,9 +358,9 @@ class LIBARDOUR_API Region void send_change (const PBD::PropertyChange&); virtual int _set_state (const XMLNode&, int version, PBD::PropertyChange& what_changed, bool send_signal); void post_set (const PBD::PropertyChange&); - virtual void set_position_internal (framepos_t pos, bool allow_bbt_recompute, const int32_t& sub_num); - virtual void set_length_internal (framecnt_t, const int32_t& sub_num); - virtual void set_start_internal (framecnt_t, const int32_t& sub_num = 0); + virtual void set_position_internal (framepos_t pos, bool allow_bbt_recompute, const int32_t sub_num); + virtual void set_length_internal (framecnt_t, const int32_t sub_num); + virtual void set_start_internal (framecnt_t, const int32_t sub_num = 0); bool verify_start_and_length (framepos_t, framecnt_t&); void first_edit (); @@ -398,9 +398,9 @@ class LIBARDOUR_API Region private: void mid_thaw (const PBD::PropertyChange&); - virtual void trim_to_internal (framepos_t position, framecnt_t length, const int32_t& sub_num); - void modify_front (framepos_t new_position, bool reset_fade, const int32_t& sub_num); - void modify_end (framepos_t new_position, bool reset_fade, const int32_t& sub_num); + virtual void trim_to_internal (framepos_t position, framecnt_t length, const int32_t sub_num); + void modify_front (framepos_t new_position, bool reset_fade, const int32_t sub_num); + void modify_end (framepos_t new_position, bool reset_fade, const int32_t sub_num); void maybe_uncopy (); diff --git a/libs/ardour/ardour/region_factory.h b/libs/ardour/ardour/region_factory.h index e331de2b00..6971e77242 100644 --- a/libs/ardour/ardour/region_factory.h +++ b/libs/ardour/ardour/region_factory.h @@ -59,7 +59,7 @@ public: static PBD::Signal1 > CheckNewRegion; /** create a "pure copy" of Region @param other */ - static boost::shared_ptr create (boost::shared_ptr other, bool announce = false, const int32_t& sub_num = 0); + static boost::shared_ptr create (boost::shared_ptr other, bool announce = false, const int32_t sub_num = 0); /** create a region from a single Source */ static boost::shared_ptr create (boost::shared_ptr, @@ -73,7 +73,7 @@ public: const PBD::PropertyList&, bool announce = true); /** create a copy of @param other starting at @param offset within @param other */ static boost::shared_ptr create (boost::shared_ptr other, frameoffset_t offset, - const PBD::PropertyList&, bool announce = true, const int32_t& sub_num = 0); + const PBD::PropertyList&, bool announce = true, const int32_t sub_num = 0); /** create a "copy" of @param other but using a different set of sources @param srcs */ static boost::shared_ptr create (boost::shared_ptr other, const SourceList& srcs, const PBD::PropertyList&, bool announce = true); diff --git a/libs/ardour/ardour/tempo.h b/libs/ardour/ardour/tempo.h index 0a9585c3dc..5fce9ce384 100644 --- a/libs/ardour/ardour/tempo.h +++ b/libs/ardour/ardour/tempo.h @@ -452,7 +452,7 @@ class LIBARDOUR_API TempoMap : public PBD::StatefulDestructible bool gui_change_tempo (TempoSection*, const Tempo& bpm); void gui_dilate_tempo (TempoSection* tempo, const framepos_t& frame, const framepos_t& end_frame, const double& pulse); - double exact_beat_at_frame (const framepos_t& frame, const int32_t& sub_num); + double exact_beat_at_frame (const framepos_t& frame, const int32_t sub_num); std::pair predict_tempo_position (TempoSection* section, const Timecode::BBT_Time& bbt); bool can_solve_bbt (TempoSection* section, const Timecode::BBT_Time& bbt); @@ -497,7 +497,7 @@ private: bool solve_map_frame (Metrics& metrics, MeterSection* section, const framepos_t& frame); bool solve_map_bbt (Metrics& metrics, MeterSection* section, const Timecode::BBT_Time& bbt); - double exact_beat_at_frame_locked (const Metrics& metrics, const framepos_t& frame, const int32_t& sub_num); + double exact_beat_at_frame_locked (const Metrics& metrics, const framepos_t& frame, const int32_t sub_num); friend class ::BBTTest; friend class ::FrameposPlusBeatsTest; diff --git a/libs/ardour/audioregion.cc b/libs/ardour/audioregion.cc index dff261a9df..2917f155d3 100644 --- a/libs/ardour/audioregion.cc +++ b/libs/ardour/audioregion.cc @@ -279,7 +279,7 @@ AudioRegion::AudioRegion (boost::shared_ptr other) assert (_sources.size() == _master_sources.size()); } -AudioRegion::AudioRegion (boost::shared_ptr other, framecnt_t offset, const int32_t& sub_num) +AudioRegion::AudioRegion (boost::shared_ptr other, framecnt_t offset, const int32_t sub_num) : Region (other, offset, sub_num) , AUDIOREGION_COPY_STATE (other) /* As far as I can see, the _envelope's times are relative to region position, and have nothing diff --git a/libs/ardour/midi_region.cc b/libs/ardour/midi_region.cc index 9871fa219f..14b29eb6d4 100644 --- a/libs/ardour/midi_region.cc +++ b/libs/ardour/midi_region.cc @@ -102,7 +102,7 @@ MidiRegion::MidiRegion (boost::shared_ptr other) } /** Create a new MidiRegion that is part of an existing one */ -MidiRegion::MidiRegion (boost::shared_ptr other, frameoffset_t offset, const int32_t& sub_num) +MidiRegion::MidiRegion (boost::shared_ptr other, frameoffset_t offset, const int32_t sub_num) : Region (other, offset, sub_num) , _start_beats (Properties::start_beats, Evoral::Beats()) , _length_beats (Properties::length_beats, other->_length_beats) @@ -188,7 +188,7 @@ MidiRegion::set_start_beats_from_start_frames () } void -MidiRegion::set_length_internal (framecnt_t len, const int32_t& sub_num) +MidiRegion::set_length_internal (framecnt_t len, const int32_t sub_num) { Region::set_length_internal (len, sub_num); update_length_beats (sub_num); @@ -227,13 +227,13 @@ MidiRegion::update_after_tempo_map_change (bool /* send */) } void -MidiRegion::update_length_beats (const int32_t& sub_num) +MidiRegion::update_length_beats (const int32_t sub_num) { _length_beats = Evoral::Beats (_session.tempo_map().exact_beat_at_frame (_position + _length, sub_num) - beat()); } void -MidiRegion::set_position_internal (framepos_t pos, bool allow_bbt_recompute, const int32_t& sub_num) +MidiRegion::set_position_internal (framepos_t pos, bool allow_bbt_recompute, const int32_t sub_num) { Region::set_position_internal (pos, allow_bbt_recompute, sub_num); @@ -486,7 +486,7 @@ MidiRegion::fix_negative_start () } void -MidiRegion::set_start_internal (framecnt_t s, const int32_t& sub_num) +MidiRegion::set_start_internal (framecnt_t s, const int32_t sub_num) { Region::set_start_internal (s, sub_num); @@ -496,7 +496,7 @@ MidiRegion::set_start_internal (framecnt_t s, const int32_t& sub_num) } void -MidiRegion::trim_to_internal (framepos_t position, framecnt_t length, const int32_t& sub_num) +MidiRegion::trim_to_internal (framepos_t position, framecnt_t length, const int32_t sub_num) { framepos_t new_start; diff --git a/libs/ardour/playlist.cc b/libs/ardour/playlist.cc index eeff036248..de13d0eeb1 100644 --- a/libs/ardour/playlist.cc +++ b/libs/ardour/playlist.cc @@ -666,7 +666,7 @@ Playlist::flush_notifications (bool from_undo) /** Note: this calls set_layer (..., DBL_MAX) so it will reset the layering index of region */ void - Playlist::add_region (boost::shared_ptr region, framepos_t position, float times, bool auto_partition, const int32_t& sub_num) + Playlist::add_region (boost::shared_ptr region, framepos_t position, float times, bool auto_partition, const int32_t sub_num) { RegionWriteLock rlock (this); times = fabs (times); @@ -735,7 +735,7 @@ Playlist::flush_notifications (bool from_undo) } bool - Playlist::add_region_internal (boost::shared_ptr region, framepos_t position, const int32_t& sub_num) + Playlist::add_region_internal (boost::shared_ptr region, framepos_t position, const int32_t sub_num) { if (region->data_type() != _type) { return false; @@ -1209,7 +1209,7 @@ Playlist::flush_notifications (bool from_undo) } int - Playlist::paste (boost::shared_ptr other, framepos_t position, float times, const int32_t& sub_num) + Playlist::paste (boost::shared_ptr other, framepos_t position, float times, const int32_t sub_num) { times = fabs (times); @@ -1390,7 +1390,7 @@ Playlist::duplicate_ranges (std::list& ranges, float /* times */) } void - Playlist::split (framepos_t at, const int32_t& sub_num) + Playlist::split (framepos_t at, const int32_t sub_num) { RegionWriteLock rlock (this); RegionList copy (regions.rlist()); @@ -1404,14 +1404,14 @@ Playlist::duplicate_ranges (std::list& ranges, float /* times */) } void - Playlist::split_region (boost::shared_ptr region, framepos_t playlist_position, const int32_t& sub_num) + Playlist::split_region (boost::shared_ptr region, framepos_t playlist_position, const int32_t sub_num) { RegionWriteLock rl (this); _split_region (region, playlist_position, sub_num); } void - Playlist::_split_region (boost::shared_ptr region, framepos_t playlist_position, const int32_t& sub_num) + Playlist::_split_region (boost::shared_ptr region, framepos_t playlist_position, const int32_t sub_num) { if (!region->covers (playlist_position)) { return; diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc index e9b3f59bda..039ecbe691 100644 --- a/libs/ardour/region.cc +++ b/libs/ardour/region.cc @@ -320,7 +320,7 @@ Region::Region (boost::shared_ptr other) the start within \a other is given by \a offset (i.e. relative to the start of \a other's sources, the start is \a offset + \a other.start() */ -Region::Region (boost::shared_ptr other, frameoffset_t offset, const int32_t& sub_num) +Region::Region (boost::shared_ptr other, frameoffset_t offset, const int32_t sub_num) : SessionObject(other->session(), other->name()) , _type (other->data_type()) , REGION_COPY_STATE (other) @@ -419,7 +419,7 @@ Region::set_name (const std::string& str) } void -Region::set_length (framecnt_t len, const int32_t& sub_num) +Region::set_length (framecnt_t len, const int32_t sub_num) { //cerr << "Region::set_length() len = " << len << endl; if (locked()) { @@ -456,7 +456,7 @@ Region::set_length (framecnt_t len, const int32_t& sub_num) } void -Region::set_length_internal (framecnt_t len, const int32_t& sub_num) +Region::set_length_internal (framecnt_t len, const int32_t sub_num) { _last_length = _length; _length = len; @@ -643,7 +643,7 @@ Region::set_initial_position (framepos_t pos) } void -Region::set_position_internal (framepos_t pos, bool allow_bbt_recompute, const int32_t& sub_num) +Region::set_position_internal (framepos_t pos, bool allow_bbt_recompute, const int32_t sub_num) { /* We emit a change of Properties::position even if the position hasn't changed (see Region::set_position), so we must always set this up so that @@ -670,7 +670,7 @@ Region::set_position_internal (framepos_t pos, bool allow_bbt_recompute, const i } void -Region::recompute_position_from_lock_style (const int32_t& sub_num) +Region::recompute_position_from_lock_style (const int32_t sub_num) { _beat = _session.tempo_map().exact_beat_at_frame (_position, sub_num); } @@ -743,7 +743,7 @@ Region::set_start (framepos_t pos) } void -Region::move_start (frameoffset_t distance, const int32_t& sub_num) +Region::move_start (frameoffset_t distance, const int32_t sub_num) { if (locked() || position_locked() || video_locked()) { return; @@ -788,25 +788,25 @@ Region::move_start (frameoffset_t distance, const int32_t& sub_num) } void -Region::trim_front (framepos_t new_position, const int32_t& sub_num) +Region::trim_front (framepos_t new_position, const int32_t sub_num) { modify_front (new_position, false, sub_num); } void -Region::cut_front (framepos_t new_position, const int32_t& sub_num) +Region::cut_front (framepos_t new_position, const int32_t sub_num) { modify_front (new_position, true, sub_num); } void -Region::cut_end (framepos_t new_endpoint, const int32_t& sub_num) +Region::cut_end (framepos_t new_endpoint, const int32_t sub_num) { modify_end (new_endpoint, true, sub_num); } void -Region::modify_front (framepos_t new_position, bool reset_fade, const int32_t& sub_num) +Region::modify_front (framepos_t new_position, bool reset_fade, const int32_t sub_num) { if (locked()) { return; @@ -851,7 +851,7 @@ Region::modify_front (framepos_t new_position, bool reset_fade, const int32_t& s } void -Region::modify_end (framepos_t new_endpoint, bool reset_fade, const int32_t& sub_num) +Region::modify_end (framepos_t new_endpoint, bool reset_fade, const int32_t sub_num) { if (locked()) { return; @@ -873,13 +873,13 @@ Region::modify_end (framepos_t new_endpoint, bool reset_fade, const int32_t& sub */ void -Region::trim_end (framepos_t new_endpoint, const int32_t& sub_num) +Region::trim_end (framepos_t new_endpoint, const int32_t sub_num) { modify_end (new_endpoint, false, sub_num); } void -Region::trim_to (framepos_t position, framecnt_t length, const int32_t& sub_num) +Region::trim_to (framepos_t position, framecnt_t length, const int32_t sub_num) { if (locked()) { return; @@ -894,7 +894,7 @@ Region::trim_to (framepos_t position, framecnt_t length, const int32_t& sub_num) } void -Region::trim_to_internal (framepos_t position, framecnt_t length, const int32_t& sub_num) +Region::trim_to_internal (framepos_t position, framecnt_t length, const int32_t sub_num) { framepos_t new_start; @@ -1850,7 +1850,7 @@ Region::post_set (const PropertyChange& pc) } void -Region::set_start_internal (framecnt_t s, const int32_t& sub_num) +Region::set_start_internal (framecnt_t s, const int32_t sub_num) { _start = s; } diff --git a/libs/ardour/region_factory.cc b/libs/ardour/region_factory.cc index e724683eda..6578e89837 100644 --- a/libs/ardour/region_factory.cc +++ b/libs/ardour/region_factory.cc @@ -46,7 +46,7 @@ std::map RegionFactory::region_name_map; RegionFactory::CompoundAssociations RegionFactory::_compound_associations; boost::shared_ptr -RegionFactory::create (boost::shared_ptr region, bool announce, const int32_t& sub_num) +RegionFactory::create (boost::shared_ptr region, bool announce, const int32_t sub_num) { boost::shared_ptr ret; boost::shared_ptr ar; @@ -144,7 +144,7 @@ RegionFactory::create (boost::shared_ptr region, const PropertyList& pli } boost::shared_ptr -RegionFactory::create (boost::shared_ptr region, frameoffset_t offset, const PropertyList& plist, bool announce, const int32_t& sub_num) +RegionFactory::create (boost::shared_ptr region, frameoffset_t offset, const PropertyList& plist, bool announce, const int32_t sub_num) { boost::shared_ptr ret; boost::shared_ptr other_a; diff --git a/libs/ardour/tempo.cc b/libs/ardour/tempo.cc index 9862126873..05d3d89c15 100644 --- a/libs/ardour/tempo.cc +++ b/libs/ardour/tempo.cc @@ -2978,7 +2978,7 @@ TempoMap::gui_dilate_tempo (TempoSection* ts, const framepos_t& frame, const fra } double -TempoMap::exact_beat_at_frame (const framepos_t& frame, const int32_t& sub_num) +TempoMap::exact_beat_at_frame (const framepos_t& frame, const int32_t sub_num) { Glib::Threads::RWLock::ReaderLock lm (lock); @@ -2986,7 +2986,7 @@ TempoMap::exact_beat_at_frame (const framepos_t& frame, const int32_t& sub_num) } double -TempoMap::exact_beat_at_frame_locked (const Metrics& metrics, const framepos_t& frame, const int32_t& sub_num) +TempoMap::exact_beat_at_frame_locked (const Metrics& metrics, const framepos_t& frame, const int32_t sub_num) { double beat = beat_at_frame_locked (metrics, frame); if (sub_num > 1) { -- cgit v1.2.3