summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_streamview.cc
AgeCommit message (Collapse)Author
2020-05-10Work around a race conditionJohannes Mueller
This covers a race condition in session transport that when synced to an external engine it sometimes occurs that at the end of ::realtime_stop() ::transport_stopped_or_stopping() returns false when ::setup_rec_box() is called. In this case the rec boxes are not erased when the recoding transport is stopped. This fixes this behavior about the remaining rec boxes, however the race condition remains. The race condition is reported in #8104. It should be considered reverting this commit once the race condition is fixed.
2020-04-16remove debug outputPaul Davis
2020-04-16changes to deal with region/note selection when changing into/out of ↵Paul Davis
internal edit mode Also, activate MIDI editing actions so that they are effective in internal edit mode
2020-04-13Same as 97e07f4, only for MidiStreamview, duhJohannes Mueller
2019-08-03Update GPL boilerplate and (C)Robin Gareus
Copyright-holder and year information is extracted from git log. git history begins in 2005. So (C) from 1998..2005 is lost. Also some (C) assignment of commits where the committer didn't use --author.
2019-07-14Remember MIDI-track note-range -- #7773Robin Gareus
Previously only manual changes of the note-range using the scroomer. The NoteRangeChanged() was ignored for implicit changes (e.g. while recording, step-entry) and automatic-fit that didn't involve a drag event.
2019-04-08NO-OP: whitespace, alignmentRobin Gareus
2017-09-18globally change all use of "frame" to refer to audio into "sample".Paul Davis
Generated by tools/f2s. Some hand-editing will be required in a few places to fix up comments related to timecode and video in order to keep the legible
2017-06-08Fix rec-box w/count-inRobin Gareus
Since 478f26b2ad, transport_rolling() is only true when actually rolling. Count-in is a no-roll process (don't move playhead, no playhead UI position interpolation 55b8b448). But transport isn't exactly stopped either (preparing to roll), so during count-in transport_stopped() == transport_rolling() == false.
2017-04-19Use PBD string conversion functions in PBD::Property classTim Mayberry
2017-03-16Fix note-grid, canvas bounding-box offset.Robin Gareus
Note lines on a MIDI-track were able to exceed the time-axis' height towards the top. If a MIDI track was at the top, the TAV's canvas-group would increase the overall bounding-box of the track-area and allow tracks to visually bleed into the time markers group.
2017-02-06Revert to allowing stacked layer region view for MIDI tracks, for now.Ben Loftis
2017-01-29prevent suggestion that MIDI tracks can be set to stacked viewPaul Davis
2016-07-14enough with umpteen "i18n.h" files. Consolidate on pbd/i18n.hPaul Davis
2016-07-10remove reference "const int32_t&" -> const int32_t"Robin Gareus
this simplifies lua-bindings and also let's the compiler worry about constant primitive types.
2016-07-10Paste uses exact beats. rework _start_beats calculation in copy-with-offset ↵nick_m
ctor.
2016-07-10Exact beat - provide audio->music mapping for region split.nick_m
- for those not in the know, this series provides a way to remove the temporal distortion introduced when using an audio frame-based gui for music-locked objects. In short, the gui uses an audio frame representation to move objects. It displays the object using frame_at_beat(), quantizing the time value to audio frames. This is fine until the user selects that frame but expects it to be interpreted as a beat. Thus beat_at_frame() would not produce the user-expected beat (temporal quantization error of up to 0.5 audio samples). This is one method of mapping audio time to music time accurately.
2016-05-31universal change in the design of the way Route/Track controls are designed ↵Paul Davis
and used. The controls now own their own state, rather than proxy for state in their owners. Massive changes all over the code to accomodate this. Many things are not finished. Consider this a backup safety commit
2016-01-12Fix two ghost note drawing problems.André Nusser
A ghost note could appear: 1) above the region. 2) inside another note even though we haven't yet entered it.
2015-10-05NOOP, remove trailing tabs/whitespace.Robin Gareus
2015-09-16Move UIConfiguration Singleton into UIConfiguration headerTim Mayberry
This removes the direct dependence on ardour_ui.h from 39 files
2015-09-16Move DPIReset and ColorsChanged signals into UIConfigurationTim Mayberry
2014-12-22move all (G)UI related configuration parameters into UIConfiguration, not ↵Paul Davis
RCConfiguration
2014-12-18Fix copy paste of MIDI and track automation.David Robillard
2014-12-18Remove internal edit mode and add "content" tool.David Robillard
2014-12-17Fix display of MIDI notes/regions while recording.David Robillard
Make record rect transparency configurable. Factor out some copy-paste streamview code.
2014-12-17Fix various MIDI locking issues.David Robillard
Attempt to make mistakes much less likely in the future by statically requiring caller to pass scoped locks where necessary.
2014-12-17Don't allow drawing notes in rec regions (crash).David Robillard
2014-12-15next 2 modifiersPaul Davis
2014-12-15next modifierPaul Davis
2014-12-15next modifierPaul Davis
2014-12-14fix up requested color names everywhere.Paul Davis
Thank <deity> for emacs ... space-uncamelcase-word-at-point FTW
2014-12-14initial pass to replace all UIConfiguration::get_XXXXXX() calls with ↵Paul Davis
UIConfiguration::color(name). IMPORTANT: names have not been downcased and spaced yet, so many colors are not found
2014-12-06Fix crash when showing MIDI regions we shouldn't.David Robillard
I am not sure what causes this, but it can happen when finishing a record sometimes. Probably MidiSource::_writing isn't updated in the right order with whatever triggers the redisplay, but at least not crashing is better...
2014-10-21remove "canvasvar_" from all functions related to obtaining values from ↵Paul Davis
ARDOUR_UI::config()
2014-09-08fix color of top-most MIDI note line on the canvasRobin Gareus
2014-06-25move utility functions into a dedicated namespaceRobin Gareus
2014-06-22more canvas refactoring.Paul Davis
Remove Canvas::Layout, use Canvas::Container for the same purpose, move child-rendering into Item::render_children() so that it could theoretically be used by any derived type.
2014-06-21use newly factored canvas in gtk2_ardourPaul Davis
2014-06-09substantial changes in color management, involving a reduction in the use of ↵Paul Davis
Gdk::Color and more consistent logic for region coloring. Group tabs now also get the text drawn in an appropriately contrast-y color
2014-06-09use Canvas::LineSet for tempolines rather than N different Canvas::Line ↵Paul Davis
items plus a cache
2014-01-09a few coding style cleanupsPaul Davis
2013-10-24redraw entire MidiStreamView after scroomer drag so that everything is redrawnPaul Davis
2013-10-24fix placement of black/white note lines/bars in MIDI streamviewPaul Davis
2013-10-23fix up drawing of MIDI note "lines" on track canvas, which were in the wrong ↵Paul Davis
places
2013-04-16change UIConfig to use accessor/setter methods like RCConfig so that ↵Paul Davis
ParameterChanged methods can actually be emitted; add variable (over a small range) background shading for all TimeAxisViewItems
2013-04-12change frames_per_pixel to samples_per_pixelPaul Davis
2013-04-12change all frame_to_pixel and pixel_to_frame to sample_to_pixel and ↵Paul Davis
pixel_to_sample
2013-04-04commit immediately post linkingPaul Davis
2013-04-04initial commit of hand merging, plus getting "ancient" waf script to work ↵Paul Davis
correctly