-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'preferences' and live PCM driver updates
* preferences: UI: util.js: call prop->ident() ASE: shorten Parameter method ident() ASE: strings: add fallback to string_option_find(), remove string_option_get() ASE: testing.cc: use string_option_find_value() ASE: processor.cc: use string_option_find() ASE: cxxaux.cc: use ase_fatal_warnings ASE: main: remove feature toggles, use ase_fatal_warnings ASE: utils: export ase_fatal_warnings ASE: utils.cc: base debug key checks on string_option_find_value() ASE: strings: base option search on string_option_find_value() (without malloc) ASE: project: create_properties: use property_bag() and Prop ASE: clapdevice.cc: use parameter_guess_nick() ASE: gadget: add property_bag() and create_properties() UI: b/preferencesdialog.vue: edit everything with Shift+Ctrl+Alt+Click [Close] UI: b/preferencesdialog.vue: fetch + edit only selected PCM + MIDI preferences UI: b/objecteditor.js: fix blurb and descr bubbles UI: index.html, eslintrc.js: allow _("for translation") markup UI: util.js: rename extended Property descr() (abbreviate) UI: b/choiceinput.js: treat choice property as string UI: b/preferencesdialog.vue: special case driver.pcm.devid UI: b/objecteditor.js: rename internal function on xprop UI: b/contextmenu.js: support focus_uri ASE: engine.cc: add preferences for up to 4 MIDI controllers ASE: engine.cc: cache PCM driver live listing for ca half a second ASE: engine: change PCM driver when preferences change ASE: engine.cc: add audio.synth_latency Preference ASE: driver*: allow to query all PcmConfig values from drivers ASE: api.hh, server: remove all old preference handling ASE: api.hh, server: add Server.list_preferences() ASE: properties: add Preference classes and majorly simplify Property impls * Remove obsolete structures and aux constructors * Add getter/setter lister for enumeration types * Add PropertyBag - a helper to simplify property registrations * Add small PropertyImpl based on ParameterProperty * Add generic Preference class, useful for static initialization * Remove property nick guessing * Add global Preference setting list based on Parameter * Implement saving/loading preferences from anklangrc * Auto save preference changes after maybe half a second * Ensure that Preference names follow NCName syntax ASE: defs.hh: add PropertyImpl ASE: api.hh: rename Property.descr() (abbreviate) ASE: api.hh, server: provide access_preference() instead of access_prefs() ASE: api.hh: add constexpr GUIONLY, STORAGE, STANDARD to avoid C++ SIOF ASE: main.cc: save/load preferences unless --norc is given ASE: processor: use Parameter instead of the old ParamInfo ASE: parameter: add Parameter, ParameterProperty and parameter_guess_nick() * Implement Parameter{} with Param{} as initializer * Add constrain, normalize and text conversions * Implement simple ParameterProperty abstract base class * Support callback function to query parameter choices * In set_value: constrain Value according to parameter range * Use variants for flexible initilizers * Treat choice parameters as text * Match choices via normalized Damerau-Levenshtein distance * Add parameter_guess_nick() (former on property_guess_nick). ASE: value.hh: add Value::is_string() ASE: object.cc: allow NCName as event detail, to support preference identifiers ASE: defs.hh: declare Preference ASE: strings: add kvpairs_search() ASE: strings: define and use ASE_STRING_SET_ASCII_ALNUM and _LOWER_ALNUM ASE: unicode.cc: add missing docs ASE: unicode: add string_to_ncname() and string_is_ncname() ASE: levenshtein: compute (un)restricted Damerau-Levenshtein string distances ASE: defs.hh: add F32EPS and F32MAX ASE: memory.hh: declare CStringS ASE: loop: add exec_once() ASE: cxxaux.hh: add ASE_ASSERT_ALWAYS() MISC: package.json.in: reduce wait delay for rebuilds Signed-off-by: Tim Janik <[email protected]>
- Loading branch information
Showing
48 changed files
with
2,061 additions
and
1,643 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.