Commit Graph

766 Commits

Author SHA1 Message Date
kevin
bf3317a4e7 cwUi.cpp : Added use of a hash table to speed _findElementUuId()
and improved _find_and_available_element_slot() by first guessing
at an available slot before resorting to a search.
2024-02-18 08:49:24 -05:00
kevin
14a6a9b2d1 Multi-preset configurations flags 'kPriPresetProbFl,kSecPresetProbFl,kPresetInterpFl`
can now be used to configure preset application from the
cwIoPresetSelApp UI.
2024-02-18 08:41:19 -05:00
kevin
64df75d9aa Threads now take a label which can be displayed via system tools (e.g. top, ps). 2024-02-18 08:37:50 -05:00
kevin
24e35872b2 Added specToMicroseconds() and microsecondsToSpec().
Simplified advanceMicros() and advanceMs()
2024-02-14 11:39:23 -05:00
kevin
b721d11b1a cwThread.h/cpp : Added stateTimeOutMicros() and pauseMicros(). 2024-02-14 11:30:02 -05:00
kevin
864142b9f0 cwMidiParser.h/cpp : Initial commit after being copied out of cwMidiDevice.h/cpp.
cwMidiDeviceTest.h/cpp : Initial commit.
Makefile.am : New files and name changes.
2024-02-14 11:28:54 -05:00
kevin
8fe6f3627c midi::device now allows a MIDI file to act as a virtual MIDI input device.
Thread polling moved out of midi::alsa and into midi::device.
Added latency measure feature to midi::device.
Improved midi::alsa device lookup time with alsa_device_t.clientIdToDevIdxMap[].
Added cwMidiAlsa.h to provide an interface for midi::alsa independent of midi::device.
2024-02-14 11:20:40 -05:00
kevin
742fc05e81 Renamed cwMidiPort.h/cpp to cwMidiDevice.h/cpp.
cwMidiDecls.h midi::msg_t now breaks out MIDI channel from status and has a new user 'uid' field to link the msg to an external entity.
Renamed midi::packet_t. cbDataPtr to cbArg.
midi::packet_t.cbFunc_t is now included in cwMidiDecls.h.
Other files effected: cwIo.cpp,cwIoAudioMidi.cpp,cwIoPresetSelApp.cpp
2024-02-14 11:15:02 -05:00
kevin
5bfc19ba70 cwB23Tree.h : Partial implmentation of remove(). 2024-02-10 11:59:16 -05:00
kevin
aa222b1116 cwMidiFileDev.h/cpp,Makefile.am : Initial implementation. Not yet integrated with cwMidiPort. 2024-02-10 11:56:36 -05:00
kevin
1c12b4eeb4 html/preset_sel/ui.cfg : ui.cfg Added button to reset/report latency measurements. 2024-02-10 11:51:03 -05:00
kevin
e1aa033958 cwTime.h/cpp, cwMutex.cpp : Time now depends on CLOCK_MONOTONIC instead of CLOCK_REALTIME.
mutex::lock() apparently depends on CLOCK_REALTIME and so that is now handled with a direct call to clock_gettime().
2024-02-10 11:49:47 -05:00
kevin
28c8dfc982 cwVectOps.h : Added abs(). 2024-02-10 11:36:43 -05:00
kevin
4aa91755ed cwMidiDecls.h,cwMidiFile.h,cwThread.h : Fixed or improved comments. No functional changes. 2024-02-10 11:35:34 -05:00
kevin
57f3d06f37 cwIoPresetSelApp.cpp,cwIo.h/cpp,cwMidiPort.h,cwMidiAlsa.cpp :
Added audio and MIDI latency reporting implementation.
2024-02-10 11:34:06 -05:00
kevin
42882c2e3d cwIoPresetSelApp.cpp :
1.Changed name of variable app->scoreH to app->perfScore.h.
2. Now sets coeffMin/MaxV in flow::multi_preset_selector_t.
2024-02-08 11:25:38 -05:00
kevin
1424b6b036 cwSfTrack.h/cpp : Changes to comments only. 2024-02-08 11:21:26 -05:00
kevin
18a29aa295 cwPresetSel.cpp,cwSvgMidi.cpp,cwSvgScoreFollow.cpp : Changes to support new module dependencies on cwPianoScore.h 2024-02-08 11:20:09 -05:00
kevin
8e91da0134 cwMidiRecordPlay.cpp : _xmit_midi() no longer transmits messages to devices that are not enabled. 2024-02-08 11:18:49 -05:00
kevin
e4df1672ff cwFlow.h,cpp,cwFlowTypes.h,cwFlowDecl.h : Iniital working implementation of flow::apply_dual_preset()
to support preset interpolation.
2024-02-08 11:17:26 -05:00
kevin
ab2bb493d1 cwScoreFollower.cpp : The file output from write_sync_perf_csv() now includes the section which each matched event belongs to. 2024-02-08 11:09:40 -05:00
kevin
36496e8b79 cwSfScore.h/cpp :
1. The SF score now includes measurement stats from previous performances
2. event_t now contains a pointer too the section to which the event belongs.
2024-02-08 11:07:45 -05:00
kevin
57d35b09db cwScoreParse.h/cpp : The score file now contains measurement features from previous performances. 2024-02-08 11:05:10 -05:00
kevin
008e14d60b cwPianoScore.h,cpp : perf_score now can read performance measurements and related statistics from CSV. 2024-02-08 11:03:36 -05:00
kevin
34de4c230f cwMidiAlsa: Error messages are now called through macros so that file locations are correct in log. 2024-02-08 10:58:52 -05:00
kevin
83291dabb3 cwIoFlow.cpp : Added an error message when create() fails. 2024-02-08 10:57:08 -05:00
kevin
611c198197 cwCommon.h,cwCsv.h,cwObject.h,cwUi.cpp : Changed result code kLabelNotFoundRC to kEleNotFoundRC. 2024-02-08 10:55:48 -05:00
kevin
3319804d60 cwCsv.h/cpp : Added has_field(). 2024-01-28 13:20:10 -05:00
kevin
40840286cf cwIoPresetSelApp.cpp : Replaced call to io_flow::apply_preset(h,preset_label) with call to io_flow::apply_preset(h,multi_preset_selector_t). 2024-01-13 10:21:06 -05:00
kevin
6fff7eb3b7 cwFlowProc.cpp,cwFlowTypes.cpp : Added #include "cwFlowDecl.h" 2024-01-13 10:18:21 -05:00
kevin
6686acfbee cwIoFlow.h/cpp,cwFlowCross.h/cpp : Added apply_preset(handle_t,multi_preset_selector_t&). 2024-01-13 10:17:42 -05:00
kevin
2e2f57f45a cwFlow.h/cpp : Added apply_preset( handle_t, multi_preset_selector& )
and _select_ranked_ele_by_rank_prob().
2024-01-13 10:16:37 -05:00
kevin
f7bab2f4a2 cwFlowDecl.h,Makefile.am : cwFlowDecl.h initial commit. 2024-01-13 10:14:33 -05:00
kevin
5611b28c6b cwPresetSel.h/cpp : Added multiPresetA/N to fragment.
Removed 'fragN' from stored fragment data structure.
Commented out translate_frags() because it is obsolete.
2024-01-13 10:12:49 -05:00
kevin
293629831c cwUi.cpp: _webSockSend() now directly returns the result of websock::send(). 2024-01-13 10:00:11 -05:00
kevin
0dd6df0bdc cwVelTableTuner.cpp : removed unnecessary #include. 2024-01-13 09:42:23 -05:00
kevin
233e983ffc docs/2-3-trees.pdf : Added to documentation. 2024-01-06 09:03:48 -05:00
kevin
439ca853d5 cwB23Tree.h/cpp : Initial 2-3 binary-tree implementation. Node removal not yet implemented. 2024-01-06 09:03:16 -05:00
kevin
c77fd9a0a0 ui.js : Removed dead code. Added 'attach' msg handler to indicate when the initial UI creation was complete.
Changed main() to allow experimenting with offscreen UI creation via createDocumentFragment().
2024-01-06 09:00:14 -05:00
kevin
019d0d530b cwIoPresetSelApp.cpp : The app loop now only sleep for a fraction of 50ms depending on how long the app spent in io::exec(). 2024-01-06 08:57:24 -05:00
kevin
6b771c0c88 cwWebSock.cpp : Websock now performs a single memory allocation in send() rather than multiple in send() and exec(). 2024-01-06 08:53:55 -05:00
kevin
6ed0f6c080 cwUi.h/cpp : Added sendMsg(). eleA[] now doubles in size with each reallocation. 2024-01-06 08:44:53 -05:00
kevin
c7cbb5f62f cwIo.h/cpp, cwPresetSel.h : Added comments. 2024-01-06 08:43:42 -05:00
kevin
7d7f0c1bc9 cwMem.cpp : Corrected comment. 2024-01-06 08:41:18 -05:00
kevin
d45d86b8be cwIoMidiRecordPlay.cpp : Fix bug in vel_table_disable() where velTableN was not set to 0 when the vel table was released. 2023-12-30 12:40:33 -05:00
kevin
ca53e712a6 cwIoPresetSelApp.cpp : Allow audio output to be disabled by deactivating all the audio devices in the .cfg file. 2023-12-30 11:09:46 -05:00
kevin
9a6729b9b9 cwWebSocket.cpp : Count number of received and sent msg's and track the size of largest msg recv'd and set. 2023-12-29 14:06:17 -05:00
kevin
82b60a873d cwIo.h : Added uiSendMsg(),audioIsEnabled(),audioActiveDeviceCount(). 2023-12-29 13:43:08 -05:00
kevin
dce0049b76 cwScoreFollower.cpp : Added pedal state info to write_sync_perf_csv(). 2023-12-17 08:56:56 -05:00
kevin
960f028a9a cwScoreFollowTest.cpp : Added log info output from _gen_synced_perf_files(). 2023-12-17 08:56:12 -05:00