summaryrefslogtreecommitdiff
path: root/libs/ardour/midi_clock_slave.cc
AgeCommit message (Collapse)Author
2010-01-29MIDIClock_SlaveTest: refactor as subclass of MIDIClock_Slave for testabilityHans Baier
git-svn-id: svn://localhost/ardour2/branches/3.0@6587 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-12-21fully implement and deploy explicit x-thread signal connection syntax ↵Paul Davis
(testing comes next) git-svn-id: svn://localhost/ardour2/branches/3.0@6379 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-12-19use new syntax for connecting to backend signals that enforces explicit ↵Paul Davis
connection scope, plus a few other related matters git-svn-id: svn://localhost/ardour2/branches/3.0@6376 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-12-17switch to using boost::signals2 instead of sigc++, at least for libardour. ↵Paul Davis
not finished yet, but compiles, loads sessions, records and can close a session without a crash git-svn-id: svn://localhost/ardour2/branches/3.0@6372 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-12-12remove using namespace sigc everywhere to ensure clarity over which ↵Paul Davis
bind/mem_fun is being used; make Config::map_parameters take a boost::function rather than a sigc::slot ; continue debugging crash caused by regionviews not tracking their Region's lifetime git-svn-id: svn://localhost/ardour2/branches/3.0@6357 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-11-08monster commit: transport mgmt changes from 2.X (omnibus edition); make ↵Paul Davis
slave use nframes64_t ; avoid crashes in Drags when commiting reversible transactions that do not exist git-svn-id: svn://localhost/ardour2/branches/3.0@6034 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-10-14Strip trailing whitespace and fix other whitespace errors (e.g. space/tab ↵David Robillard
mixing). Whitespace changes only. Vimmers, try let c_space_errors = 1 in your .vimrc to highlight this kind of stuff in red. I don't know the emacs equivalent... git-svn-id: svn://localhost/ardour2/branches/3.0@5773 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-07-21Fix some unused parameter warnings.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@5403 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-06-20midi clock slave: refactor for testabilityHans Baier
git-svn-id: svn://localhost/ardour2/branches/3.0@5219 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-05-12Remove most using declarations from header files.Carl Hetherington
git-svn-id: svn://localhost/ardour2/branches/3.0@5069 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-02-25*** NEW CODING POLICY ***David Robillard
All #include statements that include a header that is a part of a library bundled with ardour MUST use quotes, not angle brackets. Do this: #include "ardour/types.h" NOT this: #include <ardour/types.h> Rationale: This is best practice in general, to ensure we include the local version and not the system version. That quotes mean "local" (in some sense) and angle brackets mean "system" (in some sense) is a ubiquitous convention and IIRC right in the C spec somewhere. More pragmatically, this is required by (my) waf (stuff) for dependencies to work correctly. That is: !!! FAILURE TO DO THIS CAN RESULT IN BROKEN BUILDS !!! Failure to comply is punishable by death by torture. :) P.S. It's not that dramatic in all cases, but this (in combination with some GCC flags specific to the include type) is the best way I have found to be absolutely 100% positive the local ones are being used (and we definitely want to be absolutely 100% positive on that one). git-svn-id: svn://localhost/ardour2/branches/3.0@4655 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-02-14* second part of the last fixHans Baier
git-svn-id: svn://localhost/ardour2/branches/3.0@4549 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-02-14* fix concerning a comment on issue 2541: Go back to the last MIDI beat on stopHans Baier
git-svn-id: svn://localhost/ardour2/branches/3.0@4548 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-02-13* MIDIClock_Slave: fixed bugs:Hans Baier
- not synced to session.audible_frame() but to session.transport_frame() - failed asserts in song position git-svn-id: svn://localhost/ardour2/branches/3.0@4543 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-02-13* MIDIClock_Slave: Fix for devices that always send MIDI clock (not just ↵Hans Baier
between start/stop) git-svn-id: svn://localhost/ardour2/branches/3.0@4542 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-02-12* MIDI clock slave: issues 2541 and 2542 ready for testing (cant test myself ↵Hans Baier
due to lack of hardware) * tempo.cc/tempo.h: formatting / whitespace git-svn-id: svn://localhost/ardour2/branches/3.0@4538 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-01-09* changed transport speed in session and slaves from float to doubleHans Baier
* added some comments git-svn-id: svn://localhost/ardour2/branches/3.0@4394 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-01-05* corrected copyright informationHans Baier
git-svn-id: svn://localhost/ardour2/branches/3.0@4388 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-01-05*fixed typoHans Baier
* set copyright to Hans Baier for midi_clock_slave.cc git-svn-id: svn://localhost/ardour2/branches/3.0@4387 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-01-05* MIDI clock slave implementation with delay locked loop (DLL) seems to work ↵Hans Baier
well * added option to class Slave / Session::process that a slave can have total control over transport speed git-svn-id: svn://localhost/ardour2/branches/3.0@4385 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-01-01*fixed bug in MidiClock_Slave: Use current framerate for speed calculationsHans Baier
git-svn-id: svn://localhost/ardour2/branches/3.0@4371 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-01-01* radically cleaned up / refactored midi_clock_slave.ccHans Baier
* debug statements in session_process.cc and midi_clock_slave.cc as conditional compilation instead of comments git-svn-id: svn://localhost/ardour2/branches/3.0@4366 d708f5d6-7413-0410-9779-e7cbd77b26cf
2009-01-01* made MidiClock_Slave conform more to to the Spec by starting transportHans Baier
on the first MidiClock Message after the start Message * removed debugging output from session_process.c * fixed bug: calculate a more sensible speed value on transport start * fixed typos in Slave docs * refactored MidiClock_Slave for better readability * made MidiClock_Slave react to continue messages git-svn-id: svn://localhost/ardour2/branches/3.0@4365 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-12-30Wrap some Jack_MidiPort stuff in #ifdefs to solve dylib errors on OS XSakari Bergen
git-svn-id: svn://localhost/ardour2/branches/3.0@4361 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-11-07* Enabled debugging output for start/stop messages on MidiClockSlave Hans Baier
git-svn-id: svn://localhost/ardour2/branches/3.0@4107 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-11-07* removed unnecessary method calls (preparse/postparse) in JACK_MidiPortHans Baier
* Changed calculation of current speed and transport position to double to avoid accumulating rounding errors git-svn-id: svn://localhost/ardour2/branches/3.0@4106 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-10-30* got MIDI clock working really smoothly (29 frames until sync, ardour ↵Hans Baier
transport jitter 1 frame) * removed debugging output git-svn-id: svn://localhost/ardour2/branches/3.0@4032 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-10-29* added documentaion to libs/ardour/slave.hHans Baier
* first roughly working midi clock slave git-svn-id: svn://localhost/ardour2/branches/3.0@4025 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-10-27got MIDI Clock slave closer to functioning properly: Hans Baier
- Cleaned up the class - calculating (kind-of) sensible speed and position values - fixed resolution (quick-fix) - fixed requires_seekahead (set to false) - fixed locked (set to true) git-svn-id: svn://localhost/ardour2/branches/3.0@4018 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-10-25* fixed jitter problems for midi clock and removed superfluous UI elementsHans Baier
git-svn-id: svn://localhost/ardour2/branches/3.0@4008 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-10-14* this implementation of midi_clock_slave is still sort of a proof of ↵Hans Baier
concept, but it reveals interesting issues and is better than the code before git-svn-id: svn://localhost/ardour2/branches/3.0@3969 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-08-07* enabled moving averages again... plays much nicer in a realtime setupHans Baier
* disabled excessive tracing git-svn-id: svn://localhost/ardour2/branches/3.0@3668 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-08-06* I probably better should consult the nominal frame rate to calculate ppqn ↵Hans Baier
intervals git-svn-id: svn://localhost/ardour2/branches/3.0@3666 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-08-06* I dont know whether this works, but I'll commit it anywayHans Baier
git-svn-id: svn://localhost/ardour2/branches/3.0@3665 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-08-06* forgot to remove those linesHans Baier
git-svn-id: svn://localhost/ardour2/branches/3.0@3664 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-08-06* removed rolling speed average from MIDIClockSlave, ardour seems to keep ↵Hans Baier
time now git-svn-id: svn://localhost/ardour2/branches/3.0@3663 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-08-06* fixed JACK_MidiPort to get the events into the slaveHans Baier
git-svn-id: svn://localhost/ardour2/branches/3.0@3662 d708f5d6-7413-0410-9779-e7cbd77b26cf
2008-08-05* forgot to add the midi clock slave cc fileHans Baier
git-svn-id: svn://localhost/ardour2/branches/3.0@3653 d708f5d6-7413-0410-9779-e7cbd77b26cf