Commit graph

41707 commits

Author SHA1 Message Date
Robin Gareus
d3e1dc0b7f
Fix typo 2025-11-18 18:57:51 +01:00
Robin Gareus
1c3cc95b3b
Fix optimized bilds 2025-11-18 18:30:09 +01:00
Paul Davis
8ffb54e431 Primary-a in internal edit mode selects all notes 2025-11-18 09:03:05 -07:00
Paul Davis
7bb25b0e65 larger default size for pianoroll windows 2025-11-18 08:55:16 -07:00
Robin Gareus
a56b4e5aeb
Fix testing for session files
The clause that was added in b65fe35f67 to allow passing
FQN including .ardour suffix on the comandline.

As side-effect this prevented loading sessions that were named
after a folder inside the session-bundle. e.g. "plugin" or
"interchage" or "dead" etc.
2025-11-18 04:42:33 +01:00
Paul Davis
3361d073d3 remove debug output 2025-11-17 20:31:05 -07:00
Paul Davis
7f063dab6c fix display and function of EditingContexts' zoom focus selector 2025-11-17 19:33:00 -07:00
Paul Davis
214037192f pianoroll: respond sensibly when a trigger has it's region cleared 2025-11-17 18:49:02 -07:00
Paul Davis
99bc55465d triggerbox: emit appropriate property change when region is cleared in a slot 2025-11-17 18:48:35 -07:00
Paul Davis
06dc00546f fix plural forms 2025-11-17 17:37:04 -07:00
Paul Davis
1b0aeef8be when using cue page pianoroll record length dropdown, show active value 2025-11-17 16:05:03 -07:00
Paul Davis
6dfca90b8e fix illegal MIDI event message during import
This happens when reimporting a MIDI file taken from Ardour, which
has sequencer specific data (namely, note-IDs). In that case
SMF::read_event() returns zero to indicate a meta event that we
should or could be interested in. For import, we are not interested,
hence the ignored_note_id variable
2025-11-17 16:05:03 -07:00
Paul Davis
65332e603b libsmf: speed up ridiculous design of smf_save()
This would realloc a buffer for every event, making it absurdly slow for
large MIDI files (say, 10k events). Use the somewhat standard heuristic
of doubling the requested allocation every time we need to increase the size.

This results in a speedup of 40-100x when saving SMF to disk
2025-11-17 16:05:03 -07:00
Paul Davis
662d1b9e46 NO-OP: fix commented printf of MIDI data 2025-11-17 16:05:03 -07:00
Paul Davis
2c7841777b Evoral: more useful output if there's an illega MIDI event sent to SMF or Sequence 2025-11-17 16:05:03 -07:00
Robin Gareus
30e1567e23
Add ComboBox like active API to ArdourDropdown 2025-11-17 23:57:01 +01:00
Paul Davis
a0302bd7fc MidiView: fix display of out-of-range live (recording) notes
This involves better handling of note range changes, and also a renaming of
member variables to better reflect their function.

It adds _finished_live_notes to hold notes that were recorded live but have
ended, since these also need to be updated as zooming or note range changes
2025-11-17 11:07:18 -07:00
Paul Davis
68c69fb89d MidiViewBackground: make ::maybe_apply_note_range() return bool
Just like ::apply_note_range, to indicate if the range was
actually changed.
2025-11-17 11:07:18 -07:00
Paul Davis
9e9afef527 NO-OP: correct comment description of a value 2025-11-17 11:07:18 -07:00
Aleksandr Prokudin
e01184ada0 Make the PDC option in the application bar items list consistent with the rest 2025-11-17 10:21:44 +01:00
Paul Davis
1e6d75d781 MidiBuffer: make ::write() return an error code if ::insert_event() fails 2025-11-16 14:03:11 -07:00
Paul Davis
6e58f6e2c8 NO-OP: space for function decl 2025-11-16 14:03:11 -07:00
Paul Davis
1fcc09ca84 NO-OP: space for function decl 2025-11-16 14:03:11 -07:00
Paul Davis
493a136d43 MidiBuffer: print an error if ::push_back() fails 2025-11-16 14:03:11 -07:00
Paul Davis
66f18a065e MIDI diskwriter: at least pretend to catch errors when pushing to MidiRingBuffer 2025-11-16 14:03:11 -07:00
Paul Davis
cc3981643a NO_OP: spaces for function call 2025-11-16 14:03:11 -07:00
Paul Davis
8baf7fbab2 NO-OP: comment formatting 2025-11-16 14:03:11 -07:00
Paul Davis
ec9120ab05 NO-OP: change variable name and better alignment 2025-11-16 14:03:11 -07:00
Paul Davis
67a09c19c8 NO-OP: spaces for function calls 2025-11-16 14:03:11 -07:00
Paul Davis
21a4501e47 MIDI: fix major error in computing delta times for SMFSource::append_event_samples()
timecnt_t constructor is: (distance, position); this code was not computing the
distance between the new event and _last_ev_time_samples.
2025-11-16 14:03:11 -07:00
Paul Davis
637e59a14f SMFSource: auto-ify a knarly container iteration 2025-11-16 14:03:11 -07:00
Paul Davis
33d6d5a330 MidiView: no reason to suspend note range changes until after _active_note check 2025-11-16 14:03:11 -07:00
Paul Davis
1c09bb88be prevent unnecessary calls to MidiViewBackground::maybe_extent_note_range()
When building a MidiView from a Model, we call ::add_note() for every note, and
there is no reason to be adjusting the note range each and every time, since it
potentially a slightly expensive operation.
2025-11-16 14:03:11 -07:00
Paul Davis
695ca40b23 missing initialization for MidiView member in copy constructor 2025-11-16 14:03:11 -07:00
Paul Davis
015890f16c slight optimization for MidiView::extend_active_notes() 2025-11-16 14:03:11 -07:00
Paul Davis
e2cea58876 in MidiView::view_changed(), don't update existing events unless zoom has changed 2025-11-16 14:03:11 -07:00
Paul Davis
b14859fc46 NO-OP: add comment 2025-11-16 14:03:11 -07:00
Paul Davis
87a1f602d2 NO-OP: add detail to a comment 2025-11-16 14:03:11 -07:00
Paul Davis
e5ef93821c NO-OP: remove inaccurate comment 2025-11-16 14:03:11 -07:00
31core
f22b269b7d Improve Simple Chinese translation in gtk2_ardour/po/zh.po. 2025-11-16 18:30:46 +01:00
Robin Gareus
03d5411843
Allow to load partial state 2025-11-15 16:44:43 +01:00
Robin Gareus
f2a267675c
Allow to uniquely identify sessions
This is in preparation to allow merging sessions, or importing
partial state, and particularly different versions of the same
session where PBD::Ids may match.
2025-11-15 16:44:43 +01:00
Aleksandr Prokudin
b6cca7afce Update Russian translation 2025-11-15 14:54:23 +01:00
Aleksandr Prokudin
92ad1368e8 Fix the title case in a user-visible message 2025-11-15 14:52:20 +01:00
Aleksandr Prokudin
f26994c747 Remove the X to make a user-visible message translatable 2025-11-15 14:18:33 +01:00
Aleksandr Prokudin
bc78ac183f Add ellipsis, because this action opens a dialog 2025-11-15 13:57:34 +01:00
Aleksandr Prokudin
1886490f4f Bark is a reference to a real person, so use title case 2025-11-15 13:35:24 +01:00
Aleksandr Prokudin
fee513a5c4 Fix a typo in a user-visible message 2025-11-15 13:18:35 +01:00
Aleksandr Prokudin
a2ce111eb6 Mark user-visible messages for translation 2025-11-15 12:34:23 +01:00
Robin Gareus
04b180cc79
Remove unused cycles/cycle-timer 2025-11-14 17:43:51 +01:00