Repository: AidaDSP/AIDA-X Branch: main Commit: 41eb988f5e0f Files: 31 Total size: 401.5 KB Directory structure: gitextract_1yly5gbz/ ├── .github/ │ └── workflows/ │ └── build.yml ├── .gitignore ├── .gitmodules ├── CMakeLists.txt ├── LICENSE ├── README.md ├── files/ │ └── tw40_california_clean_deerinkstudios.json ├── src/ │ ├── 3rd-party.cpp │ ├── Biquad.cpp │ ├── Biquad.h │ ├── DistrhoPluginCommon.hpp │ ├── Semaphore.hpp │ ├── TwoStageThreadedConvolver.hpp │ ├── Widgets.hpp │ ├── aidadsp-plugin.cpp │ ├── aidadsp-ui.cpp │ ├── model_variant.hpp │ ├── plugin/ │ │ └── DistrhoPluginInfo.h │ └── standalone/ │ ├── DistrhoPluginInfo.h │ ├── Files.cpp │ ├── Graphics.cpp │ └── Makefile └── utils/ ├── Info.plist ├── ax-mod.html ├── ax.html ├── ax.icns ├── ax.rc ├── inno/ │ └── win64.iss ├── macos-installer-welcome.txt ├── windows-installer-welcome.rtf └── windows-installer.sh ================================================ FILE CONTENTS ================================================ ================================================ FILE: .github/workflows/build.yml ================================================ name: build on: [push, pull_request] jobs: linux: strategy: matrix: target: [linux-arm64, linux-armhf, linux-riscv64, linux-x86_64] runs-on: ubuntu-20.04 steps: - uses: actions/checkout@v4 with: submodules: recursive - uses: distrho/dpf-cmake-action@v1 with: dpf_path: ./modules/dpf lto: true pawpaw: true target: ${{ matrix.target }} macos: env: WELCOME_TXT: ${{ github.workspace }}/utils/macos-installer-welcome.txt strategy: matrix: target: [macos-universal-10.15] runs-on: macos-13 steps: - uses: actions/checkout@v4 with: submodules: recursive - uses: distrho/dpf-cmake-action@v1 with: dpf_path: ./modules/dpf lto: true pawpaw: true target: ${{ matrix.target }} windows: strategy: matrix: target: [win64] runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 with: submodules: recursive - uses: distrho/dpf-cmake-action@v1 with: dpf_path: ./modules/dpf pawpaw: true target: ${{ matrix.target }} - uses: actions/upload-artifact@v4 with: name: ${{ env.ARTIFACT_BASENAME }}-installer path: | *-installer.exe - uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: tag_name: ${{ github.ref_name }} name: ${{ github.ref_name }} draft: false prerelease: false files: | *-installer.exe wasm: strategy: matrix: target: [standalone, mod] runs-on: ubuntu-22.04 env: EMSCRIPTEN_VERSION: 3.1.27 steps: - uses: actions/checkout@v4 with: submodules: recursive - name: Set up cache id: cache uses: actions/cache@v4 with: path: | ~/emsdk key: emsdk-v1 - name: Set up dependencies run: | sudo apt-get update -qq sudo apt-get install -yqq brotli mkdir bin [ -d ~/emsdk ] || git clone https://github.com/emscripten-core/emsdk.git ~/emsdk cd ~/emsdk && ./emsdk install ${{ env.EMSCRIPTEN_VERSION }} && ./emsdk activate ${{ env.EMSCRIPTEN_VERSION }} - name: Build simd-optimized env: AR: emar CC: emcc CXX: em++ NM: emnm RANLIB: emranlib STRIP: emstrip PKG_CONFIG: false CFLAGS: -O3 -ffast-math -fdata-sections -ffunction-sections -fno-strict-aliasing -flto -msse -msse2 -msse3 -msimd128 CXXFLAGS: -O3 -ffast-math -fdata-sections -ffunction-sections -fno-strict-aliasing -flto -msse -msse2 -msse3 -msimd128 -DPUGL_WASM_NO_KEYBOARD_INPUT -DPUGL_WASM_NO_MOUSEWHEEL_INPUT LDFLAGS: -O3 -fdata-sections -ffunction-sections -fno-strict-aliasing -flto -Wl,--gc-sections -sAGGRESSIVE_VARIABLE_ELIMINATION=1 -Werror=lto-type-mismatch run: | source ~/emsdk/emsdk_env.sh make -C src/standalone features make -C src/standalone NOOPT=true MOD_BUILD=${{ matrix.target == 'mod' }} -j $(nproc) mv build/bin/*.* bin/ - name: Cleanup run: | rm -rf build modules/dpf/build - name: Build non-optimized env: AR: emar CC: emcc CXX: em++ NM: emnm RANLIB: emranlib STRIP: emstrip PKG_CONFIG: false CFLAGS: -O3 -ffast-math -fdata-sections -ffunction-sections -fno-strict-aliasing -flto CXXFLAGS: -O3 -ffast-math -fdata-sections -ffunction-sections -fno-strict-aliasing -flto -DPUGL_WASM_NO_KEYBOARD_INPUT -DPUGL_WASM_NO_MOUSEWHEEL_INPUT LDFLAGS: -O3 -fdata-sections -ffunction-sections -fno-strict-aliasing -flto -Wl,--gc-sections -sAGGRESSIVE_VARIABLE_ELIMINATION=1 -Werror=lto-type-mismatch run: | source ~/emsdk/emsdk_env.sh make -C src/standalone features make -C src/standalone NOOPT=true NOSIMD=true MOD_BUILD=${{ matrix.target == 'mod' }} -j $(nproc) mv build/bin/*.* bin/ - name: Pack binaries run: | cd bin brotli -k -q 11 *.* zip -r -9 ../${{ github.event.repository.name }}-wasm-${{ matrix.target }}.zip $(ls *.*) - uses: actions/upload-artifact@v4 with: name: ${{ github.event.repository.name }}-wasm-${{ matrix.target }} path: | *.zip pluginval: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 with: submodules: recursive - uses: distrho/dpf-cmake-action@v1 with: dpf_path: ./modules/dpf target: pluginval source: runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v4 with: submodules: recursive - uses: distrho/dpf-cmake-action@v1 with: dpf_path: ./modules/dpf target: source ================================================ FILE: .gitignore ================================================ *~ *.exe *.kdev4 *.json .DS_Store .cache /build/ /resources/ !/files/*.json ================================================ FILE: .gitmodules ================================================ [submodule "dpf"] path = modules/dpf url = https://github.com/DISTRHO/DPF.git [submodule "rtneural"] path = modules/rtneural url = https://github.com/jatinchowdhury18/RTNeural.git [submodule "modules/FFTConvolver"] path = modules/FFTConvolver url = https://github.com/falkTX/FFTConvolver.git [submodule "modules/r8brain"] path = modules/r8brain url = https://github.com/avaneev/r8brain-free-src.git [submodule "modules/dpf"] path = modules/dpf url = https://github.com/DISTRHO/DPF.git [submodule "modules/rtneural"] path = modules/rtneural url = https://github.com/jatinchowdhury18/RTNeural.git [submodule "modules/dr_libs"] path = modules/dr_libs url = https://github.com/mackron/dr_libs.git [submodule "modules/dpf-widgets"] path = modules/dpf-widgets url = https://github.com/DISTRHO/DPF-Widgets.git ================================================ FILE: CMakeLists.txt ================================================ cmake_minimum_required(VERSION 3.15) project(AIDA-X VERSION 1.1.0) set(CMAKE_POLICY_DEFAULT_CMP0063 NEW) set(CMAKE_POLICY_DEFAULT_CMP0069 NEW) set(CMAKE_C_STANDARD 11) set(CMAKE_CXX_STANDARD 17) set(CMAKE_C_VISIBILITY_PRESET hidden) set(CMAKE_CXX_VISIBILITY_PRESET hidden) set(CMAKE_VISIBILITY_INLINES_HIDDEN TRUE) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DDISTRHO_NAMESPACE=AidaDISTRHO -DDGL_NAMESPACE=AidaDGL") # if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(amd64|AMD64|i.86|x64|X64|x86|x86_64|X86)$") # set(PREFER_RTNEURAL_XSIMD TRUE) # else() set(PREFER_RTNEURAL_XSIMD FALSE) # endif() set(RTNEURAL_XSIMD ${PREFER_RTNEURAL_XSIMD} CACHE BOOL "Use RTNeural with this backend") message("RTNEURAL_XSIMD in ${CMAKE_PROJECT_NAME} = ${RTNEURAL_XSIMD}, using processor type ${CMAKE_SYSTEM_PROCESSOR} and system name ${CMAKE_SYSTEM_NAME}") add_subdirectory(modules/dpf) add_subdirectory(modules/rtneural) find_package(Threads REQUIRED) set_property(GLOBAL PROPERTY INTERPROCEDURAL_OPTIMIZATION TRUE) dpf_add_plugin(AIDA-X TARGETS au clap lv2 vst2 vst3 #NO_SHARED_RESOURCES UI_TYPE opengl USE_FILE_BROWSER FILES_DSP Files.cpp modules/FFTConvolver/AudioFFT.cpp modules/FFTConvolver/FFTConvolver.cpp modules/FFTConvolver/TwoStageFFTConvolver.cpp modules/FFTConvolver/Utilities.cpp modules/r8brain/pffft.cpp modules/r8brain/r8bbase.cpp src/aidadsp-plugin.cpp src/Biquad.cpp src/3rd-party.cpp FILES_UI Graphics.cpp src/aidadsp-ui.cpp) dpf_add_plugin(AIDA-X-Standalone TARGETS jack #NO_SHARED_RESOURCES UI_TYPE opengl USE_FILE_BROWSER FILES_DSP Files.cpp modules/FFTConvolver/AudioFFT.cpp modules/FFTConvolver/FFTConvolver.cpp modules/FFTConvolver/TwoStageFFTConvolver.cpp modules/FFTConvolver/Utilities.cpp modules/r8brain/pffft.cpp modules/r8brain/r8bbase.cpp src/aidadsp-plugin.cpp src/Biquad.cpp src/3rd-party.cpp FILES_UI Graphics.cpp modules/dpf-widgets/opengl/Blendish.cpp src/aidadsp-ui.cpp) target_compile_definitions(dgl-opengl PUBLIC DGL_NAMESPACE=AidaDGL DGL_WINDOWS_ICON_ID=401 NVG_FONT_TEXTURE_FLAGS=NVG_IMAGE_NEAREST ) target_include_directories(AIDA-X PUBLIC src src/plugin modules/dr_libs modules/FFTConvolver modules/r8brain modules/rtneural ${CMAKE_BINARY_DIR} ) target_include_directories(AIDA-X-Standalone PUBLIC src src/standalone modules/dpf-widgets/opengl modules/dr_libs modules/FFTConvolver modules/r8brain modules/rtneural ${CMAKE_BINARY_DIR} ) # needed for enabling SSE in pffft if(CMAKE_SYSTEM_PROCESSOR MATCHES "^(i.86|x86|X86)$") target_compile_definitions(AIDA-X PUBLIC i386) target_compile_definitions(AIDA-X-Standalone PUBLIC i386) endif() # needed for emscripten if(EMSCRIPTEN) target_compile_definitions(RTNeural PUBLIC EIGEN_DONT_VECTORIZE=1) endif() # needed for RISC-V if(CMAKE_SYSTEM_PROCESSOR MATCHES "riscv64") set(CMAKE_OPTIONAL_LIBATOMIC "-latomic") endif() target_link_libraries(AIDA-X PUBLIC RTNeural ${CMAKE_THREAD_LIBS_INIT} ${CMAKE_OPTIONAL_LIBATOMIC}) target_link_libraries(AIDA-X-Standalone PUBLIC RTNeural ${CMAKE_THREAD_LIBS_INIT} ${CMAKE_OPTIONAL_LIBATOMIC}) # convert data into code add_custom_command( PRE_BUILD COMMAND ${CMAKE_SOURCE_DIR}/modules/dpf/utils/res2c.py Files ${CMAKE_SOURCE_DIR}/files ${CMAKE_BINARY_DIR} MAIN_DEPENDENCY ${CMAKE_SOURCE_DIR}/files OUTPUT Files.cpp WORKING_DIRECTORY ${CMAKE_BINARY_DIR} ) add_custom_command( PRE_BUILD COMMAND ${CMAKE_SOURCE_DIR}/modules/dpf/utils/res2c.py Graphics ${CMAKE_SOURCE_DIR}/graphics/png ${CMAKE_BINARY_DIR} MAIN_DEPENDENCY ${CMAKE_SOURCE_DIR}/graphics OUTPUT Graphics.cpp WORKING_DIRECTORY ${CMAKE_BINARY_DIR} ) # set up extra standalone details set_target_properties(AIDA-X-Standalone-jack PROPERTIES OUTPUT_NAME "AIDA-X") if(APPLE) set_target_properties(AIDA-X-Standalone-jack PROPERTIES MACOSX_BUNDLE TRUE MACOSX_BUNDLE_INFO_PLIST "${CMAKE_SOURCE_DIR}/utils/Info.plist" ) add_custom_command( POST_BUILD COMMAND cmake -E copy "${CMAKE_SOURCE_DIR}/utils/ax.icns" "${CMAKE_BINARY_DIR}/bin/AIDA-X.app/Contents/Resources/ax.icns" DEPENDS AIDA-X-Standalone-jack OUTPUT "${CMAKE_BINARY_DIR}/bin/AIDA-X.app/Contents/Resources/ax.icns" ) add_custom_target(AIDA-X-App ALL DEPENDS "${CMAKE_BINARY_DIR}/bin/AIDA-X.app/Contents/Resources/ax.icns" ) elseif(WIN32) target_sources(AIDA-X-Standalone-jack PUBLIC utils/ax.rc) endif() # set up windows installer if(WIN32 AND MINGW) add_custom_command( POST_BUILD COMMAND utils/windows-installer.sh "${CMAKE_BINARY_DIR}" "${CMAKE_PROJECT_VERSION}" DEPENDS AIDA-X-clap AIDA-X-lv2 AIDA-X-lv2-ui AIDA-X-vst2 AIDA-X-vst3 AIDA-X-Standalone-jack OUTPUT "${CMAKE_SOURCE_DIR}/utils/inno/AIDA-X-${CMAKE_PROJECT_VERSION}-win64-installer.exe" WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} ) add_custom_target(AIDA-X-Installer ALL DEPENDS "${CMAKE_SOURCE_DIR}/utils/inno/AIDA-X-${CMAKE_PROJECT_VERSION}-win64-installer.exe" ) endif() ================================================ FILE: LICENSE ================================================ GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The GNU General Public License is a free, copyleft license for software and other kinds of works. The licenses for most software and other practical works are designed to take away your freedom to share and change the works. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change all versions of a program--to make sure it remains free software for all its users. We, the Free Software Foundation, use the GNU General Public License for most of our software; it applies also to any other work released this way by its authors. You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for them if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs, and that you know you can do these things. To protect your rights, we need to prevent others from denying you these rights or asking you to surrender the rights. Therefore, you have certain responsibilities if you distribute copies of the software, or if you modify it: responsibilities to respect the freedom of others. For example, if you distribute copies of such a program, whether gratis or for a fee, you must pass on to the recipients the same freedoms that you received. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. Developers that use the GNU GPL protect your rights with two steps: (1) assert copyright on the software, and (2) offer you this License giving you legal permission to copy, distribute and/or modify it. For the developers' and authors' protection, the GPL clearly explains that there is no warranty for this free software. For both users' and authors' sake, the GPL requires that modified versions be marked as changed, so that their problems will not be attributed erroneously to authors of previous versions. Some devices are designed to deny users access to install or run modified versions of the software inside them, although the manufacturer can do so. This is fundamentally incompatible with the aim of protecting users' freedom to change the software. The systematic pattern of such abuse occurs in the area of products for individuals to use, which is precisely where it is most unacceptable. Therefore, we have designed this version of the GPL to prohibit the practice for those products. If such problems arise substantially in other domains, we stand ready to extend this provision to those domains in future versions of the GPL, as needed to protect the freedom of users. Finally, every program is threatened constantly by software patents. States should not allow patents to restrict development and use of software on general-purpose computers, but in those that do, we wish to avoid the special danger that patents applied to a free program could make it effectively proprietary. To prevent this, the GPL assures that patents cannot be used to render the program non-free. The precise terms and conditions for copying, distribution and modification follow. TERMS AND CONDITIONS 0. Definitions. "This License" refers to version 3 of the GNU General Public License. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. A "covered work" means either the unmodified Program or a work based on the Program. To "propagate" a work means to do anything with it that, without permission, would make you directly or secondarily liable for infringement under applicable copyright law, except executing it on a computer or modifying a private copy. Propagation includes copying, distribution (with or without modification), making available to the public, and in some countries other activities as well. To "convey" a work means any kind of propagation that enables other parties to make or receive copies. Mere interaction with a user through a computer network, with no transfer of a copy, is not conveying. An interactive user interface displays "Appropriate Legal Notices" to the extent that it includes a convenient and prominently visible feature that (1) displays an appropriate copyright notice, and (2) tells the user that there is no warranty for the work (except to the extent that warranties are provided), that licensees may convey the work under this License, and how to view a copy of this License. If the interface presents a list of user commands or options, such as a menu, a prominent item in the list meets this criterion. 1. Source Code. The "source code" for a work means the preferred form of the work for making modifications to it. "Object code" means any non-source form of a work. A "Standard Interface" means an interface that either is an official standard defined by a recognized standards body, or, in the case of interfaces specified for a particular programming language, one that is widely used among developers working in that language. The "System Libraries" of an executable work include anything, other than the work as a whole, that (a) is included in the normal form of packaging a Major Component, but which is not part of that Major Component, and (b) serves only to enable use of the work with that Major Component, or to implement a Standard Interface for which an implementation is available to the public in source code form. A "Major Component", in this context, means a major essential component (kernel, window system, and so on) of the specific operating system (if any) on which the executable work runs, or a compiler used to produce the work, or an object code interpreter used to run it. The "Corresponding Source" for a work in object code form means all the source code needed to generate, install, and (for an executable work) run the object code and to modify the work, including scripts to control those activities. However, it does not include the work's System Libraries, or general-purpose tools or generally available free programs which are used unmodified in performing those activities but which are not part of the work. For example, Corresponding Source includes interface definition files associated with source files for the work, and the source code for shared libraries and dynamically linked subprograms that the work is specifically designed to require, such as by intimate data communication or control flow between those subprograms and other parts of the work. The Corresponding Source need not include anything that users can regenerate automatically from other parts of the Corresponding Source. The Corresponding Source for a work in source code form is that same work. 2. Basic Permissions. All rights granted under this License are granted for the term of copyright on the Program, and are irrevocable provided the stated conditions are met. This License explicitly affirms your unlimited permission to run the unmodified Program. The output from running a covered work is covered by this License only if the output, given its content, constitutes a covered work. This License acknowledges your rights of fair use or other equivalent, as provided by copyright law. You may make, run and propagate covered works that you do not convey, without conditions so long as your license otherwise remains in force. You may convey covered works to others for the sole purpose of having them make modifications exclusively for you, or provide you with facilities for running those works, provided that you comply with the terms of this License in conveying all material for which you do not control copyright. Those thus making or running the covered works for you must do so exclusively on your behalf, under your direction and control, on terms that prohibit them from making any copies of your copyrighted material outside their relationship with you. Conveying under any other circumstances is permitted solely under the conditions stated below. Sublicensing is not allowed; section 10 makes it unnecessary. 3. Protecting Users' Legal Rights From Anti-Circumvention Law. No covered work shall be deemed part of an effective technological measure under any applicable law fulfilling obligations under article 11 of the WIPO copyright treaty adopted on 20 December 1996, or similar laws prohibiting or restricting circumvention of such measures. When you convey a covered work, you waive any legal power to forbid circumvention of technological measures to the extent such circumvention is effected by exercising rights under this License with respect to the covered work, and you disclaim any intention to limit operation or modification of the work as a means of enforcing, against the work's users, your or third parties' legal rights to forbid circumvention of technological measures. 4. Conveying Verbatim Copies. You may convey verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice; keep intact all notices stating that this License and any non-permissive terms added in accord with section 7 apply to the code; keep intact all notices of the absence of any warranty; and give all recipients a copy of this License along with the Program. You may charge any price or no price for each copy that you convey, and you may offer support or warranty protection for a fee. 5. Conveying Modified Source Versions. You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: a) The work must carry prominent notices stating that you modified it, and giving a relevant date. b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. 6. Conveying Non-Source Forms. You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A "User Product" is either (1) a "consumer product", which means any tangible personal property which is normally used for personal, family, or household purposes, or (2) anything designed or sold for incorporation into a dwelling. In determining whether a product is a consumer product, doubtful cases shall be resolved in favor of coverage. For a particular product received by a particular user, "normally used" refers to a typical or common use of that class of product, regardless of the status of the particular user or of the way in which the particular user actually uses, or expects or is expected to use, the product. A product is a consumer product regardless of whether the product has substantial commercial, industrial or non-consumer uses, unless such uses represent the only significant mode of use of the product. "Installation Information" for a User Product means any methods, procedures, authorization keys, or other information required to install and execute modified versions of a covered work in that User Product from a modified version of its Corresponding Source. The information must suffice to ensure that the continued functioning of the modified object code is in no case prevented or interfered with solely because modification has been made. If you convey an object code work under this section in, or with, or specifically for use in, a User Product, and the conveying occurs as part of a transaction in which the right of possession and use of the User Product is transferred to the recipient in perpetuity or for a fixed term (regardless of how the transaction is characterized), the Corresponding Source conveyed under this section must be accompanied by the Installation Information. But this requirement does not apply if neither you nor any third party retains the ability to install modified object code on the User Product (for example, the work has been installed in ROM). The requirement to provide Installation Information does not include a requirement to continue to provide support service, warranty, or updates for a work that has been modified or installed by the recipient, or for the User Product in which it has been modified or installed. Access to a network may be denied when the modification itself materially and adversely affects the operation of the network or violates the rules and protocols for communication across the network. Corresponding Source conveyed, and Installation Information provided, in accord with this section must be in a format that is publicly documented (and with an implementation available to the public in source code form), and must require no special password or key for unpacking, reading or copying. 7. Additional Terms. "Additional permissions" are terms that supplement the terms of this License by making exceptions from one or more of its conditions. Additional permissions that are applicable to the entire Program shall be treated as though they were included in this License, to the extent that they are valid under applicable law. If additional permissions apply only to part of the Program, that part may be used separately under those permissions, but the entire Program remains governed by this License without regard to the additional permissions. When you convey a copy of a covered work, you may at your option remove any additional permissions from that copy, or from any part of it. (Additional permissions may be written to require their own removal in certain cases when you modify the work.) You may place additional permissions on material, added by you to a covered work, for which you have or can give appropriate copyright permission. Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. If you add terms to a covered work in accord with this section, you must place, in the relevant source files, a statement of the additional terms that apply to those files, or a notice indicating where to find the applicable terms. Additional terms, permissive or non-permissive, may be stated in the form of a separately written license, or stated as exceptions; the above requirements apply either way. 8. Termination. You may not propagate or modify a covered work except as expressly provided under this License. Any attempt otherwise to propagate or modify it is void, and will automatically terminate your rights under this License (including any patent licenses granted under the third paragraph of section 11). However, if you cease all violation of this License, then your license from a particular copyright holder is reinstated (a) provisionally, unless and until the copyright holder explicitly and finally terminates your license, and (b) permanently, if the copyright holder fails to notify you of the violation by some reasonable means prior to 60 days after the cessation. Moreover, your license from a particular copyright holder is reinstated permanently if the copyright holder notifies you of the violation by some reasonable means, this is the first time you have received notice of violation of this License (for any work) from that copyright holder, and you cure the violation prior to 30 days after your receipt of the notice. Termination of your rights under this section does not terminate the licenses of parties who have received copies or rights from you under this License. If your rights have been terminated and not permanently reinstated, you do not qualify to receive new licenses for the same material under section 10. 9. Acceptance Not Required for Having Copies. You are not required to accept this License in order to receive or run a copy of the Program. Ancillary propagation of a covered work occurring solely as a consequence of using peer-to-peer transmission to receive a copy likewise does not require acceptance. However, nothing other than this License grants you permission to propagate or modify any covered work. These actions infringe copyright if you do not accept this License. Therefore, by modifying or propagating a covered work, you indicate your acceptance of this License to do so. 10. Automatic Licensing of Downstream Recipients. Each time you convey a covered work, the recipient automatically receives a license from the original licensors, to run, modify and propagate that work, subject to this License. You are not responsible for enforcing compliance by third parties with this License. An "entity transaction" is a transaction transferring control of an organization, or substantially all assets of one, or subdividing an organization, or merging organizations. If propagation of a covered work results from an entity transaction, each party to that transaction who receives a copy of the work also receives whatever licenses to the work the party's predecessor in interest had or could give under the previous paragraph, plus a right to possession of the Corresponding Source of the work from the predecessor in interest, if the predecessor has it or can get it with reasonable efforts. You may not impose any further restrictions on the exercise of the rights granted or affirmed under this License. For example, you may not impose a license fee, royalty, or other charge for exercise of rights granted under this License, and you may not initiate litigation (including a cross-claim or counterclaim in a lawsuit) alleging that any patent claim is infringed by making, using, selling, offering for sale, or importing the Program or any portion of it. 11. Patents. A "contributor" is a copyright holder who authorizes use under this License of the Program or a work on which the Program is based. The work thus licensed is called the contributor's "contributor version". A contributor's "essential patent claims" are all patent claims owned or controlled by the contributor, whether already acquired or hereafter acquired, that would be infringed by some manner, permitted by this License, of making, using, or selling its contributor version, but do not include claims that would be infringed only as a consequence of further modification of the contributor version. For purposes of this definition, "control" includes the right to grant patent sublicenses in a manner consistent with the requirements of this License. Each contributor grants you a non-exclusive, worldwide, royalty-free patent license under the contributor's essential patent claims, to make, use, sell, offer for sale, import and otherwise run, modify and propagate the contents of its contributor version. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. A patent license is "discriminatory" if it does not include within the scope of its coverage, prohibits the exercise of, or is conditioned on the non-exercise of one or more of the rights that are specifically granted under this License. You may not convey a covered work if you are a party to an arrangement with a third party that is in the business of distributing software, under which you make payment to the third party based on the extent of your activity of conveying the work, and under which the third party grants, to any of the parties who would receive the covered work from you, a discriminatory patent license (a) in connection with copies of the covered work conveyed by you (or copies made from those copies), or (b) primarily for and in connection with specific products or compilations that contain the covered work, unless you entered into that arrangement, or that patent license was granted, prior to 28 March 2007. Nothing in this License shall be construed as excluding or limiting any implied license or other defenses to infringement that may otherwise be available to you under applicable patent law. 12. No Surrender of Others' Freedom. If conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot convey a covered work so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not convey it at all. For example, if you agree to terms that obligate you to collect a royalty for further conveying from those to whom you convey the Program, the only way you could satisfy both those terms and this License would be to refrain entirely from conveying the Program. 13. Use with the GNU Affero General Public License. Notwithstanding any other provision of this License, you have permission to link or combine any covered work with a work licensed under version 3 of the GNU Affero General Public License into a single combined work, and to convey the resulting work. The terms of this License will continue to apply to the part which is the covered work, but the special requirements of the GNU Affero General Public License, section 13, concerning interaction through a network will apply to the combination as such. 14. Revised Versions of this License. The Free Software Foundation may publish revised and/or new versions of the GNU General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies that a certain numbered version of the GNU General Public License "or any later version" applies to it, you have the option of following the terms and conditions either of that numbered version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the GNU General Public License, you may choose any version ever published by the Free Software Foundation. If the Program specifies that a proxy can decide which future versions of the GNU General Public License can be used, that proxy's public statement of acceptance of a version permanently authorizes you to choose that version for the Program. Later license versions may give you additional or different permissions. However, no additional obligations are imposed on any author or copyright holder as a result of your choosing to follow a later version. 15. Disclaimer of Warranty. THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. Limitation of Liability. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. 17. Interpretation of Sections 15 and 16. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. END OF TERMS AND CONDITIONS ================================================ FILE: README.md ================================================ # AIDA-X ![screenshot](docs/Screenshot.png "Screenshot") AIDA-X is an Amp Model Player, allowing it to load models of AI trained music gear, which you can then play through! 🎸 Its main intended use is to provide high fidelity simulations of amplifiers. However, it is also possible to run entire signal chains consisting of any combination of amp, cab, dist, drive, fuzz, boost and eq. This repository contains the source code for the [DPF-based](https://github.com/DISTRHO/DPF) plugin variant, see [aidadsp-lv2](https://github.com/AidaDSP/aidadsp-lv2) for the LV2 headless version of the same engine optimized to run on embedded systems such as [MOD Dwarf](https://mod.audio/dwarf/), RPi, Portenta-X8, Aida DSP OS and so on. For ease of use, this plugin also contains a cabinet simulator via impulse response files, which runs after the Amp Model. CLAP, LV2, VST2 and VST3 plugin formats are supported, plus a standalone. ### Installation ### [Click here to access the latest stable release](https://github.com/AidaDSP/AIDA-X/releases/latest). Installers are provided for both macOS and Windows, plus regular binary tarballs for Linux. Do note **these builds are not signed**, so expect warnings saying they are from an "untrusted developer". This is particularly striking on macOS, where the plugin installer can only be opened with mouse right-click and the standalone app must be opened via right-click twice. So-called "nightly builds" are available through [GitHub actions](https://github.com/AidaDSP/AIDA-X/actions/workflows/build.yml). Alternatively an experimental online version is available at [mod.audio/aida-x-online](https://mod.audio/aida-x-online/). There is no audio input, instead a pre-selected list of guitar audio loops is used. This online version is otherwise fully functional and identical to the desktop version you can install and run on your machine. ### User Manual ### #### Loading files #### AIDA-X comes built-in with a single Amp Model and Cabinet IR. Click on the related filename to open a file browser and load a different file. The little icon on the left side allows to turn on/off the Amp Model and Cabinet IR. Both wav and flac audio formats are supported for IR files. image A quick model pack can be downloaded from [our Google Drive folder](https://drive.google.com/drive/folders/18MwNhuo9fjK8hlne6SAdhpGtL4bWsVz-). Check out the [MOD Forum's Neural Modelling section](https://forum.mod.audio/c/neural/62) for an online place for discussion, sharing and all things related to Amp Models. #### Meters #### The AIDA-X UI contains input and output meters, for ease of monitoring the sound. These are peak meters calculated at a maximum of 60 FPS. Both meters will change colors to indicate when sound is clipping. When -3dB is reached the meters turn yellow, and on 0dB they turn red. The meters will change back to the previous color once the audio signal falls below -3dB of their tripping point (so -6dB for yellow, -3dB for red). #### Controls #### In AIDA-X knobs will move slowly when holding down the Ctrl key. Holding down the Shift key or double-clicking a knob will reset it to its default value. Please note not all hosts and formats support sending these modifier keys to plugins. From left to right: 1. **Bypass and Input Level** image On/Off bypass switch, lets the audio pass-through when off. Integrates with the host provided bypass controls where possible. Input Level attenuates / emphasizes the input signal before sending it to the Amp Model. 2. **EQ tone controls (part 1)** image Pre/Post switch changes the position of the tone controls, either running before or after the Amp Model. Bandpass/Peak switch changes the MID control to Bandpass so that BASS and TREBLE will be excluded. Default setting for MID control is Peaking or Parametric EQ with adjustable Frequency and Q. 3. **EQ tone controls (part 2)** image Extra EQ related controls. Depth is a Peaking or Parametric EQ to boost the low end. Presence is an High Shelf EQ to boost the high end. 4. **Output Level** image For a final gain compensation, does not apply to the bypassed signal. #### Using the Standalone #### When first run the AIDA-X standalone will not make any sound, requiring you to click "Enable Input" (which can trigger OS-level permission requests). This is to avoid unintended audio feedback loops when someone simply wants to check out the GUI or AIDA-X was started by accident. After enabling audio input, an option for setting the audio buffer-size will be shown. Reducing buffer-size will reduce latency but at cost of more CPU. The optimal value depends on the running system, slower machines cannot do small buffer-sizes without audio crackles. NOTE: The AIDA-X standalone will connect to your system-defined default audio device, for now there is no option to change to another input/output audio device. ### Technical Details ### Behind the scenes AIDA-X uses [RTNeural](https://github.com/jatinchowdhury18/RTNeural), which does the heavy lifting for us. The plugin format support together with the custom GUI is made with [DPF](https://github.com/DISTRHO/DPF), which allows a single codebase to export for many audio plugins at once (amongst other nice features). Impulse Response handling is done with the help of a custom fork of [FFTConvolver](https://github.com/falkTX/FFTConvolver.git), together with [r8brain-free-src](https://github.com/avaneev/r8brain-free-src.git) for runtime audio file resampling. #### Generate json models #### This implies neural network training. Please follow: - [AIDA-X Model Trainer.ipynb](https://colab.research.google.com/github/AidaDSP/Automated-GuitarAmpModelling/blob/aidadsp_devel/AIDA_X_Model_Trainer.ipynb) ### Building ### Requires cmake and OpenGL related developer packages. For building just do the usual cmake steps, like: ```sh git clone --recursive https://github.com/AidaDSP/AIDA-X.git && cd AIDA-X mkdir build && cd build cmake -DCMAKE_BUILD_TYPE=Release .. cmake --build . ``` Binaries will be placed in `./build/bin` ### License ### AIDA-X is licensed under `GPL-3.0-or-later`, see [LICENSE](LICENSE) for more details. ================================================ FILE: files/tw40_california_clean_deerinkstudios.json ================================================ { "in_shape": [ null, null, 1 ], "layers": [ { "type": "lstm", "activation": "", "shape": [ null, null, 12 ], "weights": [ [ [ -0.05898863077163696, 0.05630207061767578, -0.010886353440582752, -0.039077065885066986, -0.019576767459511757, -0.0004906050162389874, 0.04394367337226868, 0.03217808157205582, 0.060107968747615814, -0.031073851510882378, 0.04744714871048927, 0.026116250082850456, -0.06898219138383865, 0.06051252782344818, 0.02031611278653145, 0.11878474056720734, 0.011209400370717049, -0.08722781389951706, 0.007508902810513973, 0.011899957433342934, 0.03165968507528305, 0.07981367409229279, -0.07961057871580124, -0.02836543507874012, 0.018126191571354866, 0.7547421455383301, 0.07785286754369736, -0.020921235904097557, 0.1739613264799118, -0.02892882190644741, -0.7612541913986206, 0.09544289857149124, 0.08657906949520111, -0.40953391790390015, 0.124151811003685, -0.3797035217285156, -0.03348651900887489, 0.07236623764038086, -0.005588929634541273, -0.0446324497461319, -0.005948406644165516, 0.0423315204679966, 0.047528576105833054, 0.04987810179591179, 0.10823322832584381, 0.0001607980375410989, -0.003037703689187765, 0.01228737086057663 ] ], [ [ -0.0793188139796257, -0.027052419260144234, 0.011680861003696918, -0.2333230823278427, -0.08691032975912094, 0.14434385299682617, -0.07432237267494202, -0.04311472177505493, 0.06548870354890823, 0.016066614538431168, 0.047346122562885284, -0.013638966716825962, -0.13298997282981873, -0.07051331549882889, 0.040480293333530426, 0.08481722325086594, -0.03788358345627785, -0.14510013163089752, -0.10443750023841858, -0.007397918030619621, 0.07510305196046829, -0.051527902483940125, 0.04347001761198044, -0.035575464367866516, 0.582352340221405, -0.21963149309158325, 0.2954903841018677, 0.3476758599281311, -0.010178825818002224, 0.03154237940907478, -0.34173208475112915, -0.2786389887332916, -0.22743123769760132, 0.08011166006326675, -0.1396312266588211, -0.16942813992500305, -0.06949443370103836, -0.001238407101482153, 0.009098434820771217, -0.056939154863357544, -0.09114541113376617, 0.019834449514746666, 0.0036337850615382195, -0.014950613491237164, 0.11897773295640945, 0.0292977187782526, 0.08119626343250275, -0.001555515918880701 ], [ -0.01946432888507843, -0.0024405408184975386, 0.01934758760035038, 0.1564074158668518, 0.01041491236537695, -0.17440558969974518, 0.0013255159137770534, -0.0023403207305818796, -0.007628831081092358, 0.015593714080750942, 0.016117053106427193, -0.007150133140385151, 0.029352407902479172, -0.024870214983820915, -0.020173879340291023, 0.07293161004781723, 0.024351397529244423, -0.029371222481131554, 0.014667266979813576, 0.03998351842164993, 0.027778437361121178, 0.0250936821103096, 0.0016887228703126311, 0.026270687580108643, -0.020929506048560143, 0.010087084025144577, -1.0725936889648438, -0.2610797882080078, -0.28118789196014404, -0.4455985128879547, -0.32627326250076294, -0.3223588764667511, 0.06710755825042725, -0.10433804243803024, -0.027460815384984016, 0.37806135416030884, 0.009884815663099289, -0.010380225256085396, 0.02426254004240036, 0.05168253555893898, 0.022874798625707626, -0.09369008243083954, 0.012187192216515541, 0.005151587538421154, -0.0038799906615167856, 0.014318480156362057, -0.02248925156891346, -0.007768344599753618 ], [ -0.05902744457125664, 0.06631449609994888, 0.02067490667104721, -0.08170861750841141, -0.025264248251914978, 0.13590015470981598, 0.02331666462123394, 0.026017362251877785, -0.022931350395083427, 0.07141393423080444, 0.04379406198859215, 0.019504817202687263, -0.11317358165979385, 0.07406723499298096, 0.0624559260904789, -0.038679514080286026, -0.061875250190496445, 0.0689534842967987, 0.009195485152304173, -0.022969039157032967, -0.0570397675037384, 0.04113313555717468, 0.06875573843717575, 0.024644523859024048, -0.2295060157775879, 0.27110546827316284, 0.018232593312859535, 0.5630152225494385, -0.22019940614700317, 0.6189771890640259, 0.33046549558639526, -0.8189554810523987, -0.5247683525085449, -0.22545236349105835, -0.02480812929570675, -0.470574289560318, -0.06392114609479904, 0.09076843410730362, 0.030104968696832657, -0.07646241039037704, -0.03874566778540611, 0.09235645085573196, 0.045778218656778336, 0.04847464710474014, -0.04494231939315796, 0.05028892681002617, 0.0922214463353157, 0.01661495491862297 ], [ 0.07328817248344421, -0.07174578309059143, 0.07740603387355804, 0.02678251825273037, 0.011816843412816525, 0.20387794077396393, -0.0346391536295414, 0.07074512541294098, -0.10770377516746521, -0.08828005194664001, 0.10177630186080933, 0.10082787275314331, 0.12903061509132385, -0.05503969267010689, 0.18648675084114075, 0.08111457526683807, 0.21206027269363403, 0.1678239107131958, 0.1300879567861557, 0.5315591096878052, -0.1236419677734375, -0.02909103035926819, 0.1643085777759552, 0.0259122084826231, -0.4954370856285095, 0.06318090111017227, -0.2829713523387909, 0.5429378747940063, 0.4678765833377838, -0.06334687024354935, 0.12588852643966675, 0.601213812828064, -0.10658931732177734, 0.13190427422523499, 0.1304778754711151, 0.0454736165702343, 0.09923042356967926, -0.10203798115253448, 0.10309150069952011, 0.048486076295375824, 0.001033567707054317, 0.171586275100708, -0.01670539565384388, 0.20085583627223969, -0.07271116226911545, 0.006735347677022219, 0.1897522211074829, 0.11765561252832413 ], [ 0.018419595435261726, -0.043496645987033844, -0.008100518956780434, 0.07445574551820755, 0.037217795848846436, -0.06303669512271881, -0.018344124779105186, 0.04578922688961029, 0.014917578548192978, -0.028367457911372185, -0.016907760873436928, -0.0061192624270915985, 0.018878880888223648, 0.004543134942650795, 0.013081389479339123, -0.11758122593164444, 0.045714862644672394, -0.008235564455389977, -0.05555355176329613, 0.05147086828947067, 0.030494917184114456, -0.06598185002803802, -0.0854995921254158, -0.010118167847394943, 0.157124325633049, -0.03968239948153496, -0.05862973630428314, -0.089189313352108, 0.2614654302597046, 0.03867584839463234, 0.2264309972524643, 0.4591827094554901, 0.2972766160964966, 0.1757863610982895, -0.17842495441436768, -0.22381404042243958, 0.04616567865014076, -0.05058153718709946, -0.0035381054040044546, 0.027564695104956627, 0.05486015975475311, -0.0349450558423996, 0.0034176663029938936, 0.07733222097158432, 0.026142962276935577, 0.02607606165111065, 0.00742773711681366, -0.002533257007598877 ], [ -0.03604131191968918, 0.05865994468331337, -0.10791130363941193, -0.15994617342948914, 0.024152694270014763, 0.12165537476539612, -0.046060651540756226, 0.11544187366962433, 0.1978446990251541, 0.09827839583158493, -0.1853754222393036, -0.017721299082040787, -0.19055341184139252, 0.03692357987165451, -0.11515706032514572, -0.2141268104314804, -0.1855292022228241, 0.16081029176712036, -0.09767714887857437, -0.470858633518219, 0.11756254732608795, 0.06059033051133156, -0.30719947814941406, -0.03635033965110779, -0.25452885031700134, -0.08724755048751831, -0.3256053626537323, -0.033323220908641815, 0.14931534230709076, 0.6180065870285034, 0.19153554737567902, 0.48976007103919983, -0.2513343393802643, 0.04459722712635994, 0.19219614565372467, -0.05924699828028679, -0.04287481680512428, 0.08530718833208084, -0.11028828471899033, -0.11299681663513184, 0.05438674986362457, 0.08714635670185089, -0.01920047588646412, -0.09835448116064072, 0.18006393313407898, 0.08711525052785873, -0.17238208651542664, -0.013066350482404232 ], [ 0.09592802077531815, -0.00570167601108551, 0.045773644000291824, 0.17280510067939758, 0.06746100634336472, -0.09060688316822052, -0.027767762541770935, 0.016517754644155502, 0.02240608073771, 0.022745603695511818, -0.09105997532606125, 0.027903253212571144, 0.13367636501789093, 0.02321668714284897, -0.06273628771305084, -0.05357843264937401, -0.0029779274482280016, 0.18671727180480957, 0.03510785847902298, -0.11223504692316055, 0.0670999139547348, 0.04043671488761902, -0.04564659669995308, 0.06574060022830963, -0.5037927627563477, 0.5054494738578796, 0.1835131198167801, 0.04914127290248871, 0.2114180326461792, -0.20771749317646027, 0.22908803820610046, 0.05944269523024559, -0.15441961586475372, 0.28815770149230957, -0.5639021992683411, -0.6280796527862549, 0.0816679522395134, 0.002979764249175787, 0.04486352950334549, 0.048631928861141205, 0.044666554778814316, 0.000286087510176003, -0.020040467381477356, -0.029722100123763084, -0.016842948272824287, -0.034353673458099365, -0.07932363450527191, 0.03030124120414257 ], [ -0.10204287618398666, -0.008088729344308376, -0.0118712792173028, 0.11562184989452362, 0.01014383789151907, -0.12020894140005112, 0.03467831015586853, 0.05984649434685707, -0.012706486508250237, 0.106559157371521, 0.049972981214523315, 0.02596456930041313, -0.07615009695291519, 0.01075754500925541, 0.025195598602294922, -0.17616118490695953, -0.040839504450559616, 0.13021773099899292, -0.061818771064281464, -0.02353087067604065, 0.016990380361676216, 0.07330319285392761, -0.04886794090270996, 0.05784911289811134, -0.03556215390563011, 0.23685325682163239, 0.6407221555709839, -0.10358147323131561, 0.06774327903985977, -0.07717033475637436, -0.2544534504413605, 0.3824143409729004, 0.3117104172706604, -0.1995951384305954, -0.31277909874916077, 0.2690069079399109, -0.017686299979686737, -0.028017546981573105, 0.0028745420277118683, -0.038207218050956726, 0.07780726999044418, -0.06684273481369019, 0.07587195187807083, 0.0013493584701791406, -0.011993312276899815, 0.12963871657848358, 0.045552849769592285, 0.026788676157593727 ], [ -0.019033119082450867, 0.041453465819358826, 0.022784564644098282, 0.04424155503511429, 0.018716298043727875, -0.08443690836429596, -0.05151226744055748, 0.03541351109743118, 0.03333032503724098, -0.0023380497004836798, 0.03580097109079361, -0.005257689859718084, -0.04381934180855751, 0.0720822885632515, -0.030158666893839836, -0.03026004694402218, -0.0022760212887078524, -0.12203273922204971, -0.061329446732997894, 0.009529082104563713, 0.07395824044942856, -0.0008013831102289259, 0.031227584928274155, 0.0305965393781662, 0.4512558877468109, -0.264207124710083, 0.00037807560875080526, -0.15876039862632751, 0.014644665643572807, -0.13844947516918182, 0.2868516147136688, -0.4342450201511383, 0.266605019569397, 0.17747153341770172, 0.3647651970386505, -0.3260992765426636, -0.009145485237240791, 0.03071029670536518, 0.025670047849416733, 0.01071944274008274, 0.03943467512726784, -0.03764193877577782, -0.0038499715737998486, 0.06749791651964188, 0.040306102484464645, 0.023346811532974243, 0.03968048095703125, -0.0023260382004082203 ], [ 0.028820373117923737, -0.15549825131893158, -0.08275093883275986, 0.04465259611606598, 0.02295120805501938, -0.15962737798690796, -0.024931281805038452, 0.00044077725033275783, -0.0665397122502327, -0.07732965052127838, -0.11310312896966934, -0.08153320848941803, 0.03469299525022507, -0.08560243993997574, -0.0015893862582743168, -0.04210369661450386, 0.07477640360593796, -0.12379424273967743, 0.013534878380596638, 0.22499969601631165, -0.04302450641989708, -0.18596956133842468, -0.09137720614671707, -0.05108800530433655, 0.019652029499411583, 0.4670862853527069, 0.3024439811706543, -0.29388704895973206, -0.08350888639688492, -0.05714863911271095, -0.3629418611526489, -0.11729609966278076, -0.29326140880584717, 0.12060926109552383, -0.12440314888954163, -0.2895152270793915, 0.010647282935678959, -0.16823212802410126, -0.09827838838100433, 0.003767287125810981, -0.0004781878087669611, -0.0917012020945549, -0.07186886668205261, 0.09979111701250076, -0.08722002059221268, -0.13202591240406036, -0.11409639567136765, -0.08364791423082352 ], [ 0.022941015660762787, 0.09413576871156693, -0.032670021057128906, -0.12206535786390305, 0.015534382313489914, 0.20875439047813416, 0.07650471478700638, 0.0768689289689064, -0.00029186217579990625, -0.07806680351495743, 0.03906555101275444, 0.0053060841746628284, -0.03437412902712822, 0.13308505713939667, 0.033671144396066666, 0.052591513842344284, 0.014981459826231003, -0.024816740304231644, 0.08277340233325958, 0.07681667059659958, -0.05792652815580368, 0.0626036524772644, 0.04077454283833504, -0.05051802098751068, 0.07286728173494339, -0.3154820203781128, 0.35106348991394043, 0.4169175624847412, -0.0008731710840947926, 0.5395818948745728, -0.2062831073999405, -0.059440720826387405, 0.02677965722978115, -0.2571689486503601, 0.21911874413490295, -0.06484010815620422, -0.00917773600667715, 0.08583217859268188, -0.03520501032471657, 0.038707755506038666, 0.005562137812376022, 0.11912722140550613, -0.010728304274380207, 0.12060315907001495, 0.002989076543599367, -0.031573984771966934, 0.04331955686211586, -0.00040015747072175145 ], [ -0.0834246426820755, 0.040134117007255554, 0.004651371389627457, 0.014184198342263699, -0.057501357048749924, 0.03173866495490074, 0.0052817403338849545, -0.05222273990511894, -0.08152566105127335, -0.013926135376095772, 0.03573121875524521, -0.002214024541899562, -0.06242382898926735, -0.003464262466877699, 0.005072957836091518, 0.10622959583997726, -0.03439037874341011, 0.0339057557284832, -0.0015704019460827112, 0.044501323252916336, -0.0993126854300499, -0.023647038266062737, 0.12393776327371597, 0.0002001540269702673, 0.1582208126783371, -0.2932649254798889, 0.7291964292526245, -0.022980421781539917, -0.5515120029449463, -0.18896536529064178, 0.02416442520916462, -0.09977369010448456, -0.2666739821434021, 0.07306834310293198, 0.4306437373161316, 0.3310043215751648, -0.07436531037092209, 0.01633746735751629, 0.005489571485668421, -0.03308270871639252, -0.053092338144779205, 0.05220922455191612, -0.01324423961341381, -0.08853582292795181, -0.09445607662200928, -0.057199910283088684, 0.03926706314086914, -0.018768925219774246 ] ], [ 0.41986119747161865, 0.6914668083190918, 1.219938039779663, 0.4047103524208069, 0.191206693649292, 0.3505482077598572, 0.31509122252464294, 1.021235466003418, 0.24655281007289886, 0.3424639403820038, 0.5017417669296265, 0.8069003820419312, 0.4996081590652466, 0.47252997756004333, 0.020340830087661743, 0.9144073724746704, 0.17965619266033173, 0.5910162925720215, 0.6207900643348694, 0.13599640130996704, 0.745627760887146, 0.7058007717132568, 0.43212586641311646, 0.42299389839172363, 0.17080341279506683, 0.012113343924283981, 0.07701905071735382, 0.07245365530252457, -0.11601302027702332, -0.08694203943014145, -0.00744415819644928, -0.12086378037929535, -0.04483747482299805, -0.17769338190555573, 0.004657164216041565, -0.03556704893708229, 0.45678144693374634, 0.8241495490074158, 1.2722725868225098, 0.5486082434654236, 0.40375155210494995, 0.5388411283493042, 0.9025862812995911, 0.8596727848052979, 0.5709847211837769, 0.6245560646057129, 0.6815146207809448, 0.8776478171348572 ] ] }, { "type": "dense", "activation": "", "shape": [ null, null, 1 ], "weights": [ [ [ -0.17564375698566437 ], [ 0.0927455946803093 ], [ 0.8920843601226807 ], [ -0.17358806729316711 ], [ 0.33243975043296814 ], [ -0.17394134402275085 ], [ -0.3798992931842804 ], [ 0.6587021946907043 ], [ -0.15090827643871307 ], [ -0.25001922249794006 ], [ -0.47294777631759644 ], [ -0.0821617990732193 ] ], [ 0.007024657446891069 ] ] } ], "input_batch": [ 5.0101938541047275e-05, 4.403779894346371e-05, 4.544026523944922e-06, 9.248426067642868e-05, 4.985023770132102e-05, 7.639748218934983e-05, 1.1646422535704914e-05, 3.2673600799171254e-05, 5.8096007705898955e-05, 4.980198718840256e-05, 5.2941046305932105e-05, -3.758729508263059e-05, 7.047803228488192e-05, 3.131894118268974e-05, 6.36052354821004e-05, 4.4816846639150754e-05, 5.765173409599811e-05, 3.968120654462837e-05, 4.71033199573867e-05, 8.451977191725746e-05, 0.0001424822403350845, 3.704024129547179e-05, 0.0001210898844874464, 0.00014178166748024523, 9.428690827917308e-05, 0.00014591205399483442, 0.00010281158029101789, 0.00016942362708505243, 0.00011270843242527917, 0.00011328673281241208, 0.00011392868327675387, 5.2565188525477424e-05, 9.425842290511355e-05, 7.820327300578356e-05, 8.022751717362553e-05, 6.0538655816344544e-05, 9.873679664451629e-05, 0.0001416476006852463, 9.619435877539217e-05, 7.445488881785423e-05, 0.00011605871259234846, 0.00018042308511212468, 0.00013096204202156514, 0.0001700874709058553, 0.00016448793758172542, 0.00024075245892163366, 0.00022809975780546665, 0.00024332260363735259, 0.00023278541630133986, 0.00022443183115683496, 0.00022916491434443742, 0.00016848949599079788, 0.00025641487445682287, 0.0002431055618217215, 0.000288907322101295, 0.0003061012248508632, 0.0003011912340298295, 0.00030754233011975884, 0.00022170018928591162, 0.00026731088291853666, 0.0002826956333592534, 0.00019951521244365722, 0.0002817841013893485, 0.00026845725369639695, 0.0002037945669144392, 0.00030353700276464224, 0.00030615832656621933, 0.0002867323055397719, 0.0002425622078590095, 0.0002883427659980953, 0.0002600216830614954, 0.0002188907819800079, 0.00024650470004417, 0.0002512931532692164, 0.000254186918027699, 0.00022818270372226834, 0.00027404967113398015, 0.00021974097762722522, 0.00029713238473050296, 0.0002555273240432143, 0.0002663782215677202, 0.00029488716972991824, 0.00023231731029227376, 0.0002977869880851358, 0.0002604062610771507, 0.00023708176740910858, 0.0002682078629732132, 0.00021997562726028264, 0.00022771171643398702, 0.00021164549980312586, 0.0002625693450681865, 0.00022531893046107143, 0.0001949950965354219, 0.0002361397200729698, 0.0002313496224815026, 0.0002763973316177726, 0.00027595064602792263, 0.0002292304125148803, 0.00019568574498407543, 0.0002719945914577693, 0.0002953834773506969, 0.00029228863422758877, 0.0002472852938808501, 0.00027586991200223565, 0.0001787705987226218, 0.00028375661349855363, 0.0002461085969116539, 0.0002366666158195585, 0.0003060567833017558, 0.0002626242348924279, 0.00024621342890895903, 0.00017589166236575693, 0.00023634493118152022, 0.00014270588872022927, 0.00019889409304596484, 0.0001796072319848463, 0.00013938546180725098, 0.00014609868230763823, 0.00018390522745903581, 0.00020493616466410458, 0.0002398874785285443, 0.00015178012836258858, 0.00026407212135381997, 0.00022558194177690893, 0.00023954511561896652, 0.00023563984723296016, 0.0002502354618627578, 0.0003012792731169611, 0.00021346159337554127, 0.00025436942814849317, 0.00020121410489082336, 0.00027777490322478116, 0.00024064291210379452, 0.00020409125136211514, 0.00014294141146820039, 0.00019741513824556023, 0.00020836123439949006, 0.00016266907914541662, 0.00020177822443656623, 0.00019953955779783428, 0.00014071808254811913, 0.00013372440298553556, 0.00014817823830526322, 0.00020477091311477125, 0.00014493876369670033, 0.00016002432676032186, 0.0001447411923436448, 0.0002142848097719252, 0.00018128221563529223, 0.00014992784417700022, 0.00020936323562636971, 0.00015343764971476048, 0.00013012567069381475, 0.00013577440404333174, 0.00021580980683211237, 0.00016054976731538773, 0.00014444990665651858, 0.00023047771537676454, 0.000192012419574894, 0.00016742575098760426, 0.00018978732987307012, 0.00020434909674804658, 0.0002806541451718658, 0.00020444605615921319, 0.00023443831014446914, 0.00015422598517034203, 0.0002187114441767335, 0.00020403938833624125, 0.0001782214967533946, 0.0002823632094077766, 0.0002046406880253926, 0.00022435504070017487, 0.0001798514131223783, 0.0001230514608323574, 0.0002421946992399171, 0.0002204798220191151, 0.000150456209667027, 0.00014558348630089313, 0.0001839520555222407, 0.00016227364540100098, 0.0001327666686847806, 0.00015385387814603746, 0.00012633617734536529, 0.00013612904876936227, 0.00010652266792021692, 0.00015899859135970473, 0.00018005781748797745, 0.0001249489578185603, 8.432273170910776e-05, 0.00013108851271681488, 0.0001192673880723305, 0.00013042418868280947, 0.00013643960119225085, 0.0001628628233447671, 4.0094480937113985e-05, 0.0001606491714483127, 6.099397796788253e-05, 7.02177276252769e-05, 0.00011950225598411635, 7.527409616159275e-05, 0.00012104406050639227, 1.4836364243819844e-05, 6.834090163465589e-05, 7.153691694838926e-05, 0.0001395656872773543, 0.00010320101137040183, 0.00011996673129033297, 0.00010800284508150071, 7.8606914030388e-05, 7.913471199572086e-05, 7.558231300208718e-05, 5.1476403314154595e-05, 5.895913272979669e-05, 8.000171510502696e-05, 0.00014351910795085132, 3.293247573310509e-05, 0.00011742417700588703, 8.95703342393972e-05, 5.024818892707117e-05, 0.00011877338693011552, 0.00011695581633830443, 0.00017003488028421998, 0.00012164528016000986, 0.00012799487740267068, 0.00015952278045006096, 0.00016870796389412135, 0.0001531044254079461, 0.0001536767085781321, 0.00015085568884387612, 0.00011622095917118713, 0.00017930027388501912, 0.00020399517961777747, 0.00011335371527820826, 0.00015964219346642494, 0.0001338738074991852, 0.00017098878743126988, 0.00018934920080937445, 0.00019825861090794206, 0.00014456741337198764, 0.000195481872651726, 0.00026851618895307183, 0.00018217846809420735, 0.0001967430580407381, 0.00021027110051363707, 0.0001603123382665217, 0.00022397101565729827, 0.00021187907259445637, 0.000197894565644674, 0.00018310082668904215, 0.00019277137471362948, 0.00015628816618118435, 0.00010380471940152347, 0.00022309772612061352, 0.00011939991236431524, 0.00010427137021906674, 0.00019752935622818768, 0.00020908433361910284, 0.0001819486788008362, 0.0001486243272665888, 0.00023305143986362964, 0.0001733141834847629, 0.00015237739717122167, 0.00023448248975910246, 0.00017824563838075846, 0.0002231832913821563, 0.00020025897538289428, 0.00020835931354667991, 0.00023872994643170387, 0.00025488462415523827, 0.0002194218395743519, 0.00024150525860022753, 0.00030578169389627874, 0.0002237766602775082, 0.0002519320114515722, 0.00027712268638424575, 0.00028303242288529873, 0.00029813885339535773, 0.00022227360750548542, 0.00021932536037638783, 0.00024773928453214467, 0.00025334776728414, 0.00026969806640408933, 0.00024086238408926874, 0.00025847487268038094, 0.00019199939561076462, 0.0002583474852144718, 0.00020943218260072172, 0.0002373833121964708, 0.0002599552972242236, 0.00018605840159580112, 0.00022549324785359204, 0.0002034428616752848, 0.0002442196710035205, 0.00026792960125021636, 0.00024906182079575956, 0.00022711491328664124, 0.00021450409258250147, 0.00018729630392044783, 0.00025219289818778634, 0.0001744886249070987, 0.00021881613065488636, 0.00019233683997299522, 0.00020480829698499292, 0.00021892644872423261, 0.00021004329028073698, 0.0001898693444672972, 0.00023100322869140655, 0.0002326121466467157, 0.00016635694191791117, 0.0002412485337117687, 0.00016569686704315245, 0.00029528469895012677, 0.0002640126331243664, 0.00020420238433871418, 0.00016842552577145398, 0.0001656562671996653, 0.0002484059368725866, 0.00021648714027833194, 0.0002171923260902986, 0.00020246578787919134, 0.00017159251729026437, 0.00023806955141481012, 0.00022084145166445524, 0.00016079540364444256, 0.00021026558533776551, 0.00021713404566980898, 0.00021620096231345087, 0.00020960865367669612, 0.00022510532289743423, 0.00022361872834153473, 0.00024133575789164752, 0.00023942212283145636, 0.00019706327293533832, 0.0001726079935906455, 0.00021408619068097323, 0.00022614779300056398, 0.00012959781452082098, 0.00016803738253656775, 0.0001556210918352008, 0.00013788578507956117, 0.00017137137183453888, 0.000154380890307948, 0.00021415487572085112, 0.00013137160567566752, 0.00012865055759903044, 0.00016355796833522618, 9.940739255398512e-05, 0.00016161739767994732, 0.00012046897609252483, 9.262892854167148e-05, 0.0001275939284823835, 8.924127178033814e-05, 0.0001387675292789936, 5.445045462693088e-05, 0.00011760900088120252, 0.00012624745431821793, 0.00010170593304792419, 0.00017045678396243602, 0.0001602496486157179, 0.0001509588328190148, 9.836388926487416e-05, 0.00013200752437114716, 0.0001054109598044306, 0.00014495996583718807, 0.0001494072494097054, 0.00012001164577668533, 0.00019853209960274398, 0.00016130224685184658, 0.00015702220844104886, 0.00018803621060214937, 0.00013624025450553745, 0.0002140622236765921, 0.00016302027506753802, 0.00013717958063352853, 0.00013580647646449506, 0.0001563861733302474, 0.00011504402937134728, 0.00014298525638878345, 0.0002274178114021197, 0.00018302613170817494, 0.0001956017076736316, 0.000219493915210478, 0.0002205864730058238, 0.00022015735157765448, 0.00026601957506500185, 0.0002276552258990705, 0.0002375786571064964, 0.00021090437076054513, 0.00017923861742019653, 0.0002276781015098095, 0.00020262367615941912, 0.00019324975437484682, 0.0001828729291446507, 0.00017218061839230359, 0.00019482111383695155, 0.0001476633915444836, 0.00019010991672985256, 0.00017204243340529501, 0.00011131490464322269, 7.062713848426938e-05, 9.788328316062689e-05, 0.00018091619131155312, 0.00013720348943024874, 0.00017357316392008215, 0.00015304404951166362, 0.00013334801769815385, 0.00020478616352193058, 0.0001865327067207545, 0.00022128180717118084, 0.00018456812540534884, 0.0001418754254700616, 0.00024463312001898885, 0.00018214297597296536, 0.00020776806923095137, 0.0002539594715926796, 0.00017428987484890968, 0.00016992217570077628, 0.0001857826573541388, 0.00025193457258865237, 0.00014873742475174367, 0.0001893722073873505, 0.00022087972320150584, 0.00017370203568134457, 0.000227023585466668, 0.0002178074500989169, 0.0002326824323972687, 0.00022441986948251724, 0.00021063192980363965, 0.0002804055984597653, 0.0003045604971703142, 0.00023863697424530983, 0.0002501190174371004, 0.00018408638425171375, 0.00026309251552447677, 0.00026102966512553394, 0.0002858798543456942, 0.00027813800261355937, 0.00020923510601278394, 0.0002202023460995406, 0.00024124365882016718, 0.0002470032777637243, 0.0002127685147570446, 0.00021132227266207337, 0.00017354196461383253, 0.00019272114150226116, 0.00015062947932165116, 0.00016955258615780622, 0.00018685507529880852, 0.00012941235036123544, 0.00013726254110224545, 0.00015281100058928132, 5.4084768635220826e-05, 0.00017340084013994783, 0.00014980314881540835, 0.00016090278222691268, 0.0001716682454571128, 0.00012725427222903818, 0.0001743997709127143, 0.00014571058272849768, 0.00020036475325468928, 0.00013165529526304454, 0.00018469801580067724, 0.00018590343825053424, 8.225956844398752e-05, 0.00014930561883375049, 0.0001756897836457938, 0.00022372760577127337, 0.0002310918498551473, 0.00016597886860836297, 0.00016891793347895145, 0.00019984194659627974, 0.00022110031568445265, 0.00016740208957344294, 0.00021020835265517235, 0.0001628933969186619, 0.00015784915012773126, 0.000149566272739321, 0.0001576487993588671, 0.00014289618411567062, 0.00012962077744305134, 0.0002723340876400471, 0.00024719181237742305, 0.00018180065671913326, 0.00019951829744968563, 0.00015458368579857051, 0.0001483652158640325, 0.0001808662636904046, 0.00016124149260576814, 0.00017509795725345612, 0.0001298697607126087, 0.00015708396676927805, 0.00013553089229390025, 0.0001451959542464465, 0.0001589746680110693, 0.00016557083290535957, 0.00013667959137819707, 0.00014402286615222692, 0.00016275985399261117, 9.139136091107503e-05, 9.928435611072928e-05, 7.222394197015092e-05, 9.777015657164156e-05, 0.00013230073091108352, 0.00011437909415690228, 0.00012415256060194224, 0.00014493789058178663, 0.00011888086010003462, 0.00011165155592607334, 0.0001824290957301855, 0.00017658283468335867, 0.00011146574252052233, 0.00016241274715866894, 0.00013791336095891893, 0.000161350064445287, 0.0001524286053609103, 0.00012829716433770955, 0.00018596510926727206, 0.00017105479491874576, 0.00017878273501992226, 0.0001457852340536192, 0.0001626552257221192, 0.00011239712330279872, 0.00010886874224524945, 0.00010928671690635383, 7.903680671006441e-05, 9.309862070949748e-05, 0.00010272152576362714, 8.46753318910487e-05, 7.362389442278072e-05, 6.433997623389587e-05, 1.276913008041447e-05, 6.759226380381733e-05, 8.018787048058584e-05, 4.9018057325156406e-05, 1.5798891581653152e-06, 6.793105421820655e-05, 6.70782828819938e-05, 0.0001171545300167054, 0.00011496900697238743, 0.00010263211152050644, 0.00013411995314527303, 6.335209036478773e-05, 8.605173206888139e-05, 9.633397712605074e-05, 6.265985575737432e-05, 5.516051169252023e-05, 7.084458047756925e-05, 7.516171172028407e-05, 8.139017154462636e-05, 0.00011020732927136123, 4.1380171751370654e-05, 5.203152250032872e-05, 0.00011992471263511106, 7.288024789886549e-05, 7.875238952692598e-05, 7.191769691416994e-05, 8.977774996310472e-05, 8.191572123905644e-05, 0.00012751358735840768, 0.00011723882926162332, 0.00010644645954016596, 9.663249511504546e-05, 4.9097929149866104e-05, 8.251699182437733e-05, 0.00012472116213757545, 5.588880958384834e-05, 0.00011265109060332179, 0.00014560150157194585, 5.109360790811479e-05, 0.000100315737654455, 0.00014832041051704437, 8.930546755436808e-05, 8.777967741480097e-05, 0.00014271735562942922, 8.775402238825336e-05, 0.00014654637197963893, 0.00015828313189558685, 0.00013957802730146796, 0.00012115546269342303, 0.00011128078040201217, 0.00014765448577236384, 0.00016093661542981863, 0.00017144379671663046, 0.00017461695824749768, 0.00017035844211932272, 0.00020873088215012103, 0.0001359315647277981, 0.00018385433941148221, 0.0001890218409243971, 0.00013862861669622362, 0.00023724508355371654, 0.00015641783829778433, 0.0002660032478161156, 0.00014417496277019382, 0.00017580983694642782, 0.0001474751770729199, 0.00013184438284952193, 0.00023569496988784522, 0.00015754299238324165, 0.00021947863569948822, 0.0001820502511691302, 0.0001658030814724043, 0.00017093162750825286, 0.000150395164382644, 0.00015946500934660435, 0.0001583811390446499, 0.00010021219350164756, 0.0001597660593688488, 0.00015984215133357793, 0.00018719870422501117, 0.00011653214460238814, 0.00015787062875460833, 0.00017843629757408053, 0.00017056663637049496, 0.0001779660815373063, 0.00011307920794934034, 0.00012674738536588848, 0.00011875583732035011, 0.00015361266559921205, 0.00010695485980249941, 0.00012691746815107763, 0.00016545770631637424, 0.00011581632134038955, 0.00014513189671561122, 9.674923057900742e-05, 6.64358158246614e-05, 0.0001344147021882236, 0.00018255192844662815, 0.0001773674739524722, 0.00011683491902658716, 0.00020387255062814802, 0.00011757289030356333, 0.0001461268257116899, 0.00018324324628338218, 0.00010388410737505183, 0.00012326067371759564, 0.00017189193749800324, 0.00017864664550870657, 0.00015546506620012224, 0.00021142614423297346, 0.0001537357602501288, 0.00010399759048596025, 0.00017992823268286884, 0.00014984435983933508, 0.00016064585361164063, 0.0002311853604624048, 0.00016496775788255036, 0.00018420573906041682, 0.00018937865388579667, 0.00021671652211807668, 0.0001445879170205444, 0.00017053852207027376, 0.00019959289056714624, 8.129849447868764e-05, 0.00017052383918780833, 0.000152151842485182, 0.00018873506633099169, 0.00017185078468173742, 0.00021746341371908784, 0.00020256060815881938, 0.00013805186608806252, 0.00016674476501066238, 0.00012687145499512553, 0.00017002856475301087, 0.00015130493557080626, 0.0001226231106556952, 0.00018480929429642856, 0.00015462674491573125, 0.00019752034859266132, 0.00020151080389041454, 0.0001980285014724359, 0.0002519659174140543, 0.0001822395424824208, 0.00024147919612005353, 0.00019280545529909432, 0.00024154418497346342, 0.00022940074268262833, 0.00024385655706282705, 0.0002823022659868002, 0.00024647469399496913, 0.0001738431747071445, 0.00021722016390413046, 0.0001932860177475959, 0.00020725425565615296, 0.0002218047739006579, 0.0001878336479421705, 0.0002463726559653878, 0.00019141947268508375, 0.0002361011429456994, 0.00022407584765460342, 0.00020556770323310047, 0.00019086332758888602, 0.00026861895457841456, 0.00018211585120297968, 0.000251770339673385, 0.00023665055050514638, 0.00024214450968429446, 0.00021909127826802433, 0.000177142777829431, 0.0002841038512997329, 0.0001870028645498678, 0.0002223742485512048, 0.00020680559100583196, 0.00016742057050578296, 0.0002209613157901913, 0.00015070401423145086, 0.0001861285709310323, 0.000166572819580324, 0.00011972558422712609, 0.00022302176512312144, 0.00014095324149820954, 0.0001751356030581519, 0.0001340474555036053, 0.00017890660092234612, 0.0001404174545314163, 0.00020287588995415717, 0.0001957249187398702, 0.000106518404209055, 0.0002014843630604446, 0.0001952952443389222, 0.00018511626694817096, 0.00018599853501655161, 0.0001986696879612282, 0.000198017674847506, 0.0002436206123093143, 0.0002361528022447601, 0.00016603199765086174, 0.00020965210569556803, 0.0002325291425222531, 0.0002121067518601194, 0.0003041249583475292, 0.000265853333985433, 0.00023426805273629725, 0.00017758848844096065, 0.0002338362392038107, 0.000255142105743289, 0.00020055736240465194, 0.00022805180924478918, 0.00023587472969666123, 0.0001896944741019979, 0.0002401877864031121, 0.00022286058811005205, 0.00022850444656796753, 0.0001882169599412009, 0.00027430220507085323, 0.0002096147945849225, 0.00010613289487082511, 0.00019613912445493042, 0.00018635521701071411, 0.00017573886725585908, 0.00016793202667031437, 0.00017934921197593212, 0.00014112889766693115, 0.00013797728752251714, 0.00017669517546892166, 0.00019692390924319625, 0.0001760780723998323, 0.00018092128448188305, 0.00020441837841644883, 0.0001297954295296222, 0.0001073053790605627, 0.00018152635311707854, 8.764181984588504e-05, 0.0001491323346272111, 0.00018489423382561654, 0.00016539139323867857, 0.0001316009002039209, 0.00016969152784440666, 0.0001791845861589536, 0.00017845231923274696, 0.00020811447757296264, 0.00013871437113266438, 0.00018591790285427123, 0.00016760811558924615, 0.00018054542306344956, 0.00020515687356237322, 0.0001507002452854067, 0.00019048764079343528, 0.00016016679001040757, 0.00015816453378647566, 0.0001868279796326533, 0.00019012879056390375, 0.00024069695791695267, 0.00020608479098882526, 0.00021038566774223, 0.0002482520358171314, 0.0002145075413864106, 0.0002302073553437367, 0.00023202259035315365, 0.00028091255808249116, 0.00026208919007331133, 0.0002721283526625484, 0.0001766591885825619, 0.00020649511134251952, 0.00026548648020252585, 0.00016691253404133022, 0.0001378948800265789, 0.00013951527944300324, 0.00014890958846081048, 0.00013812094402965158, 0.0001748547947499901, 0.0001903634110931307, 0.0001563732512295246, 4.3592899601208046e-05, 0.00010497760376892984, 0.000113520713057369, 0.0001246767642442137, 0.00014131255738902837, 0.00010327769996365532, 7.318930875044316e-05, 0.00018881224968936294, 0.00016583809338044375, 0.000128636893350631, 0.00018436201207805425, 0.00015533129044342786, 0.00017118718824349344, 0.0001470042043365538, 0.000224979521590285, 0.00017698376905173063, 0.0002249876706628129, 0.00018456633551977575, 0.00018978463776875287, 0.00017650346853770316, 0.00017717425362206995, 0.00015399328549392521, 0.00018327920406591147, 0.00019052703282795846, 9.203343506669626e-05, 0.00017020152881741524, 0.0001698680134722963, 0.0002670681569725275, 0.0001808615488698706, 0.00022156150953378528, 0.00018454868404660374, 0.00026376714231446385, 0.0002289155381731689, 0.0002083430445054546, 0.0003274292394053191, 0.00022681959671899676, 0.000276285718427971, 0.00023354806762654334, 0.00024976025451906025, 0.00022053337306715548, 0.0002603032917249948, 0.0002475018263794482, 0.00028767972253262997, 0.00032327481312677264, 0.00028340501012280583, 0.0002830300072673708, 0.0002696019655559212, 0.00019946218526456505, 0.0002784183307085186, 0.00033004049328155816, 0.00024462290457449853, 0.00024976316490210593, 0.00022591800370719284, 0.00027470572968013585, 0.0002414839545963332, 0.0002612242824397981, 0.00022679209359921515, 0.0002739105839282274, 0.00024144518829416484, 0.0002556169347371906, 0.00022808068024460226, 0.0001845427614171058, 0.00017992033099289984, 0.0001992565084947273, 0.00023769012477714568, 0.00014847733837086707, 0.00014920865942258388, 0.00020900646632071584, 0.0002534097875468433, 0.00016757677076384425, 0.00026579140103422105, 0.00023428478743880987, 0.00015714095206931233, 0.00018257275223731995, 0.00017565645975992084, 0.0002161152078770101, 0.00021864329755771905, 0.00021429556363727897, 0.00024334312183782458, 0.0001740320003591478, 0.00021161317999940366, 0.0001889533450594172, 0.00015714482287876308, 0.00021014326193835586, 0.00017122663848567754, 0.0001613452477613464, 0.00022261902631726116, 0.00023037531354930252, 0.00015120369789656252, 0.00019942244398407638, 0.0001597629307070747, 0.00022577399795409292, 0.0001752456446411088, 0.0001874005829449743, 0.0002063519204966724, 0.00015051153604872525, 0.00023651542142033577, 0.00018763169646263123, 0.00020596983085852116, 0.00017012310854624957, 0.00019006528600584716, 0.00022946677927393466, 0.0001858053874457255, 0.0002531774516683072, 0.0002588710922282189, 0.00022454457939602435, 0.0002454221830703318, 0.0001585773570695892, 0.0002315961173735559, 0.0001559033989906311, 0.00017768006364349276, 0.00013432448031380773, 0.00019835770945064723, 0.00021294690668582916, 0.00014023738913238049, 0.00024602952180430293, 0.00015879416605457664, 0.00016949565906543285, 0.00018789534806273878, 0.0001612060732441023, 0.00020528625464066863, 0.00017340901831630617, 0.00015052803792059422, 0.00018847084720619023, 0.00023488793522119522, 0.0002792860905174166, 0.00020732975099235773, 0.00020810218120459467, 0.00012743512343149632, 0.00025169612490572035, 0.00015349057503044605, 0.0002581487933639437, 0.00023596760001964867, 0.00020069931633770466, 0.0002159304276574403, 0.0002175965637434274, 0.0002561924047768116, 0.00017000931256916374, 0.00022882687335368246, 0.00022937104222364724, 0.0002041166735580191, 0.00020754564320668578, 0.00017434493929613382, 0.00020170226343907416, 0.00021693900635000318, 0.0001993981859413907, 0.00025593582540750504, 0.00017214554827660322, 0.00019266809977125376, 0.00018636534514371306, 0.0002359378559049219, 0.00019099735072813928, 0.00021653302246704698, 0.0002428185980534181, 0.00022754012024961412, 0.00022859637101646513, 0.00014130253111943603, 0.00014284285134635866, 0.00021845557785127312, 0.00015114930283743888, 0.00023234578839037567, 0.00016521885117981583, 0.00014886866847518831, 0.00018437489052303135, 0.0001050702267093584, 0.00020338158356025815, 0.00016059349582064897, 0.00015494858962483704, 0.000150795400259085, 0.00016436366422567517, 0.00012312633043620735, 0.0001694580860203132, 0.00016490013513248414, 0.00012352452904451638, 0.00018422064022161067, 0.00019858764426317066, 0.0001580675452714786, 0.00014243680925574154, 0.00015467895718757063, 0.00019170198356732726, 0.00019867157971020788, 0.00018229804118163884, 0.00017652536917012185, 0.00023268985387403518, 0.00022686818556394428, 0.00022635138884652406, 0.000235515515669249, 0.00017618274432606995, 0.00018426832684781402, 0.00018068884673994035, 0.00023224586038850248, 0.00024681867216713727, 0.00018519864534027874, 0.00022472270939033478, 0.0002380557416472584, 0.00020921342365909368, 0.0002741241187322885, 0.00020049103477504104, 0.00025702459970489144, 0.0002664471394382417, 0.00018089589138980955, 0.0001956779888132587, 0.00021076801931485534, 0.0002414622576907277, 0.00022958706540521234, 0.0002000384556595236, 0.00020332435087766498, 0.00015470580547116697, 0.00019962260557804257, 0.00016526917170267552, 0.00016550259897485375, 0.00016753918316680938, 0.0002077696699416265, 0.000144634599564597, 0.00017657205171417445, 0.00018593033018987626, 0.00016246398445218801, 0.0002579265565145761, 0.00014972455392125994, 0.00023856604821048677, 0.0001580814569024369, 0.0002269403194077313, 0.00020666008640546352, 0.0001486260152887553, 0.0001626370067242533, 0.00013776830746792257, 0.00010923994705080986, 9.503457113169134e-05, 0.00014990803902037442, 0.0002034244389506057, 0.0001208396497531794, 0.00014472015027422458, 0.0001442449720343575, 0.00010949662828352302, 0.00013493873120751232, 0.00011639261356322095, 0.00016710023919586092, 0.00013790967932436615, 0.00019741560390684754, 0.0001159840467153117, 0.0001868606050265953, 0.00020715626305900514, 0.00018673315935302526, 0.0001713481906335801, 0.00015087889914866537, 0.00018835871014744043, 0.0001602328848093748, 0.0001571303728269413, 0.0001854717411333695, 0.0001745257613947615, 0.00018047190678771585, 0.00014584539167117327, 0.00013916284660808742, 8.36536637507379e-05, 7.22703553037718e-05, 0.00011009180889232084, 0.00011989915947197005, 5.92320466239471e-05, 0.00012155638250987977, 0.00011874181655002758, 7.855358853703365e-05, 0.00014257810835260898, 0.0001003565703285858, 0.00015738459478598088, 0.00010229388863081113, 0.00020083505660295486, 0.00013293557276483625, 0.0001100100707844831, 0.00015911064110696316, 0.00012104359484510496, 0.00020822188525926322, 0.00015311547031160444, 0.00015463627642020583, 0.00014429670409299433, 0.00011762764188461006, 0.00016071209392976016, 0.0001543635007692501, 0.0001656051172176376, 0.00010012719576479867, 0.00014567424659617245, 0.00011654105765046552, 0.00012461708683986217, 0.00017486800788901746, 0.00010856660082936287, 6.770322943339124e-05, 0.0001211354392580688, 0.00016014438006095588, 8.84743858478032e-05, 0.00013640470569953322, 0.00010646563896443695, 0.00011851751332869753, 0.00014922409900464118, 8.327909745275974e-05, 0.00011630177323240787, 0.00018970992823597044, 0.0001533892791485414, 0.00011477850785013288, 0.00012174729636171833, 0.0001222537539433688, 0.00011721485498128459, 0.00012102090113330632, 0.00020378765475470573, 0.00015658035408705473, 0.00013316801050677896, 0.00015588881797157228, 0.0001309171930188313, 0.00014295098662842065, 0.00018585543148219585, 0.00015759063535369933, 7.853157876525074e-05, 0.00012208515545353293, 7.332357199629769e-05, 7.621881377417594e-05, 0.00017296393343713135, 1.9830067685688846e-05, 7.707212353125215e-05, 8.632407843833789e-05, 7.380003080470487e-05, 7.886223465902731e-05, -3.1839859730098397e-05, 6.720296369167045e-05, 5.070456609246321e-05, 5.338149276212789e-05, 7.94897732703248e-06, 2.8760430723195896e-05, 7.577457290608436e-05, 4.765588073496474e-06, 2.5434403596591437e-06, 6.869828212074935e-05, 4.968333087163046e-05, 3.440056389081292e-05, 2.2445910872193053e-05, 3.095658394158818e-05, 6.838730041636154e-05, 5.3218456741888076e-05, 1.9200118913431652e-05, 1.291562170990801e-06, 3.919336450053379e-05, 6.2322255871549714e-06, 2.5849771191133186e-05, 3.2490854209754616e-05, 2.8501222914201207e-05, 6.0518941609188914e-05, 0.00011245357745792717, 5.643976328428835e-05, 2.1169154933886603e-05, 3.7234211049508303e-05, -1.1678712326101959e-05, 1.4710378309246153e-05, -7.420149631798267e-05, -5.8643629017751664e-05, 3.229663343518041e-05, 7.66441662563011e-05, 3.413917511352338e-05, 2.183568722102791e-05, 1.788310328265652e-05, 7.923392786324257e-07, 4.1333511035190895e-05, 4.857934982283041e-05, 1.6542703633604106e-06, 1.5605923181283288e-05, 4.665390952141024e-05, -8.765100574237294e-06, 1.1601491678447928e-05, 1.2209725355205592e-05, -2.4953582396847196e-05, 2.785380502245971e-06, -1.7194461179315113e-05, -5.230470924288966e-05, -9.124099597102031e-05, -0.00012820845586247742, 1.142481323768152e-05, -1.3033409231866244e-05, -2.7104904802399687e-05, -2.4479273633915e-05, -3.941666000173427e-05, -7.100648508640006e-05, -6.661478983005509e-05, 3.1967101676855236e-05, 1.8843546058633365e-05, -1.6147499991348013e-05, -2.4667733669048175e-06, 8.3182376329205e-06, 2.79522173514124e-05, -2.731599670369178e-05, -3.016005393874366e-05, 1.7436650523450226e-05, 3.369000069142203e-06, 2.3708053049631417e-05, 1.87788755283691e-05, 1.4674438716610894e-05, 7.124887633835897e-05, -2.1697982447221875e-05, 2.2885034923092462e-05, 4.6746023144805804e-05, -2.3852402591728605e-05, 7.633184577571228e-05, 3.3670941775199026e-05, 0.000149568120832555, 2.4400676920777187e-05, 7.078918861225247e-05, 7.831962284399197e-05, 7.892258872743696e-05, 9.114661952480674e-05, -3.116813786618877e-06, 4.453689689398743e-05, 1.6746462279115804e-05, 4.637018355424516e-05, 9.18326186365448e-05, 9.781587141333148e-05, 5.792998126707971e-05, 5.5328826420009136e-05, 6.291755562415347e-05, 6.038548599462956e-05, 2.3181231881608255e-05, 0.00011313678987789899, 5.7289540563942865e-05, 7.177134102676064e-05, 2.904301800299436e-05, 6.103250780142844e-05, 4.6057575673330575e-05, 2.9951304895803332e-05, 5.9779245930258185e-05, 9.109327947953716e-05, 5.417918146122247e-05, 3.116277582648763e-07, 7.64986762078479e-05, 3.149279336867039e-06, 4.3919109884882346e-05, 4.3379048292990774e-05, 2.7005209631170146e-05, -8.72527471074136e-06, 5.673787745763548e-05, 3.820218626060523e-05, -2.157838207494933e-05, -1.5994611430869554e-06, 5.593219611910172e-05, -1.627360143174883e-05, -1.152634467871394e-05, 5.130356294102967e-05, 2.617076097521931e-05, 9.07893045223318e-05, 4.686194733949378e-05, 5.732389399781823e-05, 6.0470218159025535e-05, 8.666257781442255e-05, 5.472991688293405e-05, 8.995542157208547e-05, 0.00012546460493467748, 4.381201870273799e-05, 0.0001529282017145306, 6.871863297419623e-05, 3.755396755877882e-05, 0.00016725344175938517, 0.00011826843547169119, 0.00013133791799191386, 8.905610593501478e-05, 0.00012635302846319973, 6.280278466874734e-05, -3.352686462676502e-06, 4.635675941244699e-05, 5.6358858273597434e-05, 4.348870425019413e-05, 4.587909279507585e-05, 8.209121733671054e-05, 7.25257268641144e-05, 2.4749751901254058e-05, 0.00012193706061225384, 7.979994552442804e-05, 9.934445552062243e-05, 2.4250975911854766e-05, 6.496873538708314e-06, 0.0001094289036700502, 3.655820546555333e-05, 0.00011452286707935855, 4.9039397708838806e-05, 0.00014571180508937687, 0.00011891079338965937, 0.00012119585881009698, 0.00015074419206939638, 7.844993524486199e-05, 0.00014637941785622388, 0.00012593006249517202, 6.154872971819714e-05, 9.127794328378513e-05, 6.375370139721781e-05, 0.0001050843857228756, 0.0001302266027778387, 8.06683165137656e-05, 8.968741894932464e-05, 4.485501267481595e-05, 6.896600098116323e-05, 6.211862637428567e-05, 6.091714385547675e-05, 5.345867612049915e-05, 7.695025851717219e-05, 0.00020121020497754216, 0.0001301180454902351, 0.00013223179848864675, 6.354666402330622e-05, 0.00010287641634931788, 0.00010967603884637356, 0.00011003424151567742, 0.00011488956079119816, 0.00012400330160744488, 0.00019644909480120987, 7.875560550019145e-05, 0.00018426004680804908, 5.3617772209690884e-05, 6.906892667757347e-05, 8.164013706846163e-05, 0.00013182975817471743, 0.00017231817764695734, 0.00015325527056120336, 0.0001170575778814964, 0.00014302061754278839, 0.00011129482300020754, 0.00012765680730808526, 0.00011281748447800055, 0.00010731614747783169, 9.655891335569322e-05, 2.2262898710323498e-05, 8.918560342863202e-05, 7.526282570324838e-05, 0.00013014582509640604, 4.108843859285116e-05, 0.0001279372227145359, 5.744678492192179e-05, 5.528723340830766e-05, 0.0001238203258253634, 0.00011561477731447667, 6.899643631186336e-05, 6.398856930900365e-05, 5.510697519639507e-05, 0.00011850481678266078, 9.125000360654667e-05, 7.331559754675254e-05, 8.499545219819993e-05, 0.00010925504466285929, 0.00013922508514951915, 8.26726172817871e-05, 0.00014233318506740034, 0.0001457337784813717, 0.00017268731608055532, 0.00015727175923530012, 8.225609781220555e-05, 0.00013135657354723662, 0.0001456333411624655, 9.541587496642023e-05, 7.61026531108655e-05, 0.00013693029177375138, 9.126942313741893e-05, 9.095457789953798e-05, 0.0001897472102427855, 9.280349331675097e-05, 9.741505346028134e-05, 7.45086872484535e-05, 0.00017618371930439025, 9.529374074190855e-05, 0.00010867897799471393, 7.375396671704948e-05, 0.0001248603075509891, 9.442838199902326e-05, 0.0001087113341782242, 0.00012030835205223411, 6.087525252951309e-05, 7.814315176801756e-05, 0.00012701813830062747, 0.00011556440585991368, 7.481100328732282e-05, 0.00010536393529037014, 9.515158308204263e-05, 0.00014458579244092107, 0.00013021517952438444, 0.00013178281369619071, 0.00011419350630603731, 0.00010027489042840898, 9.344077261630446e-05, 0.0001256875111721456, 0.00011064374120905995, 7.849745452404022e-05, 5.7166889746440575e-05, 0.00012893548409920186, 2.6174691811320372e-05, 8.505788719048724e-05, 1.2412742762535345e-05, 0.00013493459846358746, 5.86108690185938e-05, 9.847595356404781e-05, 5.3859945182921365e-05, 4.054792952956632e-05, 0.00016295794921461493, 6.381994171533734e-05, 9.444561146665365e-05, 9.649261482991278e-05, 0.00017808015400078148, 7.47212689020671e-05, 8.0180361692328e-05, 0.00013345603656489402, 0.00010919557098532096, 5.3183845011517406e-05, 9.067499922821298e-05, 0.0001078731584129855, 9.366654558107257e-05, 7.096108311088756e-05, 0.00010967921116389334, 6.744864367647097e-05, 0.00012160180631326512, 9.713754843687639e-05, 9.7215837740805e-05, 0.00011860207450808957, 0.00011651846580207348, 5.4238917073234916e-05, 7.003801147220656e-05, 0.00011519282998051494, 7.602838741149753e-05, 0.00010038630716735497, 4.649035327020101e-05, 7.949368591653183e-05, 0.000103760976344347, 0.0001455548481317237, 0.00012077882274752483, 8.13945516711101e-05, 0.00011029225424863398, 5.768255141447298e-05, 0.00012202061770949513, 0.00013359091826714575, 0.00012368574971333146, 0.00013605502317659557, 0.00010843922791536897, 0.0001533018657937646, 0.00016189145389944315, 8.930162584874779e-05, 1.2455460819182917e-05, 0.0001289711071876809, 8.198604336939752e-05, 9.676874469732866e-05, 8.371754665859044e-05, 9.118320303969085e-05, 0.00011646165512502193, 0.00019205515854991972, 0.0001321520539931953, 0.00012305148993618786, 0.0001335566194029525, 0.00015250542492140085, 0.00018999546591658145, 0.00017243540787603706, 0.0001968193391803652, 0.00015412647917401046, 0.00019978587806690484, 0.00014115979138296098, 0.00020162704458925873, 0.00015959111624397337, 0.0002568989875726402, 0.00020231353119015694, 0.00022463855566456914, 0.00018050754442811012, 0.00022483956126961857, 0.0002487155725248158, 0.00020832169684581459, 0.00022950638958718628, 0.00017008226132020354, 0.00019610649906098843, 0.0002377716009505093, 0.00019732306827791035, 0.00016835321730468422, 0.0002710152475629002, 0.0001853644789662212, 0.00021623133216053247, 0.00018910046492237598, 0.00015718468057457358, 0.0001797434379113838, 0.0002385102561675012, 0.0002052869094768539, 0.00019589165458455682, 0.0001924530661199242, 0.0002637553552631289, 0.00014902561088092625, 0.00018405845912639052, 0.0002433031622786075, 0.00023324275389313698, 0.00021867133909836411, 0.00012146839435445145, 0.00022450796677730978, 0.00016823138867039233, 0.00019723585864994675, 0.0001434702571714297, 0.00019471086852718145, 0.00020523580315057188, 0.00012761475227307528, 0.00017004003166221082, 0.00013996323104947805, 9.285881242249161e-05, 0.00016306780162267387, 0.00020322926866356283, 0.00012253777822479606, 0.00017142282740678638, 0.00020486899302341044, 0.0001315720728598535, 0.00020842305093538016, 0.00021739708608947694, 0.00014387181727215648, 0.0002518438268452883, 0.00019725426682271063, 0.00018878512491937727, 0.00028597991331480443, 0.00018245774845127016, 0.0002452530025038868, 0.00022691178310196847, 0.00024702231166884303, 0.00025753123918548226, 0.00024890797794796526, 0.0002329348644707352, 0.00014036188076715916, 0.00021789735183119774, 0.00018902042938861996, 0.00023070804309099913, 0.0002044731954811141, 0.00022676259686704725, 0.00015859039558563381, 0.00016307223995681852, 0.0002323266671737656, 0.0001464868983021006, 0.00015397308743558824, 0.0001329150254605338, 0.0001245545718120411, 0.00011809173156507313, 0.00016579018847551197, 0.00011515372898429632, 0.0001134221165557392, 0.00011865876149386168, 0.00012103269546059892, 0.00020670954836532474, 0.0001763450854923576, 0.00018393418577034026, 0.00019049769616685808, 0.00018195956363342702, 0.00020196757395751774, 0.0002314592566108331, 0.00014029548037797213, 0.00016921413771342486, 0.00011142507719341666, 0.0001736873236950487, 0.00016798758588265628, 0.00016135862097144127, 0.00023011487792246044, 0.00019850055105052888, 0.00022223546693567187, 0.00015040214930195361, 0.00010878892499022186, 0.00012032399536110461, 0.0001683360169408843, 0.00010194521019002423, 0.00010922731598839164, 0.00011315647134324536, 0.00014906079741194844, 0.00011425020056776702, 0.00013688816397916526, 0.00011956247908528894, 0.00012710549344774336, 0.0001373078121105209, 9.616550232749432e-05, 0.00012374474317766726, 0.0001387390511808917, 0.00011034560884581879, 0.00015106640057638288, 0.00013321336882654577, 0.00013068532280158252, 0.0001238830154761672, 3.5043267416767776e-05, 5.793091986561194e-05, 6.0078134993091226e-05, 6.866654439363629e-05, 6.455856055254117e-05, 0.00010673276119632646, 8.42478548293002e-05, 1.6442976630060002e-05, 4.1696763219079e-05, 8.906947186915204e-05, 1.3742722330789547e-05, 2.585628863016609e-05, 9.801858686842024e-05, 4.721842196886428e-05, 7.442108471877873e-05, 7.457483297912404e-05, 9.555238648317754e-05, 8.735814481042325e-05, 4.24247446062509e-05, 0.000122399753308855, 0.00011844033724628389, 0.0001572426117490977, 0.00011257569713052362, 7.014763104962185e-05, 0.00012215014430694282, 0.0001584010460646823, 0.00018916426051873714, 0.00017135980306193233, 0.00013852526899427176, 7.918728078948334e-05, 0.0001197226665681228, 0.00010744211613200605, 7.324712350964546e-05, 8.564758900320157e-05, 4.234168955008499e-05, 6.541723269037902e-05, 8.11352365417406e-05, 9.741204848978668e-05, 0.00012837149552069604, 5.916685040574521e-05, 0.00011911414185306057, 5.4193147661862895e-05, 6.892716919537634e-05, 8.128494664561003e-05, 2.0830222638323903e-05, 0.00014178630954120308, 8.861280366545543e-05, 4.672710201703012e-05, 9.323891572421417e-05, 2.742482138273772e-05, 5.996344771119766e-05, 8.693029667483643e-05, 7.704898598603904e-05, 8.991822687676176e-05, 6.603085057577118e-05, 6.350229523377493e-05, 3.858771378872916e-05, 4.123266626265831e-05, 5.6468150432920083e-05, 6.485519406851381e-05, 4.279454878997058e-05, 5.1373579481150955e-05, -1.752183720782341e-06, 8.047432493185624e-05, 4.529457874014042e-05, 5.4101670684758574e-05, 4.8517296818317845e-05, 5.5148761020973325e-05, 2.7456646421342157e-05, 5.347358819562942e-05, 3.0464523661066778e-05, 2.2438673568103695e-06, 3.751219264813699e-05, -4.494745735428296e-05, 2.306158421561122e-05, -5.8287008869228885e-05, 1.3581654457084369e-05, -3.08772359858267e-05, 1.5110084859770723e-05, -1.0787006431201007e-05, 2.1157900846446864e-05, 5.348011472960934e-05, 3.7935187719995156e-05, 2.0466923160711303e-05, 6.225203833309934e-05, 9.277283970732242e-05, 6.079854938434437e-05, 9.751512698130682e-05, 2.6876215997617692e-05, 9.284458428737707e-06, 1.4647762327513192e-05, 7.447756070178002e-05, 2.8633645342779346e-05, 6.307338480837643e-05, 3.7913461710559204e-05, 4.38135139120277e-05, 6.18484482401982e-05, 2.1671923605026677e-05, 1.0909147931670304e-05, 1.6268875697278418e-05, 7.281460420927033e-05, 5.170536314835772e-05, 1.0396292054792866e-05, 8.995398820843548e-05, 5.2242168749216944e-05, 6.82954050716944e-05, 4.648181493394077e-05, 6.125943036749959e-05, 6.804704025853425e-05, 5.942756979493424e-05, 6.0699356254190207e-05, 8.76798658282496e-05, 5.2374602091731504e-05, 3.1183077226160094e-05, 5.9810543461935595e-05, 2.886314359784592e-05, 3.404498056625016e-05, -1.2656863873417024e-05, 4.358298610895872e-05, 6.213270535226911e-05, 9.455774852540344e-05, 6.680599472019821e-05, 7.816795550752431e-05, 1.0456997188157402e-05, 7.519539940403774e-05, 5.961086935712956e-05, -3.226831540814601e-05, 3.354670752742095e-06, 5.450614116853103e-05, 4.9223381211049855e-05, 1.7955559087567963e-05, 5.4605807235930115e-05, 5.4098505643196404e-05, 4.023033761768602e-05, 2.215719359810464e-05, 9.28173030843027e-05, 0.00015499348228331655, 4.6104432840365916e-05, 0.00012530320964287966, 8.409294241573662e-05, 3.256810668972321e-05, 9.745951683726162e-05, 6.591817509615794e-05, 0.00011156374239362776, 9.757445513969287e-05, 8.59956126078032e-05, 9.320703247794881e-05, 9.859423153102398e-05, 0.00010753430251497775, 0.00013936149480286986, 7.975575135787949e-05, 3.723126428667456e-05, 1.822783815441653e-05, 4.8221758333966136e-05, 5.972970757284202e-05, 7.025437662377954e-05, 4.1985807911260054e-05, 2.4789927920210175e-05, 3.8668593333568424e-05, 7.144214760046452e-05, -1.515378517069621e-05, 2.302770189999137e-05, 1.6745356333558448e-05, -1.3252620192361064e-05, 4.240800626575947e-05, -1.8665501556824893e-05, 5.098159454064444e-05, 2.3964561478351243e-05, -2.822734359142487e-06, -1.746703674143646e-06, -3.870249565807171e-05, 5.543033330468461e-05, 2.7892732759937644e-05, -2.3805607270332985e-05, 4.860860281041823e-05, 2.374733412580099e-05, 2.8904134524054825e-05, 2.164657780667767e-05, 0.00010403835767647251, -3.240879232180305e-05, -2.122329897247255e-05, 5.879290620214306e-05, -6.94171103532426e-05, 2.450728743497166e-06, -2.0547740859910846e-05, -4.7947261919034645e-05, -2.908467422457761e-06, -2.3726577637717128e-05, -4.6132518036756665e-05, -6.041858796379529e-06, 3.152146291540703e-06, 2.8988670237595215e-05, 2.217280416516587e-05, 2.8112652216805145e-05, 3.869443025905639e-05, 5.2203064115019515e-05, 3.5179502447135746e-05, 8.188709034584463e-05, 7.977792847668752e-05, 4.2749445128720254e-05, 8.097398676909506e-05, 1.679307024460286e-05, 3.2182819268200547e-05, 3.3163316402351484e-05, 6.733725604135543e-05, 9.327723819296807e-05, 2.9106633519404568e-05, 0.00013346063497010618, 5.2479088481049985e-05, -4.735008133138763e-06, 7.016575546003878e-05, 2.353181116632186e-05, 1.0135411685041618e-05, 4.919524508295581e-05, 5.374041575123556e-05, -5.4724863730371e-05, 2.7568528821575455e-05, 4.530970909399912e-05, 3.774389551836066e-05, 6.061164094717242e-05, 6.158279575174674e-05, 7.433988685079385e-06, -1.990521195693873e-05, 2.9341463232412934e-05, 3.4808814234565943e-05, 4.64995810034452e-06, 2.9221844670246355e-05, 6.358244718285277e-05, 2.3115742351365043e-06, 4.3275733332848176e-05, 1.8054804968414828e-05, 2.340992614335846e-05, 3.170751369907521e-05, 5.519051046576351e-05, 5.8217097830493e-05, 4.876027014688589e-05, 5.5848577176220715e-06, 5.7759880291996524e-05, 0.00010933863086393103, 6.747653242200613e-05, 5.359334681998007e-05, 4.436160816112533e-05, 8.796763722784817e-05, 8.821785013424233e-05, 8.614394027972594e-05, 6.441769073717296e-05, 0.0001208048197440803, 6.091539398767054e-05, 2.5414919946342707e-05, 8.32774821901694e-05, 4.181683107162826e-05, 4.4740740122506395e-05, 0.00013610116729978472, 3.773530261241831e-05, 1.1782149158534594e-05, 6.941542233107612e-05, 5.1134633395122364e-05, 3.5660174035001546e-05, 1.3693090295419097e-05, 6.725201819790527e-05, -4.0055406316241715e-06, 9.557703015161678e-05, 0.0001208203611895442, 2.6282887120032683e-05, 3.256034688092768e-05, 1.711609547783155e-05, 4.930283466819674e-05, 0.00011454468040028587, 7.575432391604409e-05, 6.756508082617074e-05, 7.217214442789555e-05, 7.522669329773635e-05, 8.574062667321414e-05, 6.209783168742433e-05, 9.31785543798469e-05, 2.851428507710807e-05, 8.498917304677889e-05, 6.892898090882227e-05, 0.00010146456770598888, 8.60299842315726e-05, 0.00012519684969447553, 0.00015536129649262875, 0.00011812423326773569, 0.00015940795128699392, 0.00010724562162067741, 0.00012290573795326054, 0.00011104950681328773, 0.0001684881717665121, 0.00014443055260926485, 0.00013645444414578378, 0.00013328521163202822, 0.0001038122209138237, 0.00013218296226114035, 0.0001110778030124493, 0.000147046463098377, 0.0001582770055392757, 0.00015830794291105121, 0.00011396566696930677, 0.00012513197725638747, 0.00012696220073848963, 0.0001769426598912105, 0.00010263206786476076, 7.32744883862324e-05, 0.00020168026094324887, 9.978418529499322e-05, 0.0001859798067016527, 0.00012544608034659177, 0.00013890302216168493, 0.00016850435349624604, 0.000148879480548203, 0.0001944977993844077, 0.00010005088552134112, 8.713241550140083e-05, 0.00011552446812856942, 0.00017953742644749582, 7.803674816386774e-05, 0.00014175070100463927, 0.00010450484114699066, 0.00010301829024683684, 0.00014103752619121224, 0.00010112236486747861, 0.00012060368317179382, 0.00015461324073839933, 0.00013807430514134467, 0.00012311595492064953, 0.00010499521158635616, 0.0001208840258186683, 0.00010234020737698302, 0.00010799469600897282, 0.00010632928751874715, 8.612583769718185e-05, 0.00012578796304296702, 0.00013627232692670077, 0.00011450315651018173, 4.052920485264622e-05, 9.769511962076649e-05, 6.220376963028684e-05, 6.119922909419984e-05, 3.3480304409749806e-05, 7.19032614142634e-05, 0.00011203820031369105, 5.196129495743662e-05, 0.00010347496572649106, 9.826343739405274e-05, 0.0001307761122006923, 0.00016443265485577285, 0.00011411631567170843, 0.00016729765047784895, 0.00011677962902467698, 0.00013270995987113565, 9.504550689598545e-05, 0.00018135433492716402, 0.00011847034329548478, 0.0001311184896621853, 0.00012711067392956465, 0.00011888478184118867, 0.00013065461826045066, 0.00011179975990671664, 0.0001428887917427346, 8.017042273422703e-05, 0.00012678380880970508, 0.00012581818737089634, 0.00014453052426688373, 0.00012130850518587977, 0.00015238542982842773, 0.00011783345689764246, 0.00017339401529170573, 0.0002089968475047499, 0.00016915133164729923, 0.0001439531333744526, 0.00020421750377863646, 0.00014345903764478862, 0.00020955751824658364, 0.00017069626483134925, 0.00017542566638439894, 0.0002229131932836026, 0.00018278163042850792, 0.0001921285584103316, 0.00018821169214788824, 0.00016839912859722972, 0.00016292103100568056, 0.00022147178242448717, 0.00014143725275062025, 0.000199384186998941, 0.00021442769502755255, 0.00016915574087761343, 0.00015721225645393133, 0.00013104190293233842, 0.00014982670836616307, 0.0001477177138440311, 0.00016631800099276006, 0.00018839330004993826, 0.00015390967018902302, 0.00020094646606594324, 0.00019479465845506638, 0.00020127558673266321, 0.0001520659716334194, 0.0001639810361666605, 0.00013495967141352594, 0.0001446153619326651, 0.00013077168841846287, 0.00013243600551504642, 0.00023130123736336827, 0.0002043636195594445, 0.00020564252918120474, 0.00021316332276910543, 0.0001940908987307921, 0.0001544270053273067, 0.00020762975327670574, 0.00019846927898470312, 0.00012178256292827427, 0.00019702588906511664, 0.00017992105858866125, 0.00012545018398668617, 0.000130380445625633, 0.0001746736088534817, 0.00021532084792852402, 0.0001249962078873068, 0.000193557032616809, 0.00012043288006680086, 0.00011451818863861263, 0.00017950471374206245, 0.00010482710786163807, 0.00017443863907828927, 7.161137909861282e-05, 0.00011285165965091437, 0.00015794728824403137, 0.0001227496686624363, 0.00014568700862582773, 7.766284397803247e-05, 6.36094919173047e-05, 0.00011007972352672368, 0.00012117072765249759, 9.694158507045358e-05, 0.00015999867173377424, 0.0001395876897731796, 0.00011646596976788715, 0.0001484710955992341, 0.00024301285156980157, 0.0001299869763897732, 0.0001349812955595553, 0.00014891361934132874, 0.00017157143156509846, 0.00016791238158475608, 0.00012355919170659035, 0.00015716874622739851, 0.00015068144421093166, 0.00018675212049856782, 0.00012013097148155794, 0.0001757641730364412, 0.0001835916773416102, 0.00025161384837701917, 0.000232734702876769, 0.0002409541339147836, 0.00020635488908737898, 0.0002216287248302251, 0.0002854446938727051, 0.00014655764971394092, 0.00021672493312507868, 0.00019612467440310866, 0.00025082958745770156, 0.00020277610747143626, 0.0001407704985467717, 0.0002136297698598355, 0.00014270804240368307, 0.00018846198508981615, 0.00022102735238149762, 0.00023299035092350096, 0.00022755525424145162, 0.0001974876649910584, 0.00022587775310967118, 0.00029095966601744294, 0.0002381627564318478, 0.00022256602824199945, 0.00020180930732749403, 0.00018224197265226394 ], "output_batch": [ 0.006117488723248243, -0.058738838881254196, -0.1281415820121765, -0.15612387657165527, -0.13103656470775604, -0.06836206465959549, 0.005228493362665176, 0.0673174262046814, 0.10798989236354828, 0.12919028103351593, 0.13827741146087646, 0.14108841121196747, 0.1385117918252945, 0.12686245143413544, 0.10202401131391525, 0.06339991092681885, 0.016126178205013275, -0.030548177659511566, -0.06717745959758759, -0.08788016438484192, -0.09185957163572311, -0.08273245394229889, -0.06630709767341614, -0.04870564863085747, -0.0342642217874527, -0.024683121591806412, -0.019510798156261444, -0.016909586265683174, -0.015084993094205856, -0.012828676030039787, -0.009954793378710747, -0.006965883541852236, -0.004450287204235792, -0.0028491313569247723, -0.0020983568392693996, -0.0018318123184144497, -0.0015854579396545887, -0.001119240652769804, -0.00047290604561567307, 0.00019198330119252205, 0.0006259153597056866, 0.0006274222396314144, 0.00016608880832791328, -0.00047346996143460274, -0.0010499213822185993, -0.0013150186277925968, -0.0012478516437113285, -0.0008667749352753162, -0.0003280448727309704, 0.00020753731951117516, 0.0006185034289956093, 0.0008347914554178715, 0.0009576906450092793, 0.000968102365732193, 0.0009841741994023323, 0.0010300814174115658, 0.0011066901497542858, 0.0011912882328033447, 0.001202255953103304, 0.001177546102553606, 0.001049309503287077, 0.0008211513049900532, 0.0006568110547959805, 0.0005250382237136364, 0.0004601702094078064, 0.0005321796052157879, 0.0005960864946246147, 0.0006165946833789349, 0.0005850843153893948, 0.000539674423635006, 0.0004279869608581066, 0.0002930625341832638, 0.00020434381440281868, 0.0001498316414654255, 0.000138887669891119, 0.00016527529805898666, 0.0002483283169567585, 0.00030314456671476364, 0.00037724897265434265, 0.0003729932941496372, 0.00034649530425667763, 0.00030896021053195, 0.00023811263963580132, 0.00022329669445753098, 0.00019305991008877754, 0.00018313853070139885, 0.00021359883248806, 0.00022873422130942345, 0.00026638153940439224, 0.00029932986944913864, 0.00034522684291005135, 0.0003488399088382721, 0.00035065552219748497, 0.0003817095421254635, 0.0003856983967125416, 0.0003785709850490093, 0.0003340686671435833, 0.00027031218633055687, 0.00023354357108473778, 0.00025222310796380043, 0.00024217786267399788, 0.00020507583394646645, 0.00017120176926255226, 0.00020365184172987938, 0.0002307887189090252, 0.00033105863258242607, 0.00035801855847239494, 0.00035496195778250694, 0.0003676293417811394, 0.0003457055427134037, 0.00035058893263339996, 0.00036678044125437737, 0.0004289252683520317, 0.0004085320979356766, 0.000393744558095932, 0.00033073732629418373, 0.00026221713051199913, 0.00024934811517596245, 0.0002864920534193516, 0.0003265249542891979, 0.00035280222073197365, 0.00031616678461432457, 0.0003266502171754837, 0.0002604583278298378, 0.0001820889301598072, 0.00010271463543176651, 5.309423431754112e-05, 4.891538992524147e-05, 3.7217047065496445e-05, 0.00011297129094600677, 0.00019176863133907318, 0.0003090393729507923, 0.00036193057894706726, 0.0003872294910252094, 0.0004055495373904705, 0.0004638298414647579, 0.0004848325625061989, 0.00045250868424773216, 0.00043638236820697784, 0.0004073772579431534, 0.00036226073279976845, 0.0003445991314947605, 0.0003315126523375511, 0.0003027734346687794, 0.0002072458155453205, 0.00014327000826597214, 0.00010796450078487396, 0.00013098353520035744, 0.00013265060260891914, 0.00013979850336909294, 0.00018316181376576424, 0.0001779557205736637, 0.00017164787277579308, 0.0001777024008333683, 0.00020263390615582466, 0.0001752707175910473, 0.00017778296023607254, 0.0002475758083164692, 0.0002823295071721077, 0.0003101024776697159, 0.0003412286750972271, 0.00033937254920601845, 0.0003168550319969654, 0.00022298842668533325, 0.00018504029139876366, 0.00016210274770855904, 0.0002219141460955143, 0.00025934353470802307, 0.0002709687687456608, 0.0003109760582447052, 0.0002838145010173321, 0.0003010709770023823, 0.000327554065734148, 0.00035961298272013664, 0.0004284358583390713, 0.00039250869303941727, 0.00029634684324264526, 0.00024248845875263214, 0.00024391058832406998, 0.00024531083181500435, 0.000250356737524271, 0.00027448078617453575, 0.0002724486403167248, 0.0002659400925040245, 0.0002366011030972004, 0.0002287980169057846, 0.00020647887140512466, 0.0001613190397620201, 0.00014678016304969788, 0.00018461700528860092, 0.0001916135661303997, 0.0001756739802658558, 0.00014331890270113945, 0.00012289034202694893, 8.269166573882103e-05, 0.00016029318794608116, 0.00017797481268644333, 0.00021317368373274803, 0.00024378951638936996, 0.0002138749696314335, 0.0002021673135459423, 0.00015808595344424248, 0.00019377749413251877, 0.00022438261657953262, 0.0002478053793311119, 0.0002056439407169819, 0.00017178850248456, 0.00014480715617537498, 0.00012812577188014984, 0.00012987712398171425, 0.00012341607362031937, 9.679002687335014e-05, 8.033914491534233e-05, 8.325325325131416e-05, 0.00011849822476506233, 0.00012081163004040718, 0.00021613109856843948, 0.00027829548344016075, 0.00029779644683003426, 0.0003074090927839279, 0.00024336529895663261, 0.0001644599251449108, 6.637768819928169e-05, 3.8221944123506546e-05, 7.557449862360954e-05, 0.00012519815936684608, 0.000157033558934927, 0.00017855921760201454, 0.00018670829012989998, 0.00018038833513855934, 0.00021078111603856087, 0.00022973539307713509, 0.00021587638184428215, 0.00027228938415646553, 0.0003182669170200825, 0.00036121485754847527, 0.00036008981987833977, 0.0003201528452336788, 0.000253965612500906, 0.00024219369515776634, 0.0002497970126569271, 0.00019921455532312393, 0.00019233813509345055, 0.00020368443801999092, 0.00019258959218859673, 0.00021276669576764107, 0.00020138313993811607, 0.00019115163013339043, 0.0002078642137348652, 0.00026038940995931625, 0.00030647171661257744, 0.0003384239971637726, 0.00040029827505350113, 0.00034509459510445595, 0.0002971729263663292, 0.00029969867318868637, 0.0002752314321696758, 0.00023777270689606667, 0.00022156676277518272, 0.00025963829830288887, 0.00023245112970471382, 0.00019081169739365578, 0.00017204927280545235, 0.00010024989023804665, 7.72988423705101e-05, 7.616216316819191e-05, 0.0001272275112569332, 0.00021283095702528954, 0.0002877437509596348, 0.00032117823138833046, 0.00035065924748778343, 0.0003690090961754322, 0.00031482381746172905, 0.00029908400028944016, 0.0003009443171322346, 0.00030004093423485756, 0.00030491268262267113, 0.0002925707958638668, 0.0003253924660384655, 0.00037617189809679985, 0.0003947657532989979, 0.0003877761773765087, 0.0003591664135456085, 0.00036164047196507454, 0.0003591654822230339, 0.00040675094351172447, 0.000397559255361557, 0.00037887832149863243, 0.0003363075666129589, 0.00025680894032120705, 0.00023884978145360947, 0.00023050233721733093, 0.0002519371919333935, 0.0002640313468873501, 0.0002526952885091305, 0.000245578121393919, 0.00025531696155667305, 0.0002641337923705578, 0.00028877099975943565, 0.00024448009207844734, 0.00023549655452370644, 0.00022350065410137177, 0.00024575134739279747, 0.000288309995085001, 0.0003257244825363159, 0.000350345391780138, 0.000376096460968256, 0.00035772984847426414, 0.0002929326146841049, 0.00027485471218824387, 0.00021640630438923836, 0.00023171911016106606, 0.00020251749083399773, 0.00017870450392365456, 0.00020692450925707817, 0.00027209939435124397, 0.0003415006212890148, 0.0003186971880495548, 0.0002768435515463352, 0.0002519632689654827, 0.0002635386772453785, 0.0003346479497849941, 0.00036677392199635506, 0.0003536432050168514, 0.00035644182935357094, 0.0003237570635974407, 0.0002695675939321518, 0.00022239936515688896, 0.0002101506106555462, 0.0002189124934375286, 0.00024656346067786217, 0.00026577943935990334, 0.00026315217837691307, 0.00026363180950284004, 0.00028118956834077835, 0.00027266889810562134, 0.00022382987663149834, 0.0002468614839017391, 0.00028131622821092606, 0.0003155232407152653, 0.0003567934036254883, 0.00036059413105249405, 0.0003651771694421768, 0.00030892202630639076, 0.0002810535952448845, 0.00027215154841542244, 0.00021619955077767372, 0.0001877858303487301, 0.00012461887672543526, 8.199317380785942e-05, 9.84417274594307e-05, 0.00011948356404900551, 0.00017966190353035927, 0.00019461195915937424, 0.00024646520614624023, 0.00025940826162695885, 0.00023000501096248627, 0.00021863961592316628, 0.00017914501950144768, 0.00014680856838822365, 0.00012443633750081062, 0.00014846771955490112, 0.00014792336151003838, 0.00014806212857365608, 0.00012601353228092194, 0.00010518170893192291, 0.00015567662194371223, 0.000197588000446558, 0.000261909794062376, 0.00033299950882792473, 0.0003423597663640976, 0.0003485078923404217, 0.0002750842832028866, 0.00020082108676433563, 0.0001672813668847084, 0.00017633801326155663, 0.00018828781321644783, 0.00023730797693133354, 0.00030221976339817047, 0.0003024186007678509, 0.00031080376356840134, 0.0003256578929722309, 0.00031905947253108025, 0.00028806133195757866, 0.0002493518404662609, 0.00017035240307450294, 0.00012010568752884865, 9.615113958716393e-05, 0.00011284882202744484, 0.00018802518025040627, 0.00024546636268496513, 0.0003016269765794277, 0.0003566448576748371, 0.00040574977174401283, 0.00044871214777231216, 0.0004418059252202511, 0.0004372452385723591, 0.0003897971473634243, 0.00031485920771956444, 0.0002591474913060665, 0.00024077342823147774, 0.00023090234026312828, 0.0001602405682206154, 0.00012788502499461174, 0.0001196940429508686, 0.00014713546261191368, 0.00021173059940338135, 0.00021167146041989326, 0.00018075155094265938, 0.00010592909529805183, 4.5011285692453384e-05, 7.016537711024284e-05, 6.721634417772293e-05, 0.00011405302211642265, 0.0001923958770930767, 0.00023616431280970573, 0.0003101383335888386, 0.00038520572707057, 0.0004353984259068966, 0.00038386089727282524, 0.0003675655461847782, 0.0003600330092012882, 0.00032900506630539894, 0.00033834250643849373, 0.0003300062380731106, 0.00032040011137723923, 0.000297612976282835, 0.00027014268562197685, 0.00026748934760689735, 0.00023907842114567757, 0.00018071336671710014, 0.00017937785014510155, 0.0001905723474919796, 0.00026008905842900276, 0.0002839467488229275, 0.000287648756057024, 0.00028232065960764885, 0.0002864752896130085, 0.00035455962643027306, 0.00042977510020136833, 0.00045610032975673676, 0.00041887955740094185, 0.00036982912570238113, 0.00031671347096562386, 0.00030304910615086555, 0.0002889721654355526, 0.00030404841527342796, 0.0003165598027408123, 0.0002931184135377407, 0.0002894247882068157, 0.00028757378458976746, 0.0002398020587861538, 0.0002577626146376133, 0.0002137860283255577, 0.00016463873907923698, 0.00013222591951489449, 0.00010972050949931145, 0.0001400313340127468, 0.0001454758457839489, 0.00015641236677765846, 0.00011083018034696579, 0.00010743178427219391, 0.00010616378858685493, 9.4603281468153e-05, 0.00017448188737034798, 0.0002495250664651394, 0.0002993945963680744, 0.00030740536749362946, 0.00028981128707528114, 0.0003165537491440773, 0.0003574392758309841, 0.0003584134392440319, 0.0002918899990618229, 0.0002447133883833885, 0.00018625147640705109, 0.0001761200837790966, 0.0002060295082628727, 0.0002609463408589363, 0.0003055776469409466, 0.00033580465242266655, 0.00039160018786787987, 0.00035428861156105995, 0.00028988439589738846, 0.0002829250879585743, 0.0002731899730861187, 0.00025889649987220764, 0.00022310903295874596, 0.0001407582312822342, 7.924763485789299e-05, 5.514686927199364e-05, 0.00012663844972848892, 0.00022978940978646278, 0.0003411979414522648, 0.00041191745549440384, 0.000415007583796978, 0.00035248463973402977, 0.0002802531234920025, 0.00021569663658738136, 0.00013968674466013908, 0.00012214574962854385, 0.00012249452993273735, 0.00014655431732535362, 0.00016626762226223946, 0.00016026850789785385, 0.00017339782789349556, 0.00020874524489045143, 0.00023272400721907616, 0.000251042190939188, 0.0002653556875884533, 0.00020977621898055077, 0.00011325674131512642, 7.98194669187069e-05, 5.934014916419983e-05, 8.192146196961403e-05, 0.00011666025966405869, 0.00015981914475560188, 0.00023485999554395676, 0.00027352431789040565, 0.0003001587465405464, 0.00030553480610251427, 0.0003219321370124817, 0.00030771829187870026, 0.00029687443748116493, 0.00027750013396143913, 0.0002396153286099434, 0.000221956055611372, 0.00021852226927876472, 0.00022202404215931892, 0.00024396460503339767, 0.00027191732078790665, 0.0002726190723478794, 0.0002783951349556446, 0.00022788578644394875, 0.00013120146468281746, 4.4504646211862564e-05, 3.767898306250572e-05, 3.569992259144783e-05, 5.3184106945991516e-05, 5.324883386492729e-05, 5.3110066801309586e-05, 7.593631744384766e-05, 6.6359993070364e-05, 8.328258991241455e-05, 8.658552542328835e-05, 6.123911589384079e-05, 5.457410588860512e-05, 8.607236668467522e-05, 0.00014207931235432625, 0.00021532690152525902, 0.0002958965487778187, 0.00032735010609030724, 0.00035990728065371513, 0.0003717406652867794, 0.0002900380641222, 0.00019753212109208107, 0.00011619133874773979, 7.356470450758934e-05, 5.4809730499982834e-05, 7.636845111846924e-05, 9.010313078761101e-05, 0.00010787276551127434, 0.00013257144019007683, 0.00014589028432965279, 0.00017733080312609673, 0.0001886053942143917, 0.00014122715219855309, 0.00014467677101492882, 0.000164759811013937, 0.00015983497723937035, 0.0002219569869339466, 0.00027693621814250946, 0.00025289226323366165, 0.0002178712747991085, 0.0001936717890202999, 0.000131234060972929, 0.00012003490701317787, 0.00011690100654959679, 0.0001200786791741848, 0.00014437735080718994, 0.0001838519237935543, 0.00022668065503239632, 0.00022914865985512733, 0.00020226836204528809, 0.00017310911789536476, 0.00016591371968388557, 0.00020043225958943367, 0.00021268660202622414, 0.0002635074779391289, 0.0002809888683259487, 0.0002488926984369755, 0.00025336770340800285, 0.00020214123651385307, 0.00022935541346669197, 0.00021078484132885933, 0.0002662045881152153, 0.0003130761906504631, 0.00033507682383060455, 0.00035272492095828056, 0.0002714376896619797, 0.00023598922416567802, 0.00020867353305220604, 0.00022767623886466026, 0.00027770455926656723, 0.00030443770810961723, 0.0003010123036801815, 0.00025615375488996506, 0.000179970171302557, 0.0001640445552766323, 0.00015950622037053108, 0.00018519675359129906, 0.00020099198445677757, 0.0002662227489054203, 0.00030861422419548035, 0.0002938825637102127, 0.0002459338866174221, 0.00016659032553434372, 0.00013402430340647697, 0.00012251315638422966, 0.00013829628005623817, 0.00013695983216166496, 0.00017264718189835548, 0.00022743595764040947, 0.0002492298372089863, 0.0002891598269343376, 0.0002919095568358898, 0.0002808677963912487, 0.0002801339142024517, 0.00023818295449018478, 0.00015713274478912354, 8.750660344958305e-05, 0.00012562843039631844, 0.00014352751895785332, 0.00019902409985661507, 0.00023384997621178627, 0.0001885681413114071, 0.00016244454309344292, 0.00015970086678862572, 0.00015742843970656395, 0.0001714988611638546, 0.0002436167560517788, 0.0002898699603974819, 0.0003278232179582119, 0.0003786538727581501, 0.0003378894180059433, 0.00026300549507141113, 0.0002049645408987999, 0.00013192510232329369, 0.00014408165588974953, 0.0002047307789325714, 0.0002770940773189068, 0.00028802594169974327, 0.000297334510833025, 0.00027855997905135155, 0.0001950436271727085, 0.00019976915791630745, 0.00019879546016454697, 0.00022819219157099724, 0.00025569135323166847, 0.00030934251844882965, 0.0003340160474181175, 0.00032164203003048897, 0.0003201509825885296, 0.00026789167895913124, 0.00021313177421689034, 0.00013221846893429756, 7.547298446297646e-05, 0.00010479195043444633, 0.00015005748718976974, 0.00023877248167991638, 0.0003081369213759899, 0.000340836588293314, 0.0003500902093946934, 0.00028066663071513176, 0.00023692520335316658, 0.0001644347794353962, 0.0001392182894051075, 0.00012149009853601456, 0.00013967650011181831, 0.0001939353533089161, 0.0002406863495707512, 0.00028952211141586304, 0.0003817169927060604, 0.0004224521107971668, 0.0004242849536240101, 0.00039230985566973686, 0.00033955229446291924, 0.0003403909504413605, 0.00033206725493073463, 0.0003697792999446392, 0.00038215192034840584, 0.00036210939288139343, 0.00031727971509099007, 0.0002818615175783634, 0.00018323538824915886, 0.0001552659086883068, 0.00013984134420752525, 0.00016167247667908669, 0.00020130909979343414, 0.0002464917488396168, 0.000327876303344965, 0.0003053196705877781, 0.0002999715507030487, 0.0002834717743098736, 0.0002699284814298153, 0.0003032130189239979, 0.0003011194057762623, 0.00033021625131368637, 0.0003355862572789192, 0.0003194129094481468, 0.0003437246195971966, 0.0002923132851719856, 0.00027348799630999565, 0.000245529692620039, 0.000250921119004488, 0.00022527994588017464, 0.000220500398427248, 0.0001843324862420559, 0.00012686243280768394, 0.00015779538080096245, 0.00016701733693480492, 0.00016519520431756973, 0.00017238641157746315, 0.00019303476437926292, 0.0002130628563463688, 0.0002441774122416973, 0.0002490431070327759, 0.00023371540009975433, 0.0002702358178794384, 0.00029877619817852974, 0.0002911756746470928, 0.00030683353543281555, 0.0002787257544696331, 0.0002712761051952839, 0.00029471050947904587, 0.00036898674443364143, 0.00039784377440810204, 0.00035023363307118416, 0.00031468598172068596, 0.00029080966487526894, 0.0002779434435069561, 0.0003276299685239792, 0.0003631790168583393, 0.00038682157173752785, 0.00037250854074954987, 0.00037414347752928734, 0.00030269846320152283, 0.00022081704810261726, 0.00023684510961174965, 0.00023079942911863327, 0.0002128775231540203, 0.00020618131384253502, 0.00022755982354283333, 0.000250199344009161, 0.00028958776965737343, 0.0003271312452852726, 0.0003184503875672817, 0.0002607889473438263, 0.00020759785547852516, 0.00017843814566731453, 0.00013880571350455284, 0.00014139385893940926, 0.0001862221397459507, 0.0001585688441991806, 0.00017162365838885307, 0.0001844358630478382, 0.00018730061128735542, 0.00021310662850737572, 0.00028851209208369255, 0.00034256279468536377, 0.0003462168388068676, 0.00031181657686829567, 0.00021924683824181557, 0.00017266767099499702, 0.00013129087164998055, 0.0001250668428838253, 0.0001495499163866043, 0.00016885297372937202, 0.00023580854758620262, 0.0002819313667714596, 0.0003196890465915203, 0.00034497445449233055, 0.00033419113606214523, 0.00031909486278891563, 0.00027465401217341423, 0.0002600676380097866, 0.0002763778902590275, 0.0002672695554792881, 0.000262474175542593, 0.00024279160425066948, 0.00022824713960289955, 0.0001937365159392357, 0.00019149621948599815, 0.00019703712314367294, 0.00027959607541561127, 0.0003685583360493183, 0.00036237621679902077, 0.0003556879237294197, 0.00036566564813256264, 0.0003771199844777584, 0.0003742682747542858, 0.0003819870762526989, 0.0003785151056945324, 0.0003544664941728115, 0.0003112903796136379, 0.00032716477289795876, 0.00028921011835336685, 0.0001918482594192028, 7.585948333144188e-05, -2.2286083549261093e-05, -4.075607284903526e-05, 5.599763244390488e-05, 0.00011694291606545448, 0.00014849146828055382, 0.00019083218649029732, 0.00017785746604204178, 0.0001547234132885933, 0.00011655734851956367, 0.00012178905308246613, 0.0001028883270919323, 0.00013994751498103142, 0.00017904071137309074, 0.0002489602193236351, 0.00031243590638041496, 0.0003561703488230705, 0.0003611012361943722, 0.00035903556272387505, 0.00033844588324427605, 0.00029229698702692986, 0.00033312710002064705, 0.00035834964364767075, 0.0003873654641211033, 0.00032937293872237206, 0.0003088745288550854, 0.0002766372635960579, 0.00027531804516911507, 0.00021646125242114067, 0.00015051988884806633, 0.00014404905959963799, 8.489703759551048e-05, 0.00011179642751812935, 0.0001576840877532959, 0.00024245260283350945, 0.00030875438824296, 0.0003710719756782055, 0.0003849058412015438, 0.0003937440924346447, 0.0003968416713178158, 0.0003826241008937359, 0.0004006144590675831, 0.0004237755201756954, 0.0004113423638045788, 0.0004146541468799114, 0.00036399951204657555, 0.000244304072111845, 0.00019937613978981972, 0.00022381963208317757, 0.00031697237864136696, 0.00037924526259303093, 0.0004225093871355057, 0.00041029229760169983, 0.0003941240720450878, 0.0003368980251252651, 0.00029691681265830994, 0.00026380736380815506, 0.0002483460120856762, 0.0002641049213707447, 0.0002851528115570545, 0.00028963154181838036, 0.0002394421026110649, 0.00024040229618549347, 0.00029012979939579964, 0.00032650819048285484, 0.0002979366108775139, 0.0003224019892513752, 0.0002954341471195221, 0.00023909704759716988, 0.00022275419905781746, 0.00019430043175816536, 0.00016705086454749107, 0.0001279781572520733, 0.00011528516188263893, 0.00016432302072644234, 0.0002247183583676815, 0.0003358679823577404, 0.0004019034095108509, 0.000406517181545496, 0.0003867810592055321, 0.000304665882140398, 0.00023771915584802628, 0.00023383740335702896, 0.0002454356290400028, 0.00025192927569150925, 0.0003185444511473179, 0.0003442256711423397, 0.0003577279858291149, 0.0002884841524064541, 0.00022312672808766365, 0.0001819930039346218, 0.00015107495710253716, 0.00020170118659734726, 0.0002227267250418663, 0.00026008253917098045, 0.0002749902196228504, 0.00029462529346346855, 0.0003011864610016346, 0.0002605072222650051, 0.00025576725602149963, 0.00024288753047585487, 0.00023076264187693596, 0.0002590199001133442, 0.00026398198679089546, 0.00031269481405615807, 0.00028772978112101555, 0.00027038389816880226, 0.00023789750412106514, 0.00025933049619197845, 0.0002854294143617153, 0.0002997186966240406, 0.0003886907361447811, 0.0004015606828033924, 0.00040783919394016266, 0.000378213357180357, 0.00028887810185551643, 0.0002018292434513569, 0.0001038750633597374, 5.4623931646347046e-05, 8.633453398942947e-05, 0.00015403563156723976, 0.00021677231416106224, 0.0002282499335706234, 0.0002640639431774616, 0.0002763955853879452, 0.0003318977542221546, 0.00027047423645853996, 0.00024518324062228203, 0.00019308924674987793, 0.00017747236415743828, 0.00024214014410972595, 0.00033411895856261253, 0.00041520828381180763, 0.0004039560444653034, 0.00039528636261820793, 0.00033931294456124306, 0.0002631554380059242, 0.00022267969325184822, 0.00021327100694179535, 0.0002563479356467724, 0.0003011873923242092, 0.0003169314004480839, 0.0003366325981914997, 0.0002976497635245323, 0.00029495591297745705, 0.0002911030314862728, 0.00029192864894866943, 0.0002457904629409313, 0.00022320635616779327, 0.00021781353279948235, 0.00021247891709208488, 0.00022797612473368645, 0.00023060990497469902, 0.00027040811255574226, 0.0003169216215610504, 0.00027422141283750534, 0.0002609998919069767, 0.00021963473409414291, 0.00023495592176914215, 0.0003065844066441059, 0.00033725379034876823, 0.0003889952786266804, 0.00034187035635113716, 0.0002666502259671688, 0.0001996997743844986, 0.00016668858006596565, 0.00014728866517543793, 0.0001794765703380108, 0.00019803224131464958, 0.000193803571164608, 0.00021828478202223778, 0.00021741958335042, 0.00018931599333882332, 0.0001838267780840397, 0.0002063359133899212, 0.00023318221792578697, 0.00022900477051734924, 0.00020518293604254723, 0.00019718799740076065, 0.0002279370091855526, 0.00024219276383519173, 0.00025407643988728523, 0.00026949821040034294, 0.0002619386650621891, 0.0002766312099993229, 0.0002817893400788307, 0.0002871183678507805, 0.0002682572230696678, 0.00023813778534531593, 0.000283293891698122, 0.0003476296551525593, 0.00038607092574238777, 0.0004220246337354183, 0.00037217652425169945, 0.0003375341184437275, 0.0002818317152559757, 0.00020416686311364174, 0.00019847648218274117, 0.0002275756560266018, 0.00026265811175107956, 0.0002729366533458233, 0.00027844496071338654, 0.00030985521152615547, 0.0003327284939587116, 0.00037465430796146393, 0.0003608139231801033, 0.00032712100073695183, 0.0002851579338312149, 0.00025896960869431496, 0.00021365517750382423, 0.00022451067343354225, 0.0002446267753839493, 0.00024461233988404274, 0.0002635642886161804, 0.00019588228315114975, 0.00019101938232779503, 0.00014847097918391228, 0.00016603199765086174, 0.00016528042033314705, 0.00015667220577597618, 0.00019041262567043304, 0.0002223108895123005, 0.0002497648820281029, 0.00027903029695153236, 0.00032286113128066063, 0.00034680450335144997, 0.0003138650208711624, 0.0003318297676742077, 0.00035567767918109894, 0.0003454643301665783, 0.000314964447170496, 0.00022973259910941124, 0.00014514336362481117, 4.854938015341759e-05, 2.6323366910219193e-05, 2.028467133641243e-05, 0.0001132800243794918, 0.00020052632316946983, 0.00023887353017926216, 0.000244783703237772, 0.00023085111752152443, 0.00022673280909657478, 0.0001975400373339653, 0.0001867399550974369, 0.00021085655316710472, 0.00024072220548987389, 0.00028637703508138657, 0.00032206764444708824, 0.0003582579083740711, 0.000359369907528162, 0.000349205918610096, 0.0003280411474406719, 0.0002718893811106682, 0.00019532302394509315, 0.00019715866073966026, 0.00021272478625178337, 0.00022492511197924614, 0.0002635754644870758, 0.00023515569046139717, 0.00019788555800914764, 0.00010306853801012039, 5.952548235654831e-05, -1.4074612408876419e-05, -3.1074974685907364e-05, 2.7523376047611237e-05, 7.594423368573189e-05, 0.00015554716810584068, 0.00017181551083922386, 0.00020030001178383827, 0.00023890798911452293, 0.0002768603153526783, 0.0003266078419983387, 0.00033196108415722847, 0.000315024983137846, 0.00027056876569986343, 0.00027904147282242775, 0.00027534225955605507, 0.0002790880389511585, 0.00028641941025853157, 0.00024178018793463707, 0.00021143397316336632, 0.00022987136617302895, 0.00023402879014611244, 0.00018086377531290054, 0.0001711808145046234, 0.00015436066314578056, 0.00016090739518404007, 0.00017678039148449898, 0.00015422655269503593, 0.00016305549070239067, 0.00018044235184788704, 0.0001448444090783596, 0.00011561950668692589, 0.0001348075456917286, 0.0001702229492366314, 0.00019451649859547615, 0.0002023349516093731, 0.00021733995527029037, 0.00018100161105394363, 0.00017226627096533775, 0.00021739536896348, 0.000258010346442461, 0.00028972839936614037, 0.00029421737417578697, 0.00023989425972104073, 0.00016995565965771675, 0.00017773499712347984, 0.00018576113507151604, 0.0002174866385757923, 0.0002713301219046116, 0.00022456934675574303, 0.00025211088359355927, 0.0002775336615741253, 0.00027545588091015816, 0.00025715725496411324, 0.00019153067842125893, 0.00019523734226822853, 0.00015008263289928436, 9.209150448441505e-05, 3.436673432588577e-05, 3.3865682780742645e-05, 6.663473322987556e-05, 6.080279126763344e-05, 7.715309038758278e-05, 0.00011168187484145164, 9.258976206183434e-05, 5.920184776186943e-05, 4.169391468167305e-05, 5.281670019030571e-05, 8.204067125916481e-05, 8.743861690163612e-05, 8.406816050410271e-05, 9.70284454524517e-05, 0.0001331842504441738, 0.0001342720352113247, 0.00013996148481965065, 0.00013986369594931602, 0.0001390744000673294, 0.00015744613483548164, 0.00018122605979442596, 0.000160114374011755, 0.00014702416956424713, 0.00015578651800751686, 0.0001277378760278225, 0.00010162265971302986, 3.2979995012283325e-05, 2.081599086523056e-05, 6.687687709927559e-05, 0.00010781129822134972, 0.0001299097202718258, 0.00018862774595618248, 0.0002599037252366543, 0.00028535444289445877, 0.0002507367171347141, 0.00012700119987130165, -4.370370879769325e-05, -0.0001482493244111538, -0.00016206735745072365, -0.00012612855061888695, -9.786803275346756e-06, 0.00011398782953619957, 0.00019255606457591057, 0.00024329358711838722, 0.00023014051839709282, 0.00018190545961260796, 0.00013587577268481255, 0.00011090375483036041, 0.0001498148776590824, 0.00011236965656280518, 6.524240598082542e-05, 5.230167880654335e-05, 6.1029102653265e-05, 6.658630445599556e-05, 6.063748151063919e-05, 4.096422344446182e-05, -5.857739597558975e-05, -0.00015794718638062477, -0.0001710415817797184, -0.00011174893006682396, -1.7866957932710648e-05, 4.383223131299019e-05, 9.737489745020866e-05, 0.00013394467532634735, 0.0001123347319662571, 8.858507499098778e-05, 7.756194099783897e-05, 0.00010023964568972588, 0.00016465596854686737, 0.00017546769231557846, 0.00021211104467511177, 0.00021090684458613396, 0.00013884343206882477, 0.00011145789176225662, 4.834728315472603e-05, 5.69676049053669e-05, 2.3134052753448486e-05, 8.371053263545036e-05, 0.00015113316476345062, 0.00018195388838648796, 0.00016983365640044212, 9.761331602931023e-05, 8.3134975284338e-05, 7.057376205921173e-05, 9.518908336758614e-05, 0.0001407354138791561, 0.00017743883654475212, 0.00020451471209526062, 0.0002498519606888294, 0.0002817348577082157, 0.00026275357231497765, 0.00018383609130978584, 0.00012157158926129341, 1.5061814337968826e-05, -2.9224436730146408e-05, -2.3333821445703506e-05, 5.689961835741997e-05, 0.0001317639835178852, 0.0001792539842426777, 0.0002055610530078411, 0.00019594235345721245, 0.0001444532535970211, 0.00010429415851831436, 0.00013847416266798973, 0.00013070600107312202, 0.00014723744243383408, 0.00013695890083909035, 0.00010682409629225731, 7.835635915398598e-05, 0.0001014326699078083, 0.00010341871529817581, 9.322119876742363e-05, 0.00012100208550691605, 0.0001546642743051052, 0.0001184297725558281, 9.703589603304863e-05, 0.00010130321606993675, 7.37067312002182e-05, 7.623573765158653e-05, 5.4875388741493225e-05, 6.565265357494354e-05, 8.54278914630413e-05, 0.00010060984641313553, 7.581012323498726e-05, 6.2593724578619e-05, 5.3137075155973434e-05, 2.213660627603531e-05, 8.743628859519958e-05, 0.0001141098327934742, 0.000165675301104784, 0.00026680203154683113, 0.00026654312387108803, 0.00024798186495900154, 0.0002161567099392414, 0.00022768555209040642, 0.00021741772070527077, 0.00020926585420966148, 0.00023819832131266594, 0.00022964691743254662, 0.00018731970340013504, 0.00015986664220690727, 0.00017620157450437546, 0.0002027084119617939, 0.00022420799359679222, 0.00027610547840595245, 0.00023088743910193443, 0.00015174131840467453, 3.0607450753450394e-05, -4.529673606157303e-05, -4.255445674061775e-05, -7.553119212388992e-05, -3.2765790820121765e-05, 3.3802352845668793e-06, 0.00011687865480780602, 0.00018985522910952568, 0.00024297786876559258, 0.00027239928022027016, 0.0002314983867108822, 0.00021120114251971245, 0.00014903955161571503, 7.743388414382935e-05, 7.725832983851433e-05, 0.00010032067075371742, 0.00016714492812752724, 0.00023172656074166298, 0.00026289839297533035, 0.0003105183131992817, 0.0003330036997795105, 0.000349454116076231, 0.00031292857602238655, 0.00023759296163916588, 0.00014958297833800316, 9.061815217137337e-05, 9.137438610196114e-05, 4.9244146794080734e-05, 6.362935528159142e-05, 9.391224011778831e-05, 0.00015845755115151405, 0.00016704155132174492, 0.00011310959234833717, 4.153931513428688e-05, 4.999805241823196e-06, 5.003577098250389e-05, 9.165983647108078e-05, 0.0002441219985485077, 0.0003134249709546566, 0.00037798937410116196, 0.0003784266300499439, 0.00031761033460497856, 0.00021614087745547295, 0.00011860346421599388, 9.410874918103218e-05, 0.00017137965187430382, 0.0002535567618906498, 0.00030966801568865776, 0.0002847411669790745, 0.00020349444821476936, 0.00010883389040827751, 3.302609547972679e-05, 7.014255970716476e-05, 0.00012776348739862442, 0.00021413667127490044, 0.0002439063973724842, 0.00031236791983246803, 0.00029969075694680214, 0.00027042534202337265, 0.00023691868409514427, 0.00014901626855134964, 4.839198663830757e-05, 5.6438148021698e-06, 1.304037868976593e-05, 6.716838106513023e-05, 8.63480381667614e-05, 0.00010145129635930061, 0.0001345365308225155, 0.00017325859516859055, 0.00020046764984726906, 0.00018547335639595985, 0.0002054697833955288, 0.0002019745297729969, 0.00019070599228143692, 0.00016156258061528206, 0.00012638093903660774, 0.0001559220254421234, 0.00017759529873728752, 0.00016316678375005722, 0.0001648915931582451, 0.00021112244576215744, 0.0002289903350174427, 0.00026563694700598717, 0.0003341664560139179, 0.00031609460711479187, 0.00031436653807759285, 0.0002985256724059582, 0.00029379548504948616, 0.0001923120580613613, 0.0001153736375272274, 6.069336086511612e-05, 7.29123130440712e-05, 8.313078433275223e-05, 0.00011742906644940376, 0.00015486916527152061, 0.00016475003212690353, 0.00019737053662538528, 0.00022791745141148567, 0.00020961370319128036, 0.00016907276585698128, 0.00016628997400403023, 0.00016421126201748848, 0.00017979741096496582, 0.0001659211702644825, 0.00015278952196240425, 0.00014280574396252632, 0.00014486536383628845, 0.00015432434156537056, 0.00016975775361061096, 0.00015753693878650665, 0.00014148885384202003, 0.00015301303938031197, 0.00021384889259934425, 0.00021517043933272362, 0.00026118895038962364, 0.00025643641129136086, 0.00029027415439486504, 0.00023266393691301346, 0.0001995624043047428, 0.00015601003542542458, 0.00013958802446722984, 0.0001702415756881237, 0.00010565435513854027, 7.552886381745338e-05, 5.746167153120041e-05, 7.463386282324791e-05, 3.928551450371742e-05, 6.301281973719597e-05, 0.00012629898265004158, 0.000151053536683321, 0.0001492854207754135, 0.000180752482265234, 0.00020456314086914062, 0.00020919321104884148, 0.00021577486768364906, 0.0002531660720705986, 0.00026199640706181526, 0.00028633465990424156, 0.00026262691244482994, 0.000225873664021492, 0.000191511120647192, 0.00015032337978482246, 0.00010162685066461563, 0.00010314537212252617, 0.00012671248987317085, 0.00011392449960112572, 0.00012107100337743759, 0.0001187487505376339, 0.00016146572306752205, 0.00020353635773062706, 0.0002280161716043949, 0.00020734919235110283, 0.0001791524700820446, 0.0001854696311056614, 0.00016519427299499512, 0.00016846135258674622, 0.0001360359601676464, 8.883466944098473e-05, 7.652537897229195e-05, 9.478768333792686e-05, 0.0001673228107392788, 0.00022582337260246277, 0.000231926329433918, 0.00022293208166956902, 0.0002657179720699787, 0.00022155093029141426, 0.00017569540068507195, 0.00014821067452430725, 0.0001711682416498661, 0.00023174891248345375, 0.00030165398493409157, 0.0002897125668823719, 0.0002620466984808445, 0.0002245851792395115, 0.00016821781173348427, 0.00010076863691210747, 2.2388994693756104e-05, -1.4523975551128387e-06, 1.3187061995267868e-05, 0.00010538846254348755, 0.00018142769113183022, 0.00027927709743380547, 0.00030904216691851616, 0.00034361518919467926, 0.0003059585578739643, 0.0002962164580821991, 0.00029360456392169, 0.0003351042978465557, 0.0003566727973520756, 0.0003242422826588154, 0.00029618898406624794, 0.0002486878074705601, 0.0002470514737069607, 0.00026508932933211327, 0.00025655655190348625, 0.00026322295889258385, 0.0003271265886723995, 0.0003204359672963619, 0.00033833086490631104, 0.00033296411857008934, 0.0003120605833828449, 0.00029746489599347115, 0.0002769692800939083, 0.00021290825679898262, 0.00017542438581585884, 0.00018440186977386475, 0.00024387706071138382, 0.00023960229009389877, 0.00027403514832258224, 0.00029807304963469505, 0.00025921780616045, 0.00020518479868769646, 0.00015771342441439629, 0.00022245105355978012, 0.0002489476464688778, 0.00028447387740015984, 0.00028173578903079033, 0.0003051203675568104, 0.0003085625357925892, 0.00027816975489258766, 0.00029928237199783325, 0.0003014770336449146, 0.00028519192710518837, 0.00029392587020993233, 0.00026800530031323433, 0.00018767593428492546, 0.00017691822722554207, 0.00019575795158743858, 0.00018866406753659248, 0.00023009907454252243, 0.0002300799824297428, 0.0001753498800098896, 0.00017860019579529762, 0.00013621384277939796, 0.00012479117140173912, 0.000178568996489048, 0.00017997389659285545, 0.00024558836594223976, 0.00029040640220046043, 0.00032847700640559196, 0.000343893188983202, 0.00033819442614912987, 0.00033064326271414757, 0.0003138761967420578, 0.0003670877777040005, 0.00037326104938983917, 0.0003719078376889229, 0.0003392323851585388, 0.0003342796117067337, 0.0003264634869992733, 0.000360873993486166, 0.0004042452201247215, 0.00034971674904227257, 0.0002930988557636738, 0.00022819079458713531, 0.00017952313646674156, 0.0001545012928545475, 0.00016796449199318886, 0.00016340753063559532, 0.00018983520567417145, 0.00022928370162844658, 0.00025301985442638397, 0.0002694418653845787, 0.0002105659805238247, 0.00015351874753832817, 0.00011963117867708206, 0.00010542990639805794, 0.00011414103209972382, 0.0001238565891981125, 9.106146171689034e-05, 0.00011501414701342583, 0.00013694027438759804, 0.00020913966000080109, 0.000258502084761858, 0.0003012167289853096, 0.0003716382198035717, 0.0004040221683681011, 0.0004402841441333294, 0.000427949707955122, 0.0003999895416200161, 0.00035862671211361885, 0.0002855672501027584, 0.0001509874127805233, 7.543712854385376e-05, 7.677869871258736e-05, 0.0001526237465441227, 0.00023382948711514473, 0.00032507069408893585, 0.0003636181354522705, 0.0003501330502331257, 0.00028381170704960823, 0.00017208745703101158, 9.22931358218193e-05, 4.112115129828453e-05, 1.3905111700296402e-05, 5.056383088231087e-05, 9.528500959277153e-05, 0.00015150289982557297, 0.00020101526752114296, 0.00020978273823857307, 0.0002419627271592617, 0.0002461732365190983, 0.00022353790700435638, 0.00019102077931165695, 0.0001927628181874752, 0.00020117266103625298, 0.00021960120648145676, 0.000277714803814888, 0.00030631618574261665, 0.00022712722420692444, 0.00013849744573235512, 7.198471575975418e-05, -1.406809315085411e-05, -2.6617664843797684e-05, 9.086448699235916e-06, 7.743854075670242e-05, 0.000129790510982275, 0.00014479504898190498, 0.00017145881429314613, 0.00013765553012490273, 9.869085624814034e-05, 5.357107147574425e-05, 5.812849849462509e-05, 0.000138754490762949, 0.0002109571360051632, 0.00023970939218997955, 0.00022135023027658463, 0.00020222598686814308, 0.00020548654720187187, 0.0002628243528306484, 0.0002875928767025471, 0.0002705981023609638, 0.00025475025177001953, 0.00022886833176016808, 0.000245469156652689, 0.0002762111835181713, 0.0003025517798960209, 0.0003158366307616234, 0.0002758321352303028, 0.0002625896595418453, 0.0001906324177980423, 0.0001246272586286068, 5.270726978778839e-05, -3.5550910979509354e-05, -3.460375592112541e-05, -5.489308387041092e-05, -2.9378104954957962e-05, 7.577100768685341e-05, 0.00015419861301779747, 0.00023452145978808403, 0.0002620532177388668, 0.00022154813632369041, 0.0001671970821917057, 0.00011886144056916237, 0.00011383136734366417, 0.00013208715245127678, 0.00016524968668818474, 0.00018385006114840508, 0.00016969302669167519, 0.00012985896319150925, 0.00011178012937307358, 0.00010174792259931564, 0.0001563369296491146, 0.00016761897131800652, 0.0001722988672554493, 0.00016183918341994286, 0.00014650309458374977, 0.00011655641719698906, 0.00010578753426671028, 8.245417848229408e-05, 6.450433284044266e-05, 8.095428347587585e-05, 6.855465471744537e-05, 0.00011232495307922363, 0.00011029280722141266, 0.00015149591490626335, 0.00014847004786133766, 0.00016254140064120293, 0.00014853384345769882, 0.0001464514061808586, 0.0001356257125735283, 9.34540294110775e-05, 4.6440865844488144e-05, 2.4877022951841354e-05, -1.3229437172412872e-06, -4.7758687287569046e-05, -5.089445039629936e-05, -5.4558273404836655e-05, -5.959533154964447e-06, 7.240613922476768e-05, 0.00015345215797424316, 0.00016846461221575737, 0.00019718753173947334, 0.00021845055744051933, 0.0002607232891023159, 0.00030378764495253563, 0.0003002793528139591, 0.00027243467047810555, 0.00022125756368041039, 0.0001616128720343113, 6.840471178293228e-05, -2.173241227865219e-06, 2.2238586097955704e-05, 4.3301377445459366e-05, 8.83941538631916e-05, 0.00011535687372088432, 0.0001323535107076168, 0.00012109382078051567, 8.667493239045143e-05, 5.958741530776024e-05, 6.117206066846848e-05, 6.582681089639664e-05, 9.86163504421711e-05, 0.0001602238044142723, 0.0001880698837339878, 0.00020194659009575844, 0.0001825764775276184, 0.00018913066014647484, 0.00017694570124149323, 0.0001620701514184475, 0.0001372150145471096, 0.00014517223462462425, 0.00014140596613287926, 0.0001706499606370926, 0.0001375884748995304, 4.6755652874708176e-05, 1.0082963854074478e-05, 7.309485226869583e-06, 7.065478712320328e-06, 3.296090289950371e-05, 0.00012152409180998802, 0.00020712241530418396, 0.0002572922967374325, 0.00025916658341884613, 0.00023860810324549675, 0.00016631325706839561, 2.3422762751579285e-05, -1.1031515896320343e-05, -1.9991304725408554e-05, 6.495509296655655e-06, 8.939579129219055e-05, 0.00012145563960075378, 0.0001463429071009159, 0.0001414748840034008, 0.0001507471315562725, 0.00019629066810011864, 0.00025558890774846077, 0.00030065374448895454, 0.0003155064769089222, 0.0002620159648358822, 0.0002019316889345646, 0.00016356399282813072, 0.0001506744883954525, 0.00012953532859683037, 0.00011104950681328773, 0.00010513467714190483, 0.0001408425159752369, 0.0002090982161462307, 0.0002634478732943535, 0.00023100711405277252, 0.0002005724236369133, 0.00013263477012515068, 4.640407860279083e-05, 6.7730434238910675e-06, -3.765663132071495e-05, -3.244727849960327e-06, 2.5771092623472214e-05, 5.987705662846565e-05, 0.0001016366295516491, 0.00011254986748099327, 0.00013354932889342308, 8.022459223866463e-05, 1.3608019798994064e-05, 2.5506597012281418e-05, 3.808038309216499e-05, 7.180916145443916e-05, 0.00010392209514975548, 0.00014688726514577866, 9.37306322157383e-05, 8.814269676804543e-05, 0.00011589424684643745, 6.434740498661995e-05, 8.365605026483536e-05, 9.124958887696266e-05, 0.0001054098829627037, 0.0001556803472340107, 0.00018108682706952095, 0.00019090576097369194, 0.00020478153601288795, 0.0001800484023988247, 0.00013007549569010735, 5.800928920507431e-05, 8.908100426197052e-07, -3.0924100428819656e-05, -4.240265116095543e-05, -5.138572305440903e-05, -3.09087336063385e-05, -2.1975021809339523e-05, -1.570163294672966e-05, 3.669457510113716e-05, 7.17570073902607e-05, 0.00013736216351389885, 0.0001916126348078251, 0.00023083621636033058, 0.0002415231429040432, 0.00021488219499588013, 0.00025562429800629616, 0.00024127261713147163, 0.00023026205599308014, 0.0002570603974163532, 0.00020722439512610435, 0.0001329672522842884, 7.87428580224514e-05, 3.666942939162254e-05, 2.3222528398036957e-06, 8.523324504494667e-05, 0.0001612883061170578, 0.00019069435074925423, 0.00019067572429776192, 0.00015659211203455925, 9.598303586244583e-05, 5.7320110499858856e-05, 5.55478036403656e-05, 2.9482413083314896e-05, -1.5770550817251205e-05, -2.081179991364479e-05, 1.0740477591753006e-05, 3.668246790766716e-05, 0.00011412287130951881, 0.00016557471826672554, 0.000193700660020113, 0.00018514646217226982, 0.00014917878434062004, 9.474670514464378e-05, 5.217967554926872e-05, 3.644777461886406e-05, 8.570076897740364e-05, 0.0001343325711786747, 0.00012511806562542915, 0.00011508539319038391, 0.00011813035234808922, 0.00014221016317605972, 0.00014082295820116997, 0.00012812437489628792, 0.00011718831956386566, 0.00014647142961621284, 0.00014473404735326767, 0.00015646358951926231, 0.00020285090431571007, 0.0001972573809325695, 0.00018517067655920982, 0.0001963842660188675, 0.00014576222747564316, 0.00014395778998732567, 0.00020130537450313568, 0.00021965289488434792, 0.00020183902233839035, 0.00016048038378357887, 0.00013667577877640724, 7.563363760709763e-05, 8.555548265576363e-05, 8.500507101416588e-05, 5.2824150770902634e-05, 8.250819519162178e-05, 0.00012071477249264717, 0.00014682533219456673, 0.00013559451326727867, 5.725910887122154e-05, 8.986331522464752e-06, 2.4620909243822098e-05, 8.512148633599281e-05, 0.00015564868226647377, 0.00019079027697443962, 0.00020783627405762672, 0.00016619544476270676, 0.00015689292922616005, 0.00013269344344735146, 0.000135831069201231, 0.0001435200683772564, 0.0001834477297961712, 0.00021957000717520714, 0.00021636812016367912, 0.00022275280207395554, 0.000184724573045969, 0.0001582913100719452, 0.0001229965128004551, 0.0001118839718401432, 8.59568826854229e-05, 9.529897943139076e-05, 0.00014976086094975471, 0.000221294816583395, 0.00030599115416407585, 0.0003387243486940861, 0.00034284405410289764, 0.0003044973127543926, 0.0002508987672626972, 0.00020281504839658737, 0.00020607560873031616, 0.00022176047787070274, 0.00023603811860084534, 0.00018454110249876976, 0.00014711031690239906, 0.00017768330872058868, 0.00013378867879509926, 0.00015912065282464027, 0.00016039330512285233, 0.0001970822922885418, 0.00024004420265555382, 0.0002415054477751255, 0.00023567257449030876, 0.00017239851877093315, 0.0001506749540567398, 0.0001681479625403881, 0.00019460218027234077, 0.0001580272801220417, 0.0001921486109495163, 0.00021939445286989212, 0.00026227347552776337, 0.00030716462060809135, 0.00029493076726794243, 0.00027258601039648056, 0.00023766746744513512, 0.00017625140026211739, 0.00012747012078762054, 0.00010791560634970665, 0.0001232624053955078, 0.00013249646872282028, 0.00014351354911923409, 0.0001481776125729084, 0.00014928961172699928, 0.00017964467406272888, 0.00020508607849478722, 0.00021828897297382355, 0.00022049015387892723, 0.0002674665302038193, 0.00025959359481930733, 0.00022502383217215538, 0.00016812700778245926, 0.00014067860320210457, 0.00013113534078001976, 0.00010947789996862411, 0.00015297671779990196, 0.00019029900431632996, 0.0002174084074795246, 0.0002080085687339306, 0.00013910094276070595, 9.908853098750114e-05, 4.07705083489418e-05, 2.76835635304451e-05, 2.8508249670267105e-05, 8.857110515236855e-05, 0.00010713795199990273, 0.00016029877588152885, 0.00022803014144301414, 0.0002957717515528202, 0.0003540259785950184, 0.00037232832983136177, 0.0003734552301466465, 0.0003199302591383457, 0.0002938029356300831, 0.0002528461627662182, 0.00021676020696759224, 0.00017777597531676292, 0.00017364369705319405, 0.00016172369942069054, 0.00018073851242661476, 0.00018162047490477562, 0.00014212774112820625, 0.00011818064376711845, 0.00014514802023768425, 0.00013899477198719978, 0.00017128465697169304, 0.0001687011681497097, 0.00018266262486577034, 0.00022355886176228523, 0.00024063466116786003, 0.0002787122502923012, 0.0003154659643769264, 0.00033456506207585335, 0.00034004030749201775, 0.0003440207801759243, 0.00028424058109521866, 0.0002738623879849911, 0.00026674894616007805, 0.00024896906688809395, 0.00025945575907826424, 0.00027621397748589516, 0.0002949223853647709, 0.00027795974165201187, 0.00024254154413938522, 0.00020584231242537498, 0.00017205718904733658, 0.0001995679922401905, 0.00022977637127041817, 0.00025580497458577156, 0.00024502212181687355, 0.00023384159430861473, 0.00019245175644755363, 0.000154965091496706, 0.00012126797810196877, 0.00012110499665141106, 0.00018449174240231514, 0.00022226013243198395, 0.00027826614677906036, 0.00034218328073620796, 0.00037358934059739113, 0.0003536120057106018, 0.000315861776471138, 0.00021863309666514397, 9.954487904906273e-05, 8.503859862685204e-05, 0.00010430300608277321, 0.00015860004350543022, 0.0002684900537133217, 0.0003843465819954872, 0.0004415134899318218, 0.0003933827392756939, 0.0003703618422150612, 0.0002987566404044628, 0.0002523777075111866, 0.0002369196154177189, 0.00016940711066126823, 0.00015349918976426125, 0.00010609813034534454, 0.00013597076758742332, 0.00018791435286402702, 0.00020110653713345528, 0.00022172462195158005, 0.00021210266277194023, 0.00022209109738469124, 0.0002445601858198643, 0.00022357190027832985, 0.0001662224531173706, 0.00014500319957733154, 0.00012130523100495338, 0.00012596789747476578, 0.00017370982095599174, 0.00022943178191781044, 0.00017912639304995537, 0.00015453854575753212, 0.0001469026319682598, 0.00014174776151776314, 0.0001279669813811779, 0.00012001348659396172, 0.0001733819954097271, 0.00023750215768814087, 0.0003113723360002041, 0.0003347122110426426, 0.00037763314321637154, 0.0003783097490668297, 0.00036067282781004906, 0.00029251305386424065, 0.00023890100419521332, 0.00020155776292085648, 0.0002052956260740757, 0.00022455165162682533, 0.00016171718016266823, 0.0001743081957101822, 0.00017896806821227074, 0.00021600164473056793, 0.00023706024512648582, 0.00028277700766921043, 0.0003978353925049305, 0.00044687045738101006, 0.00048297178000211716, 0.0004619746468961239, 0.00038757501170039177, 0.0002992721274495125, 0.00023231422528624535, 0.00022279517725110054, 0.00023630307987332344, 0.00019343337044119835, 0.00015638535842299461, 0.0001361384056508541, 0.00013652117922902107 ], "metadata": { "name": "tw40_california_clean_deerinkstudios", "samplerate": "48000", "source": "original", "style": "clean", "based": "Egnater Tweaker 40", "author": "deer ink studios", "dataset": "custom", "license": "CC BY-NC-ND 4.0", "esr": 0.17783235013484955 } } ================================================ FILE: src/3rd-party.cpp ================================================ /* * AIDA-X DPF plugin * Copyright (C) 2023 Filipe Coelho * SPDX-License-Identifier: GPL-3.0-or-later */ #define DR_FLAC_IMPLEMENTATION #include "dr_flac.h" #define DR_WAV_IMPLEMENTATION #include "dr_wav.h" ================================================ FILE: src/Biquad.cpp ================================================ // // Biquad.cpp // // Created by Nigel Redmon on 11/24/12 // EarLevel Engineering: earlevel.com // Copyright 2012 Nigel Redmon // // For a complete explanation of the Biquad code: // http://www.earlevel.com/main/2012/11/26/biquad-c-source-code/ // // License: // // This source code is provided as is, without warranty. // You may copy and distribute verbatim copies of this document. // You may modify and use this source code to create binary code // for your own purposes, free or commercial. // #include #include "Biquad.h" Biquad::Biquad() { type = bq_type_lowpass; a0 = 1.0; a1 = a2 = b1 = b2 = 0.0; Fc = 0.50; Q = 0.707; peakGain = 0.0; z1 = z2 = 0.0; } Biquad::Biquad(int type, double Fc, double Q, double peakGainDB) { setBiquad(type, Fc, Q, peakGainDB); z1 = z2 = 0.0; } Biquad::~Biquad() { } void Biquad::setType(int type) { this->type = type; calcBiquad(); } void Biquad::setQ(double Q) { this->Q = Q; calcBiquad(); } void Biquad::setFc(double Fc) { this->Fc = Fc; calcBiquad(); } void Biquad::setPeakGain(double peakGainDB) { this->peakGain = peakGainDB; calcBiquad(); } void Biquad::setBiquad(int type, double Fc, double Q, double peakGainDB) { this->type = type; this->Q = Q; this->Fc = Fc; setPeakGain(peakGainDB); } void Biquad::calcBiquad(void) { double norm; double V = pow(10, fabs(peakGain) / 20.0); double K = tan(M_PI * Fc); switch (this->type) { case bq_type_lowpass: norm = 1 / (1 + K / Q + K * K); a0 = K * K * norm; a1 = 2 * a0; a2 = a0; b1 = 2 * (K * K - 1) * norm; b2 = (1 - K / Q + K * K) * norm; break; case bq_type_highpass: norm = 1 / (1 + K / Q + K * K); a0 = 1 * norm; a1 = -2 * a0; a2 = a0; b1 = 2 * (K * K - 1) * norm; b2 = (1 - K / Q + K * K) * norm; break; case bq_type_bandpass: norm = 1 / (1 + K / Q + K * K); a0 = K / Q * norm; a1 = 0; a2 = -a0; b1 = 2 * (K * K - 1) * norm; b2 = (1 - K / Q + K * K) * norm; break; case bq_type_notch: norm = 1 / (1 + K / Q + K * K); a0 = (1 + K * K) * norm; a1 = 2 * (K * K - 1) * norm; a2 = a0; b1 = a1; b2 = (1 - K / Q + K * K) * norm; break; case bq_type_peak: if (peakGain >= 0) { // boost norm = 1 / (1 + 1/Q * K + K * K); a0 = (1 + V/Q * K + K * K) * norm; a1 = 2 * (K * K - 1) * norm; a2 = (1 - V/Q * K + K * K) * norm; b1 = a1; b2 = (1 - 1/Q * K + K * K) * norm; } else { // cut norm = 1 / (1 + V/Q * K + K * K); a0 = (1 + 1/Q * K + K * K) * norm; a1 = 2 * (K * K - 1) * norm; a2 = (1 - 1/Q * K + K * K) * norm; b1 = a1; b2 = (1 - V/Q * K + K * K) * norm; } break; case bq_type_lowshelf: if (peakGain >= 0) { // boost norm = 1 / (1 + sqrt(2) * K + K * K); a0 = (1 + sqrt(2*V) * K + V * K * K) * norm; a1 = 2 * (V * K * K - 1) * norm; a2 = (1 - sqrt(2*V) * K + V * K * K) * norm; b1 = 2 * (K * K - 1) * norm; b2 = (1 - sqrt(2) * K + K * K) * norm; } else { // cut norm = 1 / (1 + sqrt(2*V) * K + V * K * K); a0 = (1 + sqrt(2) * K + K * K) * norm; a1 = 2 * (K * K - 1) * norm; a2 = (1 - sqrt(2) * K + K * K) * norm; b1 = 2 * (V * K * K - 1) * norm; b2 = (1 - sqrt(2*V) * K + V * K * K) * norm; } break; case bq_type_highshelf: if (peakGain >= 0) { // boost norm = 1 / (1 + sqrt(2) * K + K * K); a0 = (V + sqrt(2*V) * K + K * K) * norm; a1 = 2 * (K * K - V) * norm; a2 = (V - sqrt(2*V) * K + K * K) * norm; b1 = 2 * (K * K - 1) * norm; b2 = (1 - sqrt(2) * K + K * K) * norm; } else { // cut norm = 1 / (V + sqrt(2*V) * K + K * K); a0 = (1 + sqrt(2) * K + K * K) * norm; a1 = 2 * (K * K - 1) * norm; a2 = (1 - sqrt(2) * K + K * K) * norm; b1 = 2 * (K * K - V) * norm; b2 = (V - sqrt(2*V) * K + K * K) * norm; } break; } return; } ================================================ FILE: src/Biquad.h ================================================ // // Biquad.h // // Created by Nigel Redmon on 11/24/12 // EarLevel Engineering: earlevel.com // Copyright 2012 Nigel Redmon // // For a complete explanation of the Biquad code: // http://www.earlevel.com/main/2012/11/26/biquad-c-source-code/ // // License: // // This source code is provided as is, without warranty. // You may copy and distribute verbatim copies of this document. // You may modify and use this source code to create binary code // for your own purposes, free or commercial. // #ifndef Biquad_h #define Biquad_h enum { bq_type_lowpass = 0, bq_type_highpass, bq_type_bandpass, bq_type_notch, bq_type_peak, bq_type_lowshelf, bq_type_highshelf }; class Biquad { public: Biquad(); Biquad(int type, double Fc, double Q, double peakGainDB); ~Biquad(); void setType(int type); void setQ(double Q); void setFc(double Fc); void setPeakGain(double peakGainDB); void setBiquad(int type, double Fc, double Q, double peakGainDB); float process(float in); protected: void calcBiquad(void); int type; double a0, a1, a2, b1, b2; double Fc, Q, peakGain; double z1, z2; }; inline float Biquad::process(float in) { double out = in * a0 + z1; z1 = in * a1 + z2 - b1 * out; z2 = in * a2 - b2 * out; return out; } #endif // Biquad_h ================================================ FILE: src/DistrhoPluginCommon.hpp ================================================ /* * AIDA-X DPF plugin * Copyright (C) 2022-2023 Massimo Pennazio * Copyright (C) 2023-2024 Filipe Coelho * SPDX-License-Identifier: GPL-3.0-or-later */ #pragma once #include "DistrhoDetails.hpp" static constexpr const char* const kVersionString = "v1.1.0"; static constexpr const uint32_t kVersionNumber = d_version(1, 1, 0); #define DISTRHO_PLUGIN_BRAND "AIDA DSP" #define DISTRHO_PLUGIN_NAME "AIDA-X" #define DISTRHO_PLUGIN_URI "http://aidadsp.cc/plugins/aidadsp-bundle/rt-neural-loader" #define DISTRHO_PLUGIN_CLAP_ID "cc.aidadsp.rt-neural-loader" #define DISTRHO_PLUGIN_HAS_UI 1 #define DISTRHO_PLUGIN_IS_RT_SAFE 1 #define DISTRHO_PLUGIN_WANT_PROGRAMS 0 #define DISTRHO_PLUGIN_WANT_STATE 1 #define DISTRHO_UI_FILE_BROWSER 1 #define DISTRHO_UI_USE_NANOVG 1 #define DISTRHO_PLUGIN_EXTRA_IO { 2, 2 }, #define DISTRHO_PLUGIN_CLAP_FEATURES "audio-effect", "multi-effects", "mono" #define DISTRHO_PLUGIN_LV2_CATEGORY "lv2:SimulatorPlugin" #define DISTRHO_PLUGIN_VST3_CATEGORIES "Fx|Dynamics|Mono" #define DISTRHO_PLUGIN_BRAND_ID Aida #define DISTRHO_PLUGIN_UNIQUE_ID aida // needed because AIDA-X predates DPF support for VST3 brand uid #define DPF_VST3_DONT_USE_BRAND_ID 1 #if DISTRHO_PLUGIN_VARIANT_STANDALONE && DISTRHO_PLUGIN_NUM_INPUTS == 0 # define AIDAX_WITH_AUDIOFILE 1 #else # define AIDAX_WITH_AUDIOFILE 0 #endif #if DISTRHO_PLUGIN_VARIANT_STANDALONE && DISTRHO_PLUGIN_NUM_INPUTS != 0 # define AIDAX_WITH_STANDALONE_CONTROLS 1 #else # define AIDAX_WITH_STANDALONE_CONTROLS 0 #endif // known and defined in advance static constexpr const uint kPedalWidth = 900; static constexpr const uint kPedalHeight = 318; #ifndef MOD_BUILD static constexpr const uint kPedalMargin = 20; static constexpr const uint kPedalMarginTop = 40; #else static constexpr const uint kPedalMargin = 0; static constexpr const uint kPedalMarginTop = 0; #endif #define DISTRHO_UI_DEFAULT_WIDTH (kPedalWidth + kPedalMargin * 2) #define DISTRHO_UI_DEFAULT_HEIGHT (kPedalHeight + kPedalMargin + kPedalMarginTop) static constexpr const char* const kDefaultModelName = "tw40_california_clean.json"; static constexpr const char* const kDefaultCabinetName = "V30-P2-audix-i5.wav"; static constexpr const float kMinimumMeterDb = -60.f; enum Parameters { kParameterINLPF, kParameterINLEVEL, kParameterNETBYPASS, kParameterEQBYPASS, kParameterEQPOS, kParameterBASSGAIN, kParameterBASSFREQ, kParameterMIDGAIN, kParameterMIDFREQ, kParameterMIDQ, kParameterMTYPE, kParameterTREBLEGAIN, kParameterTREBLEFREQ, kParameterDEPTH, kParameterPRESENCE, kParameterOUTLEVEL, kParameterCABSIMBYPASS, kParameterGLOBALBYPASS, kParameterPARAM1, kParameterPARAM2, kParameterDCBLOCKER, kParameterModelInputSize, kParameterMeterIn, kParameterMeterOut, kParameterCount }; enum States { kStateModelFile, kStateImpulseFile, #if AIDAX_WITH_AUDIOFILE kStateAudioFile, #endif kStateCount }; enum EqPos { kEqPost, kEqPre }; enum MidEqType { kMidEqPeak, kMidEqBandpass }; static ParameterEnumerationValue kEQPOS[2] = { { kEqPost, "POST" }, { kEqPre, "PRE" } }; static ParameterEnumerationValue kMTYPE[2] = { { kMidEqPeak, "PEAK" }, { kMidEqBandpass, "BANDPASS" } }; static ParameterEnumerationValue kBYPASS[2] = { { 0.f, "ON" }, { 1.f, "OFF" } }; static ParameterEnumerationValue kModelInSize[4] = { { 0.f, "ERROR" }, { 1.f, "SNAPSHOT" }, { 2.f, "WITH 1 PARAM" }, { 3.f, "WITH 2 PARAMS" } }; static const Parameter kParameters[] = { { kParameterIsAutomatable, "ANTIALIASING", "ANTIALIASING", "%", 66.216f, 0.f, 100.f, }, { kParameterIsAutomatable, "INPUT", "PREGAIN", "dB", 0.f, -12.f, 12.f, }, { kParameterIsAutomatable|kParameterIsBoolean|kParameterIsInteger, "NETBYPASS", "NETBYPASS", "", 0.f, 0.f, 1.f, }, { kParameterIsAutomatable|kParameterIsBoolean|kParameterIsInteger, "EQBYPASS", "EQBYPASS", "", 0.f, 0.f, 1.f, }, { kParameterIsAutomatable|kParameterIsInteger, "EQPOS", "EQPOS", "", 0.f, 0.f, 1.f, ARRAY_SIZE(kEQPOS), kEQPOS }, { kParameterIsAutomatable, "BASS", "BASS", "dB", 0.f, -8.f, 8.f, }, { kParameterIsAutomatable, "BFREQ", "BFREQ", "Hz", 305.f, 75.f, 600.f, }, { kParameterIsAutomatable, "MID", "MID", "dB", 0.f, -8.f, 8.f, }, { kParameterIsAutomatable, "MFREQ", "MFREQ", "Hz", 750.f, 150.f, 5000.f, }, { kParameterIsAutomatable, "MIDQ", "MIDQ", "", 0.707f, 0.2f, 5.f, }, { kParameterIsAutomatable|kParameterIsInteger, "MTYPE", "MTYPE", "", 0.f, 0.f, 1.f, ARRAY_SIZE(kMTYPE), kMTYPE }, { kParameterIsAutomatable, "TREBLE", "TREBLE", "dB", 0.f, -8.f, 8.f, }, { kParameterIsAutomatable, "TFREQ", "TFREQ", "Hz", 2000.f, 1000.f, 4000.f, }, { kParameterIsAutomatable, "DEPTH", "DEPTH", "dB", 0.f, -8.f, 8.f, }, { kParameterIsAutomatable, "PRESENCE", "PRESENCE", "dB", 0.f, -8.f, 8.f, }, { kParameterIsAutomatable, "OUTPUT", "MASTER", "dB", 0.f, -15.f, 15.f, }, { kParameterIsAutomatable|kParameterIsBoolean|kParameterIsInteger, "CABSIMBYPASS", "CABSIMBYPASS", "", 0.f, 0.f, 1.f, }, { kParameterIsAutomatable|kParameterIsBoolean|kParameterIsInteger, "Bypass", "dpf_bypass", "", 0.f, 0.f, 1.f, ARRAY_SIZE(kBYPASS), kBYPASS }, { kParameterIsAutomatable, "PARAM1", "PARAM1", "", 0.f, 0.f, 1.f, }, { kParameterIsAutomatable, "PARAM2", "PARAM2", "", 0.f, 0.f, 1.f, }, { kParameterIsAutomatable|kParameterIsBoolean|kParameterIsInteger, "DCBLOCKER", "DCBLOCKER", "", 1.f, 0.f, 1.f, }, { kParameterIsOutput, "Model Input Size", "ModelInSize", "", 0.f, 0.f, 3.f, ARRAY_SIZE(kModelInSize), kModelInSize }, { kParameterIsOutput, "Meter In", "MeterIn", "dB", 0.f, 0.f, 2.f, }, { kParameterIsOutput, "Meter Out", "MeterOut", "dB", 0.f, 0.f, 2.f, }, }; static constexpr const uint kNumParameters = ARRAY_SIZE(kParameters); static_assert(kNumParameters == kParameterCount, "Matched num params"); ================================================ FILE: src/Semaphore.hpp ================================================ /* * DISTRHO Plugin Framework (DPF) * Copyright (C) 2012-2023 Filipe Coelho * SPDX-License-Identifier: ISC */ #ifndef DISTRHO_SEMAPHORE_HPP_INCLUDED #define DISTRHO_SEMAPHORE_HPP_INCLUDED #include "extra/String.hpp" #if defined(DISTRHO_OS_MAC) # include # include #elif defined(DISTRHO_OS_WINDOWS) # ifndef NOMINMAX # define NOMINMAX # endif # include # include #else # include # include #endif START_NAMESPACE_DISTRHO // -------------------------------------------------------------------------------------------------------------------- class Semaphore { public: Semaphore(const int initialValue = 0) { #if defined(DISTRHO_OS_MAC) DISTRHO_SAFE_ASSERT_RETURN(semaphore_create(mach_task_self(), &sem, SYNC_POLICY_FIFO, initialValue) == KERN_SUCCESS,); #elif defined(DISTRHO_OS_WINDOWS) handle = ::CreateSemaphoreA(nullptr, initialValue, std::max(initialValue, 1), nullptr); DISTRHO_SAFE_ASSERT_RETURN(handle != INVALID_HANDLE_VALUE,); #else ::sem_init(&sem, 0, initialValue); #endif } ~Semaphore() { #if defined(DISTRHO_OS_MAC) ::semaphore_destroy(mach_task_self(), sem); #elif defined(DISTRHO_OS_WINDOWS) ::CloseHandle(handle); #else ::sem_destroy(&sem); #endif } void post() { #if defined(DISTRHO_OS_MAC) ::semaphore_signal(sem); #elif defined(DISTRHO_OS_WINDOWS) ::ReleaseSemaphore(handle, 1, nullptr); #else ::sem_post(&sem); #endif } bool wait() { #if defined(DISTRHO_OS_MAC) return ::semaphore_wait(sem) == KERN_SUCCESS; #elif defined(DISTRHO_OS_WINDOWS) return ::WaitForSingleObject(handle, INFINITE) == WAIT_OBJECT_0; #else return ::sem_wait(&sem) == 0; #endif } bool timedWait(const uint numSecs) { #if defined(DISTRHO_OS_MAC) const struct mach_timespec time = { numSecs, 0 }; return ::semaphore_timedwait(sem, time) == KERN_SUCCESS; #elif defined(DISTRHO_OS_WINDOWS) return ::WaitForSingleObject(handle, numSecs * 1000) == WAIT_OBJECT_0; #else struct timespec timeout; ::clock_gettime(CLOCK_REALTIME, &timeout); timeout.tv_sec += numSecs; return ::sem_timedwait(&sem, &timeout) == 0; #endif } private: #if defined(DISTRHO_OS_MAC) ::semaphore_t sem; #elif defined(DISTRHO_OS_WINDOWS) ::HANDLE handle; #else ::sem_t sem; #endif }; // -------------------------------------------------------------------------------------------------------------------- END_NAMESPACE_DISTRHO #endif // DISTRHO_SEMAPHORE_HPP_INCLUDED ================================================ FILE: src/TwoStageThreadedConvolver.hpp ================================================ /* * 2-Stage Threaded Convolver * Copyright (C) 2022-2023 Filipe Coelho * SPDX-License-Identifier: ISC */ #pragma once #ifndef DISTRHO_OS_WASM # include "Semaphore.hpp" # include "extra/ScopedPointer.hpp" # include "extra/Thread.hpp" #endif #include "TwoStageFFTConvolver.h" START_NAMESPACE_DISTRHO // -------------------------------------------------------------------------------------------------------------------- #ifndef DISTRHO_OS_WASM class TwoStageThreadedConvolver : public fftconvolver::TwoStageFFTConvolver, private Thread { static constexpr const size_t kHeadBlockSize = 128; static constexpr const size_t kTailBlockSize = 1024; ScopedPointer nonThreadedConvolver; Semaphore semBgProcStart; Semaphore semBgProcFinished; public: TwoStageThreadedConvolver() : fftconvolver::TwoStageFFTConvolver(), Thread("TwoStageThreadedConvolver"), semBgProcStart(1), semBgProcFinished(0) { } ~TwoStageThreadedConvolver() override { if (nonThreadedConvolver != nullptr) { nonThreadedConvolver = nullptr; return; } signalThreadShouldExit(); semBgProcStart.post(); stopThread(5000); } bool init(const fftconvolver::Sample* const ir, const size_t irLen) { if (fftconvolver::TwoStageFFTConvolver::init(kHeadBlockSize, kTailBlockSize, ir, irLen)) { startThread(true); return true; } ScopedPointer conv(new fftconvolver::FFTConvolver); if (conv->init(kHeadBlockSize, ir, irLen)) { nonThreadedConvolver = conv.release(); return true; } return false; } void process(const fftconvolver::Sample* const input, fftconvolver::Sample* const output, const size_t len) { if (nonThreadedConvolver != nullptr) nonThreadedConvolver->process(input, output, len); else fftconvolver::TwoStageFFTConvolver::process(input, output, len); } protected: void startBackgroundProcessing() override { semBgProcStart.post(); } void waitForBackgroundProcessing() override { if (isThreadRunning() && !shouldThreadExit()) semBgProcFinished.wait(); } void run() override { while (!shouldThreadExit()) { semBgProcStart.wait(); if (shouldThreadExit()) break; doBackgroundProcessing(); semBgProcFinished.post(); } } DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(TwoStageThreadedConvolver) }; #else class TwoStageThreadedConvolver : public fftconvolver::FFTConvolver { static constexpr const size_t kHeadBlockSize = 128; public: TwoStageThreadedConvolver() : fftconvolver::FFTConvolver() {} bool init(const fftconvolver::Sample* const ir, const size_t irLen) { return fftconvolver::FFTConvolver::init(kHeadBlockSize, ir, irLen); } }; #endif // -------------------------------------------------------------------------------------------------------------------- END_NAMESPACE_DISTRHO ================================================ FILE: src/Widgets.hpp ================================================ /* * AIDA-X Widgets * Copyright (C) 2023 Filipe Coelho * SPDX-License-Identifier: GPL-3.0-or-later */ #pragma once #include "EventHandlers.hpp" #include "ImageWidgets.hpp" #include "NanoVG.hpp" #include "DistrhoPluginInfo.h" START_NAMESPACE_DISTRHO static constexpr const uint kSubWidgetsFontSize = 14; static constexpr const uint kSubWidgetsFullHeight = 90; static constexpr const uint kSubWidgetsPadding = 8; static inline constexpr float normalizedLevelMeterValue(const float db) { return ( db < -70.f ? 0.f : db < -60.f ? (db + 70.f) * 0.25f : db < -50.f ? (db + 60.f) * 0.50f + 2.5f : db < -40.f ? (db + 50.f) * 0.75f + 7.5f : db < -30.f ? (db + 40.f) * 1.50f + 15.0f : db < -20.f ? (db + 30.f) * 2.00f + 30.0f : db < 0.f ? (db + 20.f) * 2.50f + 50.0f : 100.f ) / 100.f; } // -------------------------------------------------------------------------------------------------------------------- // good old knob with tick markers, rotating image and on-actived value display, follows modgui style class AidaKnob : public NanoSubWidget, public KnobEventHandler { NanoTopLevelWidget* const parent; const NanoImage& knobImage; const NanoImage& scaleImage; const char* label; const char* unit; public: static constexpr const uint kScaleSize = 80; static constexpr const uint kKnobSize = 55; static constexpr const uint kKnobMargin = (kScaleSize - kKnobSize) / 2; AidaKnob(NanoTopLevelWidget* const p, KnobEventHandler::Callback* const cb, const NanoImage& knobImg, const NanoImage& scaleImg, const Parameters paramId) : NanoSubWidget(p), KnobEventHandler(this), parent(p), knobImage(knobImg), scaleImage(scaleImg) { const double scaleFactor = p->getScaleFactor(); setSize(kScaleSize * scaleFactor, kSubWidgetsFullHeight * scaleFactor); const Parameter& param(kParameters[paramId]); setId(paramId); setRange(param.ranges.min, param.ranges.max); setDefault(param.ranges.def); setValue(param.ranges.def, false); setCallback(cb); label = param.name; unit = param.unit; } protected: void onNanoDisplay() override { const uint width = getWidth(); const uint height = getHeight(); const double scaleFactor = parent->getScaleFactor(); const double scaleSize = kScaleSize * scaleFactor; const double knobSize = kKnobSize * scaleFactor; const double knobHalfSize = knobSize / 2; const double knobMargin = kKnobMargin * scaleFactor; const double wfontSize = kSubWidgetsFontSize * scaleFactor; beginPath(); rect(0, 0, scaleSize, scaleSize); fillPaint(imagePattern(0, 0, scaleSize, scaleSize, 0.f, scaleImage, 1.f)); fill(); fillColor(Color(1.f, 1.f, 1.f)); fontSize(wfontSize); textAlign(ALIGN_CENTER | ALIGN_BASELINE); text(width/2, height, label, nullptr); const Paint knobImgPat = imagePattern(-knobHalfSize, -knobHalfSize, knobSize, knobSize, 0.f, knobImage, 1.f); save(); translate(knobMargin + knobHalfSize, knobMargin + knobHalfSize); rotate(degToRad(270.f * (getNormalizedValue() - 0.5f))); beginPath(); rect(-knobHalfSize, -knobHalfSize, knobSize, knobSize); fillPaint(knobImgPat); fill(); restore(); if (getState() & kKnobStateDragging) { const double padding = 4 * scaleFactor; beginPath(); roundedRect(padding, 0, scaleSize - padding, wfontSize + padding * 2, 2 * scaleFactor); fillColor(Color(0,0,0,0.5f)); fill(); char textBuf[24]; std::snprintf(textBuf, sizeof(textBuf)-1, "%.2f %s", getValue(), unit); textBuf[sizeof(textBuf)-1] = '\0'; fillColor(Color(1.f, 1.f, 1.f)); textAlign(ALIGN_CENTER | ALIGN_TOP); text(width/2, padding, textBuf, nullptr); } } bool onMouse(const MouseEvent& event) override { return KnobEventHandler::mouseEvent(event); } bool onMotion(const MotionEvent& event) override { return KnobEventHandler::motionEvent(event); } bool onScroll(const ScrollEvent& event) override { return KnobEventHandler::scrollEvent(event); } }; // -------------------------------------------------------------------------------------------------------------------- // vertical switch with labels on top and bottom, follows modgui style class AidaPluginSwitch : public NanoSubWidget, public ButtonEventHandler { NanoTopLevelWidget* const parent; const ParameterEnumerationValues& enumValues; const bool isInverted; public: static constexpr const uint kSwitchWidth = 25; static constexpr const uint kSwitchHeight = 60; static constexpr const uint kSwitchRadius = kSwitchWidth / 2; static constexpr const uint kFullWidth = kSwitchWidth + kSubWidgetsPadding * 2; AidaPluginSwitch(NanoTopLevelWidget* const p, ButtonEventHandler::Callback* const cb, const Parameters paramId) : NanoSubWidget(p), ButtonEventHandler(this), parent(p), enumValues(kParameters[paramId].enumValues), isInverted(paramId == kParameterGLOBALBYPASS) { const double scaleFactor = p->getScaleFactor(); setSize(kFullWidth * scaleFactor, kSubWidgetsFullHeight * scaleFactor); const Parameter& param(kParameters[paramId]); setId(paramId); setCheckable(true); setChecked(isInverted ? param.ranges.def < 0.5f : param.ranges.def > 0.5f, false); setCallback(cb); } protected: void onNanoDisplay() override { const uint width = getWidth(); const uint height = getHeight(); const double scaleFactor = parent->getScaleFactor(); const double switchWidth = kSwitchWidth * scaleFactor; const double switchHeight = kSwitchHeight * scaleFactor; const double switchPadding = kSubWidgetsPadding * scaleFactor; const double switchRadius = kSwitchRadius * scaleFactor; const bool checked = isInverted ? !isChecked() : isChecked(); beginPath(); rect(0, 0, width, height); fontSize(kSubWidgetsFontSize * scaleFactor); fillColor(Color(1.f, 1.f, 1.f)); textAlign(ALIGN_CENTER | ALIGN_TOP); text(width/2, 0, enumValues.values[0].label, nullptr); textAlign(ALIGN_CENTER | ALIGN_BASELINE); text(width/2, height, enumValues.values[1].label, nullptr); beginPath(); roundedRect(switchPadding, height/2 - switchHeight/2, switchWidth, switchHeight, switchRadius); fillColor(checked ? Color(84, 84, 84) : Color(129, 247, 0)); fill(); beginPath(); circle(width / 2, checked ? height/2 + switchHeight/2 - switchWidth/2 : height/2 - switchHeight/2 + switchWidth/2, 10 * scaleFactor); fillColor(checked ? Color(218, 214, 203) : Color(24, 112, 4)); fill(); } bool onMouse(const MouseEvent& event) override { return ButtonEventHandler::mouseEvent(event); } bool onMotion(const MotionEvent& event) override { return ButtonEventHandler::motionEvent(event); } }; // -------------------------------------------------------------------------------------------------------------------- // simple vertical meter class AidaMeter : public NanoSubWidget { NanoTopLevelWidget* const parent; Application& app; const String label; bool clipping = false; bool nearClipping = false; float value = 0.f; float valueDb = kMinimumMeterDb; float valueDb2 = kMinimumMeterDb; // average filter public: static constexpr const uint kMeterWidth = 150; static constexpr const uint kMeterHeight = kSubWidgetsFontSize + kSubWidgetsPadding / 2; static constexpr const uint kMeterRadius = kSubWidgetsPadding / 2; AidaMeter(NanoTopLevelWidget* const p, const char* const lbl) : NanoSubWidget(p), parent(p), app(parent->getApp()), label(lbl) { const double scaleFactor = p->getScaleFactor(); setSize(kMeterWidth * scaleFactor, kMeterHeight * scaleFactor); } void setValue(const float v) { if (d_isEqual(value, v)) return; value = v; valueDb = 20.f * std::log10(v); repaint(); } protected: void onNanoDisplay() override { const uint width = getWidth(); const uint height = getHeight(); const double scaleFactor = parent->getScaleFactor(); const double meterRadius = kMeterRadius * scaleFactor; const double meterPadding = kSubWidgetsPadding * scaleFactor; const double wfontSize = kSubWidgetsFontSize * scaleFactor; const float filteredDb = valueDb2 = (valueDb + valueDb2) / 2.f; fontSize(wfontSize); beginPath(); roundedRect(0, 0, width, height, meterRadius); fillColor(Color(0x38,0x37,0x5c)); fill(); char valuestr[32] = {}; if (filteredDb > kMinimumMeterDb) std::snprintf(valuestr, sizeof(valuestr)-1, "%.1f dB", valueDb); else std::strncpy(valuestr, "-inf dB", sizeof(valuestr)-1); Color activeColor; if (valueDb > 0.f || (filteredDb > (clipping ? -3.f : 0.f))) { clipping = nearClipping = true; activeColor = Color(0xf4,0x4d,0x50); // #F44D50 } else if (filteredDb > (nearClipping ? -6.f : -3.f)) { nearClipping = true; activeColor = Color(0xf4,0xf1,0x4d); // #F4F14D } else { clipping = nearClipping = false; activeColor = Color(0xa4,0xf4,0x4d); // #A4F44D } // draw text using active color fillColor(activeColor); textAlign(ALIGN_LEFT|ALIGN_MIDDLE); text(meterPadding, height/2, label, nullptr); textAlign(ALIGN_RIGHT|ALIGN_MIDDLE); text(width - meterPadding, height/2, valuestr, nullptr); if (valueDb > kMinimumMeterDb) { const float vnormal = normalizedLevelMeterValue(filteredDb); // draw active background beginPath(); roundedRect(scaleFactor, scaleFactor, vnormal * (width - scaleFactor * 2), height - scaleFactor * 2, meterRadius); fill(); // draw text on top of active color using background color fillColor(Color(0x38,0x37,0x5c)); save(); scissor(0, 0, vnormal * width, height); textAlign(ALIGN_LEFT|ALIGN_MIDDLE); text(meterPadding, height/2, label, nullptr); textAlign(ALIGN_RIGHT|ALIGN_MIDDLE); text(width - meterPadding, height/2, valuestr, nullptr); restore(); } } }; // -------------------------------------------------------------------------------------------------------------------- // simple vertical splitter class AidaSplitter : public NanoSubWidget { NanoTopLevelWidget* const parent; public: static constexpr const uint kLineWidth = 4; static constexpr const uint kLineHeight = 80; AidaSplitter(NanoTopLevelWidget* const p) : NanoSubWidget(p), parent(p) { const double scaleFactor = p->getScaleFactor(); setSize(kLineWidth * scaleFactor, kSubWidgetsFullHeight * scaleFactor); } protected: void onNanoDisplay() override { const uint width = getWidth(); const uint height = getHeight(); const double scaleFactor = parent->getScaleFactor(); const double lineHeight = kLineHeight * scaleFactor; beginPath(); moveTo(width/2, height/2 - lineHeight/2); lineTo(width/2, height/2 + lineHeight/2); lineCap(ROUND); strokeColor(Color(97, 97, 97, 0.484f)); strokeWidth(width); stroke(); } }; // -------------------------------------------------------------------------------------------------------------------- // simple push button class AidaPushButton : public NanoSubWidget, public ButtonEventHandler { NanoTopLevelWidget* const parent; String label; public: static constexpr const uint kButtonWidth = 140; static constexpr const uint kButtonHeight = 25; static constexpr const uint kButtonRadius = 4; AidaPushButton(NanoTopLevelWidget* const p) : NanoSubWidget(p), ButtonEventHandler(this), parent(p) { const double scaleFactor = p->getScaleFactor(); setSize(kButtonWidth * scaleFactor, kButtonHeight * scaleFactor); } void setLabel(const char* const lbl) { label = lbl; } protected: void onNanoDisplay() override { const uint width = getWidth(); const uint height = getHeight(); const double scaleFactor = parent->getScaleFactor(); const double buttonRadius = kButtonRadius * scaleFactor; beginPath(); roundedRect(0, 0, width, height, buttonRadius); switch (getState()) { case kButtonStateDefault: fillColor(Color(0x15,0x14,0x13)); strokeColor(Color(0x15,0x14,0x13,0.8f)); break; case kButtonStateHover: fillColor(Color(0x15,0x14,0x13,0.8f)); strokeColor(Color(0x15,0x14,0x13,0.8f)); break; case kButtonStateActive: case kButtonStateActiveHover: fillColor(Color(0x15,0x14,0x13,0.4f)); strokeColor(Color(0x15,0x14,0x13,0.4f)); break; } fill(); stroke(); if (label.isEmpty()) return; fillColor(Color(1.f, 1.f, 1.f)); fontSize(16 * scaleFactor); textAlign(ALIGN_CENTER | ALIGN_MIDDLE); text(width/2, height/2, label, nullptr); } bool onMouse(const MouseEvent& event) override { return ButtonEventHandler::mouseEvent(event); } bool onMotion(const MotionEvent& event) override { return ButtonEventHandler::motionEvent(event); } }; // -------------------------------------------------------------------------------------------------------------------- // filelist selector class AidaFileList : public NanoSubWidget, public ButtonEventHandler::Callback { static constexpr const uint kCommonRadius = 10; static constexpr const uint kSingleHeight = 24; static constexpr const uint kInitialWidth = 100; struct AidaFileButton : NanoSubWidget, ButtonEventHandler { NanoTopLevelWidget* const parent; String label; enum Position { Top, Middle, Bottom } position; AidaFileButton(NanoTopLevelWidget* const p, const Position pos) : NanoSubWidget(p), ButtonEventHandler(this), parent(p), position(pos) { const double scaleFactor = p->getScaleFactor(); setSize(kInitialWidth * scaleFactor, kSingleHeight * scaleFactor); } void onNanoDisplay() override { if (label.isEmpty()) return; const uint width = getWidth(); const uint height = getHeight(); const double scaleFactor = parent->getScaleFactor(); const double wfontSize = kSubWidgetsFontSize * scaleFactor; const double margin = kSubWidgetsPadding * scaleFactor; const double radius = kCommonRadius * scaleFactor; uint state = getState(); if (isChecked()) state |= kButtonStateActive; switch (state) { case kButtonStateDefault: fillColor(Color(0x74,0x92,0x32)); break; case kButtonStateHover: fillColor(Color(0x56,0x73,0x28)); break; case kButtonStateActive: fillColor(Color(0x15,0x2c,0x0d)); break; case kButtonStateActiveHover: Color c(0x56,0x73,0x28); c.interpolate(Color(0x15,0x2c,0x0d), 0.5f); fillColor(c); break; } switch (position) { case Middle: beginPath(); rect(0, 0, width, height); fill(); break; case Top: case Bottom: beginPath(); roundedRect(0, 0, width, height, radius); fill(); beginPath(); if (position == Top) rect(0, height/2, width, height); else rect(0, 0, width, height/2); fill(); break; } fillColor(Color(1.f, 1.f, 1.f)); fontSize(wfontSize); textAlign(ALIGN_LEFT | ALIGN_MIDDLE); text(margin, height / 2, label, nullptr); } bool onMouse(const MouseEvent& event) override { return ButtonEventHandler::mouseEvent(event); } bool onMotion(const MotionEvent& event) override { return ButtonEventHandler::motionEvent(event); } }; public: NanoTopLevelWidget* const parent; ScopedPointer buttons[3]; ButtonEventHandler::Callback* const callback; AidaFileList(NanoTopLevelWidget* const p, ButtonEventHandler::Callback* const cb, const uint buttonStartId) : NanoSubWidget(p), parent(p), callback(cb) { buttons[0] = new AidaFileButton(p, AidaFileButton::Top); buttons[0]->setCallback(this); buttons[0]->setId(buttonStartId); buttons[1] = new AidaFileButton(p, AidaFileButton::Middle); buttons[1]->setCallback(this); buttons[1]->setId(buttonStartId + 1); buttons[2] = new AidaFileButton(p, AidaFileButton::Bottom); buttons[2]->setCallback(this); buttons[2]->setId(buttonStartId + 2); const double scaleFactor = p->getScaleFactor(); setSize(kInitialWidth * scaleFactor, kSingleHeight * 3 * scaleFactor); } void setFilename(const int id, const char* const filename, const bool setAsActive = false) { DISTRHO_SAFE_ASSERT_RETURN(id >= 0 && id < 3,); if (const char* const bname = std::strrchr(filename, DISTRHO_OS_SEP)) buttons[id]->label = bname + 1; else buttons[id]->label = filename; if (setAsActive) buttons[id]->setChecked(true, false); buttons[id]->repaint(); } protected: void onNanoDisplay() override { beginPath(); roundedRect(0, 0, getWidth(), getHeight(), kCommonRadius * parent->getScaleFactor()); fillColor(Color(0.f, 0.f, 0.f)); fill(); } void buttonClicked(SubWidget* const widget, const int button) override { if (button != kMouseButtonLeft) return; /**/ if (buttons[0] == widget) { buttons[1]->setChecked(false, false); buttons[2]->setChecked(false, false); buttons[0]->setChecked(true, true); } else if (buttons[1] == widget) { buttons[0]->setChecked(false, false); buttons[2]->setChecked(false, false); buttons[1]->setChecked(true, true); } else if (buttons[2] == widget) { buttons[0]->setChecked(false, false); buttons[1]->setChecked(false, false); buttons[2]->setChecked(true, true); } callback->buttonClicked(widget, button); } void onPositionChanged(const PositionChangedEvent& event) override { NanoSubWidget::onPositionChanged(event); const double scaleFactor = parent->getScaleFactor(); const double widgetX = event.pos.getX(); const double widgetY = event.pos.getY(); const double singleHeight = kSingleHeight * scaleFactor; buttons[0]->setAbsolutePos(widgetX, widgetY); buttons[1]->setAbsolutePos(widgetX, widgetY + singleHeight); buttons[2]->setAbsolutePos(widgetX, widgetY + singleHeight * 2); } void onResize(const ResizeEvent& event) override { NanoSubWidget::onResize(event); const uint width = event.size.getWidth(); buttons[0]->setWidth(width); buttons[1]->setWidth(width); buttons[2]->setWidth(width); } }; // -------------------------------------------------------------------------------------------------------------------- // switch and filename as button combo class AidaFilenameButton : public NanoSubWidget { static constexpr const uint kCommonHeight = 32; static constexpr const uint kCommonRadius = 10; static constexpr const uint kIconSize = 20; static constexpr const uint kInitialWidth = 100; struct AidaFileSwitch : NanoSubWidget, ButtonEventHandler { NanoTopLevelWidget* const parent; const NanoImage& imageOff; const NanoImage& imageOn; AidaFileSwitch(NanoTopLevelWidget* const p, const NanoImage& imgOff, const NanoImage& imgOn) : NanoSubWidget(p), ButtonEventHandler(this), parent(p), imageOff(imgOff), imageOn(imgOn) { const double scaleFactor = p->getScaleFactor(); setSize((kCommonHeight + kSubWidgetsPadding) * scaleFactor, kCommonHeight * scaleFactor); setCheckable(true); setChecked(true, false); } bool isHover() const noexcept { return getState() & kButtonStateHover; } void onNanoDisplay() override { const uint width = getWidth(); const uint height = getHeight(); const double scaleFactor = parent->getScaleFactor(); const double iconSize = kIconSize * scaleFactor; const double switchRadius = kCommonRadius * scaleFactor; uint state = getState(); if (isChecked()) state |= kButtonStateActive; switch (state) { case kButtonStateDefault: fillColor(Color(0x74,0x92,0x32)); break; case kButtonStateHover: fillColor(Color(0x74,0x92,0x32)); break; case kButtonStateActive: fillColor(Color(0x15,0x2c,0x0d)); break; case kButtonStateActiveHover: fillColor(Color(0x15,0x2c,0x0d)); break; } beginPath(); roundedRect(0, 0, width, height, switchRadius); fill(); beginPath(); rect(height/2, 0, width-height/2, height); fill(); save(); translate(width/2 - iconSize/2, height/2 - iconSize/2); beginPath(); rect(0, 0, iconSize, iconSize); fillPaint(imagePattern(0, 0, iconSize, iconSize, 0.f, isChecked() ? imageOn : imageOff, 1.f)); fill(); restore(); } bool onMouse(const MouseEvent& event) override { return ButtonEventHandler::mouseEvent(event); } bool onMotion(const MotionEvent& event) override { return ButtonEventHandler::motionEvent(event); } }; struct AidaFileButton : NanoSubWidget, ButtonEventHandler { NanoTopLevelWidget* const parent; struct { String enable; String disable; String load; } labels; String filename; AidaFileSwitch* hoverButton = nullptr; AidaFileButton(NanoTopLevelWidget* const p, const String& label) : NanoSubWidget(p), ButtonEventHandler(this), parent(p) { const double scaleFactor = p->getScaleFactor(); setSize(kInitialWidth * scaleFactor, kCommonHeight * scaleFactor); labels.enable = "Click to enable " + label; labels.disable = "Click to disable " + label; labels.load = "Load " + label + "..."; } void onNanoDisplay() override { const uint width = getWidth(); const uint height = getHeight(); const double scaleFactor = parent->getScaleFactor(); const double buttonMargin = (kCommonHeight + kSubWidgetsPadding * 2) * scaleFactor; const double buttonRadius = kCommonRadius * scaleFactor; beginPath(); roundedRect(0, 0, width, height, buttonRadius); switch (getState()) { case kButtonStateDefault: fillColor(Color(0x56,0x73,0x28)); break; case kButtonStateHover: fillColor(Color(0x74,0x92,0x32)); break; case kButtonStateActive: fillColor(Color(0x15,0x2c,0x0d)); break; case kButtonStateActiveHover: fillColor(Color(0x15,0x2c,0x0d)); break; } fill(); fillColor(Color(1.f, 1.f, 1.f)); fontSize(16 * scaleFactor); textAlign(ALIGN_LEFT | ALIGN_MIDDLE); save(); scissor(buttonMargin, 0, width - buttonMargin, height/2 + 16 * scaleFactor / 2); textBox(buttonMargin, height/2, width - buttonMargin, hoverButton->isHover() ? hoverButton->isChecked() ? labels.disable : labels.enable : getState() & kButtonStateHover ? labels.load : filename, nullptr); restore(); } bool onMouse(const MouseEvent& event) override { return ButtonEventHandler::mouseEvent(event); } bool onMotion(const MotionEvent& event) override { return ButtonEventHandler::motionEvent(event); } }; ScopedPointer button; ScopedPointer toggle; public: AidaFilenameButton(NanoTopLevelWidget* const p, ButtonEventHandler::Callback* const cb, const uint switchId, const uint buttonId, const char* const buttonLabel, const NanoImage& imgOff, const NanoImage& imgOn) : NanoSubWidget(p) { button = new AidaFileButton(p, String(buttonLabel)); button->setCallback(cb); button->setId(buttonId); toggle = new AidaFileSwitch(p, imgOff, imgOn); toggle->setCallback(cb); toggle->setId(switchId); button->hoverButton = toggle; const double scaleFactor = p->getScaleFactor(); setSize(kInitialWidth * scaleFactor, kCommonHeight * scaleFactor); } void setChecked(const bool checked) { toggle->setChecked(checked, false); } void setFilename(const char* const fname) { if (const char* const bname = std::strrchr(fname, DISTRHO_OS_SEP)) button->filename = bname + 1; else button->filename = fname; button->repaint(); } protected: void onNanoDisplay() override {} void onPositionChanged(const PositionChangedEvent& event) override { NanoSubWidget::onPositionChanged(event); const double widgetX = event.pos.getX(); const double widgetY = event.pos.getY(); toggle->setAbsolutePos(widgetX, widgetY); button->setAbsolutePos(widgetX, widgetY); } void onResize(const ResizeEvent& event) override { NanoSubWidget::onResize(event); button->setWidth(event.size.getWidth()); } }; // -------------------------------------------------------------------------------------------------------------------- END_NAMESPACE_DISTRHO ================================================ FILE: src/aidadsp-plugin.cpp ================================================ /* * AIDA-X DPF plugin * Copyright (C) 2022-2023 Massimo Pennazio * Copyright (C) 2023 Filipe Coelho * SPDX-License-Identifier: GPL-3.0-or-later */ #include "DistrhoPlugin.hpp" #include "Biquad.h" #include "Files.hpp" #include "model_variant.hpp" #include "extra/ScopedDenormalDisable.hpp" #include "extra/Sleep.hpp" #include "extra/ValueSmoother.hpp" #include #include #include "dr_flac.h" #include "dr_wav.h" // -Wunused-variable #include "CDSPResampler.h" // must be last #include "TwoStageThreadedConvolver.hpp" START_NAMESPACE_DISTRHO // -------------------------------------------------------------------------------------------------------------------- /* Define a constexpr for converting a gain in dB to a coefficient */ static constexpr float DB_CO(const float g) { return g > -90.f ? std::pow(10.f, g * 0.05f) : 0.f; } /* Define a macro to re-maps a number from one range to another */ static constexpr float MAP(const float x, const float in_min, const float in_max, const float out_min, const float out_max) { return ((x - in_min) * (out_max - out_min) / (in_max - in_min)) + out_min; } /* Defines for tone controls */ static constexpr const float COMMON_Q = 0.707f; static constexpr const float DEPTH_FREQ = 75.f; static constexpr const float PRESENCE_FREQ = 900.f; /* Defines for antialiasing filter */ static constexpr const float INLPF_MAX_CO = 0.99f * 0.5f; /* coeff * ((samplerate / 2) / samplerate) */ static constexpr const float INLPF_MIN_CO = 0.25f * 0.5f; /* coeff * ((samplerate / 2) / samplerate) */ /* Gain compensation for cabinet IR (-12dB) */ static constexpr const float kCabinetMaxGain = 0.251f; // -------------------------------------------------------------------------------------------------------------------- struct AidaToneControl { Biquad dc_blocker { bq_type_highpass, 0.5f, COMMON_Q, 0.0f }; Biquad in_lpf { bq_type_lowpass, 0.5f, COMMON_Q, 0.0f }; Biquad bass { bq_type_lowshelf, 0.5f, COMMON_Q, 0.0f }; Biquad mid { bq_type_peak, 0.5f, COMMON_Q, 0.0f }; Biquad treble { bq_type_highshelf, 0.5f, COMMON_Q, 0.0f }; Biquad depth { bq_type_peak, 0.5f, COMMON_Q, 0.0f }; Biquad presence { bq_type_highshelf, 0.5f, COMMON_Q, 0.0f }; ExponentialValueSmoother inlevel; ExponentialValueSmoother outlevel; bool net_bypass = false; bool eq_bypass = false; EqPos eq_pos = kEqPost; MidEqType mid_type = kMidEqPeak; AidaToneControl() { inlevel.setTimeConstant(1); outlevel.setTimeConstant(1); } void setSampleRate(const float parameters[kNumParameters], const double sampleRate) { dc_blocker.setFc(35.0f / sampleRate); in_lpf.setFc(MAP(parameters[kParameterINLPF], 0.0f, 100.0f, INLPF_MAX_CO, INLPF_MIN_CO)); bass.setBiquad(bq_type_lowshelf, parameters[kParameterBASSFREQ] / sampleRate, COMMON_Q, parameters[kParameterBASSGAIN]); mid.setBiquad(mid_type == kMidEqBandpass ? bq_type_bandpass : bq_type_peak, parameters[kParameterMIDFREQ] / sampleRate, parameters[kParameterMIDQ], parameters[kParameterMIDGAIN]); treble.setBiquad(bq_type_highshelf, parameters[kParameterTREBLEFREQ] / sampleRate, COMMON_Q, parameters[kParameterTREBLEGAIN]); depth.setBiquad(bq_type_peak, DEPTH_FREQ / sampleRate, COMMON_Q, parameters[kParameterDEPTH]); presence.setBiquad(bq_type_highshelf, PRESENCE_FREQ / sampleRate, COMMON_Q, parameters[kParameterPRESENCE]); inlevel.setSampleRate(sampleRate); inlevel.setTargetValue(DB_CO(parameters[kParameterINLEVEL])); outlevel.setSampleRate(sampleRate); outlevel.setTargetValue(DB_CO(parameters[kParameterOUTLEVEL])); } }; #if AIDAX_WITH_AUDIOFILE struct AudioFile { float* buffer; drwav_uint64 currentFrame; drwav_uint64 numFrames; bool resampled; AudioFile(float* const buffer_, const drwav_uint64 numFrames_, const bool resampled_) noexcept : buffer(buffer_), currentFrame(0), numFrames(numFrames_), resampled(resampled_) {} ~AudioFile() noexcept { if (resampled) delete[] buffer; else drwav_free(buffer, nullptr); } }; #endif struct DynamicModel { ModelVariantType variant; bool input_skip; /* Means the model has been trained with first input element skipped to the output */ float input_gain; float output_gain; }; // -------------------------------------------------------------------------------------------------------------------- // Apply a gain ramp to a buffer static void applyGainRamp(ExponentialValueSmoother& smoother, float* const out, const uint32_t numSamples) { for (uint32_t i=0; iinput_skip; const float input_gain = model->input_gain; const float output_gain = model->output_gain; std::visit( [&out, numSamples, input_skip, input_gain, output_gain, ¶m1, ¶m2] (auto&& custom_model) { using ModelType = std::decay_t; if (d_isNotEqual(input_gain, 1.f)) { for (uint32_t i=0; ivariant ); } // -------------------------------------------------------------------------------------------------------------------- class AidaDSPLoaderPlugin : public Plugin { AidaToneControl aida; DynamicModel* model = nullptr; TwoStageThreadedConvolver* cabsim = nullptr; std::atomic activeModel { false }; std::atomic activeConvolver { false }; String cabsimFilename; ExponentialValueSmoother cabsimGain; float* cabsimInplaceBuffer = nullptr; ExponentialValueSmoother bypassGain; float* bypassInplaceBuffer = nullptr; float parameters[kNumParameters]; LinearValueSmoother param1; LinearValueSmoother param2; bool enabledLPF = true; bool enabledDC = true; bool isStereoAU = false; bool paramFirstRun = true; std::atomic resetMeters { true }; float tmpMeterIn, tmpMeterOut; uint32_t tmpMeterFrames, meterMaxFrameCount; #if AIDAX_WITH_AUDIOFILE AudioFile* audiofile = nullptr; std::atomic activeAudiofile { false }; #endif public: AidaDSPLoaderPlugin() : Plugin(kNumParameters, 0, kStateCount) // parameters, programs, states { // Initialize parameters to their defaults for (uint i=0; i(index)) { case kStateModelFile: state.hints = kStateIsFilenamePath; state.key = "json"; state.defaultValue = "default"; state.label = "Neural Model"; state.description = ""; #ifdef __MOD_DEVICES__ state.fileTypes = "aidadspmodel"; #endif break; case kStateImpulseFile: state.hints = kStateIsFilenamePath; state.key = "cabinet"; state.defaultValue = "default"; state.label = "Cabinet Impulse Response"; state.description = ""; #ifdef __MOD_DEVICES__ state.fileTypes = "cabsim"; #endif break; #if AIDAX_WITH_AUDIOFILE case kStateAudioFile: state.hints = kStateIsFilenamePath; state.key = "audiofile"; state.defaultValue = ""; state.label = "Audio Loop File"; state.description = ""; #ifdef __MOD_DEVICES__ state.fileTypes = "audioloop"; #endif break; #endif case kStateCount: break; } } /* ----------------------------------------------------------------------------------------------------------------- * Internal data */ /** Get the current value of a parameter. */ float getParameterValue(const uint32_t index) const override { return parameters[index]; } /** Change a parameter value. */ void setParameterValue(const uint32_t index, const float value) override { parameters[index] = value; const double sampleRate = getSampleRate(); switch (static_cast(index)) { case kParameterINLPF: aida.in_lpf.setFc(MAP(value, 0.0f, 100.0f, INLPF_MAX_CO, INLPF_MIN_CO)); enabledLPF = d_isNotZero(value); break; case kParameterINLEVEL: aida.inlevel.setTargetValue(DB_CO(value)); break; case kParameterNETBYPASS: aida.net_bypass = value > 0.5f; break; case kParameterEQBYPASS: aida.eq_bypass = value > 0.5f; break; case kParameterEQPOS: aida.eq_pos = value > 0.5f ? kEqPre : kEqPost; break; case kParameterBASSGAIN: aida.bass.setPeakGain(value); break; case kParameterBASSFREQ: aida.bass.setFc(value / sampleRate); break; case kParameterMIDGAIN: aida.mid.setPeakGain(value); break; case kParameterMIDFREQ: aida.mid.setFc(value / sampleRate); break; case kParameterMIDQ: aida.mid.setQ(value); break; case kParameterMTYPE: aida.mid_type = value > 0.5f ? kMidEqBandpass : kMidEqPeak; break; case kParameterTREBLEGAIN: aida.treble.setPeakGain(value); break; case kParameterTREBLEFREQ: aida.treble.setFc(value / sampleRate); break; case kParameterDEPTH: aida.depth.setPeakGain(value); break; case kParameterPRESENCE: aida.presence.setPeakGain(value); break; case kParameterOUTLEVEL: aida.outlevel.setTargetValue(DB_CO(value)); break; case kParameterCABSIMBYPASS: cabsimGain.setTargetValue(value > 0.5f ? 0.f : kCabinetMaxGain); break; case kParameterGLOBALBYPASS: bypassGain.setTargetValue(value > 0.5f ? 0.f : 1.f); break; case kParameterPARAM1: param1.setTargetValue(value); break; case kParameterPARAM2: param2.setTargetValue(value); break; case kParameterDCBLOCKER: enabledDC = value > 0.5f; break; case kParameterModelInputSize: case kParameterMeterIn: case kParameterMeterOut: case kParameterCount: break; } } void setState(const char* const key, const char* const value) override { if (std::strcmp(key, "reset-meters") == 0) { resetMeters.store(true); return; } const bool isDefault = value == nullptr || value[0] == '\0' || std::strcmp(value, "default") == 0; if (std::strcmp(key, "json") == 0) return isDefault ? loadDefaultModel() : loadModelFromFile(value); if (std::strcmp(key, "cabinet") == 0) return isDefault ? loadDefaultCabinet() : loadCabinetFromFile(value); #if AIDAX_WITH_AUDIOFILE if (std::strcmp(key, "audiofile") == 0) return loadAudioFile(value); #endif } /* ----------------------------------------------------------------------------------------------------------------- * Model loader */ void loadDefaultModel() { using namespace Files; try { std::istrstream jsonStream(static_cast(static_cast(tw40_california_clean_deerinkstudiosData)), tw40_california_clean_deerinkstudiosDataSize); loadModelFromStream(jsonStream); } catch (const std::exception& e) { d_stderr2("Unable to load json, error: %s", e.what()); }; } void loadModelFromFile(const char* const filename) { try { std::ifstream jsonStream(filename, std::ifstream::binary); loadModelFromStream(jsonStream); } catch (const std::exception& e) { d_stderr2("Unable to load json file: %s\nError: %s", filename, e.what()); }; } void loadModelFromStream(std::istream& jsonStream) { int input_size; int input_skip; float input_gain; float output_gain; nlohmann::json model_json; try { jsonStream >> model_json; /* Understand which model type to load */ input_size = model_json["in_shape"].back().get(); if (input_size > MAX_INPUT_SIZE) { throw std::invalid_argument("Value for input_size not supported"); } if (model_json["in_skip"].is_number()) { input_skip = model_json["in_skip"].get(); if (input_skip > 1) throw std::invalid_argument("Values for in_skip > 1 are not supported"); } else { input_skip = 0; } if (model_json["in_gain"].is_number()) { input_gain = DB_CO(model_json["in_gain"].get()); } else { input_gain = 1.0f; } if (model_json["out_gain"].is_number()) { output_gain = DB_CO(model_json["out_gain"].get()); } else { output_gain = 1.0f; } } catch (const std::exception& e) { d_stderr2("Unable to load json, error: %s", e.what()); return; } std::unique_ptr newmodel = std::make_unique(); try { if (! custom_model_creator (model_json, newmodel->variant)) throw std::runtime_error ("Unable to identify a known model architecture!"); std::visit ( [&model_json] (auto&& custom_model) { using ModelType = std::decay_t; if constexpr (! std::is_same_v) { custom_model.parseJson (model_json, true); custom_model.reset(); } }, newmodel->variant); } catch (const std::exception& e) { d_stderr2("Error loading model: %s", e.what()); return; } param1.clearToTargetValue(); param2.clearToTargetValue(); paramFirstRun = true; // save extra info newmodel->input_skip = input_skip != 0; newmodel->input_gain = input_gain; newmodel->output_gain = output_gain; // Pre-buffer to avoid "clicks" during initialization float out[2048] = {}; applyModel(newmodel.get(), out, ARRAY_SIZE(out), param1, param2); // swap active model DynamicModel* const oldmodel = model; model = newmodel.release(); // if processing, wait for process cycle to complete while (oldmodel != nullptr && activeModel.load()) d_msleep(1); // report model in dim parameters[kParameterModelInputSize] = input_size; delete oldmodel; } /* ----------------------------------------------------------------------------------------------------------------- * Cabinet loader */ void loadDefaultCabinet() { using namespace Files; uint channels; uint sampleRate; drwav_uint64 numFrames; float* const ir = drwav_open_memory_and_read_pcm_frames_f32(V30_P2_audix_i5_deerinkstudiosData, V30_P2_audix_i5_deerinkstudiosDataSize, &channels, &sampleRate, &numFrames, nullptr); DISTRHO_SAFE_ASSERT_RETURN(ir != nullptr,); DISTRHO_SAFE_ASSERT_RETURN(channels == 1,); loadCabinet(channels, sampleRate, numFrames, ir); } void loadCabinetFromFile(const char* const filename) { uint channels; uint sampleRate; drwav_uint64 numFrames; const size_t valuelen = std::strlen(filename); float* ir; if (::strncasecmp(filename + std::max(0, static_cast(valuelen) - 5), ".flac", 5) == 0) ir = drflac_open_file_and_read_pcm_frames_f32(filename, &channels, &sampleRate, &numFrames, nullptr); else ir = drwav_open_file_and_read_pcm_frames_f32(filename, &channels, &sampleRate, &numFrames, nullptr); DISTRHO_SAFE_ASSERT_RETURN(ir != nullptr,); loadCabinet(channels, sampleRate, numFrames, ir); cabsimFilename = filename; } void loadCabinet(const uint channels, const uint sampleRate, drwav_uint64 numFrames, float* const ir) { if (channels > 1) { for (drwav_uint64 i=0, j=0; j 0,); d_stdout("Resampling to %f Hz sample rate and %d frames", hostSampleRate, numResampledFrames); float* const irBufResampled = new float[numResampledFrames]; resampler.oneshot(ir, numFrames, irBufResampled, numResampledFrames); irBuf = irBufResampled; numFrames = numResampledFrames; } TwoStageThreadedConvolver* const newConvolver = new TwoStageThreadedConvolver(); newConvolver->init(irBuf, numFrames); if (irBuf != ir) delete[] irBuf; drwav_free(ir, nullptr); // swap active cabsim TwoStageThreadedConvolver* const oldcabsim = cabsim; cabsim = newConvolver; // if processing, wait for process cycle to complete while (oldcabsim != nullptr && activeConvolver.load()) d_msleep(1); delete oldcabsim; } #if AIDAX_WITH_AUDIOFILE /* ----------------------------------------------------------------------------------------------------------------- * Audio file loader */ public: void loadAudioFile(const char* const filename) { d_stdout("Loading filename %s", filename); uint channels; uint sampleRate; drwav_uint64 numFrames; float* data; if (::strncasecmp(filename + std::max(0, static_cast(std::strlen(filename)) - 5), ".flac", 5) == 0) data = drflac_open_file_and_read_pcm_frames_f32(filename, &channels, &sampleRate, &numFrames, nullptr); else data = drwav_open_file_and_read_pcm_frames_f32(filename, &channels, &sampleRate, &numFrames, nullptr); DISTRHO_SAFE_ASSERT_RETURN(data != nullptr,); // use left channel if not mono if (channels > 1) { for (drwav_uint64 i=0, j=0; j 0,); dataResampled = new float[numResampledFrames]; resampler.oneshot(data, numFrames, dataResampled, numResampledFrames); numFrames = numResampledFrames; } else { dataResampled = data; } if (dataResampled != data) drwav_free(data, nullptr); // swap active cabsim AudioFile* const newaudiofile = new AudioFile(dataResampled, numFrames, dataResampled != data); AudioFile* const oldaudiofile = audiofile; audiofile = newaudiofile; // if processing, wait for process cycle to complete while (oldaudiofile != nullptr && activeAudiofile.load()) d_msleep(1); delete oldaudiofile; } protected: #endif /* ----------------------------------------------------------------------------------------------------------------- * Process */ /** Activate this plugin. */ void activate() override { aida.inlevel.clearToTargetValue(); aida.outlevel.clearToTargetValue(); bypassGain.clearToTargetValue(); cabsimGain.clearToTargetValue(); resetMeters.store(true); if (model != nullptr) { // Pre-buffer to avoid "clicks" during initialization float out[2048] = {}; activeModel.store(true); std::visit ( [] (auto&& custom_model) { using ModelType = std::decay_t; if constexpr (! std::is_same_v) { custom_model.reset(); } }, model->variant); param1.clearToTargetValue(); param2.clearToTargetValue(); paramFirstRun = true; applyModel(model, out, ARRAY_SIZE(out), param1, param2); activeModel.store(false); } } /** Run/process function for plugins without MIDI input. */ void run(const float** inputs, float** outputs, uint32_t numSamples) override { #if DISTRHO_PLUGIN_NUM_INPUTS != 0 const float* const in = inputs[0]; #endif /* */ float* const out = outputs[0]; // optimize for non-denormal usage const ScopedDenormalDisable sdd; for (uint32_t i = 0; i < numSamples; ++i) { #if DISTRHO_PLUGIN_NUM_INPUTS != 0 if (!std::isfinite(in[i])) __builtin_unreachable(); #endif if (!std::isfinite(out[i])) __builtin_unreachable(); } #if AIDAX_WITH_AUDIOFILE if (audiofile != nullptr) { activeAudiofile.store(true); const uint32_t numPartialSamples = std::min((uint32_t)(audiofile->numFrames - audiofile->currentFrame), numSamples); std::memcpy(bypassInplaceBuffer, audiofile->buffer + audiofile->currentFrame, sizeof(float) * numPartialSamples); if (numSamples != numPartialSamples) { const uint32_t extraSamples = numSamples - numPartialSamples; std::memcpy(bypassInplaceBuffer, audiofile->buffer, sizeof(float) * extraSamples); audiofile->currentFrame = extraSamples; } else { audiofile->currentFrame += numSamples; } activeAudiofile.store(false); } else #endif { #if DISTRHO_PLUGIN_NUM_INPUTS != 0 // Copy input for bypass buffer std::memcpy(bypassInplaceBuffer, in, sizeof(float)*numSamples); #else std::memset(bypassInplaceBuffer, 0, sizeof(float)*numSamples); #endif } // peak meters float meterIn, meterOut; if (resetMeters.exchange(false)) { meterIn = meterOut = tmpMeterIn = tmpMeterOut = DB_CO(kMinimumMeterDb); tmpMeterFrames = 0; } else { meterIn = tmpMeterIn; meterOut = tmpMeterOut; tmpMeterFrames += numSamples; } for (uint32_t i = 0; i < numSamples; ++i) meterIn = std::max(meterIn, std::abs(bypassInplaceBuffer[i])); #ifdef MOD_BUILD // Special handling for MOD web version: stop further audio processing on bypass if (bypassGain.peek() < 0.001f) { bypassGain.clearToTargetValue(); goto the_end; } #endif // High frequencies roll-off (lowpass) if (enabledLPF) applyBiquadFilter(aida.in_lpf, out, bypassInplaceBuffer, numSamples); else std::memcpy(out, bypassInplaceBuffer, sizeof(float)*numSamples); // Pre-gain applyGainRamp(aida.inlevel, out, numSamples); // Equalizer section if (!aida.eq_bypass && aida.eq_pos == kEqPre) applyToneControls(aida, out, numSamples); if (!aida.net_bypass && model != nullptr) { activeModel.store(true); if (paramFirstRun) { paramFirstRun = false; param1.clearToTargetValue(); param2.clearToTargetValue(); } applyModel(model, out, numSamples, param1, param2); activeModel.store(false); } // DC blocker filter (highpass) if (enabledDC) applyBiquadFilter(aida.dc_blocker, out, numSamples); // Cabinet convolution if (cabsim != nullptr) { std::memcpy(cabsimInplaceBuffer, out, sizeof(float)*numSamples); activeConvolver.store(true); cabsim->process(cabsimInplaceBuffer, out, numSamples); activeConvolver.store(false); // cabsim smooth bypass and -12dB compensation for (uint32_t i = 0; i < numSamples; ++i) { const float b = cabsimGain.next(); out[i] = out[i] * b + cabsimInplaceBuffer[i] * ((kCabinetMaxGain - b) / kCabinetMaxGain); } } // Equalizer section if (!aida.eq_bypass && aida.eq_pos == kEqPost) applyToneControls(aida, out, numSamples); // Output volume applyGainRamp(aida.outlevel, out, numSamples); // Bypass and output meter for (uint32_t i = 0; i < numSamples; ++i) { #ifndef MOD_BUILD const float b = bypassGain.next(); out[i] = out[i] * b + bypassInplaceBuffer[i] * (1.f - b); #else out[i] *= bypassGain.next(); #endif meterOut = std::max(meterOut, std::abs(out[i])); } #ifdef MOD_BUILD the_end: #endif if (tmpMeterFrames >= meterMaxFrameCount) { parameters[kParameterMeterIn] = tmpMeterIn = meterIn; parameters[kParameterMeterOut] = tmpMeterOut = meterOut; tmpMeterFrames -= meterMaxFrameCount; } else { tmpMeterIn = meterIn; tmpMeterOut = meterOut; } if (isStereoAU || DISTRHO_PLUGIN_NUM_OUTPUTS == 2) std::memcpy(outputs[1], out, sizeof(float)*numSamples); } void bufferSizeChanged(const uint newBufferSize) override { delete[] bypassInplaceBuffer; delete[] cabsimInplaceBuffer; bypassInplaceBuffer = new float[newBufferSize]; cabsimInplaceBuffer = new float[newBufferSize]; } /** Optional callback to inform the plugin about a sample rate change.@n This function will only be called when the plugin is deactivated. */ void sampleRateChanged(const double newSampleRate) override { aida.setSampleRate(parameters, newSampleRate); bypassGain.setSampleRate(newSampleRate); cabsimGain.setSampleRate(newSampleRate); param1.setSampleRate(newSampleRate); param2.setSampleRate(newSampleRate); paramFirstRun = true; meterMaxFrameCount = newSampleRate * 0.016666; // max 60fps // reload cabsim file if (char* const filename = cabsimFilename.getAndReleaseBuffer()) { setState("cabinet", filename); std::free(filename); } else { loadDefaultCabinet(); } } void ioChanged(const uint16_t numInputs, const uint16_t numOutputs) override { isStereoAU = numInputs == 2 && numOutputs == 2; } // ---------------------------------------------------------------------------------------------------------------- /** Set our plugin class as non-copyable and add a leak detector just in case. */ DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(AidaDSPLoaderPlugin) }; /* -------------------------------------------------------------------------------------------------------------------- * Global instance for wasm. */ #ifdef DISTRHO_OS_WASM static AidaDSPLoaderPlugin* gPlugin = nullptr; #endif /* -------------------------------------------------------------------------------------------------------------------- * Plugin entry point, called by DPF to create a new plugin instance. */ Plugin* createPlugin() { AidaDSPLoaderPlugin* const plugin = new AidaDSPLoaderPlugin(); #ifdef DISTRHO_OS_WASM gPlugin = plugin; #endif return plugin; } // -------------------------------------------------------------------------------------------------------------------- END_NAMESPACE_DISTRHO // -------------------------------------------------------------------------------------------------------------------- #ifdef DISTRHO_OS_WASM #include extern "C" EMSCRIPTEN_KEEPALIVE void load_file(const char* const filename) { DISTRHO_SAFE_ASSERT_RETURN(gPlugin != nullptr,); gPlugin->loadAudioFile(filename); } #endif ================================================ FILE: src/aidadsp-ui.cpp ================================================ /* * AIDA-X DPF plugin * Copyright (C) 2023 Filipe Coelho * SPDX-License-Identifier: GPL-3.0-or-later */ #include "DistrhoUI.hpp" #include "DistrhoPluginCommon.hpp" #include "DistrhoPluginUtils.hpp" #include "DistrhoStandaloneUtils.hpp" #include "Graphics.hpp" #include "Layout.hpp" #include "Widgets.hpp" #if AIDAX_WITH_STANDALONE_CONTROLS # include "Blendish.hpp" #endif START_NAMESPACE_DISTRHO // -------------------------------------------------------------------------------------------------------------------- enum ButtonIds { kButtonLoadModel = 1001, kButtonLoadCabinet, #if AIDAX_WITH_STANDALONE_CONTROLS kButtonEnableMicInput, #endif }; enum EnableInputState { kEnableInputUnsupported, kEnableInputSupported, kEnableInputEnabled, kEnableInputJACK }; class AidaDSPLoaderUI : public UI, public ButtonEventHandler::Callback, public KnobEventHandler::Callback #if AIDAX_WITH_STANDALONE_CONTROLS , public BlendishComboBox::Callback , public BlendishToolButton::Callback #endif { float parameters[kNumParameters]; struct { NanoImage aida; NanoImage ax; NanoImage background; NanoImage knob; NanoImage scale; } images; struct { NanoImage amp; NanoImage ampOn; NanoImage cab; NanoImage cabOn; } icons; struct { ScopedPointer inlevel; ScopedPointer bass; ScopedPointer middle; ScopedPointer treble; ScopedPointer depth; ScopedPointer presence; ScopedPointer outlevel; } knobs; struct { ScopedPointer bypass; ScopedPointer eqpos; ScopedPointer midtype; } switches; struct { ScopedPointer s1, s2, s3; } splitters; struct { ScopedPointer model; ScopedPointer cabsim; } loaders; struct { ScopedPointer in; ScopedPointer out; bool resetOnNextIdle = false; } meters; #if AIDAX_WITH_STANDALONE_CONTROLS EnableInputState enableInputState = kEnableInputUnsupported; ScopedPointer blendishParent; ScopedPointer enableInputButton; ScopedPointer bufferSizeComboBox; #endif HorizontalLayout subwidgetsLayout; enum { kFileLoaderNull, kFileLoaderModel, kFileLoaderImpulse, } fileLoaderMode = kFileLoaderNull; #ifndef MOD_BUILD String aboutLabel; #endif String lastDirModel; String lastDirCabinet; public: /* constructor */ AidaDSPLoaderUI() : UI(DISTRHO_UI_DEFAULT_WIDTH, DISTRHO_UI_DEFAULT_HEIGHT) { // Initialize parameters to their defaults for (uint i=0; isetFilename(kDefaultModelName); loaders.cabsim = new AidaFilenameButton(this, this, kParameterCABSIMBYPASS, kButtonLoadCabinet, "cabinet IR", icons.cab, icons.cabOn); loaders.cabsim->setFilename(kDefaultCabinetName); meters.in = new AidaMeter(this, "INPUT"); meters.out = new AidaMeter(this, "OUTPUT"); #if AIDAX_WITH_STANDALONE_CONTROLS if (isUsingNativeAudio()) { if (supportsAudioInput()) { blendishParent = new BlendishSubWidgetSharedContext(this); blendishParent->setSize(DISTRHO_UI_DEFAULT_WIDTH, DISTRHO_UI_DEFAULT_HEIGHT); enableInputButton = new BlendishToolButton(blendishParent); enableInputButton->setCallback(this); enableInputButton->setId(kButtonEnableMicInput); enableInputButton->setLabel("Enable Audio Input"); enableInputState = kEnableInputSupported; if (supportsBufferSizeChanges()) { bufferSizeComboBox = new BlendishComboBox(blendishParent); bufferSizeComboBox->setCallback(this); bufferSizeComboBox->setDefaultLabel("Buffer Size: " + String(getBufferSize())); bufferSizeComboBox->addMenuItem("64"); bufferSizeComboBox->addMenuItem("128"); bufferSizeComboBox->addMenuItem("256"); bufferSizeComboBox->addMenuItem("512"); bufferSizeComboBox->addMenuItem("1024"); // todo advanced settings page bufferSizeComboBox->hide(); } } } else { enableInputState = kEnableInputJACK; } #endif // Setup subwidgets layout subwidgetsLayout.widgets.push_back({ switches.bypass, Fixed }); subwidgetsLayout.widgets.push_back({ knobs.inlevel, Fixed }); subwidgetsLayout.widgets.push_back({ splitters.s1, Fixed }); subwidgetsLayout.widgets.push_back({ switches.eqpos, Fixed }); subwidgetsLayout.widgets.push_back({ switches.midtype, Fixed }); subwidgetsLayout.widgets.push_back({ knobs.bass, Fixed }); subwidgetsLayout.widgets.push_back({ knobs.middle, Fixed }); subwidgetsLayout.widgets.push_back({ knobs.treble, Fixed }); subwidgetsLayout.widgets.push_back({ splitters.s2, Fixed }); subwidgetsLayout.widgets.push_back({ knobs.depth, Fixed }); subwidgetsLayout.widgets.push_back({ knobs.presence, Fixed }); subwidgetsLayout.widgets.push_back({ splitters.s3, Fixed }); subwidgetsLayout.widgets.push_back({ knobs.outlevel, Fixed }); repositionWidgets(); // give event priority to knob dragging knobs.inlevel->toFront(); knobs.bass->toFront(); knobs.middle->toFront(); knobs.treble->toFront(); knobs.depth->toFront(); knobs.presence->toFront(); knobs.outlevel->toFront(); // adjust size const double scaleFactor = getScaleFactor(); setGeometryConstraints(DISTRHO_UI_DEFAULT_WIDTH * scaleFactor, DISTRHO_UI_DEFAULT_HEIGHT * scaleFactor); if (scaleFactor != 1.0) setSize(DISTRHO_UI_DEFAULT_WIDTH*scaleFactor, DISTRHO_UI_DEFAULT_HEIGHT*scaleFactor); #ifndef MOD_BUILD aboutLabel = "AIDA-X "; #ifndef DISTRHO_OS_WASM aboutLabel += getPluginFormatName(); aboutLabel += " "; #endif aboutLabel += kVersionString; #ifdef NOSIMD aboutLabel += " (no simd)"; #endif #endif } protected: /* ----------------------------------------------------------------------------------------------------------------- * DSP/Plugin Callbacks */ /** A parameter has changed on the plugin side. This is called by the host to inform the UI about parameter changes. */ void parameterChanged(const uint32_t index, const float value) override { parameters[index] = value; switch (static_cast(index)) { case kParameterINLPF: // TODO break; case kParameterINLEVEL: knobs.inlevel->setValue(value, false); break; case kParameterNETBYPASS: loaders.model->setChecked(value < 0.5f); break; case kParameterEQBYPASS: // TODO break; case kParameterEQPOS: switches.eqpos->setChecked(value > 0.5f, false); break; case kParameterBASSGAIN: knobs.bass->setValue(value, false); break; case kParameterMIDGAIN: knobs.middle->setValue(value, false); break; case kParameterMTYPE: switches.midtype->setChecked(value > 0.5f, false); break; case kParameterTREBLEGAIN: knobs.treble->setValue(value, false); break; case kParameterDEPTH: knobs.depth->setValue(value, false); break; case kParameterPRESENCE: knobs.presence->setValue(value, false); break; case kParameterOUTLEVEL: knobs.outlevel->setValue(value, false); break; case kParameterCABSIMBYPASS: loaders.cabsim->setChecked(value < 0.5f); break; case kParameterGLOBALBYPASS: switches.bypass->setChecked(value < 0.5f, false); break; case kParameterModelInputSize: // TODO break; case kParameterMeterIn: meters.in->setValue(value); meters.resetOnNextIdle = true; break; case kParameterMeterOut: meters.out->setValue(value); meters.resetOnNextIdle = true; break; case kParameterBASSFREQ: case kParameterMIDFREQ: case kParameterMIDQ: case kParameterTREBLEFREQ: case kParameterPARAM1: case kParameterPARAM2: case kParameterDCBLOCKER: case kParameterCount: break; } } void stateChanged(const char* const key, const char* const value) override { const bool isDefault = value == nullptr || value[0] == '\0' || std::strcmp(value, "default") == 0; if (std::strcmp(key, "json") == 0) return loaders.model->setFilename(isDefault ? kDefaultModelName : value); if (std::strcmp(key, "cabinet") == 0) return loaders.cabsim->setFilename(isDefault ? kDefaultCabinetName : value); } /* ----------------------------------------------------------------------------------------------------------------- * Widget Callbacks */ void onNanoDisplay() override { const uint width = getWidth(); const uint height = getHeight(); const double scaleFactor = getScaleFactor(); const double cornerRadius = 12 * scaleFactor; const double marginHead = 12 * scaleFactor; const double widthPedal = kPedalWidth * scaleFactor; const double heightPedal = kPedalHeight * scaleFactor; const double widthHead = widthPedal - marginHead * 2; const double heightHead = 177 * scaleFactor; const double marginHorizontal = kPedalMargin * scaleFactor + (getWidth() - DISTRHO_UI_DEFAULT_WIDTH * scaleFactor) / 2; const double marginVertical = kPedalMarginTop * scaleFactor; const Size headBgSize(images.background.getSize() / 2 * scaleFactor); #ifndef MOD_BUILD // outer bounds gradient beginPath(); rect(0, 0, width, height); fillPaint(linearGradient(0, 0, 0, height, Color(0xcd, 0xff, 0x05).minus(50).invert(), Color(0x8b, 0xf7, 0x00).minus(50).invert())); fill(); // outer bounds inner shadow matching host color, if provided Color bgColor; if (const uint hostBgColor = getBackgroundColor()) { const int red = (hostBgColor >> 24) & 0xff; const int green = (hostBgColor >> 16) & 0xff; const int blue = (hostBgColor >> 8) & 0xff; bgColor = Color(red, green, blue); } else { bgColor = Color(0,0,0); } fillPaint(boxGradient(scaleFactor, scaleFactor, width-scaleFactor*2, height-scaleFactor*2, cornerRadius/2, cornerRadius/4, bgColor.withAlpha(0.f), bgColor)); fill(); // outer bounds pattern fillPaint(imagePattern(0, 0, headBgSize.getWidth(), headBgSize.getHeight(), 0.f, images.background, 1.f)); fill(); // box shadow beginPath(); rect(marginHorizontal/2, marginVertical/2, marginHorizontal+widthPedal, marginVertical+heightPedal); fillPaint(boxGradient(marginHorizontal, marginVertical, widthPedal, heightPedal, cornerRadius, cornerRadius, Color(0,0,0,1.f), Color(0,0,0,0.f))); fill(); #endif // .rt-neural .grid beginPath(); roundedRect(marginHorizontal, marginVertical, widthPedal, heightPedal, cornerRadius); fillPaint(linearGradient(marginHorizontal, 0, marginHorizontal + widthPedal * 0.52f, 0, Color(28, 23, 12), Color(42, 34, 15))); fill(); fillPaint(linearGradient(marginHorizontal + widthPedal * 0.50f, 0, marginHorizontal + widthPedal, 0, Color(42, 34, 15), Color(19, 19, 19))); fill(); // extra strokeColor(Color(150, 150, 150, 0.25f)); stroke(); // .rt-neural .background_head beginPath(); roundedRect(marginHorizontal + marginHead, marginVertical + marginHead, widthHead, heightHead, cornerRadius); fillPaint(linearGradient(marginHorizontal + marginHead, marginVertical + marginHead, marginHorizontal + marginHead, marginVertical + heightHead, Color(0x8b, 0xf7, 0x00), Color(0xcd, 0xff, 0x05))); fill(); fillPaint(imagePattern(marginHorizontal + marginHead, marginVertical + marginHead, headBgSize.getWidth(), headBgSize.getHeight(), 0.f, images.background, 1.f)); fill(); fillPaint(boxGradient(marginHorizontal + marginHead, marginVertical + marginHead, widthHead, heightHead, cornerRadius, 12 * scaleFactor, Color(0, 0, 0, 0.f), Color(0, 0, 0))); fill(); // .rt-neural .brand const Size aidaLogoSize(111 * scaleFactor, 25 * scaleFactor); save(); translate(marginHorizontal + marginHead * 2, marginVertical + headBgSize.getHeight()); beginPath(); rect(0, 0, aidaLogoSize.getWidth(), aidaLogoSize.getHeight()); fillPaint(imagePattern(0, 0, aidaLogoSize.getWidth(), aidaLogoSize.getHeight(), 0.f, images.aida, 1.f)); fill(); restore(); // .rt-neural .plate const Size axLogoSize(100 * scaleFactor * 1548 / 727, 100 * scaleFactor); save(); translate(marginHorizontal + widthPedal/2 - axLogoSize.getWidth()/2, marginVertical + marginHead + headBgSize.getHeight() / 6); beginPath(); rect(0, 0, axLogoSize.getWidth(), axLogoSize.getHeight()); fillPaint(imagePattern(0, 0, axLogoSize.getWidth(), axLogoSize.getHeight(), 0.f, images.ax, 1.f)); fill(); restore(); fillColor(Color(0x0c, 0x2f, 0x03, 0.686f)); fontSize(24 * scaleFactor); textAlign(ALIGN_CENTER | ALIGN_BASELINE); text(marginHorizontal + widthPedal/2, marginVertical + heightHead - marginHead, "AI CRAFTED TONE", nullptr); #ifndef MOD_BUILD fillColor(Color(1.f,1.f,1.f)); fontSize((kSubWidgetsFontSize + 2) * scaleFactor); textAlign(ALIGN_RIGHT | ALIGN_MIDDLE); text(marginHorizontal + widthPedal - 10 * scaleFactor, marginVertical/2, aboutLabel, nullptr); #endif #if AIDAX_WITH_STANDALONE_CONTROLS textAlign(ALIGN_CENTER | ALIGN_MIDDLE); const double micx = getWidth() / 2; switch (enableInputState) { case kEnableInputUnsupported: text(micx, marginVertical/2, "Audio Input unsupported", nullptr); break; case kEnableInputSupported: // text(micx, marginVertical/2, "Please enable Input...", nullptr); break; case kEnableInputEnabled: if (bufferSizeComboBox == nullptr) text(micx, marginVertical/2, "Audio Input enabled", nullptr); break; case kEnableInputJACK: // text(micx, marginVertical/2, "Audio Input always enabled (using JACK)", nullptr); break; } #endif } void onResize(const ResizeEvent& event) override { UI::onResize(event); repositionWidgets(); #if AIDAX_WITH_STANDALONE_CONTROLS if (blendishParent != nullptr) blendishParent->setSize(event.size); #endif } void repositionWidgets() { const double scaleFactor = getScaleFactor(); const double widthPedal = kPedalWidth * scaleFactor; const double heightPedal = kPedalHeight * scaleFactor; const double marginHorizontal = kPedalMargin * scaleFactor + (getWidth() - DISTRHO_UI_DEFAULT_WIDTH * scaleFactor) / 2; const double marginTop = kPedalMarginTop * scaleFactor; const double heightHead = 177 * scaleFactor; const double margin = 15 * scaleFactor; const uint unusedSpace = widthPedal - (AidaKnob::kScaleSize * scaleFactor * 7) - (AidaPluginSwitch::kFullWidth * scaleFactor * 3) - (AidaSplitter::kLineWidth * scaleFactor * 3); const uint padding = unusedSpace / 14; const uint maxHeight = subwidgetsLayout.setAbsolutePos(marginHorizontal + margin, marginTop + heightPedal - margin - kSubWidgetsFullHeight * scaleFactor, padding); subwidgetsLayout.setSize(maxHeight, 0); const double loadersX = marginHorizontal + widthPedal * 2 / 3; const double loadersY = marginTop + heightPedal - heightHead; loaders.model->setAbsolutePos(loadersX, loadersY - margin / 2 - loaders.cabsim->getHeight()); loaders.model->setWidth(widthPedal / 3 - margin * 2); loaders.cabsim->setAbsolutePos(loadersX, loadersY); loaders.cabsim->setWidth(widthPedal / 3 - margin * 2); #ifndef MOD_BUILD const double metersX = marginHorizontal + margin / 2; const double metersY = marginTop / 2 - meters.in->getHeight() / 2; meters.in->setAbsolutePos(metersX, metersY); meters.out->setAbsolutePos(metersX + meters.in->getWidth() + margin / 2, metersY); #else const double metersX = marginHorizontal + margin * 3 / 2; const double metersY = margin * 3 / 2; meters.in->setAbsolutePos(metersX, metersY); meters.out->setAbsolutePos(metersX, metersY + meters.in->getHeight() + margin / 4); #endif #if AIDAX_WITH_STANDALONE_CONTROLS if (blendishParent != nullptr) { enableInputButton->setAbsolutePos(getWidth() / 2 - enableInputButton->getWidth()/2, marginTop/2 - enableInputButton->getHeight()/2); bufferSizeComboBox->setAbsolutePos(getWidth() / 2 - bufferSizeComboBox->getWidth()/2, marginTop/2 - bufferSizeComboBox->getHeight()/2); } #endif } void buttonClicked(SubWidget* const widget, int) override { const uint id = widget->getId(); switch (id) { case kParameterEQPOS: case kParameterMTYPE: editParameter(id, true); setParameterValue(id, static_cast(widget)->isChecked() ? 1.f : 0.f); editParameter(id, false); break; case kParameterCABSIMBYPASS: case kParameterNETBYPASS: case kParameterGLOBALBYPASS: editParameter(id, true); setParameterValue(id, static_cast(widget)->isChecked() ? 0.f : 1.f); editParameter(id, false); break; case kButtonLoadModel: fileLoaderMode = kFileLoaderModel; requestStateFile("json", lastDirModel, "Open AidaDSP model json"); break; case kButtonLoadCabinet: fileLoaderMode = kFileLoaderImpulse; requestStateFile("cabinet", lastDirCabinet, "Open Cabinet Simulator IR"); break; #if AIDAX_WITH_STANDALONE_CONTROLS case kButtonEnableMicInput: if (supportsAudioInput() && !isAudioInputEnabled()) requestAudioInput(); break; #endif } } void requestStateFile(const char* const stateKey, const String& lastDir, const char* const title) { #ifndef DISTRHO_OS_WASM if (UI::requestStateFile(stateKey)) return; d_stdout("File through host failed, doing it manually"); #endif DISTRHO_NAMESPACE::FileBrowserOptions opts; opts.title = title; if (lastDir.isNotEmpty()) opts.startDir = lastDir; if (!openFileBrowser(opts)) { d_stdout("Failed to open a file dialog!"); } } void knobDragStarted(SubWidget* const widget) override { editParameter(widget->getId(), true); } void knobDragFinished(SubWidget* const widget) override { editParameter(widget->getId(), false); } void knobValueChanged(SubWidget* const widget, float value) override { setParameterValue(widget->getId(), value); } void knobDoubleClicked(SubWidget* const widget) override { static_cast(widget)->setValue(kParameters[widget->getId()].ranges.def, true); } #if AIDAX_WITH_STANDALONE_CONTROLS void blendishComboBoxIndexChanged(BlendishComboBox* const comboBox, int) override { const String label(comboBox->getCurrentLabel()); comboBox->setCurrentIndex(-1, false); if (requestBufferSizeChange(std::atoi(label))) bufferSizeComboBox->setDefaultLabel("Buffer Size: " + label); blendishParent->repaint(); } void blendishToolButtonClicked(BlendishToolButton* const widget, int button) override { if (button != kMouseButtonLeft) return; if (widget->getId() == kButtonEnableMicInput) if (supportsAudioInput() && !isAudioInputEnabled()) requestAudioInput(); } #endif void uiIdle() override { if (meters.resetOnNextIdle) { meters.resetOnNextIdle = false; setState("reset-meters", ""); } #if AIDAX_WITH_STANDALONE_CONTROLS if (enableInputButton != nullptr) { const EnableInputState newInputState = isAudioInputEnabled() ? kEnableInputEnabled : kEnableInputSupported; if (enableInputState != newInputState) { enableInputState = newInputState; repaint(); if (enableInputState == kEnableInputEnabled) { enableInputButton->hide(); // todo advanced settings page if (bufferSizeComboBox != nullptr) bufferSizeComboBox->show(); } } } #endif } /** Window file selected function, called when a path is selected by the user, as triggered by openFileBrowser(). This function is for plugin UIs to be able to override Window::onFileSelected(const char*). This action happens after the user confirms the action, so the file browser dialog will be closed at this point. The default implementation does nothing. */ void uiFileBrowserSelected(const char* const filename) override { if (filename == nullptr) return; switch (fileLoaderMode) { case kFileLoaderNull: break; case kFileLoaderModel: // notify DSP setState("json", filename); // update UI loaders.model->setFilename(filename); // save dirname for next time if (const char* const lastsep = std::strrchr(filename, DISTRHO_OS_SEP)) { lastDirModel = filename; lastDirModel.truncate(lastsep - filename); } break; case kFileLoaderImpulse: // notify DSP setState("cabinet", filename); // update UI loaders.cabsim->setFilename(filename); // save dirname for next time if (const char* const lastsep = std::strrchr(filename, DISTRHO_OS_SEP)) { lastDirCabinet = filename; lastDirCabinet.truncate(lastsep - filename); } break; } fileLoaderMode = kFileLoaderNull; } // ---------------------------------------------------------------------------------------------------------------- /** Set our UI class as non-copyable and add a leak detector just in case. */ DISTRHO_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR(AidaDSPLoaderUI) }; /* -------------------------------------------------------------------------------------------------------------------- * UI entry point, called by DPF to create a new UI instance. */ UI* createUI() { return new AidaDSPLoaderUI(); } // -------------------------------------------------------------------------------------------------------------------- END_NAMESPACE_DISTRHO ================================================ FILE: src/model_variant.hpp ================================================ #include #include #define MAX_INPUT_SIZE 3 struct NullModel { static constexpr int input_size = 0; static constexpr int output_size = 0; }; using ModelType_GRU_8_1 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_GRU_8_2 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_GRU_8_3 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_GRU_12_1 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_GRU_12_2 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_GRU_12_3 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_GRU_16_1 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_GRU_16_2 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_GRU_16_3 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_GRU_20_1 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_GRU_20_2 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_GRU_20_3 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_GRU_24_1 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_GRU_24_2 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_GRU_24_3 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_GRU_32_1 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_GRU_32_2 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_GRU_32_3 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_GRU_40_1 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_GRU_40_2 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_GRU_40_3 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_GRU_64_1 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_GRU_64_2 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_GRU_64_3 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_GRU_80_1 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_GRU_80_2 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_GRU_80_3 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_LSTM_8_1 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_LSTM_8_2 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_LSTM_8_3 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_LSTM_12_1 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_LSTM_12_2 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_LSTM_12_3 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_LSTM_16_1 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_LSTM_16_2 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_LSTM_16_3 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_LSTM_20_1 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_LSTM_20_2 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_LSTM_20_3 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_LSTM_24_1 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_LSTM_24_2 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_LSTM_24_3 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_LSTM_32_1 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_LSTM_32_2 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_LSTM_32_3 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_LSTM_40_1 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_LSTM_40_2 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_LSTM_40_3 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_LSTM_64_1 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_LSTM_64_2 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_LSTM_64_3 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_LSTM_80_1 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_LSTM_80_2 = RTNeural::ModelT, RTNeural::DenseT>; using ModelType_LSTM_80_3 = RTNeural::ModelT, RTNeural::DenseT>; using ModelVariantType = std::variant; inline bool is_model_type_ModelType_GRU_8_1 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "gru"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 8; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 1; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_GRU_8_2 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "gru"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 8; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 2; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_GRU_8_3 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "gru"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 8; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 3; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_GRU_12_1 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "gru"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 12; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 1; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_GRU_12_2 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "gru"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 12; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 2; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_GRU_12_3 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "gru"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 12; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 3; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_GRU_16_1 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "gru"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 16; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 1; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_GRU_16_2 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "gru"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 16; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 2; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_GRU_16_3 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "gru"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 16; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 3; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_GRU_20_1 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "gru"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 20; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 1; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_GRU_20_2 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "gru"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 20; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 2; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_GRU_20_3 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "gru"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 20; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 3; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_GRU_24_1 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "gru"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 24; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 1; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_GRU_24_2 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "gru"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 24; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 2; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_GRU_24_3 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "gru"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 24; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 3; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_GRU_32_1 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "gru"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 32; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 1; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_GRU_32_2 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "gru"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 32; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 2; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_GRU_32_3 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "gru"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 32; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 3; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_GRU_40_1 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "gru"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 40; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 1; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_GRU_40_2 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "gru"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 40; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 2; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_GRU_40_3 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "gru"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 40; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 3; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_GRU_64_1 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "gru"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 64; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 1; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_GRU_64_2 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "gru"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 64; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 2; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_GRU_64_3 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "gru"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 64; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 3; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_GRU_80_1 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "gru"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 80; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 1; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_GRU_80_2 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "gru"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 80; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 2; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_GRU_80_3 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "gru"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 80; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 3; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_LSTM_8_1 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "lstm"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 8; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 1; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_LSTM_8_2 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "lstm"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 8; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 2; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_LSTM_8_3 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "lstm"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 8; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 3; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_LSTM_12_1 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "lstm"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 12; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 1; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_LSTM_12_2 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "lstm"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 12; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 2; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_LSTM_12_3 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "lstm"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 12; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 3; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_LSTM_16_1 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "lstm"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 16; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 1; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_LSTM_16_2 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "lstm"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 16; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 2; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_LSTM_16_3 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "lstm"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 16; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 3; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_LSTM_20_1 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "lstm"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 20; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 1; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_LSTM_20_2 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "lstm"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 20; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 2; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_LSTM_20_3 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "lstm"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 20; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 3; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_LSTM_24_1 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "lstm"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 24; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 1; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_LSTM_24_2 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "lstm"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 24; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 2; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_LSTM_24_3 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "lstm"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 24; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 3; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_LSTM_32_1 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "lstm"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 32; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 1; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_LSTM_32_2 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "lstm"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 32; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 2; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_LSTM_32_3 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "lstm"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 32; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 3; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_LSTM_40_1 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "lstm"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 40; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 1; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_LSTM_40_2 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "lstm"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 40; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 2; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_LSTM_40_3 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "lstm"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 40; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 3; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_LSTM_64_1 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "lstm"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 64; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 1; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_LSTM_64_2 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "lstm"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 64; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 2; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_LSTM_64_3 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "lstm"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 64; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 3; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_LSTM_80_1 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "lstm"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 80; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 1; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_LSTM_80_2 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "lstm"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 80; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 2; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool is_model_type_ModelType_LSTM_80_3 (const nlohmann::json& model_json) { const auto json_layers = model_json.at ("layers"); const auto rnn_layer_type = json_layers.at (0).at ("type").get(); const auto is_layer_type_correct = rnn_layer_type == "lstm"; const auto hidden_size = json_layers.at (0).at ("shape").back().get(); const auto is_hidden_size_correct = hidden_size == 80; const auto input_size = model_json.at ("in_shape").back().get(); const auto is_input_size_correct = input_size == 3; return is_layer_type_correct && is_hidden_size_correct && is_input_size_correct; } inline bool custom_model_creator (const nlohmann::json& model_json, ModelVariantType& model) { if (is_model_type_ModelType_GRU_8_1 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_GRU_8_2 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_GRU_8_3 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_GRU_12_1 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_GRU_12_2 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_GRU_12_3 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_GRU_16_1 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_GRU_16_2 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_GRU_16_3 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_GRU_20_1 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_GRU_20_2 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_GRU_20_3 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_GRU_24_1 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_GRU_24_2 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_GRU_24_3 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_GRU_32_1 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_GRU_32_2 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_GRU_32_3 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_GRU_40_1 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_GRU_40_2 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_GRU_40_3 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_GRU_64_1 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_GRU_64_2 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_GRU_64_3 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_GRU_80_1 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_GRU_80_2 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_GRU_80_3 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_LSTM_8_1 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_LSTM_8_2 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_LSTM_8_3 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_LSTM_12_1 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_LSTM_12_2 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_LSTM_12_3 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_LSTM_16_1 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_LSTM_16_2 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_LSTM_16_3 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_LSTM_20_1 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_LSTM_20_2 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_LSTM_20_3 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_LSTM_24_1 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_LSTM_24_2 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_LSTM_24_3 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_LSTM_32_1 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_LSTM_32_2 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_LSTM_32_3 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_LSTM_40_1 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_LSTM_40_2 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_LSTM_40_3 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_LSTM_64_1 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_LSTM_64_2 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_LSTM_64_3 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_LSTM_80_1 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_LSTM_80_2 (model_json)) { model.emplace(); return true; } else if (is_model_type_ModelType_LSTM_80_3 (model_json)) { model.emplace(); return true; } model.emplace(); return false; } ================================================ FILE: src/plugin/DistrhoPluginInfo.h ================================================ /* * AIDA-X DPF plugin * Copyright (C) 2022-2023 Massimo Pennazio * Copyright (C) 2023 Filipe Coelho * SPDX-License-Identifier: GPL-3.0-or-later */ #pragma once #define DISTRHO_PLUGIN_NUM_INPUTS 1 #define DISTRHO_PLUGIN_NUM_OUTPUTS 1 #define DISTRHO_UI_USER_RESIZABLE 0 #define DISTRHO_PLUGIN_VARIANT_PLUGIN 1 #define DISTRHO_PLUGIN_VARIANT_STANDALONE 0 #include "../DistrhoPluginCommon.hpp" ================================================ FILE: src/standalone/DistrhoPluginInfo.h ================================================ /* * AIDA-X DPF plugin * Copyright (C) 2022-2023 Massimo Pennazio * Copyright (C) 2023 Filipe Coelho * SPDX-License-Identifier: GPL-3.0-or-later */ #pragma once // no audio inputs on web version #ifdef DISTRHO_OS_WASM # define DISTRHO_PLUGIN_NUM_INPUTS 0 #else # define DISTRHO_PLUGIN_NUM_INPUTS 1 #endif #define DISTRHO_PLUGIN_NUM_OUTPUTS 2 #define DISTRHO_UI_USER_RESIZABLE 0 #define DISTRHO_PLUGIN_VARIANT_PLUGIN 0 #define DISTRHO_PLUGIN_VARIANT_STANDALONE 1 #include "../DistrhoPluginCommon.hpp" ================================================ FILE: src/standalone/Files.cpp ================================================ #include "../../build/Files.cpp" ================================================ FILE: src/standalone/Graphics.cpp ================================================ #include "../../build/Graphics.cpp" ================================================ FILE: src/standalone/Makefile ================================================ #!/usr/bin/make -f # Makefile for AIDA-X # # ------------------- # # Created by falkTX # # --------------------------------------------------------------------------------------------------------------------- # Project name, used for binaries NAME = AIDA-X ifeq ($(NOSIMD),true) NAME = AIDA-X-NOSIMD endif # --------------------------------------------------------------------------------------------------------------------- # Do some magic (part 1) export DGL_NAMESPACE = AidaDGL export NVG_FONT_TEXTURE_FLAGS = NVG_IMAGE_NEAREST export WASM_EXCEPTIONS = true export WINDOWS_ICON_ID = 401 export CXXFLAGS += -DPUGL_WASM_NO_KEYBOARD_INPUT -DPUGL_WASM_NO_MOUSEWHEEL_INPUT include ../../modules/dpf/Makefile.base.mk ifeq ($(NOSIMD),true) ifneq (,$(findstring -msse,$(CXXFLAGS))) $(error NOSIMD build requested but -msse compiler flag is present in CXXFLAGS) endif endif # --------------------------------------------------------------------------------------------------------------------- # Files to build FILES_DSP = \ aidadsp-plugin.cpp \ 3rd-party.cpp \ AudioFFT.cpp \ Biquad.cpp \ FFTConvolver.cpp \ Files.cpp \ TwoStageFFTConvolver.cpp \ Utilities.cpp \ pffft.cpp \ r8bbase.cpp FILES_UI = \ aidadsp-ui.cpp \ Graphics.cpp \ Blendish.cpp ifeq ($(WINDOWS),true) FILES_UI += ax.rc endif # --------------------------------------------------------------------------------------------------------------------- # Do some magic (part 2) ifeq ($(WASM),true) APP_EXT = .js EXTRA_DEPENDENCIES = ../../resources/.stamp_downloaded endif DPF_PATH = ../../modules/dpf DPF_BUILD_DIR = ../../build DPF_TARGET_DIR = ../../build/bin include ../../modules/dpf/Makefile.plugins.mk # --------------------------------------------------------------------------------------------------------------------- # Tweak build flags BUILD_CXX_FLAGS += -std=gnu++17 # BUILD_CXX_FLAGS += -DBLENDISH_NEW_TLW BUILD_CXX_FLAGS += -DRTNEURAL_DEFAULT_ALIGNMENT=16 BUILD_CXX_FLAGS += -I.. BUILD_CXX_FLAGS += -I../../build BUILD_CXX_FLAGS += -I../../modules/dpf-widgets/opengl BUILD_CXX_FLAGS += -I../../modules/FFTConvolver BUILD_CXX_FLAGS += -I../../modules/dr_libs BUILD_CXX_FLAGS += -I../../modules/r8brain BUILD_CXX_FLAGS += -I../../modules/rtneural # BUILD_CXX_FLAGS += -I../../modules/rtneural/RTNeural BUILD_CXX_FLAGS += -DRTNEURAL_USE_EIGEN=1 BUILD_CXX_FLAGS += -I../../modules/rtneural/modules/Eigen # BUILD_CXX_FLAGS += -DRTNEURAL_USE_XSIMD=1 # BUILD_CXX_FLAGS += -I../../modules/rtneural/modules/xsimd/include ifeq ($(CPU_I386),true) # needed for enabling SSE in pffft BUILD_CXX_FLAGS += -Di386 endif ifeq ($(MOD_BUILD),true) BUILD_CXX_FLAGS += -DMOD_BUILD endif ifeq ($(NOSIMD),true) BUILD_CXX_FLAGS += -DNOSIMD -DPFFFT_SIMD_DISABLE endif # --------------------------------------------------------------------------------------------------------------------- # Extra rules for generating needed files $(BUILD_DIR)/Files.cpp.o: $(BUILD_DIR)/Files.cpp $(BUILD_DIR)/Files.cpp: $(BUILD_DIR)/Files.hpp $(BUILD_DIR)/Graphics.cpp.o: $(BUILD_DIR)/Graphics.cpp $(BUILD_DIR)/Graphics.cpp: $(BUILD_DIR)/Graphics.hpp $(BUILD_DIR)/aidadsp-plugin.cpp.o: $(BUILD_DIR)/Files.hpp $(BUILD_DIR)/aidadsp-ui.cpp.o: $(BUILD_DIR)/Graphics.hpp $(BUILD_DIR)/Files.hpp: $(wildcard ../../files/*.*) -@mkdir -p $(BUILD_DIR) $(DPF_PATH)/utils/res2c.py Files ../../files $(BUILD_DIR) $(BUILD_DIR)/Graphics.hpp: $(wildcard ../../graphics/png/*.*) -@mkdir -p $(BUILD_DIR) $(DPF_PATH)/utils/res2c.py Graphics ../../graphics/png $(BUILD_DIR) # --------------------------------------------------------------------------------------------------------------------- # Extra rules for macOS app bundle $(TARGET_DIR)/AIDA-X.app/Contents/Info.plist: ../../utils/Info.plist $(TARGET_DIR)/AIDA-X.app/Contents/Resources/ax.icns -@mkdir -p $(shell dirname $@) cp $< $@ $(TARGET_DIR)/AIDA-X.app/Contents/Resources/ax.icns: ../../utils/ax.icns -@mkdir -p $(shell dirname $@) cp $< $@ # --------------------------------------------------------------------------------------------------------------------- # Extra rules for emscripten ifeq ($(WASM),true) BUILD_CXX_FLAGS += -DEIGEN_DONT_VECTORIZE=1 LINK_FLAGS += -O3 LINK_FLAGS += -sALLOW_MEMORY_GROWTH LINK_FLAGS += -sINITIAL_MEMORY=64Mb LINK_FLAGS += -sLZ4=1 LINK_FLAGS += --preload-file=../../resources@/resources LINK_FLAGS += --use-preload-cache LINK_FLAGS += --use-preload-plugins WASM_RESOURCES = $(TARGET_DIR)/AIDA-X.html $(TARGET_DIR)/AIDA-X.html: ../../utils/ax.html -@mkdir -p $(shell dirname $@) cp $< $@ ../../resources/.stamp_downloaded: mkdir -p ../../resources && \ wget aida.kx.studio/resources.tar.xz -O ../../resources/resources.tar.xz && \ tar -xvf ../../resources/resources.tar.xz -C ../../resources/ && \ rm ../../resources/resources.tar.xz endif # --------------------------------------------------------------------------------------------------------------------- # Extra rules for Windows ifeq ($(WINDOWS),true) WINDRES ?= $(subst gcc,windres,$(CC)) $(BUILD_DIR)/ax.rc.o: ax.rc ../../utils/ax.ico -@mkdir -p "$(shell dirname $(BUILD_DIR)/$<)" @echo "Compiling ax.rc" $(SILENT)$(WINDRES) $< -O coff -o $@ endif # --------------------------------------------------------------------------------------------------------------------- # Standalone build only all: jack $(WASM_RESOURCES) # --------------------------------------------------------------------------------------------------------------------- ================================================ FILE: utils/Info.plist ================================================ CFBundleDevelopmentRegion English CFBundleExecutable AIDA-X CFBundleIconFile ax.icns CFBundleIdentifier cc.aidadsp.rt-neural-loader NSHighResolutionCapable NSRequiresAquaSystemAppearance NSMicrophoneUsageDescription AIDA-X requires microphone permissions for audio input. ================================================ FILE: utils/ax-mod.html ================================================
AIDA-X
Downloading...
================================================ FILE: utils/ax.html ================================================ AIDA-X
AIDA-X
Downloading...
================================================ FILE: utils/ax.rc ================================================ id ICON "../../utils/ax.ico" 401 ICON "../../utils/ax.ico" ================================================ FILE: utils/inno/win64.iss ================================================ [Setup] ArchitecturesInstallIn64BitMode=x64 AppName=AIDA-X AppPublisher=AIDA DSP AppPublisherURL=https://github.com/AidaDSP/aida-x/ AppSupportURL=https://github.com/AidaDSP/aida-x/issues/ AppUpdatesURL=https://github.com/AidaDSP/aida-x/releases/ AppVerName=AIDA-X @VERSION@ AppVersion=@VERSION@ DefaultDirName={commonpf64}\AIDA-X DisableDirPage=yes DisableProgramGroupPage=yes ; DisableReadyPage=true ; DisableWelcomePage=no InfoBeforeFile=@UTILSDIR@\windows-installer-welcome.rtf OutputBaseFilename=AIDA-X-@VERSION@-win64-installer OutputDir=. SetupIconFile=@UTILSDIR@\ax.ico UsePreviousAppDir=no VersionInfoCompany=AIDA DSP VersionInfoCopyright=AIDA DSP VersionInfoDescription=AIDA-X Installer VersionInfoProductName=AIDA-X VersionInfoProductVersion=@VERSION@ VersionInfoVersion=@VERSION@ ; WizardImageFile=WizModernImage.bmp ; WizardImageStretch=false ; WizardSmallImageFile=WizSmall.bmp [Types] Name: "normal"; Description: "Full installation"; Name: "custom"; Description: "Custom installation"; Flags: iscustom; [Components] Name: standalone; Description: "Standalone"; Types: normal; Name: clap; Description: "CLAP plugin"; Types: normal; Name: lv2; Description: "LV2 plugin"; Types: normal; Name: vst2; Description: "VST2 plugin"; Types: normal; Name: vst3; Description: "VST3 plugin"; Types: normal; [Files] Source: "@BINDIR@/AIDA-X.exe"; DestDir: "{app}"; Components: standalone; Flags: ignoreversion; Source: "@BINDIR@/AIDA-X.clap"; DestDir: "{commoncf64}\CLAP"; Components: clap; Flags: ignoreversion; Source: "@BINDIR@/AIDA-X.lv2/*.*"; DestDir: "{commoncf64}\LV2\AIDA-X.lv2"; Components: lv2; Flags: ignoreversion recursesubdirs; Source: "@BINDIR@/AIDA-X-vst2.dll"; DestDir: "{code:GetVST2Dir}"; Components: vst2; Flags: ignoreversion; Source: "@BINDIR@/AIDA-X.vst3"; DestDir: "{commoncf64}\VST3"; Components: vst3; Flags: ignoreversion recursesubdirs; [Icons] Name: "{commonprograms}\AIDA-X"; Filename: "{app}\AIDA-X.exe"; Components: standalone; Comment: "AIDA-X Standalone"; Name: "{commondesktop}\AIDA-X"; Filename: "{app}\AIDA-X.exe"; Components: standalone; Tasks: desktopicon; [Tasks] Name: desktopicon; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}" ; based on https://www.kvraudio.com/forum/viewtopic.php?t=501615 [Code] var VST2DirPage: TInputDirWizardPage; TypesComboOnChangePrev: TNotifyEvent; procedure ComponentsListCheckChanges; begin WizardForm.NextButton.Enabled := (WizardSelectedComponents(False) <> ''); end; procedure ComponentsListClickCheck(Sender: TObject); begin ComponentsListCheckChanges; end; procedure TypesComboOnChange(Sender: TObject); begin TypesComboOnChangePrev(Sender); ComponentsListCheckChanges; end; procedure InitializeWizard; begin WizardForm.ComponentsList.OnClickCheck := @ComponentsListClickCheck; TypesComboOnChangePrev := WizardForm.TypesCombo.OnChange; WizardForm.TypesCombo.OnChange := @TypesComboOnChange; VST2DirPage := CreateInputDirPage(wpSelectComponents, 'Confirm VST2 Plugin Directory', '', 'Select the folder in which setup should install the VST2 Plugin, then click Next.', False, ''); VST2DirPage.Add('VST2 Plugin Directory'); VST2DirPage.Values[0] := ExpandConstant('{reg:HKLM\SOFTWARE\VST,VSTPluginsPath|{commonpf64}\VSTPlugins}'); end; procedure CurPageChanged(CurPageID: Integer); begin if CurPageID = VST2DirPage.ID then begin VST2DirPage.Buttons[0].Enabled := WizardIsComponentSelected('vst2'); VST2DirPage.PromptLabels[0].Enabled := VST2DirPage.Buttons[0].Enabled; VST2DirPage.Edits[0].Enabled := VST2DirPage.Buttons[0].Enabled; end; if CurPageID = wpSelectComponents then begin ComponentsListCheckChanges; end; end; function ShouldSkipPage(PageID: Integer): Boolean; begin if PageID = VST2DirPage.ID then begin If (not WizardIsComponentSelected('vst2'))then begin Result := True end; end; end; function GetVST2Dir(Param: string): string; begin Result := VST2DirPage.Values[0]; end; ================================================ FILE: utils/macos-installer-welcome.txt ================================================ AIDA-X is an Amp Model Player, allowing it to load models of AI trained music gear, which you can then play through! Its main intended use is to provide high fidelity simulations of amplifiers. However, it is also possible to run entire signal chains consisting of any combination of amp, cab, dist, drive, fuzz, boost and eq. This installer contains the AudioUnit, CLAP, LV2, VST2 and VST3 plugin formats. ================================================ FILE: utils/windows-installer.sh ================================================ #!/bin/bash set -e cd $(dirname ${0}) # --------------------------------------------------------------------------------------------------------------------- BUILDDIR="${1}" VERSION="${2}" if [ -z "${BUILDDIR}" ] || [ -z "${VERSION}" ]; then echo "usage: ${0} " exit 1 fi if [ ! -d "${BUILDDIR}" ]; then echo "BUILDDIR does not exist" exit 1 fi # --------------------------------------------------------------------------------------------------------------------- mkdir -p "${BUILDDIR}/innosetup-6.0.5" dlfile="${BUILDDIR}/innosetup-6.0.5.exe" pkgdir="$(realpath ${BUILDDIR}/innosetup-6.0.5)" drivec="${pkgdir}/drive_c" iscc="${drivec}/InnoSetup/ISCC.exe" export WINEARCH=win64 export WINEDLLOVERRIDES="mscoree,mshtml=" export WINEPREFIX="${pkgdir}" # --------------------------------------------------------------------------------------------------------------------- # download and install innosetup if [ ! -f "${dlfile}" ]; then # FIXME proper dl version curl -L https://jrsoftware.org/download.php/is.exe?site=2 -o "${dlfile}" fi if [ ! -d "${drivec}" ]; then xvfb-run wineboot -u fi if [ ! -f "${drivec}/InnoSetup/ISCC.exe" ]; then xvfb-run wine "${dlfile}" /allusers /dir=C:\\InnoSetup /nocancel /norestart /verysilent fi # --------------------------------------------------------------------------------------------------------------------- # create innosetup installer ls -al "${BUILDDIR}/bin" sed \ -e "s|@VERSION@|${VERSION}|g" \ -e "s|@BINDIR@|Z:${BUILDDIR}/bin|g" \ -e "s|@UTILSDIR@|Z:${PWD}|g" \ inno/win64.iss > "${BUILDDIR}/win64.iss" xvfb-run wine "${iscc}" "Z:${BUILDDIR}/win64.iss" # ---------------------------------------------------------------------------------------------------------------------