2020-04-28 12:29:25 +00:00
|
|
|
libcw Testing and Development App
|
2020-03-24 01:27:10 +00:00
|
|
|
|
2022-05-06 20:14:37 +00:00
|
|
|
|
2021-11-14 16:47:41 +00:00
|
|
|
# GDB Setup:
|
|
|
|
|
2022-11-11 16:50:58 +00:00
|
|
|
set env LD_LIBRARY_PATH /home/kevin/sdk/libwebsockets/build/out/lib::~/src/libcm/build/linux/debug/lib
|
2021-11-14 16:47:41 +00:00
|
|
|
r ~/src/cwtest/src/cwtest/cfg/main.cfg mtx
|
|
|
|
|
|
|
|
|
|
|
|
# Valgrind setup
|
|
|
|
|
2022-10-26 12:45:30 +00:00
|
|
|
export LD_LIBRARY_PATH=~/sdk/libwebsockets/build/out/lib:~/src/libcm/build/linux/debug/lib
|
2021-11-14 16:47:41 +00:00
|
|
|
valgrind --leak-check=yes --log-file=vg0.txt ./cwtest ~/src/cwtest/src/cwtest/cfg/main.cfg mtx
|
|
|
|
|
2020-04-28 12:29:25 +00:00
|
|
|
#Design Questions:
|
|
|
|
|
|
|
|
How should errors be presented to the user? developer?
|
|
|
|
|
|
|
|
|
|
|
|
#To Do:
|
|
|
|
|
|
|
|
###
|
|
|
|
|
|
|
|
All callbacks should return meaningful result codes.
|
|
|
|
|
|
|
|
### uiTest:
|
|
|
|
|
2021-11-14 16:47:41 +00:00
|
|
|
- Fix crash when '=' is used as a pair separator rather than ':'.
|
2020-04-28 12:29:25 +00:00
|
|
|
cwUi is not noticing when a UI resource file fails to parse correctly.
|
|
|
|
This may be a problem in cwObject or in cwUI.
|
|
|
|
|
2021-11-14 16:47:41 +00:00
|
|
|
- Fix bug where leaving out the ending bracket for the first 'row' div in ui.cfg
|
2020-04-28 12:29:25 +00:00
|
|
|
causes the next row to be included in the first row, and no error to be generated,
|
|
|
|
even though the resource object is invalid (i.e. there is a missing brace).
|
|
|
|
|
2021-11-14 16:47:41 +00:00
|
|
|
- Document the UI client/server protocol.
|
2020-04-28 12:29:25 +00:00
|
|
|
1. The message formats to and from the server and the javascript client.
|
|
|
|
2. When the messages are sent.
|
|
|
|
|
2021-11-14 16:47:41 +00:00
|
|
|
- UI: Document the UI resource file format.
|
2020-04-28 12:29:25 +00:00
|
|
|
|
2021-11-14 16:47:41 +00:00
|
|
|
- UI: Add support for custom controls.
|
2020-04-28 12:29:25 +00:00
|
|
|
|
2021-11-14 16:47:41 +00:00
|
|
|
- UI: Add an option to print the UI elment information as they are created.
|
2020-04-28 12:29:25 +00:00
|
|
|
This is a useful way to see if id maps are working.
|
|
|
|
Print: ele name, uuid, appId and parent name, uuid, appId
|
2020-09-01 19:39:47 +00:00
|
|
|
|
2021-11-14 16:47:41 +00:00
|
|
|
- UI: Add an error indicator and API for each control (e.g. border set to red)
|
|
|
|
- UI: Add the ability to order child lists via the 'order' attribute.
|
|
|
|
- UI: Add API to delete a UI element
|
2020-09-01 19:39:47 +00:00
|
|
|
|
2021-11-14 16:47:41 +00:00
|
|
|
- PresetSel: Select and highlight a fragment.
|
|
|
|
- Enable 'Delete' button when a fragment is selected.
|
2020-09-01 19:39:47 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-08-13 13:38:39 +00:00
|
|
|
|
2021-11-14 16:47:41 +00:00
|
|
|
### UI Properties
|
|
|
|
|
|
|
|
name - becomes the HTML id for this element
|
|
|
|
appId application id for this element
|
|
|
|
title label or title for this element
|
|
|
|
className Base class name for this element. All elements have a built-in default class name.
|
|
|
|
addClassName Add this class name to the class name.
|
|
|
|
clickable This elemnt will send a 'click' msg when clicked.
|
|
|
|
enable This element is enabled
|
|
|
|
visible This element is visible.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Preset Select
|
2021-12-30 03:04:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
- Functionality
|
2022-05-06 20:14:37 +00:00
|
|
|
|
|
|
|
|
|
|
|
+ play on preset letter select
|
|
|
|
+ backup to numbered file on save
|
|
|
|
+ occaisonal drop-outs (decrease count of cross-fade instances to 2)
|
|
|
|
|
|
|
|
+ test adding,deleting, saving and restoring fragment records
|
2022-12-05 22:16:26 +00:00
|
|
|
+ deleting a fragment does not automatically fill in the missing location space.
|
2022-05-06 20:14:37 +00:00
|
|
|
+
|
|
|
|
+ flow metering object with resetable clip indicator and audio I/O meters
|
|
|
|
+ indicate drop-outs that are detected from the audio IO system
|
|
|
|
+ allow a pre/post network before and after cross fader
|
|
|
|
+ allow modifiable FFT window and hop length as part of preset
|
|
|
|
+ add selectable audio output file object to easily test for out of time problems
|
|
|
|
+ add HTML class and name assignments to row/col div's.
|
|
|
|
+ Velocity of the individual notes of chords should be scaled to such that their sum matches the dynamic value.
|
|
|
|
|
|
|
|
+ add attribute list to instances: [ init_only, scalar_only, print="print values", ui ]
|
|
|
|
+ add min/max/incr/decpl attributes to numeric variables
|
|
|
|
+ why are multiple records given in the 'args:{}' attribute?
|
|
|
|
+ allow the network to be reloaded without restarting the program
|
2021-12-30 03:04:32 +00:00
|
|
|
+ create a wrappers for all the cm based procs.
|
2022-05-06 20:14:37 +00:00
|
|
|
+ create an interactive spec-dist panel to experiment with presets
|
2021-12-30 03:04:32 +00:00
|
|
|
+ UI: clear UI when the app disconnects.
|
|
|
|
|
2022-05-06 20:14:37 +00:00
|
|
|
|
2021-12-30 03:04:32 +00:00
|
|
|
+ flow: create default system wide sample rate
|
|
|
|
+ UI uiSetValue() should be optionally reflected back to the app with kValueOpId messages.
|
|
|
|
This way all value change messages could be handled from one place no matter
|
|
|
|
if the value changes originate on the GUI or from the app.
|
|
|
|
|
2022-12-05 22:16:26 +00:00
|
|
|
+ IO threading: (this is implemented in the MP3 player version of libcw)
|
2021-12-30 03:04:32 +00:00
|
|
|
+ document basic functionality: flow, UI, Audio
|
|
|
|
+ Using the 'blob' functionality should be the default way for tying UI elements to program model.
|
|
|
|
Rewrite the UI test case to reflect this.
|
|
|
|
|
|
|
|
+ breakout libcw from application / reorganize project
|
|
|
|
+ create true plug-in architecture - requires a C only interface.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
- Add attributes to proc variables:
|
|
|
|
1. 'init' this variable is only used to initialize the proc. It cannot be changed during runtime. (e.g. audio_split.map)
|
|
|
|
2. 'scalar' this variable may only be a scalar. It can never be placed in a list. (e.g. sine_tone.chCnt)
|
|
|
|
3. 'multi' this src variable can be repeated and it's label is always suffixed with an integer.
|
|
|
|
4. 'src' this variable must be connected to a source.
|
|
|
|
5. 'min','max' for numeric variables.
|
|
|
|
6. 'channelize' The proc should instantiate one internal process for each input channel. (e.g. spec_dist )
|
|
|
|
|
|
|
|
- Create a var args version of 'var_get()' in cwFlowTypes.h.
|
|
|
|
|
2022-05-06 20:14:37 +00:00
|
|
|
REVIEW:
|
|
|
|
+ gain problem
|
|
|
|
- was it really the transition bug and not a gain bug?
|
|
|
|
- FFT normalization
|
|
|
|
- Float/Int conversion on ALSA output
|
|
|
|
- create a metering object to examine signal at various places in network
|
|
|
|
- add compressor/limiter like in cm based network
|
|
|
|
|
|
|
|
+ object Improve performance of load parser.
|
|
|
|
|
|
|
|
|
2021-12-30 03:04:32 +00:00
|
|
|
DONE:
|
|
|
|
+ save preset check box state.
|
|
|
|
+ verify that all fragments are saved and restored
|
|
|
|
+ UI: remove 'Filename' entry box.
|
|
|
|
+ flow proc: gain, audio channel split map, audio channel merge map, fixed delay
|
|
|
|
+ Fix CPU usage: work around for serial port server.
|
|
|
|
+ App: apply wet/dry and gain when new presets are loaded.
|
|
|
|
+ App: add 'Note' to fragment
|
|
|
|
+ App: add per fragment play control with begin/end locations
|
|
|
|
+ UI: reorganinze top panel layout
|
|
|
|
+ App: Add a status box to report errors and warnings to the user.
|
|
|
|
+ App: Send log output to "Log" UI.
|
|
|
|
+ App: When a invalid value is entered (thereby disabling a control) a message should be written to the status box.
|
|
|
|
+ App: Add ranges to numeric controls.
|
|
|
|
+ App: What happens when an invalid value is entered in a GUI control?
|
2022-05-06 20:14:37 +00:00
|
|
|
+ App: interactive wet in gain, wet out gain, dry gain, piano midi enable, sampler midi enable, sampler delay
|
|
|
|
+ App: interactive print network
|
|
|
|
+ App: automatically load on start
|
|
|
|
+ flow: Allow setting a specific variable value from a network preset
|
2022-08-13 13:38:39 +00:00
|
|
|
+ preset_sel: The sampler requires a different velocity map than the piano. The piano was scaled down but now the sampler is too quiet.
|