summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-04-19Use XMLNode::get/set_property API in PBD::StatefulTim Mayberry
2017-04-19Use XMLNode::get/set_property API in PBD::ControllableTim Mayberry
2017-04-19Add pbd/types_convert.h header for PBD::to_string/string_to specialisationsTim Mayberry
2017-04-19Add a template based get/set_property API to PBD::XMLNodeTim Mayberry
2017-04-19Remove now unused stream operator functions in ardour/types.hTim Mayberry
2017-04-19Use PBD string conversion functions in PBD::ConfigurationVariableTim Mayberry
No longer need a specialization for bool as PBD::to_string/string_to already has specializations for bool Remove template specialization for float as string_to/to_string handles string representations of infinity
2017-04-19Use int32_t type instead of long for font-scale UI configuration variableTim Mayberry
long type can not be used with PBD::to_string/string_to
2017-04-19Add missing header include to ControlProtocol class source fileTim Mayberry
2017-04-19Use PBD string conversion functions in PBD::Property classTim Mayberry
2017-04-19Add header for PBD::to_string/_to template specializations for Evoral typesTim Mayberry
2017-04-19Add header for PBD::to_string/string_to() specialisations for libardour typesTim Mayberry
Add PBD::to_/string_to specializations for ARDOUR::DataType These could go into the data_type.h header but they don't really need to and it means that ardour/types_convert.h can just be included by source files that need to do type<=>string conversion. A potential problem with this is that if all the specializations are contained in a single header then any class that requires inclusion of that header to do serialization will be recompiled each time types_convert.h is changed. I'm not going to worry about it at this stage, it can always be broken up or improved upon later.
2017-04-19Add DEFINE_ENUM_CONVERT macro for defining PBD::string_to/to_string for enumsTim Mayberry
A simple macro for defining the four template specializations required to convert an enum to a string and back using the existing string_2_enum and enum_2_string functions. Generally these will only be instantiated in one source file, I don't think it is necessary to explicitly instantiate any at this stage.
2017-04-19Remove now unused ID::print methodTim Mayberry
2017-04-19Use ID::to_s() in gtk2_ardour instead of ID::print()Tim Mayberry
2017-04-19Use ID::to_s() in libardour instead of ID::print()Tim Mayberry
2017-04-19Use ID::to_s() in libpbd instead of ID::print()Tim Mayberry
2017-04-19Use PBD string conversion functions in PBD::ID instead of snprintfTim Mayberry
Keep ID::print in place for now and replace usage in subsequent commit to minimize changes
2017-04-19Add missing <iostream> header includeTim Mayberry
This will be required for subsequent commits that remove inclusion of <iostream> from some shared headers.
2017-04-19Make boolean string values 0 and 1 to maintain backwards compatibilityTim Mayberry
I would prefer "yes" and "no" as it distinguishes boolean values from numeric but using "yes and "no" results in PBD::Property<T>::from_string failing to parse the correct values when opening in an older Ardour version as there is no specialization for bool. Using 0 and 1 also results in less change to the Session file.
2017-04-18FP8: Fix sort-orderRobin Gareus
2017-04-18prevent crash when loading midi port info about ports that no longer existPaul Davis
2017-04-18FP8: handle backend changes + reconnectRobin Gareus
When the backend is dropped or changed, on engine-restart the connection_handler() re-establishes already connected ports. There's no disconnect when the backend dies or is hard-stopped.
2017-04-18FP8: allow to re-initialize the Strips w/o restartRobin Gareus
2017-04-18FP8: experiment with selection-modeRobin Gareus
2017-04-18clear + re-init faderport at disconnectRobin Gareus
2017-04-17Only check active_state when potentially skipping the route processing.Ben Loftis
In the past, we skipped processing if the routes had no inputs or outputs. But: A route with a generator plugin should work even if it has no inputs. A route with "sends" should work even if it has no outputs.
2017-04-17Managed to trigger an assert()Robin Gareus
Create new Mixbus session, initially incrementally adding Busses to the session triggers a series of "assign_stripables()"
2017-04-17Flush processor (re-activate) on route active changeRobin Gareus
(flush reverb tails etc) PS. That comment "from RT audio thread" was wrong. Route::flush_processors () is called from flush_all_inserts() from Session::non_realtime_stop() which is not in rt-context. Besides, the processor-lock regardless of the process_lock.
2017-04-17amend 649b9e92f, backport MB codeRobin Gareus
2017-04-17Backport some MB specifics (to avoid -Wmisleading-indentation)Robin Gareus
2017-04-17Update well-known controls (Ardour, Mixbus, 32C)Robin Gareus
2017-04-17cont'd FP8 tweaksRobin Gareus
* include Mixbus PRE plugin on Mixbusses * Mixbus master-assign on right-most "S" button * fix parameter-banking and assignment * fix typo in 029e963fb (fader range constaint)
2017-04-17Fix string-convert tests for Windows and hopefully macOS/OS XTim Mayberry
Tests requires a locale installed on the host that uses a comma as the decimal mark/point.
2017-04-17NO-OP: whitespaceRobin Gareus
2017-04-17Send unmap event when removing a widgetRobin Gareus
This fixes a crash when hiding an ArdourCanvas Item VCA which is about to display a tooltip.
2017-04-17Stop tooltip timeout when a canvas-widget or item is hidden.Robin Gareus
2017-04-16Fix crashes with empty route-lists e.g. mute_release w/o routesRobin Gareus
2017-04-16FP8: limit fader rangeRobin Gareus
In case of VCA masters or otherwise the value can exceed the max +6dB and internal_to_interface() returns a value > 1.0 which cannot be represented on the physical fader (MIDI &0x7f wraps)
2017-04-16Clean up after generic MIDI surface -- #7311Robin Gareus
When there are some non-released MIDIControllables, signal are still delivered to the objects, even if there's no surface thread to handle the signals anymore.
2017-04-16Fixed the loop controllicorne-sama
Works now perfectly fine with factory defaults
2017-04-16Create midi map for Arturia's KeyLab 49licorne-sama
Basic midi map for this midi keyboard. Works with device's factory settings, except for the loop button (see end of file). Transport control is available through MMC.
2017-04-16Fix Doxygen syntax (amend/revert f1a4767ac)Robin Gareus
1st line after /** brief description. Doxygen is used for Ardour's online source doc and the Lua class reference.
2017-04-16FP8: add metronome level resetRobin Gareus
2017-04-16Accommodate newly introduced source(s) in our MSVC project (libpbd)John Emmas
2017-04-16Add locale independent and thread safe string conversion API with testsTim Mayberry
All conversions are performed as if in the "C" locale but without actually changing locale. This is a wrapper around printf/sscanf for int types which aren't affected by locale and uses glib functions g_ascii_strtod and g_ascii_dtostr for float/double types. My first attempt at this used std::stringstream and ios::imbue(std::locale::classic()) as it should be thread safe, but testing shows it is not for gcc/mingw-w64 on Windows, and possibly also some versions of macOS/OS X. Use "yes" and "no" when converting a boolean in PBD::string_to<bool> as this seems to be the convention used throughout libardour which will allow using string_to<bool> in those cases. Add accepted bool string values from PBD::string_is_affirmative to PBD::string_to<bool> Mark strings in pbd/string_convert.cc as not for translation Add u/int16_t string conversions to pbd/string_convert.h and tests Add DEBUG_TRACE output on conversion errors Add int8_t/uint8_t conversions(using int16/uint16 types) to string_convert.h Add support for converting an infinity expression to/from string Follows the C99/C11 standard for strtof/strtod where subject sequence is an optional plus or minus sign then INF or INFINITY, ignoring case.
2017-04-16Add PBD::DEBUG::StringConvert debug bitTim Mayberry
This is for debugging errors with string conversion for cases where errors aren't handled
2017-04-16Fix indentation in ARDOUR::Amp::set_stateTim Mayberry
2017-04-16Fix indentation in MonitorProcessor::stateTim Mayberry
2017-04-16Fix indentation in ardour/enums.ccTim Mayberry
2017-04-16Fix indentation and make comment style consistent in PBD::PropertyList headerTim Mayberry