From 56be9c8b7c0310d25c5d9e63de14ac41b78f9581 Mon Sep 17 00:00:00 2001 From: Paul Ferrand Date: Sat, 25 Jan 2020 10:04:31 +0100 Subject: [PATCH] Updated licenses and copyright date --- benchmarks/BM_ADSR.cpp | 4 +- benchmarks/BM_OPF_high_vs_low.cpp | 4 +- benchmarks/BM_add.cpp | 4 +- benchmarks/BM_copy.cpp | 4 +- benchmarks/BM_cumsum.cpp | 4 +- benchmarks/BM_diff.cpp | 4 +- benchmarks/BM_divide.cpp | 4 +- benchmarks/BM_envelopes.cpp | 5 +- benchmarks/BM_fill.cpp | 4 +- benchmarks/BM_flacfile.cpp | 7 +- benchmarks/BM_gain.cpp | 4 +- benchmarks/BM_interpolationCast.cpp | 4 +- benchmarks/BM_looping.cpp | 4 +- benchmarks/BM_mathfuns.cpp | 4 +- benchmarks/BM_mean.cpp | 6 +- benchmarks/BM_meanSquared.cpp | 6 +- benchmarks/BM_multiplyAdd.cpp | 4 +- benchmarks/BM_pan.cpp | 4 +- benchmarks/BM_pointerIterationOrOffsets.cpp | 4 +- benchmarks/BM_ramp.cpp | 4 +- benchmarks/BM_readChunk.cpp | 5 +- benchmarks/BM_readInterleaved.cpp | 4 +- benchmarks/BM_resample.cpp | 4 +- benchmarks/BM_resampleChunk.cpp | 5 +- benchmarks/BM_saturating.cpp | 4 +- benchmarks/BM_subtract.cpp | 4 +- benchmarks/BM_wavfile.cpp | 6 +- benchmarks/BM_writeInterleaved.cpp | 4 +- lv2/README.md | 5 - lv2/sfizz.c | 4 +- src/sfizz.h | 4 +- src/sfizz.hpp | 29 +- src/sfizz/ADSREnvelope.cpp | 4 +- src/sfizz/ADSREnvelope.h | 4 +- src/sfizz/AtomicGuard.h | 30 +- src/sfizz/AudioBuffer.h | 4 +- src/sfizz/AudioSpan.h | 4 +- src/sfizz/Buffer.h | 4 +- src/sfizz/CCMap.h | 4 +- src/sfizz/Config.h | 4 +- src/sfizz/Debug.h | 6 +- src/sfizz/Defaults.h | 4 +- src/sfizz/EGDescription.h | 4 +- src/sfizz/EventEnvelopes.cpp | 8 +- src/sfizz/EventEnvelopes.h | 4 +- src/sfizz/FilePool.cpp | 4 +- src/sfizz/FilePool.h | 4 +- src/sfizz/FloatEnvelopes.cpp | 4 +- src/sfizz/HistoricalBuffer.h | 25 + src/sfizz/LeakDetector.h | 4 +- src/sfizz/Logger.cpp | 25 + src/sfizz/Logger.h | 2 + src/sfizz/MathHelpers.h | 4 +- src/sfizz/MidiState.cpp | 25 + src/sfizz/MidiState.h | 25 + src/sfizz/OnePoleFilter.h | 4 +- src/sfizz/Opcode.cpp | 4 +- src/sfizz/Opcode.h | 4 +- src/sfizz/Oversampler.cpp | 4 +- src/sfizz/Oversampler.h | 4 +- src/sfizz/Parser.cpp | 4 +- src/sfizz/Parser.h | 4 +- src/sfizz/Range.h | 4 +- src/sfizz/Region.cpp | 4 +- src/sfizz/Region.h | 4 +- src/sfizz/Resources.h | 25 + src/sfizz/SIMDDummy.cpp | 4 +- src/sfizz/SIMDHelpers.h | 4 +- src/sfizz/SIMDSSE.cpp | 4 +- src/sfizz/ScopedFTZ.cpp | 4 +- src/sfizz/ScopedFTZ.h | 4 +- src/sfizz/SfzHelpers.cpp | 4 +- src/sfizz/SfzHelpers.h | 4 +- src/sfizz/StringViewHelpers.h | 4 +- src/sfizz/Synth.cpp | 4 +- src/sfizz/Synth.h | 4 +- src/sfizz/Voice.cpp | 4 +- src/sfizz/Voice.h | 4 +- src/sfizz/sfizz.cpp | 25 + src/sfizz/sfizz_wrapper.cpp | 4 +- tests/ADSREnvelopeT.cpp | 4 +- tests/AudioBufferT.cpp | 4 +- tests/BufferT.cpp | 4 +- tests/EGDescriptionT.cpp | 4 +- tests/EventEnvelopesT.cpp | 4 +- tests/FilesT.cpp | 4 +- tests/HelpersT.cpp | 6 +- tests/MidiStateT.cpp | 4 +- tests/OnePoleFilterT.cpp | 564 ++++++++++---------- tests/OpcodeT.cpp | 4 +- tests/ParsingT.cpp | 8 +- tests/RangeT.cpp | 4 +- tests/RegionActivationT.cpp | 4 +- tests/RegionT.cpp | 4 +- tests/RegionTriggersT.cpp | 4 +- tests/RegionValueComputationsT.cpp | 4 +- tests/SIMDHelpersT.cpp | 4 +- tests/SynthT.cpp | 4 +- 98 files changed, 752 insertions(+), 400 deletions(-) delete mode 100644 lv2/README.md diff --git a/benchmarks/BM_ADSR.cpp b/benchmarks/BM_ADSR.cpp index bb61f1af..83519b60 100644 --- a/benchmarks/BM_ADSR.cpp +++ b/benchmarks/BM_ADSR.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/benchmarks/BM_OPF_high_vs_low.cpp b/benchmarks/BM_OPF_high_vs_low.cpp index b9bba592..5ac1a248 100644 --- a/benchmarks/BM_OPF_high_vs_low.cpp +++ b/benchmarks/BM_OPF_high_vs_low.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/benchmarks/BM_add.cpp b/benchmarks/BM_add.cpp index b15f38c2..9affabcd 100644 --- a/benchmarks/BM_add.cpp +++ b/benchmarks/BM_add.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/benchmarks/BM_copy.cpp b/benchmarks/BM_copy.cpp index a256a252..4cace06b 100644 --- a/benchmarks/BM_copy.cpp +++ b/benchmarks/BM_copy.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/benchmarks/BM_cumsum.cpp b/benchmarks/BM_cumsum.cpp index b4d89fa3..364f1650 100644 --- a/benchmarks/BM_cumsum.cpp +++ b/benchmarks/BM_cumsum.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/benchmarks/BM_diff.cpp b/benchmarks/BM_diff.cpp index d72c1cee..9742e495 100644 --- a/benchmarks/BM_diff.cpp +++ b/benchmarks/BM_diff.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/benchmarks/BM_divide.cpp b/benchmarks/BM_divide.cpp index b5bb8696..9d6d9fb6 100644 --- a/benchmarks/BM_divide.cpp +++ b/benchmarks/BM_divide.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/benchmarks/BM_envelopes.cpp b/benchmarks/BM_envelopes.cpp index d313499b..cf207179 100644 --- a/benchmarks/BM_envelopes.cpp +++ b/benchmarks/BM_envelopes.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without @@ -20,7 +22,6 @@ // ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. - #include "SIMDHelpers.h" #include #include diff --git a/benchmarks/BM_fill.cpp b/benchmarks/BM_fill.cpp index a7173c1f..a447fd9e 100644 --- a/benchmarks/BM_fill.cpp +++ b/benchmarks/BM_fill.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/benchmarks/BM_flacfile.cpp b/benchmarks/BM_flacfile.cpp index 4fdceb66..6b648c1f 100644 --- a/benchmarks/BM_flacfile.cpp +++ b/benchmarks/BM_flacfile.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without @@ -20,6 +22,7 @@ // ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + #include "Buffer.h" #include #include @@ -38,7 +41,7 @@ public: filePath1 = getPath() / "sample1.flac"; filePath2 = getPath() / "sample2.flac"; filePath3 = getPath() / "sample3.flac"; - if ( !ghc::filesystem::exists(filePath1) + if ( !ghc::filesystem::exists(filePath1) || !ghc::filesystem::exists(filePath2) || !ghc::filesystem::exists(filePath3) ) { #ifndef NDEBUG diff --git a/benchmarks/BM_gain.cpp b/benchmarks/BM_gain.cpp index 20407d0b..38ae5d56 100644 --- a/benchmarks/BM_gain.cpp +++ b/benchmarks/BM_gain.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/benchmarks/BM_interpolationCast.cpp b/benchmarks/BM_interpolationCast.cpp index c710a976..f2933456 100644 --- a/benchmarks/BM_interpolationCast.cpp +++ b/benchmarks/BM_interpolationCast.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/benchmarks/BM_looping.cpp b/benchmarks/BM_looping.cpp index 4458e918..c3189d24 100644 --- a/benchmarks/BM_looping.cpp +++ b/benchmarks/BM_looping.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/benchmarks/BM_mathfuns.cpp b/benchmarks/BM_mathfuns.cpp index c8844743..990d2f96 100644 --- a/benchmarks/BM_mathfuns.cpp +++ b/benchmarks/BM_mathfuns.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/benchmarks/BM_mean.cpp b/benchmarks/BM_mean.cpp index 4519cd06..d3da3454 100644 --- a/benchmarks/BM_mean.cpp +++ b/benchmarks/BM_mean.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without @@ -87,4 +89,4 @@ BENCHMARK_REGISTER_F(MeanArray, Scalar)->RangeMultiplier(4)->Range(1 << 2, 1 << BENCHMARK_REGISTER_F(MeanArray, SIMD)->RangeMultiplier(4)->Range(1 << 2, 1 << 12); BENCHMARK_REGISTER_F(MeanArray, Scalar_Unaligned)->RangeMultiplier(4)->Range(1 << 2, 1 << 12); BENCHMARK_REGISTER_F(MeanArray, SIMD_Unaligned)->RangeMultiplier(4)->Range(1 << 2, 1 << 12); -BENCHMARK_MAIN(); \ No newline at end of file +BENCHMARK_MAIN(); diff --git a/benchmarks/BM_meanSquared.cpp b/benchmarks/BM_meanSquared.cpp index 43858b00..7745f85e 100644 --- a/benchmarks/BM_meanSquared.cpp +++ b/benchmarks/BM_meanSquared.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without @@ -87,4 +89,4 @@ BENCHMARK_REGISTER_F(MeanSquaredArray, Scalar)->RangeMultiplier(4)->Range(1 << 2 BENCHMARK_REGISTER_F(MeanSquaredArray, SIMD)->RangeMultiplier(4)->Range(1 << 2, 1 << 12); BENCHMARK_REGISTER_F(MeanSquaredArray, Scalar_Unaligned)->RangeMultiplier(4)->Range(1 << 2, 1 << 12); BENCHMARK_REGISTER_F(MeanSquaredArray, SIMD_Unaligned)->RangeMultiplier(4)->Range(1 << 2, 1 << 12); -BENCHMARK_MAIN(); \ No newline at end of file +BENCHMARK_MAIN(); diff --git a/benchmarks/BM_multiplyAdd.cpp b/benchmarks/BM_multiplyAdd.cpp index a6111fdc..032a01b2 100644 --- a/benchmarks/BM_multiplyAdd.cpp +++ b/benchmarks/BM_multiplyAdd.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/benchmarks/BM_pan.cpp b/benchmarks/BM_pan.cpp index 441a170b..918f2e05 100644 --- a/benchmarks/BM_pan.cpp +++ b/benchmarks/BM_pan.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/benchmarks/BM_pointerIterationOrOffsets.cpp b/benchmarks/BM_pointerIterationOrOffsets.cpp index 04d2812c..61f57bd0 100644 --- a/benchmarks/BM_pointerIterationOrOffsets.cpp +++ b/benchmarks/BM_pointerIterationOrOffsets.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/benchmarks/BM_ramp.cpp b/benchmarks/BM_ramp.cpp index 919e83e0..367271e2 100644 --- a/benchmarks/BM_ramp.cpp +++ b/benchmarks/BM_ramp.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/benchmarks/BM_readChunk.cpp b/benchmarks/BM_readChunk.cpp index 6b233603..6b0b3634 100644 --- a/benchmarks/BM_readChunk.cpp +++ b/benchmarks/BM_readChunk.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without @@ -20,6 +22,7 @@ // ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + #include "SIMDHelpers.h" #include "Buffer.h" #include diff --git a/benchmarks/BM_readInterleaved.cpp b/benchmarks/BM_readInterleaved.cpp index 6435c047..f71b8043 100644 --- a/benchmarks/BM_readInterleaved.cpp +++ b/benchmarks/BM_readInterleaved.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/benchmarks/BM_resample.cpp b/benchmarks/BM_resample.cpp index 86499690..534dceb7 100644 --- a/benchmarks/BM_resample.cpp +++ b/benchmarks/BM_resample.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/benchmarks/BM_resampleChunk.cpp b/benchmarks/BM_resampleChunk.cpp index bb866bb0..d47133cb 100644 --- a/benchmarks/BM_resampleChunk.cpp +++ b/benchmarks/BM_resampleChunk.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without @@ -20,6 +22,7 @@ // ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS // SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + #include "Buffer.h" #include "SIMDHelpers.h" #include diff --git a/benchmarks/BM_saturating.cpp b/benchmarks/BM_saturating.cpp index a4927bf8..0f74a24b 100644 --- a/benchmarks/BM_saturating.cpp +++ b/benchmarks/BM_saturating.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/benchmarks/BM_subtract.cpp b/benchmarks/BM_subtract.cpp index ce4507de..73bf4f36 100644 --- a/benchmarks/BM_subtract.cpp +++ b/benchmarks/BM_subtract.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/benchmarks/BM_wavfile.cpp b/benchmarks/BM_wavfile.cpp index db283cfe..83d6127d 100644 --- a/benchmarks/BM_wavfile.cpp +++ b/benchmarks/BM_wavfile.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without @@ -38,7 +40,7 @@ public: filePath1 = getPath() / "sample1.wav"; filePath2 = getPath() / "sample2.wav"; filePath3 = getPath() / "sample3.wav"; - if ( !ghc::filesystem::exists(filePath1) + if ( !ghc::filesystem::exists(filePath1) || !ghc::filesystem::exists(filePath2) || !ghc::filesystem::exists(filePath3)) { #ifndef NDEBUG diff --git a/benchmarks/BM_writeInterleaved.cpp b/benchmarks/BM_writeInterleaved.cpp index 30389ead..81007b12 100644 --- a/benchmarks/BM_writeInterleaved.cpp +++ b/benchmarks/BM_writeInterleaved.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/lv2/README.md b/lv2/README.md deleted file mode 100644 index 8f309d51..00000000 --- a/lv2/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# sfizz-lv2 plugin - -***Work in progress, not fully functional yet.*** - -LV2 plugin version of [sfizz](https://github.com/sfztools/sfizz). diff --git a/lv2/sfizz.c b/lv2/sfizz.c index 4d86a4c8..558a957e 100644 --- a/lv2/sfizz.c +++ b/lv2/sfizz.c @@ -1,7 +1,9 @@ /* + SPDX-License-Identifier: ISC + Sfizz LV2 plugin - Copyright 2019, Paul Ferrand + Copyright 2019-2020, Paul Ferrand This file was based on skeleton and example code from the LV2 plugin distribution available at http://lv2plug.in/ diff --git a/src/sfizz.h b/src/sfizz.h index 0a161c5a..a36c43ce 100644 --- a/src/sfizz.h +++ b/src/sfizz.h @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz.hpp b/src/sfizz.hpp index 1ac50852..67c92336 100644 --- a/src/sfizz.hpp +++ b/src/sfizz.hpp @@ -1,3 +1,28 @@ +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand +// All rights reserved. + +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: + +// 1. Redistributions of source code must retain the above copyright notice, this +// list of conditions and the following disclaimer. +// 2. Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. + +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +// ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + #include #include #include @@ -13,7 +38,7 @@ #endif namespace sfz -{ +{ class Synth; class SFIZZ_EXPORTED_API Sfizz { @@ -246,4 +271,4 @@ public: private: std::unique_ptr synth; }; -} \ No newline at end of file +} diff --git a/src/sfizz/ADSREnvelope.cpp b/src/sfizz/ADSREnvelope.cpp index 6e9dfbb0..ef1c6640 100644 --- a/src/sfizz/ADSREnvelope.cpp +++ b/src/sfizz/ADSREnvelope.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/ADSREnvelope.h b/src/sfizz/ADSREnvelope.h index ac091a80..df8fc4ff 100644 --- a/src/sfizz/ADSREnvelope.h +++ b/src/sfizz/ADSREnvelope.h @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/AtomicGuard.h b/src/sfizz/AtomicGuard.h index 874e1f61..cef24969 100644 --- a/src/sfizz/AtomicGuard.h +++ b/src/sfizz/AtomicGuard.h @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without @@ -26,35 +28,35 @@ * of lock-free mutex-type protection adapter to audio applications where you have 1 priority thread * that should never block and would rather return silence than wait, and another low-priority * thread that handles long computations. - * + * * @code{.cpp} - * + * * // Somewhere in a class... * std::atomic canEnterCallback; * std::atomic inCallback; - * + * * void functionThatSuspendsCallback() * { * AtomicDisabler callbackDisabler { canEnterCallback }; - * + * * while (inCallback) { * std::this_thread::sleep_for(1ms); * } - * + * * // Do your thing. * } - * + * * void callback(int samplesPerBlock) noexcept * { * AtomicGuard callbackGuard { inCallback }; * if (!canEnterCallback) * return; - * + * * // Do your thing. * } * @endcode * There are probably many ways to improve these and probably even debug them. - * The spinlocking itself could be integrated in the constructor, although the + * The spinlocking itself could be integrated in the constructor, although the * check for return in the callback could not. */ #include @@ -64,13 +66,13 @@ namespace sfz /** * @brief Simple class to set an atomic to true and automatically set it back to false on * destruction. - * + * * You call it like this assuming you need indicate that you are in e.g. a callback * @code{.cpp} * void functionToProtect() * { * AtomicGuard { guard }; - * + * * // Do stuff, the atomic will be set back to false as soon as you're back * } * @endcode @@ -98,13 +100,13 @@ private: /** * @brief Simple class to set an atomic to false and automatically set it back to true on * destruction. - * + * * You call it like this assuming you need to disable e.g. a callback * @code{.cpp} * void functionThatDisableAnotherFunction() * { * AtomicDisabler { disabler }; - * + * * // Do stuff, the atomic will be set back to true as soon as you're back * } * @endcode @@ -128,4 +130,4 @@ public: private: std::atomic& allowed; }; -} \ No newline at end of file +} diff --git a/src/sfizz/AudioBuffer.h b/src/sfizz/AudioBuffer.h index 729e4c70..eb391ee2 100644 --- a/src/sfizz/AudioBuffer.h +++ b/src/sfizz/AudioBuffer.h @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/AudioSpan.h b/src/sfizz/AudioSpan.h index 2e21e3f7..01a24cf3 100644 --- a/src/sfizz/AudioSpan.h +++ b/src/sfizz/AudioSpan.h @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/Buffer.h b/src/sfizz/Buffer.h index efad39c9..833e3f79 100644 --- a/src/sfizz/Buffer.h +++ b/src/sfizz/Buffer.h @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/CCMap.h b/src/sfizz/CCMap.h index 5d8b6e7f..ee12ca82 100644 --- a/src/sfizz/CCMap.h +++ b/src/sfizz/CCMap.h @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/Config.h b/src/sfizz/Config.h index c4801695..cf3017f4 100644 --- a/src/sfizz/Config.h +++ b/src/sfizz/Config.h @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/Debug.h b/src/sfizz/Debug.h index 4235b4ae..633ff47a 100644 --- a/src/sfizz/Debug.h +++ b/src/sfizz/Debug.h @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without @@ -68,4 +70,4 @@ #define ASSERT(expression) #define DBG(ostream) -#endif \ No newline at end of file +#endif diff --git a/src/sfizz/Defaults.h b/src/sfizz/Defaults.h index e8c6ce86..fef60c23 100644 --- a/src/sfizz/Defaults.h +++ b/src/sfizz/Defaults.h @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/EGDescription.h b/src/sfizz/EGDescription.h index da35fa8d..0b64d90b 100644 --- a/src/sfizz/EGDescription.h +++ b/src/sfizz/EGDescription.h @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/EventEnvelopes.cpp b/src/sfizz/EventEnvelopes.cpp index 4cd38f41..09f347e5 100644 --- a/src/sfizz/EventEnvelopes.cpp +++ b/src/sfizz/EventEnvelopes.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without @@ -69,7 +71,7 @@ void EventEnvelope::prepareEvents(int blockLength) { if (resetEvents) clear(); - + absl::c_stable_sort(events, [](const auto& lhs, const auto& rhs) { return lhs.first < rhs.first; }); @@ -91,7 +93,7 @@ void EventEnvelope::prepareEvents(int blockLength) ++eventIt; } events.resize(std::distance(events.begin(), eventIt)); - + resetEvents = true; } diff --git a/src/sfizz/EventEnvelopes.h b/src/sfizz/EventEnvelopes.h index 2115c82d..0ff898b2 100644 --- a/src/sfizz/EventEnvelopes.h +++ b/src/sfizz/EventEnvelopes.h @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/FilePool.cpp b/src/sfizz/FilePool.cpp index f4717755..cd2bd6f9 100644 --- a/src/sfizz/FilePool.cpp +++ b/src/sfizz/FilePool.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/FilePool.h b/src/sfizz/FilePool.h index 84a4396e..7838f094 100644 --- a/src/sfizz/FilePool.h +++ b/src/sfizz/FilePool.h @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/FloatEnvelopes.cpp b/src/sfizz/FloatEnvelopes.cpp index 975b0c67..771d2fa2 100644 --- a/src/sfizz/FloatEnvelopes.cpp +++ b/src/sfizz/FloatEnvelopes.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/HistoricalBuffer.h b/src/sfizz/HistoricalBuffer.h index 09d68a1a..c2b737dd 100644 --- a/src/sfizz/HistoricalBuffer.h +++ b/src/sfizz/HistoricalBuffer.h @@ -1,3 +1,28 @@ +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand +// All rights reserved. + +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: + +// 1. Redistributions of source code must retain the above copyright notice, this +// list of conditions and the following disclaimer. +// 2. Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. + +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +// ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + #include "Buffer.h" #include "SIMDHelpers.h" #include "absl/types/span.h" diff --git a/src/sfizz/LeakDetector.h b/src/sfizz/LeakDetector.h index 669f8d5a..5a13cf14 100644 --- a/src/sfizz/LeakDetector.h +++ b/src/sfizz/LeakDetector.h @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/Logger.cpp b/src/sfizz/Logger.cpp index ac0d90b5..ffc7feb7 100644 --- a/src/sfizz/Logger.cpp +++ b/src/sfizz/Logger.cpp @@ -1,3 +1,28 @@ +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand +// All rights reserved. + +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: + +// 1. Redistributions of source code must retain the above copyright notice, this +// list of conditions and the following disclaimer. +// 2. Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. + +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +// ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + #include "Logger.h" #include "Debug.h" #include "absl/algorithm/container.h" diff --git a/src/sfizz/Logger.h b/src/sfizz/Logger.h index 841c3621..4f9a1a85 100644 --- a/src/sfizz/Logger.h +++ b/src/sfizz/Logger.h @@ -1,3 +1,5 @@ +// SPDX-License-Identifier: BSD-2-Clause + // Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. diff --git a/src/sfizz/MathHelpers.h b/src/sfizz/MathHelpers.h index 4aec1aa1..a1d3ce50 100644 --- a/src/sfizz/MathHelpers.h +++ b/src/sfizz/MathHelpers.h @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/MidiState.cpp b/src/sfizz/MidiState.cpp index 8d4c3644..4c5859f4 100644 --- a/src/sfizz/MidiState.cpp +++ b/src/sfizz/MidiState.cpp @@ -1,3 +1,28 @@ +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand +// All rights reserved. + +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: + +// 1. Redistributions of source code must retain the above copyright notice, this +// list of conditions and the following disclaimer. +// 2. Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. + +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +// ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + #include "MidiState.h" #include "Debug.h" diff --git a/src/sfizz/MidiState.h b/src/sfizz/MidiState.h index e69c76f4..0ed942a9 100644 --- a/src/sfizz/MidiState.h +++ b/src/sfizz/MidiState.h @@ -1,3 +1,28 @@ +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand +// All rights reserved. + +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: + +// 1. Redistributions of source code must retain the above copyright notice, this +// list of conditions and the following disclaimer. +// 2. Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. + +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +// ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + #pragma once #include #include diff --git a/src/sfizz/OnePoleFilter.h b/src/sfizz/OnePoleFilter.h index 6c1e3f0f..37578ade 100644 --- a/src/sfizz/OnePoleFilter.h +++ b/src/sfizz/OnePoleFilter.h @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/Opcode.cpp b/src/sfizz/Opcode.cpp index 3b502c57..664941ef 100644 --- a/src/sfizz/Opcode.cpp +++ b/src/sfizz/Opcode.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/Opcode.h b/src/sfizz/Opcode.h index b0046727..40207a29 100644 --- a/src/sfizz/Opcode.h +++ b/src/sfizz/Opcode.h @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/Oversampler.cpp b/src/sfizz/Oversampler.cpp index 6cf1597c..cfe5726c 100644 --- a/src/sfizz/Oversampler.cpp +++ b/src/sfizz/Oversampler.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/Oversampler.h b/src/sfizz/Oversampler.h index d05cf756..ab37d961 100644 --- a/src/sfizz/Oversampler.h +++ b/src/sfizz/Oversampler.h @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/Parser.cpp b/src/sfizz/Parser.cpp index 73444d0b..56f645be 100644 --- a/src/sfizz/Parser.cpp +++ b/src/sfizz/Parser.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/Parser.h b/src/sfizz/Parser.h index 1edf8a61..bd48f251 100644 --- a/src/sfizz/Parser.h +++ b/src/sfizz/Parser.h @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/Range.h b/src/sfizz/Range.h index c19c960a..cf5c3f4e 100644 --- a/src/sfizz/Range.h +++ b/src/sfizz/Range.h @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/Region.cpp b/src/sfizz/Region.cpp index b7c30ed6..c0d4a2e5 100644 --- a/src/sfizz/Region.cpp +++ b/src/sfizz/Region.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/Region.h b/src/sfizz/Region.h index 7f035ddd..d66f7b60 100644 --- a/src/sfizz/Region.h +++ b/src/sfizz/Region.h @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/Resources.h b/src/sfizz/Resources.h index 5e313458..9563a8c0 100644 --- a/src/sfizz/Resources.h +++ b/src/sfizz/Resources.h @@ -1,3 +1,28 @@ +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand +// All rights reserved. + +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: + +// 1. Redistributions of source code must retain the above copyright notice, this +// list of conditions and the following disclaimer. +// 2. Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. + +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +// ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + #pragma once #include "FilePool.h" #include "Logger.h" diff --git a/src/sfizz/SIMDDummy.cpp b/src/sfizz/SIMDDummy.cpp index 75cbb77f..a08e4d7f 100644 --- a/src/sfizz/SIMDDummy.cpp +++ b/src/sfizz/SIMDDummy.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/SIMDHelpers.h b/src/sfizz/SIMDHelpers.h index 9610a181..e4b2a04c 100644 --- a/src/sfizz/SIMDHelpers.h +++ b/src/sfizz/SIMDHelpers.h @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/SIMDSSE.cpp b/src/sfizz/SIMDSSE.cpp index fc441545..9db3ac20 100644 --- a/src/sfizz/SIMDSSE.cpp +++ b/src/sfizz/SIMDSSE.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/ScopedFTZ.cpp b/src/sfizz/ScopedFTZ.cpp index 70d83d74..47992580 100644 --- a/src/sfizz/ScopedFTZ.cpp +++ b/src/sfizz/ScopedFTZ.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/ScopedFTZ.h b/src/sfizz/ScopedFTZ.h index bef19e84..691dabd5 100644 --- a/src/sfizz/ScopedFTZ.h +++ b/src/sfizz/ScopedFTZ.h @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/SfzHelpers.cpp b/src/sfizz/SfzHelpers.cpp index 5c079937..ecd4832b 100644 --- a/src/sfizz/SfzHelpers.cpp +++ b/src/sfizz/SfzHelpers.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/SfzHelpers.h b/src/sfizz/SfzHelpers.h index fd323fb2..94961d7e 100644 --- a/src/sfizz/SfzHelpers.h +++ b/src/sfizz/SfzHelpers.h @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/StringViewHelpers.h b/src/sfizz/StringViewHelpers.h index 86d6f0cc..39baceb2 100644 --- a/src/sfizz/StringViewHelpers.h +++ b/src/sfizz/StringViewHelpers.h @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/Synth.cpp b/src/sfizz/Synth.cpp index 49d0137c..8c6e52ef 100644 --- a/src/sfizz/Synth.cpp +++ b/src/sfizz/Synth.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/Synth.h b/src/sfizz/Synth.h index 5dea692c..3241a4ab 100644 --- a/src/sfizz/Synth.h +++ b/src/sfizz/Synth.h @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/Voice.cpp b/src/sfizz/Voice.cpp index 1e0e2ad1..a913bfdf 100644 --- a/src/sfizz/Voice.cpp +++ b/src/sfizz/Voice.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/Voice.h b/src/sfizz/Voice.h index 52098dc5..03f60509 100644 --- a/src/sfizz/Voice.h +++ b/src/sfizz/Voice.h @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/src/sfizz/sfizz.cpp b/src/sfizz/sfizz.cpp index 1032f363..789ba812 100644 --- a/src/sfizz/sfizz.cpp +++ b/src/sfizz/sfizz.cpp @@ -1,3 +1,28 @@ +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand +// All rights reserved. + +// Redistribution and use in source and binary forms, with or without +// modification, are permitted provided that the following conditions are met: + +// 1. Redistributions of source code must retain the above copyright notice, this +// list of conditions and the following disclaimer. +// 2. Redistributions in binary form must reproduce the above copyright notice, +// this list of conditions and the following disclaimer in the documentation +// and/or other materials provided with the distribution. + +// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR +// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +// ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + #include "Synth.h" #include "sfizz.hpp" diff --git a/src/sfizz/sfizz_wrapper.cpp b/src/sfizz/sfizz_wrapper.cpp index fb8d54ed..1b23eed5 100644 --- a/src/sfizz/sfizz_wrapper.cpp +++ b/src/sfizz/sfizz_wrapper.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/tests/ADSREnvelopeT.cpp b/tests/ADSREnvelopeT.cpp index d7e295fb..2a47c376 100644 --- a/tests/ADSREnvelopeT.cpp +++ b/tests/ADSREnvelopeT.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/tests/AudioBufferT.cpp b/tests/AudioBufferT.cpp index 88d7481e..abdac676 100644 --- a/tests/AudioBufferT.cpp +++ b/tests/AudioBufferT.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/tests/BufferT.cpp b/tests/BufferT.cpp index a68de0d5..49327068 100644 --- a/tests/BufferT.cpp +++ b/tests/BufferT.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/tests/EGDescriptionT.cpp b/tests/EGDescriptionT.cpp index 87358e5c..e81e139a 100644 --- a/tests/EGDescriptionT.cpp +++ b/tests/EGDescriptionT.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/tests/EventEnvelopesT.cpp b/tests/EventEnvelopesT.cpp index 31c33d82..65728dd4 100644 --- a/tests/EventEnvelopesT.cpp +++ b/tests/EventEnvelopesT.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/tests/FilesT.cpp b/tests/FilesT.cpp index 96457dd4..6fa89362 100644 --- a/tests/FilesT.cpp +++ b/tests/FilesT.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/tests/HelpersT.cpp b/tests/HelpersT.cpp index c04e12ca..86262792 100644 --- a/tests/HelpersT.cpp +++ b/tests/HelpersT.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without @@ -82,4 +84,4 @@ TEST_CASE("[Helpers] trim") absl::string_view input { " " }; REQUIRE(trim(input).empty()); } -} \ No newline at end of file +} diff --git a/tests/MidiStateT.cpp b/tests/MidiStateT.cpp index 3e544601..53e3c2c1 100644 --- a/tests/MidiStateT.cpp +++ b/tests/MidiStateT.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/tests/OnePoleFilterT.cpp b/tests/OnePoleFilterT.cpp index 9f24e50e..f61e9a08 100644 --- a/tests/OnePoleFilterT.cpp +++ b/tests/OnePoleFilterT.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without @@ -67,334 +69,334 @@ void testFilter(const std::array& input, const std::array& exp filter.reset(); filter.processHighpass(input, outputSpan); REQUIRE(approxEqual(output, expectedHigh)); - + filter.reset(); filter.processHighpassVariableGain(input, outputSpan, gains); REQUIRE(approxEqual(output, expectedHigh)); } -constexpr std::array floatInput01 = { - 0.7224561488760388f, 0.7385973866948313f, -0.7270493193023231f, -0.10016187172526334f, - -0.21705352538152722f, 0.2043840469350767f, -0.9596683661285715f, 0.8180755983644133f, - -0.5353916316790325f, -0.3824795777486836f, -0.5199451873852872f, 1.224527476430308f, - -1.5955302866080707f, -0.98620318862471f, 0.21447545419407035f, 1.9078154714253879f, - -1.18546464770056f, 0.1160266352187059f, -0.14909079569914221f, 0.8926491360964995f, - -0.25664421027272116f, -2.88400550880041f, 0.8120130589050852f, -1.2802705105092436f, - 1.1786547670902738f, 0.564152384756787f, 0.6572670188585557f, -1.2583862043651877f, - 0.06968219078056098f, -1.8460954875508593f, 0.31619623348534576f, -1.118168076837949f, - -0.23268233682843759f, -0.05426088793091379f, -2.369490498577162f, 0.8741655425846802f, - 0.9695153245133031f, -0.9676818537948265f, 0.3584177148506203f, 0.4488503636037592f, - -0.3389304100181121f, 1.2027174865060049f, 0.03546769154829243f, 0.09928053501681143f, - -0.7585793622743948f, -0.5387748222254498f, -0.2199304726734363f, 0.63404938853515f, - 1.1666758495956464f, -0.04382336233428379f, 0.43819763320865857f, 0.1740610608056625f, - 0.30473671729007396f, -0.4065881153810866f, -0.9784770671900811f, -0.17674381857142665f, - 0.3493213284003123f, -1.2540491577273034f, 1.2597719140599792f, 0.4198847510851298f, +constexpr std::array floatInput01 = { + 0.7224561488760388f, 0.7385973866948313f, -0.7270493193023231f, -0.10016187172526334f, + -0.21705352538152722f, 0.2043840469350767f, -0.9596683661285715f, 0.8180755983644133f, + -0.5353916316790325f, -0.3824795777486836f, -0.5199451873852872f, 1.224527476430308f, + -1.5955302866080707f, -0.98620318862471f, 0.21447545419407035f, 1.9078154714253879f, + -1.18546464770056f, 0.1160266352187059f, -0.14909079569914221f, 0.8926491360964995f, + -0.25664421027272116f, -2.88400550880041f, 0.8120130589050852f, -1.2802705105092436f, + 1.1786547670902738f, 0.564152384756787f, 0.6572670188585557f, -1.2583862043651877f, + 0.06968219078056098f, -1.8460954875508593f, 0.31619623348534576f, -1.118168076837949f, + -0.23268233682843759f, -0.05426088793091379f, -2.369490498577162f, 0.8741655425846802f, + 0.9695153245133031f, -0.9676818537948265f, 0.3584177148506203f, 0.4488503636037592f, + -0.3389304100181121f, 1.2027174865060049f, 0.03546769154829243f, 0.09928053501681143f, + -0.7585793622743948f, -0.5387748222254498f, -0.2199304726734363f, 0.63404938853515f, + 1.1666758495956464f, -0.04382336233428379f, 0.43819763320865857f, 0.1740610608056625f, + 0.30473671729007396f, -0.4065881153810866f, -0.9784770671900811f, -0.17674381857142665f, + 0.3493213284003123f, -1.2540491577273034f, 1.2597719140599792f, 0.4198847510851298f, 0.9612865621570132f, -1.5614809857797225f, -0.31416474166626646f, -1.4741449502960542f }; -constexpr std::array floatOutputLow01 = { - 0.06567783171600353f, 0.18655945645590016f, 0.15368937959051f, 0.05054483866245487f, - 0.012517104623209388f, 0.00908949665113036f, -0.06122534993939287f, -0.06296553792897218f, - -0.025818715879578978f, -0.10456724112217516f, -0.16759363047577702f, -0.07306912593063386f, - -0.0935113585048607f, -0.3112123365251388f, -0.32478534210517174f, -0.07279792302973517f, - 0.0061063196779283235f, -0.09222555776186356f, -0.07846310730338257f, 0.0033991249697194748f, - 0.060599731868295786f, -0.23593201202349717f, -0.38139823255516353f, -0.3546219586000573f, - -0.2993830337108623f, -0.08651274105006361f, 0.040254975833160934f, -0.02171130936438033f, - -0.1258277998058227f, -0.2644421359111548f, -0.3554434979332642f, -0.3637239386138164f, - -0.42039689647188494f, -0.370046844818756f, -0.5231066354433527f, -0.5639349704529687f, - -0.2937939879071577f, -0.24021022004054027f, -0.2519232835735517f, -0.13273104306432598f, - -0.09860540309029879f, -0.0021510501204360377f, 0.11080233881548844f, 0.10290629780949997f, - 0.024259804820719655f, -0.09809235828303345f, -0.14923059267692612f, -0.08445058347551104f, - 0.09460636244101792f, 0.17948270447550216f, 0.18270169192308128f, 0.20514308375655024f, - 0.21137141199133533f, 0.16368102816645502f, 0.008005824629720673f, -0.0984698603721838f, - -0.06487738486552441f, -0.13532948119242824f, -0.11020387039992532f, 0.06252925741325283f, +constexpr std::array floatOutputLow01 = { + 0.06567783171600353f, 0.18655945645590016f, 0.15368937959051f, 0.05054483866245487f, + 0.012517104623209388f, 0.00908949665113036f, -0.06122534993939287f, -0.06296553792897218f, + -0.025818715879578978f, -0.10456724112217516f, -0.16759363047577702f, -0.07306912593063386f, + -0.0935113585048607f, -0.3112123365251388f, -0.32478534210517174f, -0.07279792302973517f, + 0.0061063196779283235f, -0.09222555776186356f, -0.07846310730338257f, 0.0033991249697194748f, + 0.060599731868295786f, -0.23593201202349717f, -0.38139823255516353f, -0.3546219586000573f, + -0.2993830337108623f, -0.08651274105006361f, 0.040254975833160934f, -0.02171130936438033f, + -0.1258277998058227f, -0.2644421359111548f, -0.3554434979332642f, -0.3637239386138164f, + -0.42039689647188494f, -0.370046844818756f, -0.5231066354433527f, -0.5639349704529687f, + -0.2937939879071577f, -0.24021022004054027f, -0.2519232835735517f, -0.13273104306432598f, + -0.09860540309029879f, -0.0021510501204360377f, 0.11080233881548844f, 0.10290629780949997f, + 0.024259804820719655f, -0.09809235828303345f, -0.14923059267692612f, -0.08445058347551104f, + 0.09460636244101792f, 0.17948270447550216f, 0.18270169192308128f, 0.20514308375655024f, + 0.21137141199133533f, 0.16368102816645502f, 0.008005824629720673f, -0.0984698603721838f, + -0.06487738486552441f, -0.13532948119242824f, -0.11020387039992532f, 0.06252925741325283f, 0.1767213299964926f, 0.0900270496677931f, -0.09685475276689556f, -0.24181840607858007f }; -constexpr std::array floatOutputHigh01 = { - 0.6567783171600353f, 0.5520379302389311f, -0.8807386988928331f, -0.1507067103877182f, - -0.2295706300047366f, 0.19529455028394632f, -0.8984430161891787f, 0.8810411362933855f, - -0.5095729157994535f, -0.2779123366265084f, -0.35235155690951014f, 1.297596602360942f, - -1.50201892810321f, -0.6749908520995712f, 0.5392607962992421f, 1.980613394455123f, - -1.1915709673784882f, 0.20825219298056946f, -0.07062768839575964f, 0.88925001112678f, - -0.3172439421410169f, -2.6480734967769126f, 1.1934112914602488f, -0.9256485519091863f, - 1.4780378008011361f, 0.6506651258068505f, 0.6170120430253947f, -1.2366748950008073f, - 0.1955099905863837f, -1.5816533516397044f, 0.67163973141861f, -0.7544441382241325f, - 0.18771455964344735f, 0.3157859568878422f, -1.8463838631338094f, 1.4381005130376487f, - 1.2633093124204609f, -0.7274716337542863f, 0.610340998424172f, 0.5815814066680851f, - -0.24032500692781328f, 1.204868536626441f, -0.07533464726719602f, -0.0036257627926885444f, - -0.7828391670951145f, -0.4406824639424164f, -0.07069987999651017f, 0.7184999720106611f, - 1.0720694871546286f, -0.22330606680978596f, 0.2554959412855773f, -0.031082022950887744f, - 0.09336530529873863f, -0.5702691435475415f, -0.9864828918198018f, -0.07827395819924285f, - 0.41419871326583674f, -1.1187196765348753f, 1.3699757844599045f, 0.35735549367187697f, +constexpr std::array floatOutputHigh01 = { + 0.6567783171600353f, 0.5520379302389311f, -0.8807386988928331f, -0.1507067103877182f, + -0.2295706300047366f, 0.19529455028394632f, -0.8984430161891787f, 0.8810411362933855f, + -0.5095729157994535f, -0.2779123366265084f, -0.35235155690951014f, 1.297596602360942f, + -1.50201892810321f, -0.6749908520995712f, 0.5392607962992421f, 1.980613394455123f, + -1.1915709673784882f, 0.20825219298056946f, -0.07062768839575964f, 0.88925001112678f, + -0.3172439421410169f, -2.6480734967769126f, 1.1934112914602488f, -0.9256485519091863f, + 1.4780378008011361f, 0.6506651258068505f, 0.6170120430253947f, -1.2366748950008073f, + 0.1955099905863837f, -1.5816533516397044f, 0.67163973141861f, -0.7544441382241325f, + 0.18771455964344735f, 0.3157859568878422f, -1.8463838631338094f, 1.4381005130376487f, + 1.2633093124204609f, -0.7274716337542863f, 0.610340998424172f, 0.5815814066680851f, + -0.24032500692781328f, 1.204868536626441f, -0.07533464726719602f, -0.0036257627926885444f, + -0.7828391670951145f, -0.4406824639424164f, -0.07069987999651017f, 0.7184999720106611f, + 1.0720694871546286f, -0.22330606680978596f, 0.2554959412855773f, -0.031082022950887744f, + 0.09336530529873863f, -0.5702691435475415f, -0.9864828918198018f, -0.07827395819924285f, + 0.41419871326583674f, -1.1187196765348753f, 1.3699757844599045f, 0.35735549367187697f, 0.7845652321605207f, -1.6515080354475156f, -0.2173099888993709f, -1.2323265442174742f }; -constexpr std::array floatInput05 = { - -0.8247415510202276f, -1.0299159073255513f, 0.7689727513393745f, -0.023063681797826918f, - -0.1893245087721241f, -1.615552722124904f, -1.251848891438835f, 0.5338780197836666f, - -0.3244188100039259f, 2.598277589396897f, -0.12170602745517456f, -2.7269013649087737f, - -1.1332228949082876f, 0.5657123485919064f, 1.7914098463628945f, 0.7841799713943826f, - 0.22029184793596254f, 0.19814576077109303f, -0.0507307457285169f, 1.190488685111505f, - -0.6761916505498549f, -1.083729826174603f, 0.405468008682514f, -1.2478635255587003f, - -0.25157954751030825f, -0.9671361521687468f, -0.6434412998426552f, -0.9664977307097671f, - -0.9150555987123582f, 1.697917162123366f, -1.3216510109214192f, -1.3943141278602609f, - -0.7314910022591513f, -0.8889827595848262f, 1.3514782911515115f, 2.297097472618343f, - -0.8897506799878153f, -0.706235549786705f, -0.25391776134956306f, -1.739982172732943f, - -0.23465780260154823f, -0.0475767318206883f, -0.441164577073652f, -0.5072245472018251f, - -1.1057148994224053f, 0.40324702616815694f, 0.815435779107782f, 0.25403283232711865f, - -0.6137810912250902f, -0.7039958189789415f, -1.33840097232278f, 0.4786946763969468f, - -0.46464793721558995f, -1.7121509287301122f, 0.7887828546774234f, -0.902172963851904f, - -0.2591368523894675f, -0.9510361177022718f, 0.5739217219088085f, -0.25730420306720403f, +constexpr std::array floatInput05 = { + -0.8247415510202276f, -1.0299159073255513f, 0.7689727513393745f, -0.023063681797826918f, + -0.1893245087721241f, -1.615552722124904f, -1.251848891438835f, 0.5338780197836666f, + -0.3244188100039259f, 2.598277589396897f, -0.12170602745517456f, -2.7269013649087737f, + -1.1332228949082876f, 0.5657123485919064f, 1.7914098463628945f, 0.7841799713943826f, + 0.22029184793596254f, 0.19814576077109303f, -0.0507307457285169f, 1.190488685111505f, + -0.6761916505498549f, -1.083729826174603f, 0.405468008682514f, -1.2478635255587003f, + -0.25157954751030825f, -0.9671361521687468f, -0.6434412998426552f, -0.9664977307097671f, + -0.9150555987123582f, 1.697917162123366f, -1.3216510109214192f, -1.3943141278602609f, + -0.7314910022591513f, -0.8889827595848262f, 1.3514782911515115f, 2.297097472618343f, + -0.8897506799878153f, -0.706235549786705f, -0.25391776134956306f, -1.739982172732943f, + -0.23465780260154823f, -0.0475767318206883f, -0.441164577073652f, -0.5072245472018251f, + -1.1057148994224053f, 0.40324702616815694f, 0.815435779107782f, 0.25403283232711865f, + -0.6137810912250902f, -0.7039958189789415f, -1.33840097232278f, 0.4786946763969468f, + -0.46464793721558995f, -1.7121509287301122f, 0.7887828546774234f, -0.902172963851904f, + -0.2591368523894675f, -0.9510361177022718f, 0.5739217219088085f, -0.25730420306720403f, 0.41740839680521646f, -2.0979181310103074f, 1.1494564006889283f, 0.5059893282486726f }; constexpr std::array floatOutputLow05 = { - -0.27491385034007587f, -0.7098571028952849f, -0.32360008629382064f, 0.14076966108257558f, - -0.023872843162458468f, -0.6095833580198289f, -1.1589949905278558f, -0.6256552873943414f, - -0.1387320258715336f, 0.7117089178404791f, 1.0627601599274006f, -0.5952824108121825f, - -1.4851355568764144f, -0.6842153677309318f, 0.557635609074623f, 1.0444084756106333f, - 0.6829600983136596f, 0.3671325690069051f, 0.1715158613498271f, 0.43709126691093836f, - 0.3171294338241961f, -0.48093068096675384f, -0.3863974994862809f, -0.4095976721208223f, - -0.6363469150632769f, -0.6183542049141106f, -0.7429772189751709f, -0.7843054165091977f, - -0.8886195819771077f, -0.03525267285536671f, 0.11367115944885997f, -0.8674313264442733f, - -0.9977454855212284f, -0.8727397491217354f, -0.13674807251835008f, 1.170609230417168f, - 0.8593186743492318f, -0.24555585180842954f, -0.4019030543148992f, -0.7986009961324684f, - -0.9244136571556533f, -0.40221606385929665f, -0.29698579091787897f, -0.4151249717311187f, - -0.6760214727851164f, -0.4594964486797883f, 0.2530621188653835f, 0.44084357676676134f, - 0.02703177262292994f, -0.4302483791937005f, -0.8242150568318073f, -0.5613071175858801f, - -0.18242012613484115f, -0.7864063306935144f, -0.5699248015820677f, -0.22777163691884944f, - -0.46302715105340697f, -0.5577333737150487f, -0.311615923169504f, 0.001667198557366828f, + -0.27491385034007587f, -0.7098571028952849f, -0.32360008629382064f, 0.14076966108257558f, + -0.023872843162458468f, -0.6095833580198289f, -1.1589949905278558f, -0.6256552873943414f, + -0.1387320258715336f, 0.7117089178404791f, 1.0627601599274006f, -0.5952824108121825f, + -1.4851355568764144f, -0.6842153677309318f, 0.557635609074623f, 1.0444084756106333f, + 0.6829600983136596f, 0.3671325690069051f, 0.1715158613498271f, 0.43709126691093836f, + 0.3171294338241961f, -0.48093068096675384f, -0.3863974994862809f, -0.4095976721208223f, + -0.6363469150632769f, -0.6183542049141106f, -0.7429772189751709f, -0.7843054165091977f, + -0.8886195819771077f, -0.03525267285536671f, 0.11367115944885997f, -0.8674313264442733f, + -0.9977454855212284f, -0.8727397491217354f, -0.13674807251835008f, 1.170609230417168f, + 0.8593186743492318f, -0.24555585180842954f, -0.4019030543148992f, -0.7986009961324684f, + -0.9244136571556533f, -0.40221606385929665f, -0.29698579091787897f, -0.4151249717311187f, + -0.6760214727851164f, -0.4594964486797883f, 0.2530621188653835f, 0.44084357676676134f, + 0.02703177262292994f, -0.4302483791937005f, -0.8242150568318073f, -0.5613071175858801f, + -0.18242012613484115f, -0.7864063306935144f, -0.5699248015820677f, -0.22777163691884944f, + -0.46302715105340697f, -0.5577333737150487f, -0.311615923169504f, 0.001667198557366828f, 0.05392379743179307f, -0.5421953122577658f, -0.49688568085971485f, 0.3861866826926287f }; constexpr std::array floatOutputHigh05 = { - -0.5498277006801517f, -0.32005880443026635f, 1.0925728376331951f, -0.1638333428804025f, - -0.16545166560966562f, -1.005969364105075f, -0.09285390091097923f, 1.159533307178008f, - -0.1856867841323923f, 1.886568671556418f, -1.1844661873825753f, -2.131618954096591f, - 0.35191266196812676f, 1.2499277163228384f, 1.2337742372882716f, -0.26022850421625077f, - -0.462668250377697f, -0.16898680823581208f, -0.222246607078344f, 0.7533974182005667f, - -0.993321084374051f, -0.602799145207849f, 0.7918655081687949f, -0.838265853437878f, - 0.38476736755296864f, -0.3487819472546362f, 0.0995359191325157f, -0.18219231420056936f, - -0.026436016735250534f, 1.7331698349787326f, -1.4353221703702792f, -0.5268828014159875f, - 0.2662544832620771f, -0.016243010463090846f, 1.4882263636698616f, 1.126488242201175f, - -1.7490693543370472f, -0.46067969797827546f, 0.14798529296533613f, -0.9413811766004746f, - 0.689755854554105f, 0.35463933203860837f, -0.144178786155773f, -0.09209957547070641f, - -0.42969342663728893f, 0.8627434748479452f, 0.5623736602423985f, -0.18681074443964268f, - -0.6408128638480202f, -0.27374743978524096f, -0.5141859154909728f, 1.040001793982827f, - -0.2822278110807488f, -0.9257445980365978f, 1.358707656259491f, -0.6744013269330547f, - 0.20389029866393948f, -0.3933027439872231f, 0.8855376450783126f, -0.2589714016245709f, + -0.5498277006801517f, -0.32005880443026635f, 1.0925728376331951f, -0.1638333428804025f, + -0.16545166560966562f, -1.005969364105075f, -0.09285390091097923f, 1.159533307178008f, + -0.1856867841323923f, 1.886568671556418f, -1.1844661873825753f, -2.131618954096591f, + 0.35191266196812676f, 1.2499277163228384f, 1.2337742372882716f, -0.26022850421625077f, + -0.462668250377697f, -0.16898680823581208f, -0.222246607078344f, 0.7533974182005667f, + -0.993321084374051f, -0.602799145207849f, 0.7918655081687949f, -0.838265853437878f, + 0.38476736755296864f, -0.3487819472546362f, 0.0995359191325157f, -0.18219231420056936f, + -0.026436016735250534f, 1.7331698349787326f, -1.4353221703702792f, -0.5268828014159875f, + 0.2662544832620771f, -0.016243010463090846f, 1.4882263636698616f, 1.126488242201175f, + -1.7490693543370472f, -0.46067969797827546f, 0.14798529296533613f, -0.9413811766004746f, + 0.689755854554105f, 0.35463933203860837f, -0.144178786155773f, -0.09209957547070641f, + -0.42969342663728893f, 0.8627434748479452f, 0.5623736602423985f, -0.18681074443964268f, + -0.6408128638480202f, -0.27374743978524096f, -0.5141859154909728f, 1.040001793982827f, + -0.2822278110807488f, -0.9257445980365978f, 1.358707656259491f, -0.6744013269330547f, + 0.20389029866393948f, -0.3933027439872231f, 0.8855376450783126f, -0.2589714016245709f, 0.36348459937342337f, -1.5557228187525416f, 1.6463420815486431f, 0.11980264555604392f }; constexpr std::array floatInput09 = { - -0.9629663717342508f, 1.054078826032172f, -1.0644939081323097f, -0.05328934531304567f, - -0.04857086206002074f, 1.612607856597715f, 1.0513263960877668f, -1.4323863476593215f, - 2.2461810968138463f, -0.6561891523704232f, 0.022772627664592485f, 0.07616465991959669f, - 0.8305193318990887f, -0.4888237081549593f, 0.8564039983858606f, 1.4871994957279644f, - 0.22673465240234947f, 1.658079098180724f, -1.7453062858413877f, -0.11612580324446467f, - -0.20232260689840872f, -1.1476998404072543f, -0.6202811352543974f, 1.545975326252028f, - 1.0442436933320733f, -1.0968040236666232f, 0.7595527972844077f, 1.2073698123442007f, - -0.8873573213734941f, -0.17122644896880435f, -1.7574830431070918f, 0.19907680046299245f, - 1.27872961557419f, -0.7422656051046687f, -0.6846620117838057f, -0.13384854423135875f, - 0.9007202159691193f, 1.1254806648626967f, -0.04344693397840567f, 0.7948730146831712f, - 1.1781603468141004f, 0.1875496039927383f, 1.692965002836772f, -0.04201566153548597f, - 1.1210100661199038f, -0.7501096833348359f, 0.020210228191464837f, 1.9979804313376157f, - 0.7517403248613556f, 1.1194691465807607f, -1.1160170942539855f, -1.0010374555669668f, - 2.1609909686692763f, -0.07213993925443297f, -0.5083174992310037f, -0.7489925703250175f, - 0.5119124853257149f, -0.33950253799120345f, -0.26764774112191847f, 0.10271208568438035f, + -0.9629663717342508f, 1.054078826032172f, -1.0644939081323097f, -0.05328934531304567f, + -0.04857086206002074f, 1.612607856597715f, 1.0513263960877668f, -1.4323863476593215f, + 2.2461810968138463f, -0.6561891523704232f, 0.022772627664592485f, 0.07616465991959669f, + 0.8305193318990887f, -0.4888237081549593f, 0.8564039983858606f, 1.4871994957279644f, + 0.22673465240234947f, 1.658079098180724f, -1.7453062858413877f, -0.11612580324446467f, + -0.20232260689840872f, -1.1476998404072543f, -0.6202811352543974f, 1.545975326252028f, + 1.0442436933320733f, -1.0968040236666232f, 0.7595527972844077f, 1.2073698123442007f, + -0.8873573213734941f, -0.17122644896880435f, -1.7574830431070918f, 0.19907680046299245f, + 1.27872961557419f, -0.7422656051046687f, -0.6846620117838057f, -0.13384854423135875f, + 0.9007202159691193f, 1.1254806648626967f, -0.04344693397840567f, 0.7948730146831712f, + 1.1781603468141004f, 0.1875496039927383f, 1.692965002836772f, -0.04201566153548597f, + 1.1210100661199038f, -0.7501096833348359f, 0.020210228191464837f, 1.9979804313376157f, + 0.7517403248613556f, 1.1194691465807607f, -1.1160170942539855f, -1.0010374555669668f, + 2.1609909686692763f, -0.07213993925443297f, -0.5083174992310037f, -0.7489925703250175f, + 0.5119124853257149f, -0.33950253799120345f, -0.26764774112191847f, 0.10271208568438035f, -0.09893862035889031f, -0.4154625911342657f, 0.11272544601558693f, -0.6895075000870634f }; constexpr std::array floatOutputLow09 = { - -0.45614196555832937f, 0.01915105911173487f, -0.003925509462605503f, -0.5296828837089897f, - -0.0761276184245572f, 0.7368529122323524f, 1.3006453256000892f, -0.1120470651865213f, - 0.37958450932653687f, 0.7731322110167023f, -0.25934823743872504f, 0.033215123727314666f, - 0.4312300552681833f, 0.1845521404718603f, 0.18383025013420895f, 1.1198032472188755f, - 0.8708005568627211f, 0.9386381216900201f, 0.008083864881265557f, -0.8813055229942847f, - -0.19722848496211295f, -0.6498647637217411f, -0.8716680812987687f, 0.39260945461473207f, - 1.2476095068879813f, 0.040766659677738515f, -0.1576049672506421f, 0.9234051852319387f, - 0.20018513705096297f, -0.49089835768577506f, -0.9394359887562548f, -0.7876364301343762f, - 0.6585590165368562f, 0.2887755321453973f, -0.6607143694658354f, -0.4224899670317008f, - 0.34101868834779714f, 0.9777277166228496f, 0.5640016470832352f, 0.38562296702242765f, - 0.9548906958156775f, 0.6971726448988013f, 0.9274633740191786f, 0.8308424971437238f, - 0.5548311651791308f, 0.204891295276039f, -0.3349580947902264f, 0.9383556758406053f, - 1.3518864464016498f, 0.9575142994410892f, 0.0520306721253716f, -1.0000768566454319f, - 0.496816040067124f, 1.015603963410564f, -0.22150068331359823f, -0.6072258583851468f, - -0.14426034859888792f, 0.07407521986377441f, -0.2836988048502276f, -0.09305893177831953f, + -0.45614196555832937f, 0.01915105911173487f, -0.003925509462605503f, -0.5296828837089897f, + -0.0761276184245572f, 0.7368529122323524f, 1.3006453256000892f, -0.1120470651865213f, + 0.37958450932653687f, 0.7731322110167023f, -0.25934823743872504f, 0.033215123727314666f, + 0.4312300552681833f, 0.1845521404718603f, 0.18383025013420895f, 1.1198032472188755f, + 0.8708005568627211f, 0.9386381216900201f, 0.008083864881265557f, -0.8813055229942847f, + -0.19722848496211295f, -0.6498647637217411f, -0.8716680812987687f, 0.39260945461473207f, + 1.2476095068879813f, 0.040766659677738515f, -0.1576049672506421f, 0.9234051852319387f, + 0.20018513705096297f, -0.49089835768577506f, -0.9394359887562548f, -0.7876364301343762f, + 0.6585590165368562f, 0.2887755321453973f, -0.6607143694658354f, -0.4224899670317008f, + 0.34101868834779714f, 0.9777277166228496f, 0.5640016470832352f, 0.38562296702242765f, + 0.9548906958156775f, 0.6971726448988013f, 0.9274633740191786f, 0.8308424971437238f, + 0.5548311651791308f, 0.204891295276039f, -0.3349580947902264f, 0.9383556758406053f, + 1.3518864464016498f, 0.9575142994410892f, 0.0520306721253716f, -1.0000768566454319f, + 0.496816040067124f, 1.015603963410564f, -0.22150068331359823f, -0.6072258583851468f, + -0.14426034859888792f, 0.07407521986377441f, -0.2836988048502276f, -0.09305893177831953f, -0.003110407570995219f, -0.24382743742154736f, -0.15623482860471877f, -0.28143543764463197f }; constexpr std::array floatOutputHigh09 = { - -0.5068244061759215f, 1.034927766920437f, -1.0605683986697043f, 0.47639353839594406f, - 0.027556756364536465f, 0.8757549443653627f, -0.24931892951232237f, -1.3203392824728002f, - 1.8665965874873094f, -1.4293213633871256f, 0.2821208651033175f, 0.04294953619228202f, - 0.39928927663090535f, -0.6733758486268195f, 0.6725737482516516f, 0.3673962485090889f, - -0.6440659044603716f, 0.7194409764907039f, -1.7533901507226533f, 0.76517971974982f, - -0.00509412193629577f, -0.4978350766855132f, 0.2513869460443713f, 1.1533658716372959f, - -0.203365813555908f, -1.1375706833443617f, 0.9171577645350498f, 0.283964627112262f, - -1.087542458424457f, 0.3196719087169707f, -0.818047054350837f, 0.9867132305973687f, - 0.6201705990373338f, -1.031041137250066f, -0.023947642317970308f, 0.288641422800342f, - 0.5597015276213222f, 0.14775294823984708f, -0.6074485810616409f, 0.4092500476607435f, - 0.22326965099842289f, -0.5096230409060629f, 0.7655016288175934f, -0.8728581586792098f, - 0.5661789009407731f, -0.9550009786108749f, 0.35516832298169126f, 1.0596247554970104f, - -0.6001461215402942f, 0.16195484713967145f, -1.1680477663793571f, -0.0009605989215348831f, - 1.6641749286021523f, -1.087743902664997f, -0.28681681591740543f, -0.14176671193987078f, - 0.6561728339246028f, -0.41357775785497786f, 0.016051063728309112f, 0.19577101746269987f, + -0.5068244061759215f, 1.034927766920437f, -1.0605683986697043f, 0.47639353839594406f, + 0.027556756364536465f, 0.8757549443653627f, -0.24931892951232237f, -1.3203392824728002f, + 1.8665965874873094f, -1.4293213633871256f, 0.2821208651033175f, 0.04294953619228202f, + 0.39928927663090535f, -0.6733758486268195f, 0.6725737482516516f, 0.3673962485090889f, + -0.6440659044603716f, 0.7194409764907039f, -1.7533901507226533f, 0.76517971974982f, + -0.00509412193629577f, -0.4978350766855132f, 0.2513869460443713f, 1.1533658716372959f, + -0.203365813555908f, -1.1375706833443617f, 0.9171577645350498f, 0.283964627112262f, + -1.087542458424457f, 0.3196719087169707f, -0.818047054350837f, 0.9867132305973687f, + 0.6201705990373338f, -1.031041137250066f, -0.023947642317970308f, 0.288641422800342f, + 0.5597015276213222f, 0.14775294823984708f, -0.6074485810616409f, 0.4092500476607435f, + 0.22326965099842289f, -0.5096230409060629f, 0.7655016288175934f, -0.8728581586792098f, + 0.5661789009407731f, -0.9550009786108749f, 0.35516832298169126f, 1.0596247554970104f, + -0.6001461215402942f, 0.16195484713967145f, -1.1680477663793571f, -0.0009605989215348831f, + 1.6641749286021523f, -1.087743902664997f, -0.28681681591740543f, -0.14176671193987078f, + 0.6561728339246028f, -0.41357775785497786f, 0.016051063728309112f, 0.19577101746269987f, -0.09582821278789509f, -0.17163515371271834f, 0.2689602746203057f, -0.40807206244243144f }; -constexpr std::array doubleInput01 = { - 0.7224561488760388, 0.7385973866948313, -0.7270493193023231, -0.10016187172526334, - -0.21705352538152722, 0.2043840469350767, -0.9596683661285715, 0.8180755983644133, - -0.5353916316790325, -0.3824795777486836, -0.5199451873852872, 1.224527476430308, - -1.5955302866080707, -0.98620318862471, 0.21447545419407035, 1.9078154714253879, - -1.18546464770056, 0.1160266352187059, -0.14909079569914221, 0.8926491360964995, - -0.25664421027272116, -2.88400550880041, 0.8120130589050852, -1.2802705105092436, - 1.1786547670902738, 0.564152384756787, 0.6572670188585557, -1.2583862043651877, - 0.06968219078056098, -1.8460954875508593, 0.31619623348534576, -1.118168076837949, - -0.23268233682843759, -0.05426088793091379, -2.369490498577162, 0.8741655425846802, - 0.9695153245133031, -0.9676818537948265, 0.3584177148506203, 0.4488503636037592, - -0.3389304100181121, 1.2027174865060049, 0.03546769154829243, 0.09928053501681143, - -0.7585793622743948, -0.5387748222254498, -0.2199304726734363, 0.63404938853515, - 1.1666758495956464, -0.04382336233428379, 0.43819763320865857, 0.1740610608056625, - 0.30473671729007396, -0.4065881153810866, -0.9784770671900811, -0.17674381857142665, - 0.3493213284003123, -1.2540491577273034, 1.2597719140599792, 0.4198847510851298, +constexpr std::array doubleInput01 = { + 0.7224561488760388, 0.7385973866948313, -0.7270493193023231, -0.10016187172526334, + -0.21705352538152722, 0.2043840469350767, -0.9596683661285715, 0.8180755983644133, + -0.5353916316790325, -0.3824795777486836, -0.5199451873852872, 1.224527476430308, + -1.5955302866080707, -0.98620318862471, 0.21447545419407035, 1.9078154714253879, + -1.18546464770056, 0.1160266352187059, -0.14909079569914221, 0.8926491360964995, + -0.25664421027272116, -2.88400550880041, 0.8120130589050852, -1.2802705105092436, + 1.1786547670902738, 0.564152384756787, 0.6572670188585557, -1.2583862043651877, + 0.06968219078056098, -1.8460954875508593, 0.31619623348534576, -1.118168076837949, + -0.23268233682843759, -0.05426088793091379, -2.369490498577162, 0.8741655425846802, + 0.9695153245133031, -0.9676818537948265, 0.3584177148506203, 0.4488503636037592, + -0.3389304100181121, 1.2027174865060049, 0.03546769154829243, 0.09928053501681143, + -0.7585793622743948, -0.5387748222254498, -0.2199304726734363, 0.63404938853515, + 1.1666758495956464, -0.04382336233428379, 0.43819763320865857, 0.1740610608056625, + 0.30473671729007396, -0.4065881153810866, -0.9784770671900811, -0.17674381857142665, + 0.3493213284003123, -1.2540491577273034, 1.2597719140599792, 0.4198847510851298, 0.9612865621570132, -1.5614809857797225, -0.31416474166626646, -1.4741449502960542 }; -constexpr std::array doubleOutputLow01 = { - 0.06567783171600353, 0.18655945645590016, 0.15368937959051, 0.05054483866245487, - 0.012517104623209388, 0.00908949665113036, -0.06122534993939287, -0.06296553792897218, - -0.025818715879578978, -0.10456724112217516, -0.16759363047577702, -0.07306912593063386, - -0.0935113585048607, -0.3112123365251388, -0.32478534210517174, -0.07279792302973517, - 0.0061063196779283235, -0.09222555776186356, -0.07846310730338257, 0.0033991249697194748, - 0.060599731868295786, -0.23593201202349717, -0.38139823255516353, -0.3546219586000573, - -0.2993830337108623, -0.08651274105006361, 0.040254975833160934, -0.02171130936438033, - -0.1258277998058227, -0.2644421359111548, -0.3554434979332642, -0.3637239386138164, - -0.42039689647188494, -0.370046844818756, -0.5231066354433527, -0.5639349704529687, - -0.2937939879071577, -0.24021022004054027, -0.2519232835735517, -0.13273104306432598, - -0.09860540309029879, -0.0021510501204360377, 0.11080233881548844, 0.10290629780949997, - 0.024259804820719655, -0.09809235828303345, -0.14923059267692612, -0.08445058347551104, - 0.09460636244101792, 0.17948270447550216, 0.18270169192308128, 0.20514308375655024, - 0.21137141199133533, 0.16368102816645502, 0.008005824629720673, -0.0984698603721838, - -0.06487738486552441, -0.13532948119242824, -0.11020387039992532, 0.06252925741325283, +constexpr std::array doubleOutputLow01 = { + 0.06567783171600353, 0.18655945645590016, 0.15368937959051, 0.05054483866245487, + 0.012517104623209388, 0.00908949665113036, -0.06122534993939287, -0.06296553792897218, + -0.025818715879578978, -0.10456724112217516, -0.16759363047577702, -0.07306912593063386, + -0.0935113585048607, -0.3112123365251388, -0.32478534210517174, -0.07279792302973517, + 0.0061063196779283235, -0.09222555776186356, -0.07846310730338257, 0.0033991249697194748, + 0.060599731868295786, -0.23593201202349717, -0.38139823255516353, -0.3546219586000573, + -0.2993830337108623, -0.08651274105006361, 0.040254975833160934, -0.02171130936438033, + -0.1258277998058227, -0.2644421359111548, -0.3554434979332642, -0.3637239386138164, + -0.42039689647188494, -0.370046844818756, -0.5231066354433527, -0.5639349704529687, + -0.2937939879071577, -0.24021022004054027, -0.2519232835735517, -0.13273104306432598, + -0.09860540309029879, -0.0021510501204360377, 0.11080233881548844, 0.10290629780949997, + 0.024259804820719655, -0.09809235828303345, -0.14923059267692612, -0.08445058347551104, + 0.09460636244101792, 0.17948270447550216, 0.18270169192308128, 0.20514308375655024, + 0.21137141199133533, 0.16368102816645502, 0.008005824629720673, -0.0984698603721838, + -0.06487738486552441, -0.13532948119242824, -0.11020387039992532, 0.06252925741325283, 0.1767213299964926, 0.0900270496677931, -0.09685475276689556, -0.24181840607858007 }; -constexpr std::array doubleOutputHigh01 = { - 0.6567783171600353, 0.5520379302389311, -0.8807386988928331, -0.1507067103877182, - -0.2295706300047366, 0.19529455028394632, -0.8984430161891787, 0.8810411362933855, - -0.5095729157994535, -0.2779123366265084, -0.35235155690951014, 1.297596602360942, - -1.50201892810321, -0.6749908520995712, 0.5392607962992421, 1.980613394455123, - -1.1915709673784882, 0.20825219298056946, -0.07062768839575964, 0.88925001112678, - -0.3172439421410169, -2.6480734967769126, 1.1934112914602488, -0.9256485519091863, - 1.4780378008011361, 0.6506651258068505, 0.6170120430253947, -1.2366748950008073, - 0.1955099905863837, -1.5816533516397044, 0.67163973141861, -0.7544441382241325, - 0.18771455964344735, 0.3157859568878422, -1.8463838631338094, 1.4381005130376487, - 1.2633093124204609, -0.7274716337542863, 0.610340998424172, 0.5815814066680851, - -0.24032500692781328, 1.204868536626441, -0.07533464726719602, -0.0036257627926885444, - -0.7828391670951145, -0.4406824639424164, -0.07069987999651017, 0.7184999720106611, - 1.0720694871546286, -0.22330606680978596, 0.2554959412855773, -0.031082022950887744, - 0.09336530529873863, -0.5702691435475415, -0.9864828918198018, -0.07827395819924285, - 0.41419871326583674, -1.1187196765348753, 1.3699757844599045, 0.35735549367187697, +constexpr std::array doubleOutputHigh01 = { + 0.6567783171600353, 0.5520379302389311, -0.8807386988928331, -0.1507067103877182, + -0.2295706300047366, 0.19529455028394632, -0.8984430161891787, 0.8810411362933855, + -0.5095729157994535, -0.2779123366265084, -0.35235155690951014, 1.297596602360942, + -1.50201892810321, -0.6749908520995712, 0.5392607962992421, 1.980613394455123, + -1.1915709673784882, 0.20825219298056946, -0.07062768839575964, 0.88925001112678, + -0.3172439421410169, -2.6480734967769126, 1.1934112914602488, -0.9256485519091863, + 1.4780378008011361, 0.6506651258068505, 0.6170120430253947, -1.2366748950008073, + 0.1955099905863837, -1.5816533516397044, 0.67163973141861, -0.7544441382241325, + 0.18771455964344735, 0.3157859568878422, -1.8463838631338094, 1.4381005130376487, + 1.2633093124204609, -0.7274716337542863, 0.610340998424172, 0.5815814066680851, + -0.24032500692781328, 1.204868536626441, -0.07533464726719602, -0.0036257627926885444, + -0.7828391670951145, -0.4406824639424164, -0.07069987999651017, 0.7184999720106611, + 1.0720694871546286, -0.22330606680978596, 0.2554959412855773, -0.031082022950887744, + 0.09336530529873863, -0.5702691435475415, -0.9864828918198018, -0.07827395819924285, + 0.41419871326583674, -1.1187196765348753, 1.3699757844599045, 0.35735549367187697, 0.7845652321605207, -1.6515080354475156, -0.2173099888993709, -1.2323265442174742 }; -constexpr std::array doubleInput05 = { - -0.8247415510202276, -1.0299159073255513, 0.7689727513393745, -0.023063681797826918, - -0.1893245087721241, -1.615552722124904, -1.251848891438835, 0.5338780197836666, - -0.3244188100039259, 2.598277589396897, -0.12170602745517456, -2.7269013649087737, - -1.1332228949082876, 0.5657123485919064, 1.7914098463628945, 0.7841799713943826, - 0.22029184793596254, 0.19814576077109303, -0.0507307457285169, 1.190488685111505, - -0.6761916505498549, -1.083729826174603, 0.405468008682514, -1.2478635255587003, - -0.25157954751030825, -0.9671361521687468, -0.6434412998426552, -0.9664977307097671, - -0.9150555987123582, 1.697917162123366, -1.3216510109214192, -1.3943141278602609, - -0.7314910022591513, -0.8889827595848262, 1.3514782911515115, 2.297097472618343, - -0.8897506799878153, -0.706235549786705, -0.25391776134956306, -1.739982172732943, - -0.23465780260154823, -0.0475767318206883, -0.441164577073652, -0.5072245472018251, - -1.1057148994224053, 0.40324702616815694, 0.815435779107782, 0.25403283232711865, - -0.6137810912250902, -0.7039958189789415, -1.33840097232278, 0.4786946763969468, - -0.46464793721558995, -1.7121509287301122, 0.7887828546774234, -0.902172963851904, - -0.2591368523894675, -0.9510361177022718, 0.5739217219088085, -0.25730420306720403, +constexpr std::array doubleInput05 = { + -0.8247415510202276, -1.0299159073255513, 0.7689727513393745, -0.023063681797826918, + -0.1893245087721241, -1.615552722124904, -1.251848891438835, 0.5338780197836666, + -0.3244188100039259, 2.598277589396897, -0.12170602745517456, -2.7269013649087737, + -1.1332228949082876, 0.5657123485919064, 1.7914098463628945, 0.7841799713943826, + 0.22029184793596254, 0.19814576077109303, -0.0507307457285169, 1.190488685111505, + -0.6761916505498549, -1.083729826174603, 0.405468008682514, -1.2478635255587003, + -0.25157954751030825, -0.9671361521687468, -0.6434412998426552, -0.9664977307097671, + -0.9150555987123582, 1.697917162123366, -1.3216510109214192, -1.3943141278602609, + -0.7314910022591513, -0.8889827595848262, 1.3514782911515115, 2.297097472618343, + -0.8897506799878153, -0.706235549786705, -0.25391776134956306, -1.739982172732943, + -0.23465780260154823, -0.0475767318206883, -0.441164577073652, -0.5072245472018251, + -1.1057148994224053, 0.40324702616815694, 0.815435779107782, 0.25403283232711865, + -0.6137810912250902, -0.7039958189789415, -1.33840097232278, 0.4786946763969468, + -0.46464793721558995, -1.7121509287301122, 0.7887828546774234, -0.902172963851904, + -0.2591368523894675, -0.9510361177022718, 0.5739217219088085, -0.25730420306720403, 0.41740839680521646, -2.0979181310103074, 1.1494564006889283, 0.5059893282486726 }; constexpr std::array doubleOutputLow05 = { - -0.27491385034007587, -0.7098571028952849, -0.32360008629382064, 0.14076966108257558, - -0.023872843162458468, -0.6095833580198289, -1.1589949905278558, -0.6256552873943414, - -0.1387320258715336, 0.7117089178404791, 1.0627601599274006, -0.5952824108121825, - -1.4851355568764144, -0.6842153677309318, 0.557635609074623, 1.0444084756106333, - 0.6829600983136596, 0.3671325690069051, 0.1715158613498271, 0.43709126691093836, - 0.3171294338241961, -0.48093068096675384, -0.3863974994862809, -0.4095976721208223, - -0.6363469150632769, -0.6183542049141106, -0.7429772189751709, -0.7843054165091977, - -0.8886195819771077, -0.03525267285536671, 0.11367115944885997, -0.8674313264442733, - -0.9977454855212284, -0.8727397491217354, -0.13674807251835008, 1.170609230417168, - 0.8593186743492318, -0.24555585180842954, -0.4019030543148992, -0.7986009961324684, - -0.9244136571556533, -0.40221606385929665, -0.29698579091787897, -0.4151249717311187, - -0.6760214727851164, -0.4594964486797883, 0.2530621188653835, 0.44084357676676134, - 0.02703177262292994, -0.4302483791937005, -0.8242150568318073, -0.5613071175858801, - -0.18242012613484115, -0.7864063306935144, -0.5699248015820677, -0.22777163691884944, - -0.46302715105340697, -0.5577333737150487, -0.311615923169504, 0.001667198557366828, + -0.27491385034007587, -0.7098571028952849, -0.32360008629382064, 0.14076966108257558, + -0.023872843162458468, -0.6095833580198289, -1.1589949905278558, -0.6256552873943414, + -0.1387320258715336, 0.7117089178404791, 1.0627601599274006, -0.5952824108121825, + -1.4851355568764144, -0.6842153677309318, 0.557635609074623, 1.0444084756106333, + 0.6829600983136596, 0.3671325690069051, 0.1715158613498271, 0.43709126691093836, + 0.3171294338241961, -0.48093068096675384, -0.3863974994862809, -0.4095976721208223, + -0.6363469150632769, -0.6183542049141106, -0.7429772189751709, -0.7843054165091977, + -0.8886195819771077, -0.03525267285536671, 0.11367115944885997, -0.8674313264442733, + -0.9977454855212284, -0.8727397491217354, -0.13674807251835008, 1.170609230417168, + 0.8593186743492318, -0.24555585180842954, -0.4019030543148992, -0.7986009961324684, + -0.9244136571556533, -0.40221606385929665, -0.29698579091787897, -0.4151249717311187, + -0.6760214727851164, -0.4594964486797883, 0.2530621188653835, 0.44084357676676134, + 0.02703177262292994, -0.4302483791937005, -0.8242150568318073, -0.5613071175858801, + -0.18242012613484115, -0.7864063306935144, -0.5699248015820677, -0.22777163691884944, + -0.46302715105340697, -0.5577333737150487, -0.311615923169504, 0.001667198557366828, 0.05392379743179307, -0.5421953122577658, -0.49688568085971485, 0.3861866826926287 }; constexpr std::array doubleOutputHigh05 = { - -0.5498277006801517, -0.32005880443026635, 1.0925728376331951, -0.1638333428804025, - -0.16545166560966562, -1.005969364105075, -0.09285390091097923, 1.159533307178008, - -0.1856867841323923, 1.886568671556418, -1.1844661873825753, -2.131618954096591, - 0.35191266196812676, 1.2499277163228384, 1.2337742372882716, -0.26022850421625077, - -0.462668250377697, -0.16898680823581208, -0.222246607078344, 0.7533974182005667, - -0.993321084374051, -0.602799145207849, 0.7918655081687949, -0.838265853437878, - 0.38476736755296864, -0.3487819472546362, 0.0995359191325157, -0.18219231420056936, - -0.026436016735250534, 1.7331698349787326, -1.4353221703702792, -0.5268828014159875, - 0.2662544832620771, -0.016243010463090846, 1.4882263636698616, 1.126488242201175, - -1.7490693543370472, -0.46067969797827546, 0.14798529296533613, -0.9413811766004746, - 0.689755854554105, 0.35463933203860837, -0.144178786155773, -0.09209957547070641, - -0.42969342663728893, 0.8627434748479452, 0.5623736602423985, -0.18681074443964268, - -0.6408128638480202, -0.27374743978524096, -0.5141859154909728, 1.040001793982827, - -0.2822278110807488, -0.9257445980365978, 1.358707656259491, -0.6744013269330547, - 0.20389029866393948, -0.3933027439872231, 0.8855376450783126, -0.2589714016245709, + -0.5498277006801517, -0.32005880443026635, 1.0925728376331951, -0.1638333428804025, + -0.16545166560966562, -1.005969364105075, -0.09285390091097923, 1.159533307178008, + -0.1856867841323923, 1.886568671556418, -1.1844661873825753, -2.131618954096591, + 0.35191266196812676, 1.2499277163228384, 1.2337742372882716, -0.26022850421625077, + -0.462668250377697, -0.16898680823581208, -0.222246607078344, 0.7533974182005667, + -0.993321084374051, -0.602799145207849, 0.7918655081687949, -0.838265853437878, + 0.38476736755296864, -0.3487819472546362, 0.0995359191325157, -0.18219231420056936, + -0.026436016735250534, 1.7331698349787326, -1.4353221703702792, -0.5268828014159875, + 0.2662544832620771, -0.016243010463090846, 1.4882263636698616, 1.126488242201175, + -1.7490693543370472, -0.46067969797827546, 0.14798529296533613, -0.9413811766004746, + 0.689755854554105, 0.35463933203860837, -0.144178786155773, -0.09209957547070641, + -0.42969342663728893, 0.8627434748479452, 0.5623736602423985, -0.18681074443964268, + -0.6408128638480202, -0.27374743978524096, -0.5141859154909728, 1.040001793982827, + -0.2822278110807488, -0.9257445980365978, 1.358707656259491, -0.6744013269330547, + 0.20389029866393948, -0.3933027439872231, 0.8855376450783126, -0.2589714016245709, 0.36348459937342337, -1.5557228187525416, 1.6463420815486431, 0.11980264555604392 }; constexpr std::array doubleInput09 = { - -0.9629663717342508, 1.054078826032172, -1.0644939081323097, -0.05328934531304567, - -0.04857086206002074, 1.612607856597715, 1.0513263960877668, -1.4323863476593215, - 2.2461810968138463, -0.6561891523704232, 0.022772627664592485, 0.07616465991959669, - 0.8305193318990887, -0.4888237081549593, 0.8564039983858606, 1.4871994957279644, - 0.22673465240234947, 1.658079098180724, -1.7453062858413877, -0.11612580324446467, - -0.20232260689840872, -1.1476998404072543, -0.6202811352543974, 1.545975326252028, - 1.0442436933320733, -1.0968040236666232, 0.7595527972844077, 1.2073698123442007, - -0.8873573213734941, -0.17122644896880435, -1.7574830431070918, 0.19907680046299245, - 1.27872961557419, -0.7422656051046687, -0.6846620117838057, -0.13384854423135875, - 0.9007202159691193, 1.1254806648626967, -0.04344693397840567, 0.7948730146831712, - 1.1781603468141004, 0.1875496039927383, 1.692965002836772, -0.04201566153548597, - 1.1210100661199038, -0.7501096833348359, 0.020210228191464837, 1.9979804313376157, - 0.7517403248613556, 1.1194691465807607, -1.1160170942539855, -1.0010374555669668, - 2.1609909686692763, -0.07213993925443297, -0.5083174992310037, -0.7489925703250175, - 0.5119124853257149, -0.33950253799120345, -0.26764774112191847, 0.10271208568438035, + -0.9629663717342508, 1.054078826032172, -1.0644939081323097, -0.05328934531304567, + -0.04857086206002074, 1.612607856597715, 1.0513263960877668, -1.4323863476593215, + 2.2461810968138463, -0.6561891523704232, 0.022772627664592485, 0.07616465991959669, + 0.8305193318990887, -0.4888237081549593, 0.8564039983858606, 1.4871994957279644, + 0.22673465240234947, 1.658079098180724, -1.7453062858413877, -0.11612580324446467, + -0.20232260689840872, -1.1476998404072543, -0.6202811352543974, 1.545975326252028, + 1.0442436933320733, -1.0968040236666232, 0.7595527972844077, 1.2073698123442007, + -0.8873573213734941, -0.17122644896880435, -1.7574830431070918, 0.19907680046299245, + 1.27872961557419, -0.7422656051046687, -0.6846620117838057, -0.13384854423135875, + 0.9007202159691193, 1.1254806648626967, -0.04344693397840567, 0.7948730146831712, + 1.1781603468141004, 0.1875496039927383, 1.692965002836772, -0.04201566153548597, + 1.1210100661199038, -0.7501096833348359, 0.020210228191464837, 1.9979804313376157, + 0.7517403248613556, 1.1194691465807607, -1.1160170942539855, -1.0010374555669668, + 2.1609909686692763, -0.07213993925443297, -0.5083174992310037, -0.7489925703250175, + 0.5119124853257149, -0.33950253799120345, -0.26764774112191847, 0.10271208568438035, -0.09893862035889031, -0.4154625911342657, 0.11272544601558693, -0.6895075000870634 }; constexpr std::array doubleOutputLow09 = { - -0.45614196555832937, 0.01915105911173487, -0.003925509462605503, -0.5296828837089897, - -0.0761276184245572, 0.7368529122323524, 1.3006453256000892, -0.1120470651865213, - 0.37958450932653687, 0.7731322110167023, -0.25934823743872504, 0.033215123727314666, - 0.4312300552681833, 0.1845521404718603, 0.18383025013420895, 1.1198032472188755, - 0.8708005568627211, 0.9386381216900201, 0.008083864881265557, -0.8813055229942847, - -0.19722848496211295, -0.6498647637217411, -0.8716680812987687, 0.39260945461473207, - 1.2476095068879813, 0.040766659677738515, -0.1576049672506421, 0.9234051852319387, - 0.20018513705096297, -0.49089835768577506, -0.9394359887562548, -0.7876364301343762, - 0.6585590165368562, 0.2887755321453973, -0.6607143694658354, -0.4224899670317008, - 0.34101868834779714, 0.9777277166228496, 0.5640016470832352, 0.38562296702242765, - 0.9548906958156775, 0.6971726448988013, 0.9274633740191786, 0.8308424971437238, - 0.5548311651791308, 0.204891295276039, -0.3349580947902264, 0.9383556758406053, - 1.3518864464016498, 0.9575142994410892, 0.0520306721253716, -1.0000768566454319, - 0.496816040067124, 1.015603963410564, -0.22150068331359823, -0.6072258583851468, - -0.14426034859888792, 0.07407521986377441, -0.2836988048502276, -0.09305893177831953, + -0.45614196555832937, 0.01915105911173487, -0.003925509462605503, -0.5296828837089897, + -0.0761276184245572, 0.7368529122323524, 1.3006453256000892, -0.1120470651865213, + 0.37958450932653687, 0.7731322110167023, -0.25934823743872504, 0.033215123727314666, + 0.4312300552681833, 0.1845521404718603, 0.18383025013420895, 1.1198032472188755, + 0.8708005568627211, 0.9386381216900201, 0.008083864881265557, -0.8813055229942847, + -0.19722848496211295, -0.6498647637217411, -0.8716680812987687, 0.39260945461473207, + 1.2476095068879813, 0.040766659677738515, -0.1576049672506421, 0.9234051852319387, + 0.20018513705096297, -0.49089835768577506, -0.9394359887562548, -0.7876364301343762, + 0.6585590165368562, 0.2887755321453973, -0.6607143694658354, -0.4224899670317008, + 0.34101868834779714, 0.9777277166228496, 0.5640016470832352, 0.38562296702242765, + 0.9548906958156775, 0.6971726448988013, 0.9274633740191786, 0.8308424971437238, + 0.5548311651791308, 0.204891295276039, -0.3349580947902264, 0.9383556758406053, + 1.3518864464016498, 0.9575142994410892, 0.0520306721253716, -1.0000768566454319, + 0.496816040067124, 1.015603963410564, -0.22150068331359823, -0.6072258583851468, + -0.14426034859888792, 0.07407521986377441, -0.2836988048502276, -0.09305893177831953, -0.003110407570995219, -0.24382743742154736, -0.15623482860471877, -0.28143543764463197 }; constexpr std::array doubleOutputHigh09 = { - -0.5068244061759215, 1.034927766920437, -1.0605683986697043, 0.47639353839594406, - 0.027556756364536465, 0.8757549443653627, -0.24931892951232237, -1.3203392824728002, - 1.8665965874873094, -1.4293213633871256, 0.2821208651033175, 0.04294953619228202, - 0.39928927663090535, -0.6733758486268195, 0.6725737482516516, 0.3673962485090889, - -0.6440659044603716, 0.7194409764907039, -1.7533901507226533, 0.76517971974982, - -0.00509412193629577, -0.4978350766855132, 0.2513869460443713, 1.1533658716372959, - -0.203365813555908, -1.1375706833443617, 0.9171577645350498, 0.283964627112262, - -1.087542458424457, 0.3196719087169707, -0.818047054350837, 0.9867132305973687, - 0.6201705990373338, -1.031041137250066, -0.023947642317970308, 0.288641422800342, - 0.5597015276213222, 0.14775294823984708, -0.6074485810616409, 0.4092500476607435, - 0.22326965099842289, -0.5096230409060629, 0.7655016288175934, -0.8728581586792098, - 0.5661789009407731, -0.9550009786108749, 0.35516832298169126, 1.0596247554970104, - -0.6001461215402942, 0.16195484713967145, -1.1680477663793571, -0.0009605989215348831, - 1.6641749286021523, -1.087743902664997, -0.28681681591740543, -0.14176671193987078, - 0.6561728339246028, -0.41357775785497786, 0.016051063728309112, 0.19577101746269987, + -0.5068244061759215, 1.034927766920437, -1.0605683986697043, 0.47639353839594406, + 0.027556756364536465, 0.8757549443653627, -0.24931892951232237, -1.3203392824728002, + 1.8665965874873094, -1.4293213633871256, 0.2821208651033175, 0.04294953619228202, + 0.39928927663090535, -0.6733758486268195, 0.6725737482516516, 0.3673962485090889, + -0.6440659044603716, 0.7194409764907039, -1.7533901507226533, 0.76517971974982, + -0.00509412193629577, -0.4978350766855132, 0.2513869460443713, 1.1533658716372959, + -0.203365813555908, -1.1375706833443617, 0.9171577645350498, 0.283964627112262, + -1.087542458424457, 0.3196719087169707, -0.818047054350837, 0.9867132305973687, + 0.6201705990373338, -1.031041137250066, -0.023947642317970308, 0.288641422800342, + 0.5597015276213222, 0.14775294823984708, -0.6074485810616409, 0.4092500476607435, + 0.22326965099842289, -0.5096230409060629, 0.7655016288175934, -0.8728581586792098, + 0.5661789009407731, -0.9550009786108749, 0.35516832298169126, 1.0596247554970104, + -0.6001461215402942, 0.16195484713967145, -1.1680477663793571, -0.0009605989215348831, + 1.6641749286021523, -1.087743902664997, -0.28681681591740543, -0.14176671193987078, + 0.6561728339246028, -0.41357775785497786, 0.016051063728309112, 0.19577101746269987, -0.09582821278789509, -0.17163515371271834, 0.2689602746203057, -0.40807206244243144 }; TEST_CASE("[OnePoleFilter] Tests") @@ -405,4 +407,4 @@ TEST_CASE("[OnePoleFilter] Tests") testFilter(doubleInput01, doubleOutputLow01, doubleOutputHigh01, 0.1); testFilter(doubleInput05, doubleOutputLow05, doubleOutputHigh05, 0.5); testFilter(doubleInput09, doubleOutputLow09, doubleOutputHigh09, 0.9); -} \ No newline at end of file +} diff --git a/tests/OpcodeT.cpp b/tests/OpcodeT.cpp index 9c106478..5fd302b1 100644 --- a/tests/OpcodeT.cpp +++ b/tests/OpcodeT.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/tests/ParsingT.cpp b/tests/ParsingT.cpp index 27daa43d..2c27b96d 100644 --- a/tests/ParsingT.cpp +++ b/tests/ParsingT.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without @@ -54,7 +56,7 @@ void defineTest(const std::string& line, const std::string& variable, const std: { absl::string_view variableMatch; absl::string_view valueMatch; - + auto found = sfz::findDefine(line, variableMatch, valueMatch); REQUIRE(found); REQUIRE(variableMatch == variable); @@ -142,4 +144,4 @@ TEST_CASE("[Parsing] Member") memberTest("sample=..\\Samples\\pizz\\a0_vl3_rr3.wav", "sample", "..\\Samples\\pizz\\a0_vl3_rr3.wav"); memberTest("sample=..\\Samples\\SMD Cymbals Stereo (Samples)\\Hi-Hat (Samples)\\01 Hat Tight 1\\RR1\\09_Hat_Tight_Cnt_RR1.wav", "sample", "..\\Samples\\SMD Cymbals Stereo (Samples)\\Hi-Hat (Samples)\\01 Hat Tight 1\\RR1\\09_Hat_Tight_Cnt_RR1.wav"); memberTest("sample=..\\G&S CW-Drum Kit-1\\SnareFX\\SNR-OFF-V08-CustomWorks-6x13.wav", "sample", "..\\G&S CW-Drum Kit-1\\SnareFX\\SNR-OFF-V08-CustomWorks-6x13.wav"); -} \ No newline at end of file +} diff --git a/tests/RangeT.cpp b/tests/RangeT.cpp index 59673f92..0ff07a29 100644 --- a/tests/RangeT.cpp +++ b/tests/RangeT.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/tests/RegionActivationT.cpp b/tests/RegionActivationT.cpp index 3cec5ffb..077b753d 100644 --- a/tests/RegionActivationT.cpp +++ b/tests/RegionActivationT.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/tests/RegionT.cpp b/tests/RegionT.cpp index dc20a498..20a0ccea 100644 --- a/tests/RegionT.cpp +++ b/tests/RegionT.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/tests/RegionTriggersT.cpp b/tests/RegionTriggersT.cpp index 2f0063c6..c9d1714b 100644 --- a/tests/RegionTriggersT.cpp +++ b/tests/RegionTriggersT.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/tests/RegionValueComputationsT.cpp b/tests/RegionValueComputationsT.cpp index 97ce8dc0..7abddaab 100644 --- a/tests/RegionValueComputationsT.cpp +++ b/tests/RegionValueComputationsT.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/tests/SIMDHelpersT.cpp b/tests/SIMDHelpersT.cpp index 00893e66..eba9a6dc 100644 --- a/tests/SIMDHelpersT.cpp +++ b/tests/SIMDHelpersT.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without diff --git a/tests/SynthT.cpp b/tests/SynthT.cpp index 8b030672..09947905 100644 --- a/tests/SynthT.cpp +++ b/tests/SynthT.cpp @@ -1,4 +1,6 @@ -// Copyright (c) 2019, Paul Ferrand +// SPDX-License-Identifier: BSD-2-Clause + +// Copyright (c) 2019-2020, Paul Ferrand // All rights reserved. // Redistribution and use in source and binary forms, with or without