summaryrefslogtreecommitdiff
path: root/gtk2_ardour/midi_streamview.cc
AgeCommit message (Collapse)Author
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
2013-01-19Replace a bunch of potential crashes with graceful handling of the situation.David Robillard
We really need some kind of more sophisticated assert macro that can be switched to non-fatal logging mode for release builds. A log message, which is often all that would happen, is a lot better than a trainwrecked performance... git-svn-id: svn://localhost/ardour2/branches/3.0@13892 d708f5d6-7413-0410-9779-e7cbd77b26cf
2013-01-15force use of a weak_ptr<> when binding in MidiStreamView, hopefully avoiding ↵Paul Davis
putting a shared_ptr<Region> into an object git-svn-id: svn://localhost/ardour2/branches/3.0@13845 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-06-13Fit note range on adding regions to tracks during import (#4106).Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@12705 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-05-28Deselect MIDI notes when leaving internal edit modeCarl Hetherington
(part of #4669). git-svn-id: svn://localhost/ardour2/branches/3.0@12471 d708f5d6-7413-0410-9779-e7cbd77b26cf
2012-05-24Remove over 500 unnecessary includes (including 54 of session.h).David Robillard
It's slightly possible that this causes trivial build failures on different configurations, but otherwise shouldn't cause any problems (i.e. no actual changes other than include/naming/namespace stuff). I deliberately avoided removing libardour-config.h since this can mysteriously break things, though a few of those do seem to be unnecessary. This commit only targets includes of ardour/*.h. There is also a very large number of unnecessary includes of stuff in gtk2_ardour; tackling that should also give a big improvement in build time when things are modified. git-svn-id: svn://localhost/ardour2/branches/3.0@12420 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-10-20remove unused static functionPaul Davis
git-svn-id: svn://localhost/ardour2/branches/3.0@10247 d708f5d6-7413-0410-9779-e7cbd77b26cf
2011-09-14Don't draw MIDI note horizontal grid lines if they would beCarl Hetherington
less than 3 pixels apart (#4300). git-svn-id: svn://localhost/ardour2/branches/3.0@10080 d708f5d6-7413-0410-9779-e7cbd77b26cf