Commit graph

147 commits

Author SHA1 Message Date
Paul Ferrand
b06724ce01 Fix builds on non-SSE platforms 2019-12-19 19:14:48 +01:00
Paul Ferrand
207e45cee9 Updated the CMake file to remove RE2 2019-12-18 10:29:48 +01:00
Paul Ferrand
006e5b33b5 Removed the regexes 2019-12-18 10:29:33 +01:00
Paul Ferrand
c16936e225 Moved the parsing functions to SfzHelpers 2019-12-18 10:03:07 +01:00
Paul Ferrand
3c9f84adb3 Changed the signature of findDefine() 2019-12-18 09:51:18 +01:00
Paul Ferrand
2fd68e00b6 Removed all regexes.. 2019-12-18 04:33:45 +01:00
Paul Ferrand
254ded584f Trying out re2 2019-12-18 03:14:58 +01:00
Paul Ferrand
8a85e2672a Explicitely cast to floats 2019-12-18 00:27:13 +01:00
Paul Ferrand
b2862c9088 Avoid a promotion to double 2019-12-18 00:26:55 +01:00
Paul Ferrand
7991567bda Corrected a bug on the SIMD panning process 2019-12-18 00:22:09 +01:00
Paul Ferrand
a966020c73 Removed an unnecessary copy 2019-12-18 00:20:09 +01:00
Paul Ferrand
5f891ddacf WIP on segfault with Unruly Drums + Carla
The bug appears "sometimes" on construction of headerIterator.
The regex engine is deeply nested at this point.
2019-12-17 23:29:26 +01:00
Paul Ferrand
0f5fe04168 Removed an unnecessary reset() 2019-12-17 23:22:48 +01:00
Paul Ferrand
f2c6ac95a7 Support for the reset CC 2019-12-17 23:04:45 +01:00
Paul Ferrand
b00103d342 Reset voice on soundOff/noteOff CCs 2019-12-17 22:49:33 +01:00
Paul Ferrand
2317c4dd4b Change assertion for extended CCs 2019-12-17 22:48:31 +01:00
Paul Ferrand
7ea5f4611c Added a maxBlockSize at 8192 2019-12-17 22:48:06 +01:00
Paul Ferrand
3f02f46213 Check the triggering channel for CCs and bends 2019-12-17 21:26:04 +01:00
Paul Ferrand
393984e3f3 Corrected a bug where ref to freed memory was kept
When changing instrument the unknown opcodes should be clear as they
are string views and not strings.
2019-12-17 21:25:19 +01:00
Paul Ferrand
6c2f5b5ecb Corrected the multiplicative envelope logic
The previous version alternatively cleared or ignored messages
every other block
2019-12-17 21:12:11 +01:00
Paul Ferrand
d63146e305 Updated comment 2019-12-17 18:50:19 +01:00
Paul Ferrand
81cd4db0c4 Adapt the array size to account for possibly extended CCs 2019-12-17 18:50:07 +01:00
Paul Ferrand
38ab855415 Change the size of the ccSwitched bitset 2019-12-17 18:48:48 +01:00
Paul Ferrand
2c792ea4df Use std abs instead of a custom abs 2019-12-17 17:45:45 +01:00
Paul Ferrand
1c748e8c94 Change the unsupported control assert to a message 2019-12-17 15:26:23 +01:00
Paul Ferrand
3f2184227a Generalize the define regex
Handle underscore in the variable name and negative numbers
2019-12-17 15:24:49 +01:00
Paul Ferrand
4ea288a533 Moved the ccRange to a ccNumber and ccValue 2019-12-17 14:07:12 +01:00
Paul Ferrand
85e6ccd81f Moved to larger CC arrays
This accodomates the extended sfz v2 CC
2019-12-17 12:32:01 +01:00
Paul Ferrand
ced84dcd48 Removed a useless inline keyword 2019-12-17 12:30:21 +01:00
Paul Ferrand
6b08baaab6 No need to trim the sample twice 2019-12-16 00:03:33 +01:00
Paul Ferrand
dc879a8a07 Corrected a bug with default_path
Generators should ignore the default_path
2019-12-16 00:00:58 +01:00
Paul Ferrand
92254e8c98 Corrected a bug with default_path
The default path was not properly reset when loading a new file
2019-12-15 23:53:11 +01:00
Paul Ferrand
194816ef58 The midi channels should now be 0-based everywhere 2019-12-15 23:48:21 +01:00
Paul Ferrand
4916b94fc3 Corrected the default path logic 2019-12-15 17:48:12 +01:00
Paul Ferrand
a0a6ab1d65 Removed the global and control unicity checks 2019-12-15 16:37:57 +01:00
Paul Ferrand
1eaa2a5c5f Root directory != default path 2019-12-15 16:30:04 +01:00
Paul Ferrand
5dfeb7d6dc Refactor the name for the root directory to act more as a default path 2019-12-15 16:18:36 +01:00
Paul Ferrand
a6e9666f92 Disable the <control> unicity check 2019-12-15 02:43:08 +01:00
Paul Ferrand
a70316c24c Translate the channel for noteOn at the right place 2019-12-15 02:20:58 +01:00
Paul Ferrand
1fe8932851 Move the methods of MidiState to their own file 2019-12-15 02:20:46 +01:00
Paul Ferrand
17bfcf2567 Added a more verbose assertion trap 2019-12-15 02:13:10 +01:00
Paul Ferrand
965ab85f6f Corrected the assert in pitchBendEvent 2019-12-15 02:12:19 +01:00
Paul Ferrand
dd14d7a9ae Big refactor of midi state to integrate channels 2019-12-15 02:05:43 +01:00
Paul Ferrand
2bbde74cac HistoricalBuffer now uses a Buffer backend for accountability 2019-12-14 00:43:22 +01:00
Paul Ferrand
f5c095ebda Trying to pinpoint the segfault in JALV but it seems it's not in sfizz 2019-12-14 00:00:55 +01:00
Paul Ferrand
722073b670 Don't bother if the voice is not playing 2019-12-13 17:08:34 +01:00
Paul Ferrand
dcc1128114 Removed debug messages 2019-12-13 14:16:19 +01:00
Paul Ferrand
e04bf7e9b8 Use rounding instead of truncating for a more natural behavior of the quantization at the edges of the relevant range 2019-12-13 14:13:46 +01:00
Paul Ferrand
d60a851fc0 Corrected a bug where the value of the last event was not properly quantized after a call to getQuantizedBlock 2019-12-13 14:00:25 +01:00
Paul Ferrand
c763e819bb Add a bend step factor in the voice 2019-12-13 13:59:49 +01:00