mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 20:26:30 +01:00
Remove _midi_regions_use_bbt_beats from Session, _start_pulse and _length_pulse from MidiRegion.
- _start/length_beats are now quarter notes regardless of loaded session version. - also restores note colour update
This commit is contained in:
parent
d1d8b1aae7
commit
080e7755a6
8 changed files with 34 additions and 90 deletions
|
|
@ -198,12 +198,12 @@ MidiSource::midi_read (const Lock& lm,
|
|||
MidiChannelFilter* filter,
|
||||
const std::set<Evoral::Parameter>& filtered,
|
||||
const double pulse,
|
||||
const double start_pulse) const
|
||||
const double start_beats) const
|
||||
{
|
||||
//BeatsFramesConverter converter(_session.tempo_map(), source_start);
|
||||
const int32_t tpb = Timecode::BBT_Time::ticks_per_beat;
|
||||
const double pulse_tick_res = floor ((pulse * 4.0 * tpb) + 0.5) / tpb;
|
||||
const double start_qn = (pulse - start_pulse) * 4.0;
|
||||
const double start_qn = (pulse * 4.0) - start_beats;
|
||||
|
||||
DEBUG_TRACE (DEBUG::MidiSourceIO,
|
||||
string_compose ("MidiSource::midi_read() %5 sstart %1 start %2 cnt %3 tracker %4\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue