Commit Graph

83 Commits

Author SHA1 Message Date
Mike Oliphant 5566a69731 fix MSVC detection 2025-02-20 13:07:59 -08:00
Mike Oliphant 994a68c4f0 detect clang properly even if it is running under MSVC 2025-02-20 12:38:26 -08:00
Mike Oliphant b4144b9027 use /arch:AVX2 for MSVC when USE_NATIVE_ARCH is on 2025-02-20 12:31:49 -08:00
Mike Oliphant 3960aa75e7 Remove "prefer" cmake options 2025-02-06 07:55:46 -08:00
Mike Oliphant 7e03d2bd3d Use naopt NeuralAudio branch 2025-02-05 10:40:59 -08:00
Mike Oliphant 6905406e95 Don't use RTNeural for WaveNet by default 2025-01-28 08:39:44 -08:00
Mike Oliphant 368e47e12e Update NeuralAudio (better RTNeural NAM performance) 2024-11-27 09:17:49 -08:00
Mike Oliphant 979b8f4cf1 Default WAVENET_PREFER_NAM to ON 2024-11-22 07:58:28 -08:00
Mike Oliphant 9d2e7ae205 Fixed propagation of native arch optimizations 2024-11-16 08:09:58 -08:00
Mike Oliphant eeaa4649a4 Update NeuralAudio (add ".aidax" extension") 2024-11-15 07:25:59 -08:00
Mike Oliphant 3f5872cc78 CMake options for forcing use of NAM Core for LSTM or WaveNet 2024-11-14 07:47:52 -08:00
Mike Oliphant 32f18a242a Handle model input gain adjustment 2024-11-04 07:35:34 -08:00
Mike Oliphant d2cc00186f fixed model loudness 2024-10-31 13:46:54 -07:00
Mike Oliphant ec34afb608 build shared library 2024-10-31 12:41:00 -07:00
Mike Oliphant 7326960e2a another try to get both linux and windows builds working 2024-10-31 10:54:04 -07:00
Mike Oliphant 000925228f try again 2024-10-31 10:47:22 -07:00
Mike Oliphant 276dafd832 try to fixe linux build 2024-10-31 10:46:30 -07:00
Mike Oliphant 19d3abb12d Switch to NeuralAudio for model handling 2024-10-31 10:35:28 -07:00
Mike Oliphant 4643e66e08 Removed dc blocker for now 2024-10-31 08:29:42 -07:00
Mike Oliphant 61bbce1e2a Add "nam" namespace 2024-08-17 11:23:52 -07:00
Mike Oliphant 40bae2bd87 c++ version -> 17 2024-08-01 12:41:26 -07:00
Mike Oliphant 72fd4a1e3d Make DC blocker coefficient depend on sample rate 2024-04-09 08:00:35 -07:00
Mike Oliphant 02256b4349 Default x64 optimizations to OFF 2024-01-06 07:49:33 -08:00
Mike Oliphant 24f03afd69 Add x86_64 to 64-bit check 2023-10-24 13:11:04 -07:00
Mike Oliphant 97cff04114 Enable architecture-specific optimization by default. Added option to turn it off. 2023-10-24 10:09:16 -07:00
Mike Oliphant 34be69df6d Remove AudioDSPTools dependency. Do simple DC blocker instead of HPF. 2023-10-17 12:25:14 -07:00
Mike Oliphant 8384827981 Removed test value. 2023-10-15 18:12:27 -07:00
Mike Oliphant e3c5b6bd4f Update for normalization->loudness in NAM core. 2023-10-15 18:11:36 -07:00
Mike Oliphant eb46377d71 Update to latest NAM core. Handle model normalization with output gain. 2023-10-15 12:09:52 -07:00
Mike Oliphant b22f02c84e Update NAM core. Switch to new simplified NAM process method. 2023-10-06 11:51:30 -07:00
Mike Oliphant 52810a3f9c Switched to AudioDSPTools for highpass filter implementation 2023-10-02 08:12:33 -07:00
Mike Oliphant 46a73d83fa Initialize model pre-run buffer to zero. Update to latest devel NAM Core with pre-warm instead of anti-pop. 2023-08-18 13:20:27 -07:00
falkTX 6f1a423b5a Optimize audio level loop code
Signed-off-by: falkTX <falktx@falktx.com>
2023-08-16 18:39:50 +02:00
Mike Oliphant fbf05b4472 Do 5Hz high pass filter to clean up any DC offset created by the model 2023-07-28 09:20:52 -07:00
Mike Oliphant d4482b3b14 Catch exceptions by reference 2023-07-12 09:50:27 -07:00
Mike Oliphant 0255f36ae4 Don't report a worker error if we can't load a model since we're already logging an error. 2023-07-04 16:28:57 -07:00
Mike Oliphant 207fb2281e Fixed some warnings 2023-07-04 14:55:17 -07:00
Mike Oliphant dbf00f0ed3 Formatting 2023-07-04 14:53:39 -07:00
Mike Oliphant 33a0c08327 Set currentModelPath in restore() - even if it is null or empty.
Set it to empty and clear the current model if a model fails to load.
2023-07-04 13:03:46 -07:00
Mike Oliphant 0aad7c32b6 Add CMake option for denormal disabling 2023-06-19 10:58:05 -07:00
falkTX 739f43b151 state changed is no longer needed
Signed-off-by: falkTX <falktx@falktx.com>
2023-06-15 19:13:55 +02:00
falkTX eb35260789 Pre-run model to ensure all needed buffers are allocated in advance
Signed-off-by: falkTX <falktx@falktx.com>
2023-06-15 17:06:32 +02:00
falkTX 4e9b7d6b49 rework worker implementation, dont rely on class variables
previous implementation was racy and bound to issues when more
than 1 file change request happened before worker was triggered.

using C++ move assignment is nice, but LV2 worker is a C API
that does not fit non-POD types very well, leading to awkward
implementations alike before with current + staged + deleted models.

let us "downgrade" to raw pointers, which are C compatible.
since LV2 worker rules are well defined, any crashes or racy
behaviour can be considered host-side bugs.

Signed-off-by: falkTX <falktx@falktx.com>
2023-06-15 17:00:02 +02:00
falkTX 0d7954cf2a General cleanup, no functional changes
Signed-off-by: falkTX <falktx@falktx.com>
2023-06-15 16:42:45 +02:00
falkTX 3710dda839 Move fast tanh enable call to static plugin init
Signed-off-by: falkTX <falktx@falktx.com>
2023-06-15 16:36:31 +02:00
Mike Oliphant 420cd4596d Fix logger initialization to ensure correct operation if logging is not supported 2023-05-31 09:45:10 -07:00
Mike Oliphant 41a45ace93 Float interface with NAM core. Workaround for Reaper crash. Use "nam" for model path fle type 2023-05-31 09:26:12 -07:00
Mike Oliphant 207777ec3f only do smoothing if we need to, and keep db conversion out of the sampe loop 2023-05-11 11:52:06 -07:00
Mike Oliphant d8193de9eb do smoothing per-sample 2023-05-11 11:29:30 -07:00
Mike Oliphant 10059d327c parameter smoothing 2023-05-11 11:26:37 -07:00