├── .github ├── FUNDING.yml └── workflows │ └── cmake.yml ├── .gitmodules ├── CMakeLists.txt ├── LICENSE.txt ├── README.md ├── Source ├── CMakeLists.txt ├── Eq4Band.cpp ├── Eq4Band.h ├── PluginEditor.cpp ├── PluginEditor.h ├── PluginProcessor.cpp ├── PluginProcessor.h ├── RTNeuralLSTM.cpp ├── RTNeuralLSTM.h ├── myLookAndFeel.cpp └── myLookAndFeel.h ├── aax_builds.sh ├── installers ├── linux │ └── build_deb.sh ├── mac │ ├── Chameleon.pkgproj │ ├── Intro.txt │ └── build_mac_installer.sh └── windows │ ├── Chameleon_Install_Script.iss │ └── build_win_installer.sh ├── mac_builds.sh ├── models ├── gold.json ├── green.json └── red.json ├── modules ├── CMakeLists.txt └── cmake │ ├── SubprojectVersion.cmake │ └── WarningFlags.cmake ├── resources ├── CMakeLists.txt ├── Chameleon.jpg ├── chameleon_amp.jpg ├── guitarml.ico ├── knob_70_black.png ├── led_24_red.png ├── led_gold.png ├── led_gold_on.png ├── led_green.png ├── led_green_on.png ├── led_red.png ├── led_red_off.png ├── led_red_on.png ├── logo.png ├── power_switch_down.png ├── power_switch_mid.png └── power_switch_up.png ├── test ├── pytorch_lstm_custom.py └── ts9_model_best.json ├── validate.sh └── win_builds.sh /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: [GuitarML] 4 | patreon: GuitarML 5 | custom: https://www.paypal.com/donate?business=H22K2S7B7ACMJ&no_recurring=0&item_name=Support+GuitarML¤cy_code=USD 6 | -------------------------------------------------------------------------------- /.github/workflows/cmake.yml: -------------------------------------------------------------------------------- 1 | name: CI 2 | 3 | on: 4 | push: 5 | branches: 6 | - main 7 | - develop 8 | pull_request: 9 | branches: 10 | - main 11 | - develop 12 | 13 | workflow_dispatch: 14 | 15 | jobs: 16 | build_and_test: 17 | if: contains(toJson(github.event.commits), '***NO_CI***') == false && contains(toJson(github.event.commits), '[ci skip]') == false && contains(toJson(github.event.commits), '[skip ci]') == false 18 | name: Test plugin on ${{ matrix.os }} 19 | runs-on: ${{ matrix.os }} 20 | strategy: 21 | fail-fast: false # show all errors for each platform (vs. cancel jobs on error) 22 | matrix: 23 | os: [ubuntu-latest, windows-2019, macOS-latest] 24 | 25 | steps: 26 | - name: Install Linux Deps 27 | if: runner.os == 'Linux' 28 | run: | 29 | sudo apt-get update 30 | sudo apt install libasound2-dev libcurl4-openssl-dev libx11-dev libxinerama-dev libxext-dev libfreetype6-dev libwebkit2gtk-4.0-dev libglu1-mesa-dev libjack-jackd2-dev lv2-dev 31 | sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 9 32 | sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 9 33 | - name: Get latest CMake 34 | uses: lukka/get-cmake@latest 35 | 36 | - name: Checkout code 37 | uses: actions/checkout@v2 38 | with: 39 | submodules: recursive 40 | 41 | - name: Configure 42 | shell: bash 43 | run: cmake -Bbuild 44 | 45 | - name: Build 46 | shell: bash 47 | run: cmake --build build --config Release --parallel 4 48 | 49 | ## Validation step for windows does not resolve, need to fix 50 | #- name: Validate 51 | # if: runner.os == 'Windows' 52 | # run: bash validate.sh 53 | 54 | - name: Upload Linux Artifact GitHub Action 55 | if: runner.os == 'Linux' 56 | uses: actions/upload-artifact@v2 57 | with: 58 | name: linux-assets 59 | path: /home/runner/work/Chameleon/Chameleon/build/Chameleon_artefacts 60 | 61 | - name: Upload Mac Artifact GitHub Action 62 | if: runner.os == 'macOS' 63 | uses: actions/upload-artifact@v2 64 | with: 65 | name: mac-assets 66 | path: /Users/runner/work/Chameleon/Chameleon/build/Chameleon_artefacts 67 | 68 | - name: Upload Windows Artifact GitHub Action 69 | if: runner.os == 'Windows' 70 | uses: actions/upload-artifact@v2 71 | with: 72 | name: win-assets 73 | path: D:/a/Chameleon/Chameleon/build/Chameleon_artefacts 74 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "modules/json"] 2 | path = modules/json 3 | url = https://github.com/nlohmann/json.git 4 | [submodule "modules/chowdsp_utils"] 5 | path = modules/chowdsp_utils 6 | url = https://github.com/Chowdhury-DSP/chowdsp_utils 7 | [submodule "modules/libsamplerate"] 8 | path = modules/libsamplerate 9 | url = https://github.com/libsndfile/libsamplerate 10 | [submodule "modules/JUCE"] 11 | path = modules/JUCE 12 | url = https://github.com/juce-framework/JUCE.git 13 | [submodule "modules/RTNeural"] 14 | path = modules/RTNeural 15 | url = https://github.com/jatinchowdhury18/RTNeural.git 16 | -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- 1 | cmake_minimum_required(VERSION 3.15) 2 | set(CMAKE_OSX_DEPLOYMENT_TARGET "10.12" CACHE STRING "Minimum OS X deployment target") 3 | project(Chameleon VERSION 1.2.0) 4 | 5 | set(CMAKE_CXX_STANDARD 17) 6 | 7 | add_subdirectory(modules) 8 | include_directories(modules) 9 | 10 | #juce_set_aax_sdk_path(C:/SDKs/AAX_SDK/) 11 | 12 | set(JUCE_FORMATS AU VST3) 13 | 14 | # Build LV2 only on Linux 15 | if(UNIX AND NOT APPLE) 16 | message(STATUS "Building LV2 plugin format") 17 | list(APPEND JUCE_FORMATS LV2) 18 | endif() 19 | 20 | # Build AAX if SDK target exists 21 | if(TARGET juce_aax_sdk) 22 | message(STATUS "Building AAX plugin format") 23 | list(APPEND JUCE_FORMATS AAX) 24 | endif() 25 | 26 | option(BUILD_RELEASE "Set build flags for release builds" OFF) 27 | if(BUILD_RELEASE) 28 | set(HARDENED_RUNTIME_ENABLED YES) 29 | else() 30 | set(HARDENED_RUNTIME_ENABLED NO) 31 | endif() 32 | 33 | 34 | juce_add_plugin(Chameleon 35 | COMPANY_NAME GuitarML 36 | PLUGIN_MANUFACTURER_CODE GtML 37 | PLUGIN_CODE Chm3 38 | FORMATS ${JUCE_FORMATS} 39 | ProductName "Chameleon" 40 | LV2URI https://github.com/GuitarML/Chameleon 41 | LV2_SHARED_LIBRARY_NAME Chameleon 42 | ICON_BIG resources/logo.png 43 | 44 | AU_MAIN_TYPE kAudioUnitType_Effect 45 | AAX_CATEGORY AAX_ePlugInCategory_Harmonic 46 | 47 | MICROPHONE_PERMISSION_ENABLED TRUE 48 | HARDENED_RUNTIME_ENABLED ${HARDENED_RUNTIME_ENABLED} 49 | ) 50 | 51 | # create JUCE header 52 | juce_generate_juce_header(Chameleon) 53 | 54 | # add sources 55 | add_subdirectory(Source) 56 | include_directories(Source) 57 | add_subdirectory(resources) 58 | 59 | target_compile_definitions(Chameleon 60 | PUBLIC 61 | JUCE_DISPLAY_SPLASH_SCREEN=0 62 | JUCE_REPORT_APP_USAGE=0 63 | JUCE_WEB_BROWSER=0 64 | JUCE_USE_CURL=0 65 | JUCE_VST3_CAN_REPLACE_VST2=0 66 | ) 67 | 68 | target_link_libraries(Chameleon PUBLIC 69 | juce_plugin_modules 70 | ) 71 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . 675 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Chameleon 2 | 3 | [![CI](https://github.com/GuitarML/Chameleon/actions/workflows/cmake.yml/badge.svg)](https://github.com/GuitarML/Chameleon/actions/workflows/cmake.yml) [![License: GPL v3](https://img.shields.io/badge/License-GPLv3-brightgreen.svg)](https://www.gnu.org/licenses/gpl-3.0) [![Downloads](https://img.shields.io/github/downloads/GuitarML/Chameleon/total)](https://somsubhra.github.io/github-release-stats/?username=GuitarML&repository=Chameleon&page=1&per_page=30) 4 | 5 | ![app](https://github.com/GuitarML/Chameleon/blob/main/resources/Chameleon.jpg) 6 | 7 | Chameleon is a guitar plugin using neural networks to create three distinct sounds from a vintage style amp head. EQ and gain were added to 8 | allow further modification of the three core sounds, named Red (high gain), Gold (crunchy), and Green (crisp and clean). In the same 9 | way a real amp head is used with a cabinet and other effects, this plugin is intended to be used in the signal chain along with IR's (cab sim), 10 | reverb, and any number of guitar effects. 11 | 12 | Chameleon's core sound comes from a neural net inference engine which allows the plugin to disguise itself as a high end 13 | tube amplifier. The engine uses a stateful LSTM model, which improves the sound quality of the previous stateless LSTM used in the SmartAmpPro. It 14 | also improves CPU usage compared to the [SmartAmpPro](https://github.com/GuitarML/SmartAmpPro) and [SmartGuitarAmp](https://github.com/GuitarML/SmartGuitarAmp). 15 | 16 | Check out sound demos on YouTube: [Heavy Demo](https://youtu.be/1oYiklGes6A), [Funky Demo](https://youtu.be/kXecJX9kWpQ)
17 | Check out the tech article on [Towards Data Science](https://towardsdatascience.com/neural-networks-for-real-time-audio-stateful-lstm-b534babeae5d) 18 | 19 | Chameleon is part of the [2021 KVR Audio Developer Challenge](https://www.kvraudio.com/product/chameleon-by-guitarml) 20 | 21 | ## Installing the plugin 22 | 23 | 1. Download the appropriate plugin installer (Windows, Mac, Linux) from the [Releases](https://github.com/GuitarML/Chameleon/releases) page. 24 | 2. Run the installer and follow the instructions. May need to reboot to allow your DAW to recognize the new plugin. 25 | 26 | ## Info 27 | Re-creation of the LSTM inference model from [Real-Time Guitar Amplifier Emulation with Deep 28 | Learning](https://www.mdpi.com/2076-3417/10/3/766/htm) 29 | 30 | The [Automated-GuitarAmpModelling](https://github.com/Alec-Wright/Automated-GuitarAmpModelling) project was used to train the .json models.
31 | GuitarML maintains a [fork](https://github.com/GuitarML/Automated-GuitarAmpModelling) with a few extra helpful features, including a Colab training script. 32 | 33 | The plugin uses [RTNeural](https://github.com/jatinchowdhury18/RTNeural), which is a highly optimized neural net inference engine intended for audio applications. 34 | 35 | ## Build Instructions 36 | 37 | ### Build with Cmake 38 | 39 | ```bash 40 | # Clone the repository 41 | $ git clone https://github.com/GuitarML/Chameleon.git 42 | $ cd Chameleon 43 | 44 | # initialize and set up submodules 45 | $ git submodule update --init --recursive 46 | 47 | # build with CMake 48 | $ cmake -Bbuild 49 | $ cmake --build build --config Release 50 | ``` 51 | The binaries will be located in `Chameleon/build/Chameleon_artefacts/` 52 | -------------------------------------------------------------------------------- /Source/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | #add_subdirectory(headless) 2 | 3 | target_sources(Chameleon PRIVATE 4 | Eq4Band.cpp 5 | Eq4Band.h 6 | myLookAndFeel.cpp 7 | myLookAndFeel.h 8 | PluginEditor.cpp 9 | PluginEditor.h 10 | PluginProcessor.cpp 11 | PluginProcessor.h 12 | RTNeuralLSTM.cpp 13 | RTNeuralLSTM.h 14 | 15 | ) 16 | 17 | #target_precompile_headers(Chameleon PRIVATE pch.h) 18 | -------------------------------------------------------------------------------- /Source/Eq4Band.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | ============================================================================== 3 | 4 | Eq4Band 5 | 6 | ============================================================================== 7 | */ 8 | 9 | #include "Eq4Band.h" 10 | 11 | Eq4Band::Eq4Band() 12 | { 13 | setParameters(0.0, 0.0, 0.0, 0.0); 14 | } 15 | 16 | void Eq4Band::process (const float* inData, float* outData, 17 | MidiBuffer& midiMessages, 18 | const int numSamples, 19 | const int numInputChannels, 20 | const int sampleRate) 21 | { 22 | // Reset params if new sampleRate detected 23 | if (srate != sampleRate) { 24 | srate = sampleRate; 25 | resetSampleRate(); 26 | } 27 | for (int sample = 0; sample < numSamples; ++sample) { 28 | spl0 = inData[sample]; 29 | s0 = spl0; 30 | low0 = (tmplMID = a0MID * s0 - b1MID * tmplMID + cDenorm); 31 | spl0 = (tmplLOW = a0LOW * low0 - b1LOW * tmplLOW + cDenorm); 32 | lowS0 = low0 - spl0; 33 | hi0 = s0 - low0; 34 | midS0 = (tmplHI = a0HI * hi0 - b1HI * tmplHI + cDenorm); 35 | highS0 = hi0 - midS0; 36 | spl0 = (spl0 * lVol + lowS0 * lmVol + midS0 * hmVol + highS0 * hVol);// * outVol; 37 | 38 | outData[sample] = spl0; 39 | } 40 | } 41 | 42 | void Eq4Band::setParameters(float bass_slider, float mid_slider, float treble_slider, float presence_slider) 43 | { 44 | lVol = exp(bass_slider / cAmpDB); 45 | lmVol = exp(mid_slider / cAmpDB); 46 | hmVol = exp(treble_slider / cAmpDB); 47 | hVol = exp(presence_slider / cAmpDB); 48 | outVol = exp(0.0 / cAmpDB); 49 | 50 | xHI = exp(-2.0 * pi * treble_frequency / srate); 51 | a0HI = 1.0 - xHI; 52 | b1HI = -xHI; 53 | 54 | xMID = exp(-2.0 * pi * mid_frequency / srate); 55 | a0MID = 1.0 - xMID; 56 | b1MID = -xMID; 57 | 58 | xLOW = exp(-2.0 * pi * bass_frequency / srate); 59 | a0LOW = 1.0 - xLOW; 60 | b1LOW = -xLOW; 61 | } 62 | 63 | void Eq4Band::resetSampleRate() 64 | { 65 | xHI = exp(-2.0 * pi * treble_frequency / srate); 66 | a0HI = 1.0 - xHI; 67 | b1HI = -xHI; 68 | 69 | xMID = exp(-2.0 * pi * mid_frequency / srate); 70 | a0MID = 1.0 - xMID; 71 | b1MID = -xMID; 72 | 73 | xLOW = exp(-2.0 * pi * bass_frequency / srate); 74 | a0LOW = 1.0 - xLOW; 75 | b1LOW = -xLOW; 76 | } -------------------------------------------------------------------------------- /Source/Eq4Band.h: -------------------------------------------------------------------------------- 1 | /* 2 | ============================================================================== 3 | 4 | Eq4Band 5 | 6 | ============================================================================== 7 | */ 8 | 9 | #pragma once 10 | 11 | #include "../JuceLibraryCode/JuceHeader.h" 12 | 13 | 14 | //============================================================================== 15 | 16 | class Eq4Band 17 | { 18 | public: 19 | Eq4Band(); 20 | void process (const float* inData, float* outData, MidiBuffer& midiMessages, const int numSamples, const int numInputChannels, const int sampleRate); 21 | void setParameters(float bass_slider, float mid_slider, float treble_slider, float presence_slider); 22 | void resetSampleRate(); 23 | 24 | private: 25 | // Tone Knob related variables 26 | float cDenorm = 10e-30; 27 | float cAmpDB = 8.65617025; 28 | 29 | int bass_frequency = 200; 30 | int mid_frequency = 2000; 31 | int treble_frequency = 5000; 32 | //int presence_frequency = 5500; 33 | 34 | int srate = 44100; // Set default 35 | 36 | float pi = 3.1415926; 37 | 38 | float outVol; 39 | float xHI = 0.0;// 40 | float a0HI = 0.0;// 41 | float b1HI = 0.0; 42 | float xMID = 0.0; 43 | float a0MID = 0.0; 44 | float b1MID = 0.0; 45 | float xLOW = 0.0; 46 | float a0LOW = 0.0; 47 | float b1LOW = 0.0; 48 | 49 | float lVol = 0.0; 50 | float lmVol = 0.0; 51 | float hmVol = 0.0; 52 | float hVol = 0.0; 53 | 54 | float s0 = 0.0; 55 | float low0 = 0.0; 56 | float tmplMID = 0.0; 57 | float spl0 = 0.0; 58 | float hi0 = 0.0; 59 | float midS0 = 0.0; 60 | float highS0 = 0.0; 61 | float tmplHI = 0.0; 62 | float lowS0 = 0.0; 63 | float tmplLOW = 0.0; 64 | 65 | 66 | //============================================================================== 67 | JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (Eq4Band) 68 | }; 69 | -------------------------------------------------------------------------------- /Source/PluginEditor.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | ============================================================================== 3 | 4 | This file was auto-generated! 5 | 6 | It contains the basic framework code for a JUCE plugin editor. 7 | 8 | ============================================================================== 9 | */ 10 | 11 | #include "PluginProcessor.h" 12 | #include "PluginEditor.h" 13 | #include 14 | #include 15 | #include 16 | 17 | 18 | //============================================================================== 19 | ChameleonAudioProcessorEditor::ChameleonAudioProcessorEditor (ChameleonAudioProcessor& p) 20 | : AudioProcessorEditor (&p), processor (p) 21 | { 22 | // Make sure that before the constructor has finished, you've set the 23 | // editor's size to whatever you need it to 24 | 25 | // Set Widget Graphics 26 | ampSilverKnobLAF.setLookAndFeel(ImageCache::getFromMemory(BinaryData::knob_70_black_png, BinaryData::knob_70_black_pngSize)); 27 | 28 | addAndMakeVisible(colorSelectButton); 29 | colorSelectButton.setImages(true, true, true, 30 | ImageCache::getFromMemory(BinaryData::power_switch_up_png, BinaryData::power_switch_up_pngSize), 1.0, Colours::transparentWhite, 31 | Image(), 1.0, Colours::transparentWhite, 32 | ImageCache::getFromMemory(BinaryData::power_switch_up_png, BinaryData::power_switch_up_pngSize), 1.0, Colours::transparentWhite, 33 | 0.0); 34 | colorSelectButton.addListener(this); 35 | 36 | 37 | addAndMakeVisible(ampLED); 38 | ampLED.setImages(true, true, true, 39 | ImageCache::getFromMemory(BinaryData::led_red_on_png, BinaryData::led_red_on_pngSize), 1.0, Colours::transparentWhite, 40 | Image(), 1.0, Colours::transparentWhite, 41 | ImageCache::getFromMemory(BinaryData::led_red_on_png, BinaryData::led_red_on_pngSize), 1.0, Colours::transparentWhite, 42 | 0.0); 43 | ampLED.addListener(this); 44 | 45 | bassSliderAttach = std::make_unique(processor.treeState, BASS_ID, ampBassKnob); 46 | addAndMakeVisible(ampBassKnob); 47 | ampBassKnob.setLookAndFeel(&SilverKnobLAF); 48 | ampBassKnob.addListener(this); 49 | ampBassKnob.setSliderStyle(juce::Slider::SliderStyle::RotaryVerticalDrag); 50 | ampBassKnob.setTextBoxStyle(juce::Slider::TextEntryBoxPosition::NoTextBox, false, 50, 20); 51 | ampBassKnob.setDoubleClickReturnValue(true, 0.0); 52 | 53 | midSliderAttach = std::make_unique(processor.treeState, MID_ID, ampMidKnob); 54 | addAndMakeVisible(ampMidKnob); 55 | ampMidKnob.setLookAndFeel(&SilverKnobLAF); 56 | ampMidKnob.addListener(this); 57 | ampMidKnob.setSliderStyle(juce::Slider::SliderStyle::RotaryVerticalDrag); 58 | ampMidKnob.setTextBoxStyle(juce::Slider::TextEntryBoxPosition::NoTextBox, false, 50, 20); 59 | ampMidKnob.setDoubleClickReturnValue(true, 0.0); 60 | 61 | trebleSliderAttach = std::make_unique(processor.treeState, TREBLE_ID, ampTrebleKnob); 62 | addAndMakeVisible(ampTrebleKnob); 63 | ampTrebleKnob.setLookAndFeel(&SilverKnobLAF); 64 | ampTrebleKnob.addListener(this); 65 | ampTrebleKnob.setSliderStyle(juce::Slider::SliderStyle::RotaryVerticalDrag); 66 | ampTrebleKnob.setTextBoxStyle(juce::Slider::TextEntryBoxPosition::NoTextBox, false, 50, 20); 67 | ampTrebleKnob.setDoubleClickReturnValue(true, 0.0); 68 | 69 | gainSliderAttach = std::make_unique(processor.treeState, GAIN_ID, ampGainKnob); 70 | addAndMakeVisible(ampGainKnob); 71 | ampGainKnob.setLookAndFeel(&SilverKnobLAF); 72 | ampGainKnob.addListener(this); 73 | ampGainKnob.setSliderStyle(juce::Slider::SliderStyle::RotaryVerticalDrag); 74 | ampGainKnob.setTextBoxStyle(juce::Slider::TextEntryBoxPosition::NoTextBox, false, 50, 20); 75 | ampGainKnob.setDoubleClickReturnValue(true, 0.5); 76 | 77 | presenceSliderAttach = std::make_unique(processor.treeState, PRESENCE_ID, ampPresenceKnob); 78 | addAndMakeVisible(ampPresenceKnob); 79 | ampPresenceKnob.setLookAndFeel(&SilverKnobLAF); 80 | ampPresenceKnob.addListener(this); 81 | ampPresenceKnob.setSliderStyle(juce::Slider::SliderStyle::RotaryVerticalDrag); 82 | ampPresenceKnob.setTextBoxStyle(juce::Slider::TextEntryBoxPosition::NoTextBox, false, 50, 20 ); 83 | ampPresenceKnob.setDoubleClickReturnValue(true, 0.0); 84 | 85 | masterSliderAttach = std::make_unique(processor.treeState, MASTER_ID, ampMasterKnob); 86 | addAndMakeVisible(ampMasterKnob); 87 | ampMasterKnob.setLookAndFeel(&SilverKnobLAF); 88 | ampMasterKnob.addListener(this); 89 | ampMasterKnob.setSliderStyle(juce::Slider::SliderStyle::RotaryVerticalDrag); 90 | ampMasterKnob.setTextBoxStyle(juce::Slider::TextEntryBoxPosition::NoTextBox, false, 50, 20 ); 91 | ampMasterKnob.setDoubleClickReturnValue(true, 0.5); 92 | 93 | 94 | addAndMakeVisible(versionLabel); 95 | versionLabel.setText("v1.2", juce::NotificationType::dontSendNotification); 96 | versionLabel.setJustificationType(juce::Justification::left); 97 | versionLabel.setColour(juce::Label::textColourId, juce::Colours::black); 98 | auto font = versionLabel.getFont(); 99 | float height = font.getHeight(); 100 | font.setHeight(height); // 0.75 101 | versionLabel.setFont(font); 102 | 103 | // Size of plugin GUI 104 | setSize(774, 293); 105 | 106 | resetImages(); // Resets the Toggle Switch and LED image based on current settings 107 | 108 | } 109 | 110 | ChameleonAudioProcessorEditor::~ChameleonAudioProcessorEditor() 111 | { 112 | ampBassKnob.setLookAndFeel(nullptr); 113 | ampMidKnob.setLookAndFeel(nullptr); 114 | ampTrebleKnob.setLookAndFeel(nullptr); 115 | ampGainKnob.setLookAndFeel(nullptr); 116 | ampPresenceKnob.setLookAndFeel(nullptr); 117 | ampMasterKnob.setLookAndFeel(nullptr); 118 | } 119 | 120 | //============================================================================== 121 | void ChameleonAudioProcessorEditor::paint (Graphics& g) 122 | { 123 | // Workaround for graphics on Windows builds (clipping code doesn't work correctly on Windows) 124 | #if defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__) 125 | g.drawImageAt(background, 0, 0); // Debug Line: Redraw entire background image 126 | #else 127 | // Redraw only the clipped part of the background image 128 | juce::Rectangle ClipRect = g.getClipBounds(); 129 | g.drawImage(background, ClipRect.getX(), ClipRect.getY(), ClipRect.getWidth(), ClipRect.getHeight(), ClipRect.getX(), ClipRect.getY(), ClipRect.getWidth(), ClipRect.getHeight()); 130 | #endif 131 | } 132 | 133 | void ChameleonAudioProcessorEditor::resized() 134 | { 135 | // This is generally where you'll want to lay out the positions of any 136 | // subcomponents in your editor.. 137 | 138 | // Amp Widgets 139 | ampBassKnob.setBounds(188, 40, 50, 70); 140 | ampMidKnob.setBounds(249, 40, 50, 70); 141 | ampTrebleKnob.setBounds(308, 40, 50, 70); 142 | ampGainKnob.setBounds(120, 40, 50, 70); 143 | ampMasterKnob.setBounds(455, 40, 50, 70); 144 | ampPresenceKnob.setBounds(380, 40, 50, 70); 145 | 146 | colorSelectButton.setBounds(58, 41, 70, 70); 147 | ampLED.setBounds(694, 89, 34, 34); 148 | versionLabel.setBounds(730, 279, 60, 10); 149 | } 150 | 151 | 152 | void ChameleonAudioProcessorEditor::buttonClicked(juce::Button* button) 153 | { 154 | if (button == &colorSelectButton) { 155 | colorSelectClicked(); 156 | } 157 | } 158 | 159 | 160 | void ChameleonAudioProcessorEditor::colorSelectClicked() { 161 | if (processor.current_model_index == 0) { 162 | processor.current_model_index = 1; 163 | processor.fromUpDown = 0; 164 | } 165 | else if (processor.current_model_index == 1) { 166 | if (processor.fromUpDown == 0) { 167 | processor.current_model_index = 2; 168 | } else { 169 | processor.current_model_index = 0; 170 | } 171 | } 172 | else if (processor.current_model_index == 2) { 173 | processor.current_model_index = 1; 174 | processor.fromUpDown = 1; 175 | } 176 | processor.setMode(); 177 | resetImages(); // Resets the Toggle Switch and LED image based on current settings 178 | repaint(); 179 | } 180 | 181 | 182 | void ChameleonAudioProcessorEditor::sliderValueChanged(Slider* slider) 183 | { 184 | // Amp 185 | if (slider == &BassKnob || slider == &MidKnob || slider == &TrebleKnob) { 186 | processor.set_ampEQ(ampBassKnob.getValue(), ampMidKnob.getValue(), ampTrebleKnob.getValue(), ampPresenceKnob.getValue()); 187 | } 188 | else if (slider == &PresenceKnob) { 189 | processor.set_ampEQ(ampBassKnob.getValue(), ampMidKnob.getValue(), ampTrebleKnob.getValue(), ampPresenceKnob.getValue()); 190 | } 191 | } 192 | 193 | void ChameleonAudioProcessorEditor::resetImages() 194 | { 195 | if (processor.current_model_index == 0) { 196 | colorSelectButton.setImages(true, true, true, 197 | ImageCache::getFromMemory(BinaryData::power_switch_up_png, BinaryData::power_switch_up_pngSize), 1.0, Colours::transparentWhite, 198 | Image(), 1.0, Colours::transparentWhite, 199 | ImageCache::getFromMemory(BinaryData::power_switch_up_png, BinaryData::power_switch_up_pngSize), 1.0, Colours::transparentWhite, 200 | 0.0); 201 | ampLED.setImages(true, true, true, 202 | ImageCache::getFromMemory(BinaryData::led_red_on_png, BinaryData::led_red_on_pngSize), 1.0, Colours::transparentWhite, 203 | Image(), 1.0, Colours::transparentWhite, 204 | ImageCache::getFromMemory(BinaryData::led_red_on_png, BinaryData::led_red_on_pngSize), 1.0, Colours::transparentWhite, 205 | 0.0); 206 | } 207 | else if (processor.current_model_index == 1) { 208 | colorSelectButton.setImages(true, true, true, 209 | ImageCache::getFromMemory(BinaryData::power_switch_mid_png, BinaryData::power_switch_mid_pngSize), 1.0, Colours::transparentWhite, 210 | Image(), 1.0, Colours::transparentWhite, 211 | ImageCache::getFromMemory(BinaryData::power_switch_mid_png, BinaryData::power_switch_mid_pngSize), 1.0, Colours::transparentWhite, 212 | 0.0); 213 | ampLED.setImages(true, true, true, 214 | ImageCache::getFromMemory(BinaryData::led_gold_on_png, BinaryData::led_gold_on_pngSize), 1.0, Colours::transparentWhite, 215 | Image(), 1.0, Colours::transparentWhite, 216 | ImageCache::getFromMemory(BinaryData::led_gold_on_png, BinaryData::led_gold_on_pngSize), 1.0, Colours::transparentWhite, 217 | 0.0); 218 | } 219 | else { 220 | colorSelectButton.setImages(true, true, true, 221 | ImageCache::getFromMemory(BinaryData::power_switch_down_png, BinaryData::power_switch_down_pngSize), 1.0, Colours::transparentWhite, 222 | Image(), 1.0, Colours::transparentWhite, 223 | ImageCache::getFromMemory(BinaryData::power_switch_down_png, BinaryData::power_switch_down_pngSize), 1.0, Colours::transparentWhite, 224 | 0.0); 225 | ampLED.setImages(true, true, true, 226 | ImageCache::getFromMemory(BinaryData::led_green_on_png, BinaryData::led_green_on_pngSize), 1.0, Colours::transparentWhite, 227 | Image(), 1.0, Colours::transparentWhite, 228 | ImageCache::getFromMemory(BinaryData::led_green_on_png, BinaryData::led_green_on_pngSize), 1.0, Colours::transparentWhite, 229 | 0.0); 230 | } 231 | } 232 | -------------------------------------------------------------------------------- /Source/PluginEditor.h: -------------------------------------------------------------------------------- 1 | /* 2 | ============================================================================== 3 | 4 | This file was auto-generated! 5 | 6 | It contains the basic framework code for a JUCE plugin editor. 7 | 8 | ============================================================================== 9 | */ 10 | 11 | #pragma once 12 | 13 | #include "../JuceLibraryCode/JuceHeader.h" 14 | #include "PluginProcessor.h" 15 | #include "myLookAndFeel.h" 16 | #include 17 | 18 | //============================================================================== 19 | /** 20 | */ 21 | class ChameleonAudioProcessorEditor : public AudioProcessorEditor, 22 | private Button::Listener, 23 | private Slider::Listener 24 | 25 | 26 | { 27 | public: 28 | ChameleonAudioProcessorEditor (ChameleonAudioProcessor&); 29 | ~ChameleonAudioProcessorEditor(); 30 | 31 | //============================================================================== 32 | void paint (Graphics&) override; 33 | void resized() override; 34 | 35 | void resetImages(); 36 | 37 | private: 38 | // This reference is provided as a quick way for your editor to 39 | // access the processor object that created it. 40 | ChameleonAudioProcessor& processor; 41 | 42 | // Amp Widgets 43 | Slider ampBassKnob; 44 | Slider ampMidKnob; 45 | Slider ampTrebleKnob; 46 | Slider ampGainKnob; 47 | Slider ampMasterKnob; 48 | Slider ampPresenceKnob; 49 | Label versionLabel; 50 | 51 | ImageButton colorSelectButton; 52 | ImageButton ampLED; 53 | 54 | 55 | // LookandFeels and Graphics 56 | Image background = ImageCache::getFromMemory(BinaryData::chameleon_amp_jpg, BinaryData::chameleon_amp_jpgSize); 57 | myLookAndFeel ampSilverKnobLAF; 58 | juce::Rectangle ClipRect; 59 | 60 | juce::String fname; 61 | virtual void buttonClicked(Button* button) override; 62 | virtual void sliderValueChanged(Slider* slider) override; 63 | void colorSelectClicked(); 64 | 65 | public: 66 | std::unique_ptr gainSliderAttach; 67 | std::unique_ptr bassSliderAttach; 68 | std::unique_ptr midSliderAttach; 69 | std::unique_ptr trebleSliderAttach; 70 | std::unique_ptr presenceSliderAttach; 71 | std::unique_ptr masterSliderAttach; 72 | 73 | JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ChameleonAudioProcessorEditor) 74 | }; 75 | -------------------------------------------------------------------------------- /Source/PluginProcessor.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | ============================================================================== 3 | 4 | This file was auto-generated! 5 | 6 | It contains the basic framework code for a JUCE plugin processor. 7 | 8 | ============================================================================== 9 | */ 10 | 11 | #include "PluginProcessor.h" 12 | #include "PluginEditor.h" 13 | #include 14 | #include 15 | 16 | //============================================================================== 17 | ChameleonAudioProcessor::ChameleonAudioProcessor() 18 | #ifndef JucePlugin_PreferredChannelConfigurations 19 | : AudioProcessor(BusesProperties() 20 | #if ! JucePlugin_IsMidiEffect 21 | #if ! JucePlugin_IsSynth 22 | .withInput("Input", AudioChannelSet::stereo(), true) 23 | #endif 24 | .withOutput("Output", AudioChannelSet::stereo(), true) 25 | #endif 26 | ), 27 | treeState(*this, nullptr, "PARAMETER", { std::make_unique(GAIN_ID, GAIN_NAME, NormalisableRange(0.0f, 1.0f, 0.01f), 0.5f), 28 | std::make_unique(BASS_ID, BASS_NAME, NormalisableRange(-8.0f, 8.0f, 0.01f), 0.0f), 29 | std::make_unique(MID_ID, MID_NAME, NormalisableRange(-8.0f, 8.0f, 0.01f), 0.0f), 30 | std::make_unique(TREBLE_ID, TREBLE_NAME, NormalisableRange(-8.0f, 8.0f, 0.01f), 0.0f), 31 | std::make_unique(PRESENCE_ID, PRESENCE_NAME, NormalisableRange(-8.0f, 8.0f, 0.01f), 0.0f), 32 | std::make_unique(MASTER_ID, MASTER_NAME, NormalisableRange(0.0f, 1.0f, 0.01f), 0.5f) }) 33 | 34 | #endif 35 | { 36 | setMode(); 37 | 38 | gainParam = treeState.getRawParameterValue (GAIN_ID); 39 | bassParam = treeState.getRawParameterValue (BASS_ID); 40 | midParam = treeState.getRawParameterValue (MID_ID); 41 | trebleParam = treeState.getRawParameterValue (TREBLE_ID); 42 | presenceParam = treeState.getRawParameterValue (PRESENCE_ID); 43 | masterParam = treeState.getRawParameterValue (MASTER_ID); 44 | 45 | auto bassValue = static_cast (bassParam->load()); 46 | auto midValue = static_cast (midParam->load()); 47 | auto trebleValue = static_cast (trebleParam->load()); 48 | auto presenceValue = static_cast (presenceParam->load()); 49 | 50 | eq4band.setParameters(bassValue, midValue, trebleValue, presenceValue); 51 | eq4band2.setParameters(bassValue, midValue, trebleValue, presenceValue); 52 | } 53 | 54 | ChameleonAudioProcessor::~ChameleonAudioProcessor() 55 | { 56 | } 57 | 58 | //============================================================================== 59 | const String ChameleonAudioProcessor::getName() const 60 | { 61 | return JucePlugin_Name; 62 | } 63 | 64 | bool ChameleonAudioProcessor::acceptsMidi() const 65 | { 66 | #if JucePlugin_WantsMidiInput 67 | return true; 68 | #else 69 | return false; 70 | #endif 71 | } 72 | 73 | bool ChameleonAudioProcessor::producesMidi() const 74 | { 75 | #if JucePlugin_ProducesMidiOutput 76 | return true; 77 | #else 78 | return false; 79 | #endif 80 | } 81 | 82 | bool ChameleonAudioProcessor::isMidiEffect() const 83 | { 84 | #if JucePlugin_IsMidiEffect 85 | return true; 86 | #else 87 | return false; 88 | #endif 89 | } 90 | 91 | double ChameleonAudioProcessor::getTailLengthSeconds() const 92 | { 93 | return 0.0; 94 | } 95 | 96 | int ChameleonAudioProcessor::getNumPrograms() 97 | { 98 | return 1; // NB: some hosts don't cope very well if you tell them there are 0 programs, 99 | // so this should be at least 1, even if you're not really implementing programs. 100 | } 101 | 102 | int ChameleonAudioProcessor::getCurrentProgram() 103 | { 104 | return 0; 105 | } 106 | 107 | void ChameleonAudioProcessor::setCurrentProgram (int index) 108 | { 109 | } 110 | 111 | const String ChameleonAudioProcessor::getProgramName (int index) 112 | { 113 | return {}; 114 | } 115 | 116 | void ChameleonAudioProcessor::changeProgramName (int index, const String& newName) 117 | { 118 | } 119 | 120 | //============================================================================== 121 | void ChameleonAudioProcessor::prepareToPlay (double sampleRate, int samplesPerBlock) 122 | { 123 | // Use this method as the place to do any pre-playback 124 | // initialisation that you need.. 125 | LSTM.reset(); 126 | LSTM2.reset(); 127 | 128 | // prepare resampler for target sample rate: 44.1 kHz 129 | constexpr double targetSampleRate = 44100.0; 130 | resampler.prepareWithTargetSampleRate ({ sampleRate, (uint32) samplesPerBlock, 2 }, targetSampleRate); 131 | 132 | // set up DC blocker 133 | dcBlocker.coefficients = dsp::IIR::Coefficients::makeHighPass (sampleRate, 35.0f); 134 | dsp::ProcessSpec spec { sampleRate, static_cast (samplesPerBlock), 2 }; 135 | dcBlocker.prepare (spec); 136 | } 137 | 138 | void ChameleonAudioProcessor::releaseResources() 139 | { 140 | // When playback stops, you can use this as an opportunity to free up any 141 | // spare memory, etc. 142 | } 143 | 144 | #ifndef JucePlugin_PreferredChannelConfigurations 145 | bool ChameleonAudioProcessor::isBusesLayoutSupported (const BusesLayout& layouts) const 146 | { 147 | #if JucePlugin_IsMidiEffect 148 | ignoreUnused (layouts); 149 | return true; 150 | #else 151 | // This is the place where you check if the layout is supported. 152 | // In this template code we only support mono or stereo. 153 | if (layouts.getMainOutputChannelSet() != AudioChannelSet::mono() 154 | && layouts.getMainOutputChannelSet() != AudioChannelSet::stereo()) 155 | return false; 156 | 157 | // This checks if the input layout matches the output layout 158 | #if ! JucePlugin_IsSynth 159 | if (layouts.getMainOutputChannelSet() != layouts.getMainInputChannelSet()) 160 | return false; 161 | #endif 162 | 163 | return true; 164 | #endif 165 | } 166 | #endif 167 | 168 | 169 | void ChameleonAudioProcessor::processBlock (AudioBuffer& buffer, MidiBuffer& midiMessages) 170 | { 171 | ScopedNoDenormals noDenormals; 172 | 173 | // Setup Audio Data 174 | const int numSamples = buffer.getNumSamples(); 175 | const int numInputChannels = getTotalNumInputChannels(); 176 | const int sampleRate = getSampleRate(); 177 | 178 | auto ampDrive = static_cast (gainParam->load()); 179 | auto bassValue = static_cast (bassParam->load()); 180 | auto midValue = static_cast (midParam->load()); 181 | auto trebleValue = static_cast (trebleParam->load()); 182 | auto presenceValue = static_cast (presenceParam->load()); 183 | auto ampMaster = static_cast (masterParam->load()); 184 | 185 | dsp::AudioBlock block(buffer); 186 | // Amp ============================================================================= 187 | if (amp_state == 1) { 188 | 189 | // Apply ramped changes for gain smoothing 190 | if (ampDrive == previousAmpDrive) 191 | { 192 | buffer.applyGain(ampDrive*2.0); 193 | } 194 | else { 195 | buffer.applyGainRamp(0, (int) buffer.getNumSamples(), previousAmpDrive*2.0, ampDrive*2.0); 196 | previousAmpDrive = ampDrive; 197 | } 198 | 199 | // resample to target sample rate 200 | auto block44k = resampler.processIn (block); 201 | 202 | for (int ch = 0; ch < buffer.getNumChannels(); ++ch) 203 | { 204 | // Apply LSTM model 205 | if (ch == 0) { 206 | LSTM.process(block44k.getChannelPointer(0), block44k.getChannelPointer(0), (int) block44k.getNumSamples()); 207 | 208 | } 209 | else if (ch == 1) { 210 | LSTM2.process(block44k.getChannelPointer(1), block44k.getChannelPointer(1), (int) block44k.getNumSamples()); 211 | } 212 | } 213 | 214 | 215 | // resample back to original sample rate 216 | resampler.processOut (block44k, block); 217 | 218 | //eq4band.setParameters(bassValue, midValue, trebleValue, presenceValue); 219 | 220 | for (int ch = 0; ch < buffer.getNumChannels(); ++ch) 221 | { 222 | // Apply EQ 223 | if (ch == 0) { 224 | eq4band.process(buffer.getReadPointer(0), buffer.getWritePointer(0), midiMessages, numSamples, numInputChannels, sampleRate); 225 | 226 | } 227 | else if (ch == 1) { 228 | eq4band2.process(buffer.getReadPointer(1), buffer.getWritePointer(1), midiMessages, numSamples, numInputChannels, sampleRate); 229 | } 230 | } 231 | 232 | // Master Volume 233 | // Apply ramped changes for gain smoothing 234 | if (ampMaster == previousAmpMaster) 235 | { 236 | buffer.applyGain(ampMaster); 237 | } 238 | else { 239 | buffer.applyGainRamp(0, (int) buffer.getNumSamples(), previousAmpMaster, ampMaster); 240 | previousAmpMaster = ampMaster; 241 | } 242 | 243 | // Custom Level for quieter models 244 | if (current_model_index == 2) { 245 | buffer.applyGain(2.0); 246 | } 247 | } 248 | 249 | // process DC blocker 250 | dsp::ProcessContextReplacing context(block); 251 | dcBlocker.process(context); 252 | } 253 | 254 | //============================================================================== 255 | bool ChameleonAudioProcessor::hasEditor() const 256 | { 257 | return true; // (change this to false if you choose to not supply an editor) 258 | } 259 | 260 | AudioProcessorEditor* ChameleonAudioProcessor::createEditor() 261 | { 262 | return new ChameleonAudioProcessorEditor (*this); // Note: error on this line caused by unused inherited classes in Editor 263 | } 264 | 265 | //============================================================================== 266 | void ChameleonAudioProcessor::getStateInformation (MemoryBlock& destData) 267 | { 268 | // You should use this method to store your parameters in the memory block. 269 | // You could do that either as raw data, or use the XML or ValueTree classes 270 | // as intermediaries to make it easy to save and load complex data. 271 | 272 | auto state = treeState.copyState(); 273 | std::unique_ptr xml (state.createXml()); 274 | xml->setAttribute ("current_tone", current_model_index); 275 | copyXmlToBinary (*xml, destData); 276 | } 277 | 278 | void ChameleonAudioProcessor::setStateInformation (const void* data, int sizeInBytes) 279 | { 280 | // You should use this method to restore your parameters from this memory block, 281 | // whose contents will have been created by the getStateInformation() call. 282 | 283 | std::unique_ptr xmlState (getXmlFromBinary (data, sizeInBytes)); 284 | 285 | if (xmlState.get() != nullptr) 286 | { 287 | if (xmlState->hasTagName (treeState.state.getType())) 288 | { 289 | treeState.replaceState (juce::ValueTree::fromXml (*xmlState)); 290 | current_model_index = xmlState->getIntAttribute ("current_tone"); 291 | setMode(); 292 | 293 | if (auto* editor = dynamic_cast (getActiveEditor())) 294 | editor->resetImages(); 295 | } 296 | } 297 | } 298 | 299 | void ChameleonAudioProcessor::set_ampEQ(float bass_slider, float mid_slider, float treble_slider, float presence_slider) 300 | { 301 | eq4band.setParameters(bass_slider, mid_slider, treble_slider, presence_slider); 302 | eq4band2.setParameters(bass_slider, mid_slider, treble_slider, presence_slider); 303 | } 304 | 305 | void ChameleonAudioProcessor::setMode() 306 | { 307 | 308 | if (current_model_index ==0) { 309 | MemoryInputStream jsonInputStream(BinaryData::red_json, BinaryData::red_jsonSize, false); 310 | nlohmann::json weights_json = nlohmann::json::parse(jsonInputStream.readEntireStreamAsString().toStdString()); 311 | LSTM.reset(); 312 | LSTM2.reset(); 313 | LSTM.load_json(weights_json); 314 | LSTM2.load_json(weights_json); 315 | 316 | } else if (current_model_index == 1) { 317 | MemoryInputStream jsonInputStream(BinaryData::gold_json, BinaryData::gold_jsonSize, false); 318 | nlohmann::json weights_json = nlohmann::json::parse(jsonInputStream.readEntireStreamAsString().toStdString()); 319 | LSTM.reset(); 320 | LSTM2.reset(); 321 | LSTM.load_json(weights_json); 322 | LSTM2.load_json(weights_json); 323 | 324 | } else if (current_model_index == 2) { 325 | MemoryInputStream jsonInputStream(BinaryData::green_json, BinaryData::green_jsonSize, false); 326 | nlohmann::json weights_json = nlohmann::json::parse(jsonInputStream.readEntireStreamAsString().toStdString()); 327 | LSTM.reset(); 328 | LSTM2.reset(); 329 | LSTM.load_json(weights_json); 330 | LSTM2.load_json(weights_json); 331 | 332 | } 333 | 334 | } 335 | //============================================================================== 336 | // This creates new instances of the plugin.. 337 | AudioProcessor* JUCE_CALLTYPE createPluginFilter() 338 | { 339 | return new ChameleonAudioProcessor(); 340 | } 341 | -------------------------------------------------------------------------------- /Source/PluginProcessor.h: -------------------------------------------------------------------------------- 1 | /* 2 | ============================================================================== 3 | 4 | This file was auto-generated! 5 | 6 | It contains the basic framework code for a JUCE plugin processor. 7 | 8 | ============================================================================== 9 | */ 10 | 11 | #include 12 | //#include "lstm.h" 13 | #pragma once 14 | 15 | #include "../JuceLibraryCode/JuceHeader.h" 16 | #include "Eq4Band.h" 17 | 18 | #include "RTNeuralLSTM.h" 19 | 20 | #define GAIN_ID "gain" 21 | #define GAIN_NAME "Gain" 22 | #define BASS_ID "bass" 23 | #define BASS_NAME "Bass" 24 | #define MID_ID "mid" 25 | #define MID_NAME "Mid" 26 | #define TREBLE_ID "treble" 27 | #define TREBLE_NAME "Treble" 28 | #define PRESENCE_ID "presence" 29 | #define PRESENCE_NAME "Presence" 30 | #define MASTER_ID "master" 31 | #define MASTER_NAME "Master" 32 | 33 | 34 | //============================================================================== 35 | /** 36 | */ 37 | class ChameleonAudioProcessor : public AudioProcessor 38 | { 39 | public: 40 | //============================================================================== 41 | ChameleonAudioProcessor(); 42 | ~ChameleonAudioProcessor(); 43 | 44 | //============================================================================== 45 | void prepareToPlay (double sampleRate, int samplesPerBlock) override; 46 | void releaseResources() override; 47 | 48 | #ifndef JucePlugin_PreferredChannelConfigurations 49 | bool isBusesLayoutSupported (const BusesLayout& layouts) const override; 50 | #endif 51 | 52 | void processBlock (AudioBuffer&, MidiBuffer&) override; 53 | 54 | //============================================================================== 55 | AudioProcessorEditor* createEditor() override; 56 | bool hasEditor() const override; 57 | 58 | //============================================================================== 59 | const String getName() const override; 60 | 61 | bool acceptsMidi() const override; 62 | bool producesMidi() const override; 63 | bool isMidiEffect() const override; 64 | double getTailLengthSeconds() const override; 65 | 66 | //============================================================================== 67 | int getNumPrograms() override; 68 | int getCurrentProgram() override; 69 | void setCurrentProgram (int index) override; 70 | const String getProgramName (int index) override; 71 | void changeProgramName (int index, const String& newName) override; 72 | 73 | //============================================================================== 74 | void getStateInformation (MemoryBlock& destData) override; 75 | void setStateInformation (const void* data, int sizeInBytes) override; 76 | 77 | void set_ampEQ(float bass_slider, float mid_slider, float treble_slider, float presence_slider); 78 | void setMode(); 79 | 80 | // Pedal/amp states 81 | int amp_state = 1; // 0 = off, 1 = on 82 | int current_model_index = 0; // 0 = red, 1 = gold, 2 = green 83 | int fromUpDown = 0; 84 | 85 | RT_LSTM LSTM; 86 | RT_LSTM LSTM2; 87 | 88 | AudioProcessorValueTreeState treeState; 89 | 90 | private: 91 | Eq4Band eq4band; // Amp EQ 92 | Eq4Band eq4band2; // Amp EQ 93 | 94 | std::atomic* bassParam = nullptr; 95 | std::atomic* midParam = nullptr; 96 | std::atomic* trebleParam = nullptr; 97 | std::atomic* driveParam = nullptr; 98 | std::atomic* gainParam = nullptr; 99 | std::atomic* presenceParam = nullptr; 100 | std::atomic* masterParam = nullptr; 101 | 102 | float previousAmpDrive = 1.0; 103 | float previousAmpMaster = 1.0; 104 | 105 | var dummyVar; 106 | 107 | chowdsp::ResampledProcess> resampler; 108 | 109 | dsp::IIR::Filter dcBlocker; 110 | 111 | //============================================================================== 112 | JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (ChameleonAudioProcessor) 113 | }; 114 | -------------------------------------------------------------------------------- /Source/RTNeuralLSTM.cpp: -------------------------------------------------------------------------------- 1 | #include "RTNeuralLSTM.h" 2 | 3 | using Vec2d = std::vector>; 4 | 5 | Vec2d transpose(const Vec2d& x) 6 | { 7 | auto outer_size = x.size(); 8 | auto inner_size = x[0].size(); 9 | Vec2d y(inner_size, std::vector(outer_size, 0.0f)); 10 | 11 | for (size_t i = 0; i < outer_size; ++i) 12 | { 13 | for (size_t j = 0; j < inner_size; ++j) 14 | y[j][i] = x[i][j]; 15 | } 16 | 17 | return y; 18 | } 19 | 20 | void RT_LSTM::load_json(const nlohmann::json& weights_json) 21 | { 22 | auto& lstm = model.get<0>(); 23 | auto& dense = model.get<1>(); 24 | 25 | // read a JSON file 26 | //std::ifstream i2(filename); 27 | //nlohmann::json weights_json; 28 | //i2 >> weights_json; 29 | 30 | Vec2d lstm_weights_ih = weights_json["/state_dict/rec.weight_ih_l0"_json_pointer]; 31 | lstm.setWVals(transpose(lstm_weights_ih)); 32 | 33 | Vec2d lstm_weights_hh = weights_json["/state_dict/rec.weight_hh_l0"_json_pointer]; 34 | lstm.setUVals(transpose(lstm_weights_hh)); 35 | 36 | std::vector lstm_bias_ih = weights_json["/state_dict/rec.bias_ih_l0"_json_pointer]; 37 | std::vector lstm_bias_hh = weights_json["/state_dict/rec.bias_hh_l0"_json_pointer]; 38 | for (int i = 0; i < 128; ++i) 39 | lstm_bias_hh[i] += lstm_bias_ih[i]; 40 | lstm.setBVals(lstm_bias_hh); 41 | 42 | Vec2d dense_weights = weights_json["/state_dict/lin.weight"_json_pointer]; 43 | dense.setWeights(dense_weights); 44 | 45 | std::vector dense_bias = weights_json["/state_dict/lin.bias"_json_pointer]; 46 | dense.setBias(dense_bias.data()); 47 | } 48 | 49 | void RT_LSTM::reset() 50 | { 51 | model.reset(); 52 | } 53 | 54 | void RT_LSTM::process(const float* inData, float* outData, int numSamples) 55 | { 56 | for (int i = 0; i < numSamples; ++i) 57 | outData[i] = model.forward(inData + i) + inData[i]; 58 | } 59 | -------------------------------------------------------------------------------- /Source/RTNeuralLSTM.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #include 4 | //#include 5 | 6 | class RT_LSTM 7 | { 8 | public: 9 | RT_LSTM() = default; 10 | 11 | void reset(); 12 | void load_json(const nlohmann::json& weights_json); 13 | 14 | void process(const float* inData, float* outData, int numSamples); 15 | 16 | private: 17 | RTNeural::ModelT, 19 | RTNeural::DenseT> model; 20 | }; 21 | -------------------------------------------------------------------------------- /Source/myLookAndFeel.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | ============================================================================== 3 | 4 | Created: 14 Dec 2017 10:16:04am 5 | Author: Stefan Remberg 6 | 7 | Modified by keyth72 8 | 9 | ============================================================================== 10 | */ 11 | 12 | #include "myLookAndFeel.h" 13 | 14 | //============================================================================== 15 | myLookAndFeel::myLookAndFeel() 16 | { 17 | } 18 | 19 | //============================================================================== 20 | void myLookAndFeel::setLookAndFeel(Image inputImage) 21 | { 22 | // Edit this line to match png file from project Resources 23 | img = inputImage; 24 | } 25 | 26 | 27 | //============================================================================== 28 | void myLookAndFeel::drawRotarySlider(Graphics& g, 29 | int x, int y, int width, int height, float sliderPos, 30 | float rotaryStartAngle, float rotaryEndAngle, Slider& slider) 31 | { 32 | const double rotation = (slider.getValue() 33 | - slider.getMinimum()) 34 | / (slider.getMaximum() 35 | - slider.getMinimum()); 36 | 37 | const int frames = img.getHeight() / img.getWidth(); 38 | const int frameId = (int)ceil(rotation * ((double)frames - 1.0)); 39 | const float radius = jmin(width / 2.0f, height / 2.0f); 40 | const float centerX = x + width * 0.5f; 41 | const float centerY = y + height * 0.5f; 42 | const float rx = centerX - radius - 1.0f; 43 | const float ry = centerY - radius; 44 | 45 | g.drawImage(img, 46 | (int)rx, 47 | (int)ry, 48 | 2 * (int)radius, 49 | 2 * (int)radius, 50 | 0, 51 | frameId*img.getWidth(), 52 | img.getWidth(), 53 | img.getWidth()); 54 | } 55 | -------------------------------------------------------------------------------- /Source/myLookAndFeel.h: -------------------------------------------------------------------------------- 1 | /* 2 | ============================================================================== 3 | 4 | Created: 14 Dec 2017 10:16:04am 5 | Author: Stefan Remberg 6 | 7 | Modified by keyth72 8 | 9 | ============================================================================== 10 | */ 11 | 12 | #pragma once 13 | #include "../JuceLibraryCode/JuceHeader.h" 14 | 15 | 16 | //============================================================================== 17 | class myLookAndFeel : public LookAndFeel_V4 18 | { 19 | 20 | public: 21 | myLookAndFeel(); 22 | void setLookAndFeel(Image inputImage); 23 | void drawRotarySlider(Graphics& g, int x, int y, int width, int height, float sliderPos, 24 | float rotaryStartAngle, float rotaryEndAngle, Slider& slider) override; 25 | 26 | private: 27 | Image img; 28 | 29 | }; 30 | -------------------------------------------------------------------------------- /aax_builds.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # exit on failure 4 | set -e 5 | 6 | # need to run in sudo mode on Mac 7 | if [[ "$OSTYPE" == "darwin"* ]]; then 8 | if [ "$EUID" -ne 0 ]; then 9 | echo "This script must be run in sudo mode! Exiting..." 10 | exit 1 11 | fi 12 | fi 13 | 14 | if [[ "$*" = *debug* ]]; then 15 | echo "Making DEBUG build" 16 | build_config="Debug" 17 | else 18 | echo "Making RELEASE build" 19 | build_config="Release" 20 | fi 21 | 22 | # clean up old builds 23 | if [[ $* = *clean* ]]; then 24 | echo "Cleaning previous build..." 25 | rm -rf build-aax/ 26 | fi 27 | 28 | sed_cmakelist() 29 | { 30 | sed_args="$1" 31 | 32 | if [[ "$OSTYPE" == "darwin"* ]]; then 33 | sed -i '' "$sed_args" CMakeLists.txt 34 | else 35 | sed -i -e "$sed_args" CMakeLists.txt 36 | fi 37 | } 38 | 39 | # set up OS-dependent variables 40 | if [[ "$OSTYPE" == "darwin"* ]]; then 41 | echo "Building for MAC" 42 | 43 | AAX_PATH=~/Developer/AAX_SDK/ 44 | ilok_pass=$(more ~/Developer/ilok_pass) 45 | aax_target_dir="/Library/Application Support/Avid/Audio/Plug-Ins" 46 | TEAM_ID=$(more ~/Developer/mac_id) 47 | TARGET_DIR="Mac" 48 | 49 | else # Windows 50 | echo "Building for WINDOWS" 51 | 52 | AAX_PATH=C:/SDKs/AAX_SDK/ 53 | #ilok_pass=$(cat /d/ilok_pass) 54 | ilok_pass=$(cat /c/SDKs/ilok_pass) 55 | aax_target_dir="/c/Program Files/Common Files/Avid/Audio/Plug-Ins" 56 | TARGET_DIR="Win64" 57 | fi 58 | 59 | # set up build AAX 60 | #sed_cmakelist "s~# juce_set_aax_sdk_path.*~juce_set_aax_sdk_path(${AAX_PATH})~" 61 | 62 | # cmake new builds 63 | if [[ "$OSTYPE" == "darwin"* ]]; then 64 | cmake -Bbuild-aax -GXcode -DCMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY="Developer ID Application" \ 65 | -DCMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM="$TEAM_ID" \ 66 | -DCMAKE_XCODE_ATTRIBUTE_CODE_SIGN_STYLE="Manual" \ 67 | -D"CMAKE_OSX_ARCHITECTURES=x86_64" \ 68 | -DCMAKE_XCODE_ATTRIBUTE_CODE_SIGN_INJECT_BASE_ENTITLEMENTS=NO \ 69 | -DCMAKE_XCODE_ATTRIBUTE_OTHER_CODE_SIGN_FLAGS="--timestamp" \ 70 | -DMACOS_RELEASE=ON 71 | 72 | cmake --build build-aax --config $build_config --target Chameleon_AAX | xcpretty 73 | 74 | else # Windows 75 | cmake -Bbuild-aax -G"Visual Studio 16 2019" -A x64 76 | cmake --build build-aax --config $build_config --parallel $(nproc) --target Chameleon_AAX 77 | fi 78 | 79 | # sign with PACE 80 | aax_location=build-aax/Chameleon_artefacts/$build_config/AAX/Chameleon.aaxplugin 81 | wcguid="E9587400-8ED1-11EC-AA74-00505692AD3E" # Update 82 | if [[ "$OSTYPE" == "darwin"* ]]; then 83 | /Applications/PACEAntiPiracy/Eden/Fusion/Current/bin/wraptool sign --verbose \ 84 | --account keyth72 \ 85 | --password "$ilok_pass" \ 86 | --wcguid $wcguid \ 87 | --dsig1-compat off \ 88 | --signid "Developer ID Application: Keith Bloemer" \ 89 | --in $aax_location \ 90 | --out $aax_location 91 | 92 | /Applications/PACEAntiPiracy/Eden/Fusion/Current/bin/wraptool verify --verbose --in $aax_location 93 | 94 | else # Windows 95 | wraptool sign --verbose \ 96 | --account keyth72 \ 97 | --password "$ilok_pass" \ 98 | --wcguid $wcguid \ 99 | --keyfile /c/SDKs/keith_aax_cert.p12 \ 100 | --keypassword "$ilok_pass" \ 101 | --in $aax_location \ 102 | --out $aax_location 103 | 104 | wraptool verify --verbose --in $aax_location/Contents/x64/Chameleon.aaxplugin 105 | fi 106 | 107 | # reset AAX SDK field... 108 | #sed_cmakelist "s~juce_set_aax_sdk_path.*~# juce_set_aax_sdk_path(NONE)~" 109 | 110 | rm -rf "$aax_target_dir/Chameleon.aaxplugin" 111 | cp -R "$aax_location" "$aax_target_dir/Chameleon.aaxplugin" 112 | 113 | if [[ "$*" = *deploy* ]]; then 114 | set +e 115 | 116 | ssh "smartguitarml@gmail.com" "rm -r ~/aax_builds/${TARGET_DIR}/Chameleon.aaxplugin" 117 | scp -r "$aax_location" "smartguitarml@gmail.com:~/aax_builds/${TARGET_DIR}/" 118 | fi 119 | -------------------------------------------------------------------------------- /installers/linux/build_deb.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # This script builds a .deb package for installing the VST3, and LV2 plugins on Linux 3 | 4 | # Set the app name and version here 5 | app_name=Chameleon 6 | version=1.2 7 | 8 | 9 | # 1. Create the package directory structure and control file 10 | 11 | mkdir -p $app_name"/DEBIAN" 12 | 13 | printf "Package: $app_name\n\ 14 | Version: $version\n\ 15 | Section: custom\n\ 16 | Priority: optional\n\ 17 | Architecture: all\n\ 18 | Essential: no\n\ 19 | Installed-Size: 16480128\n\ 20 | Maintainer: GuitarML\n\ 21 | Description: GuitarML Plugin Debian Package (VST3, LV2)\n" > $app_name"/DEBIAN/control" 22 | 23 | 24 | # 2. Copy VST3, and LV2 plugins to the package directory (assumes project is already built) 25 | 26 | mkdir -p $app_name/usr/local/lib/vst3/ 27 | echo "Copying ../../build/"$app_name"_artefacts/Release/VST3/"$app_name".vst3" 28 | cp -r "../../build/"$app_name"_artefacts/Release/VST3/"$app_name".vst3" $app_name"/usr/local/lib/vst3/" 29 | 30 | mkdir -p $app_name/usr/local/lib/lv2/ 31 | echo "Copying ../../build/"$app_name"_artefacts/Release/LV2/"$app_name".lv2" 32 | cp -r "../../build/"$app_name"_artefacts/Release/LV2/"$app_name".lv2" $app_name"/usr/local/lib/lv2/" 33 | 34 | 35 | # 3. Build the .deb package and rename 36 | 37 | dpkg-deb --build $app_name 38 | 39 | mv $app_name.deb $app_name-Linux-x64-$version.deb 40 | -------------------------------------------------------------------------------- /installers/mac/Chameleon.pkgproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | PACKAGES 6 | 7 | 8 | MUST-CLOSE-APPLICATION-ITEMS 9 | 10 | MUST-CLOSE-APPLICATIONS 11 | 12 | PACKAGE_FILES 13 | 14 | DEFAULT_INSTALL_LOCATION 15 | / 16 | HIERARCHY 17 | 18 | CHILDREN 19 | 20 | 21 | CHILDREN 22 | 23 | GID 24 | 80 25 | PATH 26 | Applications 27 | PATH_TYPE 28 | 0 29 | PERMISSIONS 30 | 509 31 | TYPE 32 | 1 33 | UID 34 | 0 35 | 36 | 37 | CHILDREN 38 | 39 | 40 | CHILDREN 41 | 42 | GID 43 | 80 44 | PATH 45 | Application Support 46 | PATH_TYPE 47 | 0 48 | PERMISSIONS 49 | 493 50 | TYPE 51 | 1 52 | UID 53 | 0 54 | 55 | 56 | CHILDREN 57 | 58 | 59 | CHILDREN 60 | 61 | 62 | CHILDREN 63 | 64 | 65 | BUNDLE_CAN_DOWNGRADE 66 | 67 | BUNDLE_POSTINSTALL_PATH 68 | 69 | PATH_TYPE 70 | 0 71 | 72 | BUNDLE_PREINSTALL_PATH 73 | 74 | PATH_TYPE 75 | 0 76 | 77 | CHILDREN 78 | 79 | GID 80 | 0 81 | PATH 82 | ../../build/Chameleon_artefacts/Release/AU/Chameleon.component 83 | PATH_TYPE 84 | 1 85 | PERMISSIONS 86 | 493 87 | TYPE 88 | 3 89 | UID 90 | 0 91 | 92 | 93 | GID 94 | 0 95 | PATH 96 | Components 97 | PATH_TYPE 98 | 2 99 | PERMISSIONS 100 | 509 101 | TYPE 102 | 2 103 | UID 104 | 0 105 | 106 | 107 | GID 108 | 0 109 | PATH 110 | Plug-Ins 111 | PATH_TYPE 112 | 2 113 | PERMISSIONS 114 | 509 115 | TYPE 116 | 2 117 | UID 118 | 0 119 | 120 | 121 | GID 122 | 0 123 | PATH 124 | Audio 125 | PATH_TYPE 126 | 2 127 | PERMISSIONS 128 | 509 129 | TYPE 130 | 2 131 | UID 132 | 0 133 | 134 | 135 | CHILDREN 136 | 137 | GID 138 | 0 139 | PATH 140 | Automator 141 | PATH_TYPE 142 | 0 143 | PERMISSIONS 144 | 493 145 | TYPE 146 | 1 147 | UID 148 | 0 149 | 150 | 151 | CHILDREN 152 | 153 | GID 154 | 0 155 | PATH 156 | Documentation 157 | PATH_TYPE 158 | 0 159 | PERMISSIONS 160 | 493 161 | TYPE 162 | 1 163 | UID 164 | 0 165 | 166 | 167 | CHILDREN 168 | 169 | GID 170 | 0 171 | PATH 172 | Extensions 173 | PATH_TYPE 174 | 0 175 | PERMISSIONS 176 | 493 177 | TYPE 178 | 1 179 | UID 180 | 0 181 | 182 | 183 | CHILDREN 184 | 185 | GID 186 | 0 187 | PATH 188 | Filesystems 189 | PATH_TYPE 190 | 0 191 | PERMISSIONS 192 | 493 193 | TYPE 194 | 1 195 | UID 196 | 0 197 | 198 | 199 | CHILDREN 200 | 201 | GID 202 | 0 203 | PATH 204 | Frameworks 205 | PATH_TYPE 206 | 0 207 | PERMISSIONS 208 | 493 209 | TYPE 210 | 1 211 | UID 212 | 0 213 | 214 | 215 | CHILDREN 216 | 217 | GID 218 | 0 219 | PATH 220 | Input Methods 221 | PATH_TYPE 222 | 0 223 | PERMISSIONS 224 | 493 225 | TYPE 226 | 1 227 | UID 228 | 0 229 | 230 | 231 | CHILDREN 232 | 233 | GID 234 | 0 235 | PATH 236 | Internet Plug-Ins 237 | PATH_TYPE 238 | 0 239 | PERMISSIONS 240 | 493 241 | TYPE 242 | 1 243 | UID 244 | 0 245 | 246 | 247 | CHILDREN 248 | 249 | GID 250 | 0 251 | PATH 252 | LaunchAgents 253 | PATH_TYPE 254 | 0 255 | PERMISSIONS 256 | 493 257 | TYPE 258 | 1 259 | UID 260 | 0 261 | 262 | 263 | CHILDREN 264 | 265 | GID 266 | 0 267 | PATH 268 | LaunchDaemons 269 | PATH_TYPE 270 | 0 271 | PERMISSIONS 272 | 493 273 | TYPE 274 | 1 275 | UID 276 | 0 277 | 278 | 279 | CHILDREN 280 | 281 | GID 282 | 0 283 | PATH 284 | PreferencePanes 285 | PATH_TYPE 286 | 0 287 | PERMISSIONS 288 | 493 289 | TYPE 290 | 1 291 | UID 292 | 0 293 | 294 | 295 | CHILDREN 296 | 297 | GID 298 | 0 299 | PATH 300 | Preferences 301 | PATH_TYPE 302 | 0 303 | PERMISSIONS 304 | 493 305 | TYPE 306 | 1 307 | UID 308 | 0 309 | 310 | 311 | CHILDREN 312 | 313 | GID 314 | 80 315 | PATH 316 | Printers 317 | PATH_TYPE 318 | 0 319 | PERMISSIONS 320 | 493 321 | TYPE 322 | 1 323 | UID 324 | 0 325 | 326 | 327 | CHILDREN 328 | 329 | GID 330 | 0 331 | PATH 332 | PrivilegedHelperTools 333 | PATH_TYPE 334 | 0 335 | PERMISSIONS 336 | 1005 337 | TYPE 338 | 1 339 | UID 340 | 0 341 | 342 | 343 | CHILDREN 344 | 345 | GID 346 | 0 347 | PATH 348 | QuickLook 349 | PATH_TYPE 350 | 0 351 | PERMISSIONS 352 | 493 353 | TYPE 354 | 1 355 | UID 356 | 0 357 | 358 | 359 | CHILDREN 360 | 361 | GID 362 | 0 363 | PATH 364 | QuickTime 365 | PATH_TYPE 366 | 0 367 | PERMISSIONS 368 | 493 369 | TYPE 370 | 1 371 | UID 372 | 0 373 | 374 | 375 | CHILDREN 376 | 377 | GID 378 | 0 379 | PATH 380 | Screen Savers 381 | PATH_TYPE 382 | 0 383 | PERMISSIONS 384 | 493 385 | TYPE 386 | 1 387 | UID 388 | 0 389 | 390 | 391 | CHILDREN 392 | 393 | GID 394 | 0 395 | PATH 396 | Scripts 397 | PATH_TYPE 398 | 0 399 | PERMISSIONS 400 | 493 401 | TYPE 402 | 1 403 | UID 404 | 0 405 | 406 | 407 | CHILDREN 408 | 409 | GID 410 | 0 411 | PATH 412 | Services 413 | PATH_TYPE 414 | 0 415 | PERMISSIONS 416 | 493 417 | TYPE 418 | 1 419 | UID 420 | 0 421 | 422 | 423 | CHILDREN 424 | 425 | GID 426 | 0 427 | PATH 428 | Widgets 429 | PATH_TYPE 430 | 0 431 | PERMISSIONS 432 | 493 433 | TYPE 434 | 1 435 | UID 436 | 0 437 | 438 | 439 | GID 440 | 0 441 | PATH 442 | Library 443 | PATH_TYPE 444 | 0 445 | PERMISSIONS 446 | 493 447 | TYPE 448 | 1 449 | UID 450 | 0 451 | 452 | 453 | CHILDREN 454 | 455 | 456 | CHILDREN 457 | 458 | GID 459 | 0 460 | PATH 461 | Shared 462 | PATH_TYPE 463 | 0 464 | PERMISSIONS 465 | 1023 466 | TYPE 467 | 1 468 | UID 469 | 0 470 | 471 | 472 | GID 473 | 80 474 | PATH 475 | Users 476 | PATH_TYPE 477 | 0 478 | PERMISSIONS 479 | 493 480 | TYPE 481 | 1 482 | UID 483 | 0 484 | 485 | 486 | GID 487 | 0 488 | PATH 489 | / 490 | PATH_TYPE 491 | 0 492 | PERMISSIONS 493 | 493 494 | TYPE 495 | 1 496 | UID 497 | 0 498 | 499 | PAYLOAD_TYPE 500 | 0 501 | PRESERVE_EXTENDED_ATTRIBUTES 502 | 503 | SHOW_INVISIBLE 504 | 505 | SPLIT_FORKS 506 | 507 | TREAT_MISSING_FILES_AS_WARNING 508 | 509 | VERSION 510 | 5 511 | 512 | PACKAGE_SCRIPTS 513 | 514 | POSTINSTALL_PATH 515 | 516 | PATH_TYPE 517 | 0 518 | 519 | PREINSTALL_PATH 520 | 521 | PATH_TYPE 522 | 0 523 | 524 | RESOURCES 525 | 526 | 527 | PACKAGE_SETTINGS 528 | 529 | AUTHENTICATION 530 | 1 531 | CONCLUSION_ACTION 532 | 0 533 | FOLLOW_SYMBOLIC_LINKS 534 | 535 | IDENTIFIER 536 | com.GuitarML.Chameleon.ChameleonAU 537 | LOCATION 538 | 0 539 | NAME 540 | AU 541 | OVERWRITE_PERMISSIONS 542 | 543 | PAYLOAD_SIZE 544 | -1 545 | REFERENCE_PATH 546 | 547 | RELOCATABLE 548 | 549 | USE_HFS+_COMPRESSION 550 | 551 | VERSION 552 | ##APPVERSION## 553 | 554 | TYPE 555 | 0 556 | UUID 557 | 69EED16E-B119-4D35-B464-12717823DE0E 558 | 559 | 560 | MUST-CLOSE-APPLICATION-ITEMS 561 | 562 | MUST-CLOSE-APPLICATIONS 563 | 564 | PACKAGE_FILES 565 | 566 | DEFAULT_INSTALL_LOCATION 567 | / 568 | HIERARCHY 569 | 570 | CHILDREN 571 | 572 | 573 | CHILDREN 574 | 575 | GID 576 | 80 577 | PATH 578 | Applications 579 | PATH_TYPE 580 | 0 581 | PERMISSIONS 582 | 509 583 | TYPE 584 | 1 585 | UID 586 | 0 587 | 588 | 589 | CHILDREN 590 | 591 | 592 | CHILDREN 593 | 594 | GID 595 | 80 596 | PATH 597 | Application Support 598 | PATH_TYPE 599 | 0 600 | PERMISSIONS 601 | 493 602 | TYPE 603 | 1 604 | UID 605 | 0 606 | 607 | 608 | CHILDREN 609 | 610 | 611 | CHILDREN 612 | 613 | 614 | CHILDREN 615 | 616 | 617 | BUNDLE_CAN_DOWNGRADE 618 | 619 | BUNDLE_POSTINSTALL_PATH 620 | 621 | PATH_TYPE 622 | 0 623 | 624 | BUNDLE_PREINSTALL_PATH 625 | 626 | PATH_TYPE 627 | 0 628 | 629 | CHILDREN 630 | 631 | GID 632 | 0 633 | PATH 634 | ../../build/Chameleon_artefacts/Release/VST3/Chameleon.vst3 635 | PATH_TYPE 636 | 1 637 | PERMISSIONS 638 | 493 639 | TYPE 640 | 3 641 | UID 642 | 0 643 | 644 | 645 | GID 646 | 0 647 | PATH 648 | VST3 649 | PATH_TYPE 650 | 2 651 | PERMISSIONS 652 | 509 653 | TYPE 654 | 2 655 | UID 656 | 0 657 | 658 | 659 | GID 660 | 0 661 | PATH 662 | Plug-Ins 663 | PATH_TYPE 664 | 2 665 | PERMISSIONS 666 | 509 667 | TYPE 668 | 2 669 | UID 670 | 0 671 | 672 | 673 | GID 674 | 0 675 | PATH 676 | Audio 677 | PATH_TYPE 678 | 2 679 | PERMISSIONS 680 | 509 681 | TYPE 682 | 2 683 | UID 684 | 0 685 | 686 | 687 | CHILDREN 688 | 689 | GID 690 | 0 691 | PATH 692 | Automator 693 | PATH_TYPE 694 | 0 695 | PERMISSIONS 696 | 493 697 | TYPE 698 | 1 699 | UID 700 | 0 701 | 702 | 703 | CHILDREN 704 | 705 | GID 706 | 0 707 | PATH 708 | Documentation 709 | PATH_TYPE 710 | 0 711 | PERMISSIONS 712 | 493 713 | TYPE 714 | 1 715 | UID 716 | 0 717 | 718 | 719 | CHILDREN 720 | 721 | GID 722 | 0 723 | PATH 724 | Extensions 725 | PATH_TYPE 726 | 0 727 | PERMISSIONS 728 | 493 729 | TYPE 730 | 1 731 | UID 732 | 0 733 | 734 | 735 | CHILDREN 736 | 737 | GID 738 | 0 739 | PATH 740 | Filesystems 741 | PATH_TYPE 742 | 0 743 | PERMISSIONS 744 | 493 745 | TYPE 746 | 1 747 | UID 748 | 0 749 | 750 | 751 | CHILDREN 752 | 753 | GID 754 | 0 755 | PATH 756 | Frameworks 757 | PATH_TYPE 758 | 0 759 | PERMISSIONS 760 | 493 761 | TYPE 762 | 1 763 | UID 764 | 0 765 | 766 | 767 | CHILDREN 768 | 769 | GID 770 | 0 771 | PATH 772 | Input Methods 773 | PATH_TYPE 774 | 0 775 | PERMISSIONS 776 | 493 777 | TYPE 778 | 1 779 | UID 780 | 0 781 | 782 | 783 | CHILDREN 784 | 785 | GID 786 | 0 787 | PATH 788 | Internet Plug-Ins 789 | PATH_TYPE 790 | 0 791 | PERMISSIONS 792 | 493 793 | TYPE 794 | 1 795 | UID 796 | 0 797 | 798 | 799 | CHILDREN 800 | 801 | GID 802 | 0 803 | PATH 804 | LaunchAgents 805 | PATH_TYPE 806 | 0 807 | PERMISSIONS 808 | 493 809 | TYPE 810 | 1 811 | UID 812 | 0 813 | 814 | 815 | CHILDREN 816 | 817 | GID 818 | 0 819 | PATH 820 | LaunchDaemons 821 | PATH_TYPE 822 | 0 823 | PERMISSIONS 824 | 493 825 | TYPE 826 | 1 827 | UID 828 | 0 829 | 830 | 831 | CHILDREN 832 | 833 | GID 834 | 0 835 | PATH 836 | PreferencePanes 837 | PATH_TYPE 838 | 0 839 | PERMISSIONS 840 | 493 841 | TYPE 842 | 1 843 | UID 844 | 0 845 | 846 | 847 | CHILDREN 848 | 849 | GID 850 | 0 851 | PATH 852 | Preferences 853 | PATH_TYPE 854 | 0 855 | PERMISSIONS 856 | 493 857 | TYPE 858 | 1 859 | UID 860 | 0 861 | 862 | 863 | CHILDREN 864 | 865 | GID 866 | 80 867 | PATH 868 | Printers 869 | PATH_TYPE 870 | 0 871 | PERMISSIONS 872 | 493 873 | TYPE 874 | 1 875 | UID 876 | 0 877 | 878 | 879 | CHILDREN 880 | 881 | GID 882 | 0 883 | PATH 884 | PrivilegedHelperTools 885 | PATH_TYPE 886 | 0 887 | PERMISSIONS 888 | 1005 889 | TYPE 890 | 1 891 | UID 892 | 0 893 | 894 | 895 | CHILDREN 896 | 897 | GID 898 | 0 899 | PATH 900 | QuickLook 901 | PATH_TYPE 902 | 0 903 | PERMISSIONS 904 | 493 905 | TYPE 906 | 1 907 | UID 908 | 0 909 | 910 | 911 | CHILDREN 912 | 913 | GID 914 | 0 915 | PATH 916 | QuickTime 917 | PATH_TYPE 918 | 0 919 | PERMISSIONS 920 | 493 921 | TYPE 922 | 1 923 | UID 924 | 0 925 | 926 | 927 | CHILDREN 928 | 929 | GID 930 | 0 931 | PATH 932 | Screen Savers 933 | PATH_TYPE 934 | 0 935 | PERMISSIONS 936 | 493 937 | TYPE 938 | 1 939 | UID 940 | 0 941 | 942 | 943 | CHILDREN 944 | 945 | GID 946 | 0 947 | PATH 948 | Scripts 949 | PATH_TYPE 950 | 0 951 | PERMISSIONS 952 | 493 953 | TYPE 954 | 1 955 | UID 956 | 0 957 | 958 | 959 | CHILDREN 960 | 961 | GID 962 | 0 963 | PATH 964 | Services 965 | PATH_TYPE 966 | 0 967 | PERMISSIONS 968 | 493 969 | TYPE 970 | 1 971 | UID 972 | 0 973 | 974 | 975 | CHILDREN 976 | 977 | GID 978 | 0 979 | PATH 980 | Widgets 981 | PATH_TYPE 982 | 0 983 | PERMISSIONS 984 | 493 985 | TYPE 986 | 1 987 | UID 988 | 0 989 | 990 | 991 | GID 992 | 0 993 | PATH 994 | Library 995 | PATH_TYPE 996 | 0 997 | PERMISSIONS 998 | 493 999 | TYPE 1000 | 1 1001 | UID 1002 | 0 1003 | 1004 | 1005 | CHILDREN 1006 | 1007 | 1008 | CHILDREN 1009 | 1010 | GID 1011 | 0 1012 | PATH 1013 | Shared 1014 | PATH_TYPE 1015 | 0 1016 | PERMISSIONS 1017 | 1023 1018 | TYPE 1019 | 1 1020 | UID 1021 | 0 1022 | 1023 | 1024 | GID 1025 | 80 1026 | PATH 1027 | Users 1028 | PATH_TYPE 1029 | 0 1030 | PERMISSIONS 1031 | 493 1032 | TYPE 1033 | 1 1034 | UID 1035 | 0 1036 | 1037 | 1038 | GID 1039 | 0 1040 | PATH 1041 | / 1042 | PATH_TYPE 1043 | 0 1044 | PERMISSIONS 1045 | 493 1046 | TYPE 1047 | 1 1048 | UID 1049 | 0 1050 | 1051 | PAYLOAD_TYPE 1052 | 0 1053 | PRESERVE_EXTENDED_ATTRIBUTES 1054 | 1055 | SHOW_INVISIBLE 1056 | 1057 | SPLIT_FORKS 1058 | 1059 | TREAT_MISSING_FILES_AS_WARNING 1060 | 1061 | VERSION 1062 | 5 1063 | 1064 | PACKAGE_SETTINGS 1065 | 1066 | AUTHENTICATION 1067 | 1 1068 | CONCLUSION_ACTION 1069 | 0 1070 | FOLLOW_SYMBOLIC_LINKS 1071 | 1072 | IDENTIFIER 1073 | com.GuitarML.Chameleon.ChameleonVST3 1074 | LOCATION 1075 | 0 1076 | NAME 1077 | VST3 1078 | OVERWRITE_PERMISSIONS 1079 | 1080 | PAYLOAD_SIZE 1081 | -1 1082 | REFERENCE_PATH 1083 | 1084 | RELOCATABLE 1085 | 1086 | USE_HFS+_COMPRESSION 1087 | 1088 | VERSION 1089 | ##APPVERSION## 1090 | 1091 | TYPE 1092 | 0 1093 | UUID 1094 | 17D06D06-18AD-4175-AA45-047F4984BE1A 1095 | 1096 | 1097 | MUST-CLOSE-APPLICATION-ITEMS 1098 | 1099 | MUST-CLOSE-APPLICATIONS 1100 | 1101 | PACKAGE_FILES 1102 | 1103 | DEFAULT_INSTALL_LOCATION 1104 | /Library/Application Support/Avid/Audio/Plug-Ins 1105 | HIERARCHY 1106 | 1107 | CHILDREN 1108 | 1109 | 1110 | CHILDREN 1111 | 1112 | GID 1113 | 80 1114 | PATH 1115 | Applications 1116 | PATH_TYPE 1117 | 0 1118 | PERMISSIONS 1119 | 509 1120 | TYPE 1121 | 1 1122 | UID 1123 | 0 1124 | 1125 | 1126 | CHILDREN 1127 | 1128 | 1129 | CHILDREN 1130 | 1131 | 1132 | CHILDREN 1133 | 1134 | 1135 | CHILDREN 1136 | 1137 | 1138 | CHILDREN 1139 | 1140 | 1141 | BUNDLE_CAN_DOWNGRADE 1142 | 1143 | BUNDLE_POSTINSTALL_PATH 1144 | 1145 | PATH_TYPE 1146 | 0 1147 | 1148 | BUNDLE_PREINSTALL_PATH 1149 | 1150 | PATH_TYPE 1151 | 0 1152 | 1153 | CHILDREN 1154 | 1155 | GID 1156 | 80 1157 | PATH 1158 | ../../build-aax/Chameleon_artefacts/Release/AAX/Chameleon.aaxplugin 1159 | PATH_TYPE 1160 | 1 1161 | PERMISSIONS 1162 | 493 1163 | TYPE 1164 | 3 1165 | UID 1166 | 0 1167 | 1168 | 1169 | GID 1170 | 80 1171 | PATH 1172 | Plug-Ins 1173 | PATH_TYPE 1174 | 2 1175 | PERMISSIONS 1176 | 509 1177 | TYPE 1178 | 2 1179 | UID 1180 | 0 1181 | 1182 | 1183 | GID 1184 | 80 1185 | PATH 1186 | Audio 1187 | PATH_TYPE 1188 | 2 1189 | PERMISSIONS 1190 | 509 1191 | TYPE 1192 | 2 1193 | UID 1194 | 0 1195 | 1196 | 1197 | GID 1198 | 80 1199 | PATH 1200 | Avid 1201 | PATH_TYPE 1202 | 2 1203 | PERMISSIONS 1204 | 509 1205 | TYPE 1206 | 2 1207 | UID 1208 | 0 1209 | 1210 | 1211 | GID 1212 | 80 1213 | PATH 1214 | Application Support 1215 | PATH_TYPE 1216 | 0 1217 | PERMISSIONS 1218 | 493 1219 | TYPE 1220 | 1 1221 | UID 1222 | 0 1223 | 1224 | 1225 | CHILDREN 1226 | 1227 | GID 1228 | 0 1229 | PATH 1230 | Automator 1231 | PATH_TYPE 1232 | 0 1233 | PERMISSIONS 1234 | 493 1235 | TYPE 1236 | 1 1237 | UID 1238 | 0 1239 | 1240 | 1241 | CHILDREN 1242 | 1243 | GID 1244 | 0 1245 | PATH 1246 | Documentation 1247 | PATH_TYPE 1248 | 0 1249 | PERMISSIONS 1250 | 493 1251 | TYPE 1252 | 1 1253 | UID 1254 | 0 1255 | 1256 | 1257 | CHILDREN 1258 | 1259 | GID 1260 | 0 1261 | PATH 1262 | Extensions 1263 | PATH_TYPE 1264 | 0 1265 | PERMISSIONS 1266 | 493 1267 | TYPE 1268 | 1 1269 | UID 1270 | 0 1271 | 1272 | 1273 | CHILDREN 1274 | 1275 | GID 1276 | 0 1277 | PATH 1278 | Filesystems 1279 | PATH_TYPE 1280 | 0 1281 | PERMISSIONS 1282 | 493 1283 | TYPE 1284 | 1 1285 | UID 1286 | 0 1287 | 1288 | 1289 | CHILDREN 1290 | 1291 | GID 1292 | 0 1293 | PATH 1294 | Frameworks 1295 | PATH_TYPE 1296 | 0 1297 | PERMISSIONS 1298 | 493 1299 | TYPE 1300 | 1 1301 | UID 1302 | 0 1303 | 1304 | 1305 | CHILDREN 1306 | 1307 | GID 1308 | 0 1309 | PATH 1310 | Input Methods 1311 | PATH_TYPE 1312 | 0 1313 | PERMISSIONS 1314 | 493 1315 | TYPE 1316 | 1 1317 | UID 1318 | 0 1319 | 1320 | 1321 | CHILDREN 1322 | 1323 | GID 1324 | 0 1325 | PATH 1326 | Internet Plug-Ins 1327 | PATH_TYPE 1328 | 0 1329 | PERMISSIONS 1330 | 493 1331 | TYPE 1332 | 1 1333 | UID 1334 | 0 1335 | 1336 | 1337 | CHILDREN 1338 | 1339 | GID 1340 | 0 1341 | PATH 1342 | LaunchAgents 1343 | PATH_TYPE 1344 | 0 1345 | PERMISSIONS 1346 | 493 1347 | TYPE 1348 | 1 1349 | UID 1350 | 0 1351 | 1352 | 1353 | CHILDREN 1354 | 1355 | GID 1356 | 0 1357 | PATH 1358 | LaunchDaemons 1359 | PATH_TYPE 1360 | 0 1361 | PERMISSIONS 1362 | 493 1363 | TYPE 1364 | 1 1365 | UID 1366 | 0 1367 | 1368 | 1369 | CHILDREN 1370 | 1371 | GID 1372 | 0 1373 | PATH 1374 | PreferencePanes 1375 | PATH_TYPE 1376 | 0 1377 | PERMISSIONS 1378 | 493 1379 | TYPE 1380 | 1 1381 | UID 1382 | 0 1383 | 1384 | 1385 | CHILDREN 1386 | 1387 | GID 1388 | 0 1389 | PATH 1390 | Preferences 1391 | PATH_TYPE 1392 | 0 1393 | PERMISSIONS 1394 | 493 1395 | TYPE 1396 | 1 1397 | UID 1398 | 0 1399 | 1400 | 1401 | CHILDREN 1402 | 1403 | GID 1404 | 80 1405 | PATH 1406 | Printers 1407 | PATH_TYPE 1408 | 0 1409 | PERMISSIONS 1410 | 493 1411 | TYPE 1412 | 1 1413 | UID 1414 | 0 1415 | 1416 | 1417 | CHILDREN 1418 | 1419 | GID 1420 | 0 1421 | PATH 1422 | PrivilegedHelperTools 1423 | PATH_TYPE 1424 | 0 1425 | PERMISSIONS 1426 | 1005 1427 | TYPE 1428 | 1 1429 | UID 1430 | 0 1431 | 1432 | 1433 | CHILDREN 1434 | 1435 | GID 1436 | 0 1437 | PATH 1438 | QuickLook 1439 | PATH_TYPE 1440 | 0 1441 | PERMISSIONS 1442 | 493 1443 | TYPE 1444 | 1 1445 | UID 1446 | 0 1447 | 1448 | 1449 | CHILDREN 1450 | 1451 | GID 1452 | 0 1453 | PATH 1454 | QuickTime 1455 | PATH_TYPE 1456 | 0 1457 | PERMISSIONS 1458 | 493 1459 | TYPE 1460 | 1 1461 | UID 1462 | 0 1463 | 1464 | 1465 | CHILDREN 1466 | 1467 | GID 1468 | 0 1469 | PATH 1470 | Screen Savers 1471 | PATH_TYPE 1472 | 0 1473 | PERMISSIONS 1474 | 493 1475 | TYPE 1476 | 1 1477 | UID 1478 | 0 1479 | 1480 | 1481 | CHILDREN 1482 | 1483 | GID 1484 | 0 1485 | PATH 1486 | Scripts 1487 | PATH_TYPE 1488 | 0 1489 | PERMISSIONS 1490 | 493 1491 | TYPE 1492 | 1 1493 | UID 1494 | 0 1495 | 1496 | 1497 | CHILDREN 1498 | 1499 | GID 1500 | 0 1501 | PATH 1502 | Services 1503 | PATH_TYPE 1504 | 0 1505 | PERMISSIONS 1506 | 493 1507 | TYPE 1508 | 1 1509 | UID 1510 | 0 1511 | 1512 | 1513 | CHILDREN 1514 | 1515 | GID 1516 | 0 1517 | PATH 1518 | Widgets 1519 | PATH_TYPE 1520 | 0 1521 | PERMISSIONS 1522 | 493 1523 | TYPE 1524 | 1 1525 | UID 1526 | 0 1527 | 1528 | 1529 | GID 1530 | 0 1531 | PATH 1532 | Library 1533 | PATH_TYPE 1534 | 0 1535 | PERMISSIONS 1536 | 493 1537 | TYPE 1538 | 1 1539 | UID 1540 | 0 1541 | 1542 | 1543 | CHILDREN 1544 | 1545 | 1546 | CHILDREN 1547 | 1548 | GID 1549 | 0 1550 | PATH 1551 | Shared 1552 | PATH_TYPE 1553 | 0 1554 | PERMISSIONS 1555 | 1023 1556 | TYPE 1557 | 1 1558 | UID 1559 | 0 1560 | 1561 | 1562 | GID 1563 | 80 1564 | PATH 1565 | Users 1566 | PATH_TYPE 1567 | 0 1568 | PERMISSIONS 1569 | 493 1570 | TYPE 1571 | 1 1572 | UID 1573 | 0 1574 | 1575 | 1576 | GID 1577 | 0 1578 | PATH 1579 | / 1580 | PATH_TYPE 1581 | 0 1582 | PERMISSIONS 1583 | 493 1584 | TYPE 1585 | 1 1586 | UID 1587 | 0 1588 | 1589 | PAYLOAD_TYPE 1590 | 0 1591 | PRESERVE_EXTENDED_ATTRIBUTES 1592 | 1593 | SHOW_INVISIBLE 1594 | 1595 | SPLIT_FORKS 1596 | 1597 | TREAT_MISSING_FILES_AS_WARNING 1598 | 1599 | VERSION 1600 | 5 1601 | 1602 | PACKAGE_SCRIPTS 1603 | 1604 | POSTINSTALL_PATH 1605 | 1606 | PATH_TYPE 1607 | 0 1608 | 1609 | PREINSTALL_PATH 1610 | 1611 | PATH_TYPE 1612 | 0 1613 | 1614 | RESOURCES 1615 | 1616 | 1617 | PACKAGE_SETTINGS 1618 | 1619 | AUTHENTICATION 1620 | 1 1621 | CONCLUSION_ACTION 1622 | 0 1623 | FOLLOW_SYMBOLIC_LINKS 1624 | 1625 | IDENTIFIER 1626 | com.GuitarML.Chameleon.ChameleonAAX 1627 | LOCATION 1628 | 0 1629 | NAME 1630 | AAX 1631 | OVERWRITE_PERMISSIONS 1632 | 1633 | PAYLOAD_SIZE 1634 | -1 1635 | REFERENCE_PATH 1636 | 1637 | RELOCATABLE 1638 | 1639 | USE_HFS+_COMPRESSION 1640 | 1641 | VERSION 1642 | ##APPVERSION## 1643 | 1644 | TYPE 1645 | 0 1646 | UUID 1647 | 67DBD464-3B62-45EF-964B-549829FB1466 1648 | 1649 | 1650 | PROJECT 1651 | 1652 | PROJECT_COMMENTS 1653 | 1654 | NOTES 1655 | 1656 | 1657 | 1658 | PROJECT_PRESENTATION 1659 | 1660 | BACKGROUND 1661 | 1662 | APPAREANCES 1663 | 1664 | DARK_AQUA 1665 | 1666 | LIGHT_AQUA 1667 | 1668 | 1669 | SHARED_SETTINGS_FOR_ALL_APPAREANCES 1670 | 1671 | 1672 | INSTALLATION TYPE 1673 | 1674 | HIERARCHIES 1675 | 1676 | INSTALLER 1677 | 1678 | LIST 1679 | 1680 | 1681 | CHILDREN 1682 | 1683 | DESCRIPTION 1684 | 1685 | OPTIONS 1686 | 1687 | HIDDEN 1688 | 1689 | STATE 1690 | 1 1691 | 1692 | PACKAGE_UUID 1693 | 69EED16E-B119-4D35-B464-12717823DE0E 1694 | TITLE 1695 | 1696 | TYPE 1697 | 0 1698 | UUID 1699 | 32A671B5-085A-4D25-9B73-CA9157DA33C8 1700 | 1701 | 1702 | CHILDREN 1703 | 1704 | DESCRIPTION 1705 | 1706 | OPTIONS 1707 | 1708 | HIDDEN 1709 | 1710 | STATE 1711 | 1 1712 | 1713 | PACKAGE_UUID 1714 | 17D06D06-18AD-4175-AA45-047F4984BE1A 1715 | TITLE 1716 | 1717 | TYPE 1718 | 0 1719 | UUID 1720 | 6B0DDE9A-47F8-4615-BC79-4C475F3E41F7 1721 | 1722 | 1723 | CHILDREN 1724 | 1725 | DESCRIPTION 1726 | 1727 | OPTIONS 1728 | 1729 | HIDDEN 1730 | 1731 | STATE 1732 | 1 1733 | 1734 | PACKAGE_UUID 1735 | 67DBD464-3B62-45EF-964B-549829FB1466 1736 | TITLE 1737 | 1738 | TYPE 1739 | 0 1740 | UUID 1741 | 2BBC047A-58AB-4D9C-AFC1-F8BF00186CE3 1742 | 1743 | 1744 | REMOVED 1745 | 1746 | 1747 | 1748 | MODE 1749 | 2 1750 | 1751 | INSTALLATION_STEPS 1752 | 1753 | 1754 | ICPRESENTATION_CHAPTER_VIEW_CONTROLLER_CLASS 1755 | ICPresentationViewIntroductionController 1756 | INSTALLER_PLUGIN 1757 | Introduction 1758 | LIST_TITLE_KEY 1759 | InstallerSectionTitle 1760 | 1761 | 1762 | ICPRESENTATION_CHAPTER_VIEW_CONTROLLER_CLASS 1763 | ICPresentationViewReadMeController 1764 | INSTALLER_PLUGIN 1765 | ReadMe 1766 | LIST_TITLE_KEY 1767 | InstallerSectionTitle 1768 | 1769 | 1770 | ICPRESENTATION_CHAPTER_VIEW_CONTROLLER_CLASS 1771 | ICPresentationViewLicenseController 1772 | INSTALLER_PLUGIN 1773 | License 1774 | LIST_TITLE_KEY 1775 | InstallerSectionTitle 1776 | 1777 | 1778 | ICPRESENTATION_CHAPTER_VIEW_CONTROLLER_CLASS 1779 | ICPresentationViewDestinationSelectController 1780 | INSTALLER_PLUGIN 1781 | TargetSelect 1782 | LIST_TITLE_KEY 1783 | InstallerSectionTitle 1784 | 1785 | 1786 | ICPRESENTATION_CHAPTER_VIEW_CONTROLLER_CLASS 1787 | ICPresentationViewInstallationTypeController 1788 | INSTALLER_PLUGIN 1789 | PackageSelection 1790 | LIST_TITLE_KEY 1791 | InstallerSectionTitle 1792 | 1793 | 1794 | ICPRESENTATION_CHAPTER_VIEW_CONTROLLER_CLASS 1795 | ICPresentationViewInstallationController 1796 | INSTALLER_PLUGIN 1797 | Install 1798 | LIST_TITLE_KEY 1799 | InstallerSectionTitle 1800 | 1801 | 1802 | ICPRESENTATION_CHAPTER_VIEW_CONTROLLER_CLASS 1803 | ICPresentationViewSummaryController 1804 | INSTALLER_PLUGIN 1805 | Summary 1806 | LIST_TITLE_KEY 1807 | InstallerSectionTitle 1808 | 1809 | 1810 | INTRODUCTION 1811 | 1812 | LOCALIZATIONS 1813 | 1814 | 1815 | LANGUAGE 1816 | English 1817 | VALUE 1818 | 1819 | PATH 1820 | Intro.txt 1821 | PATH_TYPE 1822 | 3 1823 | 1824 | 1825 | 1826 | 1827 | LICENSE 1828 | 1829 | LOCALIZATIONS 1830 | 1831 | 1832 | LANGUAGE 1833 | English 1834 | VALUE 1835 | 1836 | PATH 1837 | LICENSE.txt 1838 | PATH_TYPE 1839 | 3 1840 | 1841 | 1842 | 1843 | MODE 1844 | 0 1845 | 1846 | README 1847 | 1848 | LOCALIZATIONS 1849 | 1850 | 1851 | TITLE 1852 | 1853 | LOCALIZATIONS 1854 | 1855 | 1856 | LANGUAGE 1857 | English 1858 | VALUE 1859 | Chameleon 1860 | 1861 | 1862 | 1863 | 1864 | PROJECT_REQUIREMENTS 1865 | 1866 | LIST 1867 | 1868 | RESOURCES 1869 | 1870 | ROOT_VOLUME_ONLY 1871 | 1872 | 1873 | PROJECT_SETTINGS 1874 | 1875 | BUILD_FORMAT 1876 | 0 1877 | BUILD_PATH 1878 | 1879 | PATH 1880 | ../../build 1881 | PATH_TYPE 1882 | 1 1883 | 1884 | EXCLUDED_FILES 1885 | 1886 | 1887 | PATTERNS_ARRAY 1888 | 1889 | 1890 | REGULAR_EXPRESSION 1891 | 1892 | STRING 1893 | .DS_Store 1894 | TYPE 1895 | 0 1896 | 1897 | 1898 | PROTECTED 1899 | 1900 | PROXY_NAME 1901 | Remove .DS_Store files 1902 | PROXY_TOOLTIP 1903 | Remove ".DS_Store" files created by the Finder. 1904 | STATE 1905 | 1906 | 1907 | 1908 | PATTERNS_ARRAY 1909 | 1910 | 1911 | REGULAR_EXPRESSION 1912 | 1913 | STRING 1914 | .pbdevelopment 1915 | TYPE 1916 | 0 1917 | 1918 | 1919 | PROTECTED 1920 | 1921 | PROXY_NAME 1922 | Remove .pbdevelopment files 1923 | PROXY_TOOLTIP 1924 | Remove ".pbdevelopment" files created by ProjectBuilder or Xcode. 1925 | STATE 1926 | 1927 | 1928 | 1929 | PATTERNS_ARRAY 1930 | 1931 | 1932 | REGULAR_EXPRESSION 1933 | 1934 | STRING 1935 | CVS 1936 | TYPE 1937 | 1 1938 | 1939 | 1940 | REGULAR_EXPRESSION 1941 | 1942 | STRING 1943 | .cvsignore 1944 | TYPE 1945 | 0 1946 | 1947 | 1948 | REGULAR_EXPRESSION 1949 | 1950 | STRING 1951 | .cvspass 1952 | TYPE 1953 | 0 1954 | 1955 | 1956 | REGULAR_EXPRESSION 1957 | 1958 | STRING 1959 | .svn 1960 | TYPE 1961 | 1 1962 | 1963 | 1964 | REGULAR_EXPRESSION 1965 | 1966 | STRING 1967 | .git 1968 | TYPE 1969 | 1 1970 | 1971 | 1972 | REGULAR_EXPRESSION 1973 | 1974 | STRING 1975 | .gitignore 1976 | TYPE 1977 | 0 1978 | 1979 | 1980 | PROTECTED 1981 | 1982 | PROXY_NAME 1983 | Remove SCM metadata 1984 | PROXY_TOOLTIP 1985 | Remove helper files and folders used by the CVS, SVN or Git Source Code Management systems. 1986 | STATE 1987 | 1988 | 1989 | 1990 | PATTERNS_ARRAY 1991 | 1992 | 1993 | REGULAR_EXPRESSION 1994 | 1995 | STRING 1996 | classes.nib 1997 | TYPE 1998 | 0 1999 | 2000 | 2001 | REGULAR_EXPRESSION 2002 | 2003 | STRING 2004 | designable.db 2005 | TYPE 2006 | 0 2007 | 2008 | 2009 | REGULAR_EXPRESSION 2010 | 2011 | STRING 2012 | info.nib 2013 | TYPE 2014 | 0 2015 | 2016 | 2017 | PROTECTED 2018 | 2019 | PROXY_NAME 2020 | Optimize nib files 2021 | PROXY_TOOLTIP 2022 | Remove "classes.nib", "info.nib" and "designable.nib" files within .nib bundles. 2023 | STATE 2024 | 2025 | 2026 | 2027 | PATTERNS_ARRAY 2028 | 2029 | 2030 | REGULAR_EXPRESSION 2031 | 2032 | STRING 2033 | Resources Disabled 2034 | TYPE 2035 | 1 2036 | 2037 | 2038 | PROTECTED 2039 | 2040 | PROXY_NAME 2041 | Remove Resources Disabled folders 2042 | PROXY_TOOLTIP 2043 | Remove "Resources Disabled" folders. 2044 | STATE 2045 | 2046 | 2047 | 2048 | SEPARATOR 2049 | 2050 | 2051 | 2052 | NAME 2053 | Chameleon 2054 | PAYLOAD_ONLY 2055 | 2056 | TREAT_MISSING_PRESENTATION_DOCUMENTS_AS_WARNING 2057 | 2058 | 2059 | 2060 | TYPE 2061 | 0 2062 | VERSION 2063 | 2 2064 | 2065 | 2066 | -------------------------------------------------------------------------------- /installers/mac/Intro.txt: -------------------------------------------------------------------------------- 1 | This application will install the Chameleon audio plugin version ##APPVERSION## to your computer. 2 | -------------------------------------------------------------------------------- /installers/mac/build_mac_installer.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | script_file=Chameleon.pkgproj 4 | 5 | app_version=$(cut -f 2 -d '=' <<< "$(grep 'CMAKE_PROJECT_VERSION:STATIC' ../../build/CMakeCache.txt)") 6 | echo "Setting app version: $app_version..." 7 | sed -i '' "s/##APPVERSION##/${app_version}/g" $script_file 8 | sed -i '' "s/##APPVERSION##/${app_version}/g" Intro.txt 9 | 10 | echo "Copying License..." 11 | cp ../../LICENSE.txt LICENSE.txt 12 | 13 | # build installer 14 | echo Building... 15 | /usr/local/bin/packagesbuild $script_file 16 | 17 | # reset version number 18 | sed -i '' "s/${app_version}/##APPVERSION##/g" $script_file 19 | sed -i '' "s/${app_version}/##APPVERSION##/g" Intro.txt 20 | 21 | # clean up license file 22 | rm LICENSE.txt 23 | 24 | # sign the installer package 25 | echo "Signing installer package..." 26 | TEAM_ID=$(more ~/Developer/mac_id) 27 | pkg_dir=Chameleon_Installer_Packaged 28 | rm -Rf $pkg_dir 29 | mkdir $pkg_dir 30 | productsign -s "$TEAM_ID" ../../build/Chameleon.pkg $pkg_dir/Chameleon-signed.pkg 31 | 32 | echo "Notarizing installer package..." 33 | INSTALLER_PASS=$(more ~/Developer/mac_installer_pass) 34 | npx notarize-cli --file $pkg_dir/Chameleon-signed.pkg --bundle-id com.GuitarML.Chameleon --asc-provider "$TEAM_ID" --username smartguitarml@gmail.com --password "$INSTALLER_PASS" 35 | 36 | echo "Building disk image..." 37 | vol_name=Install_Chameleon-$app_version 38 | hdiutil create "$vol_name.dmg" -fs HFS+ -srcfolder $pkg_dir -format UDZO -volname "$vol_name" 39 | -------------------------------------------------------------------------------- /installers/windows/Chameleon_Install_Script.iss: -------------------------------------------------------------------------------- 1 | #define MyAppPublisher "GuitarML" 2 | #define MyAppURL "https://guitarml.com" 3 | #define MyAppName "Chameleon" 4 | 5 | [Setup] 6 | AppName=Chameleon 7 | AppVersion=##APPVERSION## 8 | AppPublisher={#MyAppPublisher} 9 | AppPublisherURL={#MyAppURL} 10 | AppSupportURL={#MyAppURL} 11 | AppUpdatesURL={#MyAppURL} 12 | DisableProgramGroupPage=yes 13 | DisableWelcomePage=no 14 | DisableDirPage=yes 15 | DefaultDirName={commoncf64} 16 | DefaultGroupName=Chameleon 17 | OutputBaseFilename="Chameleon-Win-##APPVERSION##" 18 | OutputDir=. 19 | LicenseFile=../../LICENSE.txt 20 | SetupIconFile=../../resources/guitarml.ico 21 | UninstallDisplayIcon=../../resources/TS-M1N3.ico 22 | UninstallFilesDir={commoncf64}\GuitarML\{#MyAppName} 23 | Compression=lzma 24 | SolidCompression=yes 25 | 26 | [Types] 27 | Name: "full"; Description: "Full installation" 28 | Name: "custom"; Description: "Custom installation"; Flags: iscustom 29 | 30 | [Components] 31 | Name: "VST3_64"; Description: "VST3 Plugin 64-bit"; Types: full 32 | Name: "AAX"; Description: "AAX Plugin"; Types: full 33 | 34 | [Files] 35 | Source: "../../bin/Win64/Chameleon.vst3"; DestDir: "{code:GetDir|VST3_64}"; Components: VST3_64; Flags: ignoreversion recursesubdirs createallsubdirs 36 | Source: "../../build-aax/Chameleon_artefacts/Release/AAX/Chameleon.aaxplugin"; DestDir: "{code:GetDir|AAX}"; Components: AAX; Flags: ignoreversion recursesubdirs createallsubdirs 37 | 38 | 39 | [Code] 40 | var 41 | AAXDirPage: TInputDirWizardPage; 42 | Vst3_64DirPage: TinputDirWizardPage; 43 | 44 | procedure InitializeWizard; 45 | begin 46 | Log('Initializing extra pages') 47 | //AAX Dir Page 48 | AAXDirPage := CreateInputDirPage(wpSelectComponents, 49 | 'Select AAX Install Location', 'Where would you like to install the AAX plugin?', 50 | 'AAX plugin will be installed in the following folder.'#13#10#13#10 + 51 | 'To continue, click Next. If you would like to select a different folder, click Browse.', 52 | False, 'New Folder'); 53 | 54 | AAXDirPage.add(''); 55 | AAXDirPage.values[0] := ExpandConstant('{commoncf64}\Avid\Audio\Plug-Ins'); 56 | 57 | //VST3 64-bit Dir Page 58 | Vst3_64DirPage := CreateInputDirPage(AAXDirPage.ID, 59 | 'Select Install Location for VST3 64-bit', 'Where would you like to install the plugin?', 60 | 'VST3 64-bit plugin will be installed in the following folder.'#13#10#13#10 + 61 | 'To continue, click Next. If you would like to select a different folder, click Browse.', 62 | False, 'New Folder'); 63 | 64 | Vst3_64DirPage.add(''); 65 | Vst3_64DirPage.values[0] := ExpandConstant('{commoncf64}\VST3'); 66 | 67 | 68 | 69 | end; 70 | 71 | function IsSelected(Param: String) : Boolean; 72 | begin 73 | if not (Pos(Param, WizardSelectedComponents(False)) = 0) then // WizardSelectedComponents(False)) then 74 | Result := True 75 | end; 76 | 77 | function ShouldSkipPage(PageID: Integer): Boolean; 78 | begin 79 | { Skip pages that shouldn't be shown } 80 | Result := False; 81 | 82 | if (PageID = AAXDirPage.ID) then 83 | begin 84 | Result := True; 85 | Log('Selected 1: ' + WizardSelectedComponents(False)); 86 | 87 | if IsSelected ('aax') then 88 | begin 89 | Log('Not Skipping page'); 90 | Result := False; 91 | end 92 | end 93 | 94 | else if (PageID = Vst3_64DirPage.ID) then 95 | begin 96 | Result := True; 97 | Log('Selected 2: ' + WizardSelectedComponents(False)); 98 | 99 | if IsSelected ('vst3_64') then 100 | begin 101 | Log('Not Skipping'); 102 | Result := False; 103 | end 104 | end 105 | 106 | 107 | end; 108 | 109 | function GetDir(Param: String) : String; 110 | begin 111 | if (Param = 'AAX') then 112 | Result := AAXDirPage.values[0] 113 | else if (Param = 'VST3_64') then 114 | Result := Vst3_64DirPage.values[0] 115 | end; 116 | 117 | function UpdateReadyMemo(Space, NewLine, MemoUserInfoInfo, MemoDirInfo, MemoTypeInfo, 118 | MemoComponentsInfo, MemoGroupInfo, MemoTasksInfo: String): String; 119 | var 120 | S: String; 121 | begin 122 | { Fill the 'Ready Memo' with the normal settings and the custom settings } 123 | S := ''; 124 | S := S + MemoTypeInfo + NewLine + NewLine; 125 | S := S + MemoComponentsInfo + NewLine + NewLine; 126 | S := S + 'Destination Location:' + NewLine; 127 | 128 | if IsSelected('aax') then 129 | S := S + Space + GetDir('AAX') + ' (AAX)' + NewLine; 130 | 131 | if IsSelected('vst3_64') then 132 | S := S + Space + GetDir('VST3_64') + ' (VST3 64-bit)' + NewLine; 133 | 134 | Result := S; 135 | end; 136 | -------------------------------------------------------------------------------- /installers/windows/build_win_installer.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | script_file=Chameleon_Install_Script.iss 4 | 5 | app_version=$(cut -f 2 -d '=' <<< "$(grep 'CMAKE_PROJECT_VERSION:STATIC' ../../build/CMakeCache.txt)") 6 | echo "Setting app version: $app_version..." 7 | sed -i "s/##APPVERSION##/${app_version}/g" $script_file 8 | 9 | # build installer 10 | echo Building... 11 | $"C:\Program Files (x86)\Inno Setup 6\ISCC.exe" $script_file 12 | 13 | # reset version number 14 | sed -i "s/${app_version}/##APPVERSION##/g" $script_file 15 | 16 | exec="Chameleon-Win-$app_version.exe" 17 | direc=$PWD 18 | 19 | 20 | echo SUCCESS 21 | -------------------------------------------------------------------------------- /mac_builds.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # exit on failure 4 | set -e 5 | 6 | # clean up old builds 7 | rm -Rf build/ 8 | rm -Rf bin/*Mac* 9 | 10 | 11 | # cmake new builds 12 | TEAM_ID=$(more ~/Developer/mac_id) 13 | cmake -Bbuild -DMACOS_RELEASE=ON -GXcode -DCMAKE_XCODE_ATTRIBUTE_CODE_SIGN_IDENTITY="Developer ID Application" \ 14 | -DCMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM="$TEAM_ID" \ 15 | -DCMAKE_XCODE_ATTRIBUTE_CODE_SIGN_STYLE="Manual" \ 16 | -D"CMAKE_OSX_ARCHITECTURES=arm64;x86_64" \ 17 | -DCMAKE_XCODE_ATTRIBUTE_CODE_SIGN_INJECT_BASE_ENTITLEMENTS=NO \ 18 | -DCMAKE_XCODE_ATTRIBUTE_OTHER_CODE_SIGN_FLAGS="--timestamp" \ 19 | -DMACOS_RELEASE=ON 20 | cmake --build build --config Release -j8 | xcpretty 21 | 22 | # copy builds to bin 23 | mkdir -p bin/Mac 24 | declare -a plugins=("Chameleon") 25 | for plugin in "${plugins[@]}"; do 26 | cp -R build/${plugin}_artefacts/Release/VST3/${plugin}.vst3 bin/Mac/${plugin}.vst3 27 | cp -R build/${plugin}_artefacts/Release/AU/${plugin}.component bin/Mac/${plugin}.component 28 | done 29 | 30 | 31 | # run auval 32 | echo "Running AU validation..." 33 | rm -Rf ~/Library/Audio/Plug-Ins/Components/${plugin}.component 34 | cp -R build/${plugin}_artefacts/Release/AU/${plugin}.component ~/Library/Audio/Plug-Ins/Components 35 | manu=$(cut -f 6 -d ' ' <<< "$(grep 'PLUGIN_MANUFACTURER_CODE' CMakeLists.txt)") 36 | code=$(cut -f 6 -d ' ' <<< "$(grep 'PLUGIN_CODE' CMakeLists.txt)") 37 | 38 | set +e 39 | auval_result=$(auval -v aufx "$code" "$manu") 40 | auval_code="$?" 41 | echo "AUVAL code: $auval_code" 42 | 43 | if [ "$auval_code" != 0 ]; then 44 | echo "$auval_result" 45 | echo "auval FAIL!!!" 46 | #exit 1 47 | else 48 | echo "auval PASSED" 49 | fi 50 | 51 | # zip builds 52 | echo "Zipping builds..." 53 | VERSION=$(cut -f 2 -d '=' <<< "$(grep 'CMAKE_PROJECT_VERSION:STATIC' build/CMakeCache.txt)") 54 | ( 55 | cd bin 56 | rm -f "Chameleon-Mac-${VERSION}.zip" 57 | zip -r "Chameleon-Mac-${VERSION}.zip" Mac 58 | ) 59 | 60 | # create installer 61 | echo "Creating installer..." 62 | ( 63 | cd installers/mac 64 | bash build_mac_installer.sh 65 | ) 66 | -------------------------------------------------------------------------------- /modules/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | add_subdirectory(JUCE) 2 | 3 | include(cmake/SubprojectVersion.cmake) 4 | subproject_version(JUCE juce_version) 5 | message(STATUS "VERSION for JUCE: ${juce_version}") 6 | 7 | # Link to libsamplerate 8 | set(BUILD_TESTING OFF CACHE BOOL "Don't build libsamplerate tests!") 9 | add_subdirectory(libsamplerate) 10 | subproject_version(libsamplerate libsamplerate_version) 11 | message(STATUS "VERSION for libsamplerate: ${libsamplerate_version}") 12 | 13 | # link to RTNeural 14 | set(RTNEURAL_XSIMD ON CACHE BOOL "Use RTNeural with this backend" FORCE) 15 | add_subdirectory(RTNeural) 16 | 17 | include(cmake/WarningFlags.cmake) 18 | add_library(juce_plugin_modules STATIC) 19 | add_subdirectory(json) 20 | add_subdirectory(chowdsp_utils) 21 | 22 | target_link_libraries(juce_plugin_modules 23 | PRIVATE 24 | BinaryData 25 | juce::juce_audio_utils 26 | juce::juce_audio_plugin_client 27 | juce::juce_dsp 28 | nlohmann_json::nlohmann_json 29 | RTNeural 30 | samplerate 31 | chowdsp_dsp 32 | PUBLIC 33 | juce::juce_recommended_config_flags 34 | juce::juce_recommended_lto_flags 35 | warning_flags 36 | ) 37 | 38 | target_compile_definitions(juce_plugin_modules 39 | PUBLIC 40 | JUCE_DISPLAY_SPLASH_SCREEN=0 41 | JUCE_REPORT_APP_USAGE=0 42 | JUCE_WEB_BROWSER=0 43 | JUCE_USE_CURL=0 44 | JUCE_VST3_CAN_REPLACE_VST2=0 45 | JucePlugin_Manufacturer="GuitarML" 46 | JucePlugin_VersionString="${CMAKE_PROJECT_VERSION}" 47 | JucePlugin_Name="${CMAKE_PROJECT_NAME}" 48 | CHOWDSP_USE_LIBSAMPLERATE=1 49 | INTERFACE 50 | $ 51 | ) 52 | 53 | target_include_directories(juce_plugin_modules 54 | PUBLIC 55 | RTNeural 56 | RTNeural/modules/xsimd/include 57 | libsamplerate/include 58 | INTERFACE 59 | $ 60 | ) 61 | 62 | set_target_properties(juce_plugin_modules PROPERTIES 63 | POSITION_INDEPENDENT_CODE TRUE 64 | VISIBILITY_INLINES_HIDDEN TRUE 65 | C_VISBILITY_PRESET hidden 66 | CXX_VISIBILITY_PRESET hidden 67 | ) 68 | -------------------------------------------------------------------------------- /modules/cmake/SubprojectVersion.cmake: -------------------------------------------------------------------------------- 1 | # subproject_version( ) 2 | # 3 | # Extract version of a sub-project, which was previously included with add_subdirectory(). 4 | function(subproject_version subproject_name VERSION_VAR) 5 | # Read CMakeLists.txt for subproject and extract project() call(s) from it. 6 | file(STRINGS "${${subproject_name}_SOURCE_DIR}/CMakeLists.txt" project_calls REGEX "[ \t]*project\\(") 7 | # For every project() call try to extract its VERSION option 8 | foreach(project_call ${project_calls}) 9 | string(REGEX MATCH "VERSION[ ]+([^ )]+)" version_param "${project_call}") 10 | if(version_param) 11 | set(version_value "${CMAKE_MATCH_1}") 12 | endif() 13 | endforeach() 14 | if(version_value) 15 | set(${VERSION_VAR} "${version_value}" PARENT_SCOPE) 16 | else() 17 | message("WARNING: Cannot extract version for subproject '${subproject_name}'") 18 | endif() 19 | 20 | endfunction(subproject_version) 21 | -------------------------------------------------------------------------------- /modules/cmake/WarningFlags.cmake: -------------------------------------------------------------------------------- 1 | add_library(warning_flags INTERFACE) 2 | 3 | if((CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") OR (CMAKE_CXX_SIMULATE_ID STREQUAL "MSVC")) 4 | target_compile_options(warning_flags INTERFACE 5 | /W4 # base warning level 6 | #/wd4458 # declaration hides class member (from Foley's GUI Magic) 7 | /wd4505 # since VS2019 doesn't handle [[ maybe_unused ]] for static functions (RTNeural::debug_print) 8 | /wd4244 # for XSIMD 9 | ) 10 | elseif((CMAKE_CXX_COMPILER_ID STREQUAL "Clang") OR (CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang")) 11 | target_compile_options(warning_flags INTERFACE 12 | -Wall -Wshadow-all -Wshorten-64-to-32 -Wstrict-aliasing -Wuninitialized 13 | -Wunused-parameter -Wconversion -Wsign-compare -Wint-conversion 14 | -Wconditional-uninitialized -Woverloaded-virtual -Wreorder 15 | -Wconstant-conversion -Wsign-conversion -Wunused-private-field 16 | -Wbool-conversion -Wno-extra-semi -Wunreachable-code 17 | -Wzero-as-null-pointer-constant -Wcast-align 18 | -Wno-inconsistent-missing-destructor-override -Wshift-sign-overflow 19 | -Wnullable-to-nonnull-conversion -Wno-missing-field-initializers 20 | -Wno-ignored-qualifiers -Wpedantic -Wno-pessimizing-move 21 | # These lines suppress some custom warnings. 22 | # Comment them out to be more strict. 23 | -Wno-shadow-field-in-constructor 24 | # Supress warnings from xsimd 25 | -Wno-cast-align -Wno-shadow -Wno-implicit-int-conversion 26 | -Wno-zero-as-null-pointer-constant -Wno-sign-conversion 27 | # Needed for ARM processor, OSX versions below 10.14 28 | -fno-aligned-allocation 29 | ) 30 | elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") 31 | target_compile_options(warning_flags INTERFACE 32 | -Wall -Wextra -Wstrict-aliasing -Wuninitialized -Wunused-parameter 33 | -Wsign-compare -Woverloaded-virtual -Wreorder -Wunreachable-code 34 | -Wzero-as-null-pointer-constant -Wcast-align -Wno-implicit-fallthrough 35 | -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-pedantic 36 | -Wno-ignored-qualifiers -Wno-unused-function -Wno-pessimizing-move 37 | # From LV2 Wrapper 38 | -Wno-parentheses -Wno-deprecated-declarations -Wno-redundant-decls 39 | # For XSIMD 40 | -Wno-zero-as-null-pointer-constant 41 | # These lines suppress some custom warnings. 42 | # Comment them out to be more strict. 43 | -Wno-redundant-move 44 | ) 45 | 46 | if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "7.0.0") 47 | target_compile_options(warning_flags INTERFACE "-Wno-strict-overflow") 48 | endif() 49 | endif() 50 | -------------------------------------------------------------------------------- /resources/CMakeLists.txt: -------------------------------------------------------------------------------- 1 | juce_add_binary_data(BinaryData SOURCES 2 | chameleon_amp.jpg 3 | CMakeLists.txt 4 | knob_70_black.png 5 | led_24_red.png 6 | led_gold.png 7 | led_gold_on.png 8 | led_green.png 9 | led_green_on.png 10 | led_red.png 11 | led_red_off.png 12 | led_red_on.png 13 | logo.png 14 | power_switch_down.png 15 | power_switch_mid.png 16 | power_switch_up.png 17 | ../models/red.json 18 | ../models/gold.json 19 | ../models/green.json 20 | ) 21 | 22 | # Need to build BinaryData with -fPIC flag on Linux 23 | set_target_properties(BinaryData PROPERTIES 24 | POSITION_INDEPENDENT_CODE TRUE) 25 | -------------------------------------------------------------------------------- /resources/Chameleon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuitarML/Chameleon/bf0b03b4ebead33c84432e3beabe199ff0fa847e/resources/Chameleon.jpg -------------------------------------------------------------------------------- /resources/chameleon_amp.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuitarML/Chameleon/bf0b03b4ebead33c84432e3beabe199ff0fa847e/resources/chameleon_amp.jpg -------------------------------------------------------------------------------- /resources/guitarml.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuitarML/Chameleon/bf0b03b4ebead33c84432e3beabe199ff0fa847e/resources/guitarml.ico -------------------------------------------------------------------------------- /resources/knob_70_black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuitarML/Chameleon/bf0b03b4ebead33c84432e3beabe199ff0fa847e/resources/knob_70_black.png -------------------------------------------------------------------------------- /resources/led_24_red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuitarML/Chameleon/bf0b03b4ebead33c84432e3beabe199ff0fa847e/resources/led_24_red.png -------------------------------------------------------------------------------- /resources/led_gold.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuitarML/Chameleon/bf0b03b4ebead33c84432e3beabe199ff0fa847e/resources/led_gold.png -------------------------------------------------------------------------------- /resources/led_gold_on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuitarML/Chameleon/bf0b03b4ebead33c84432e3beabe199ff0fa847e/resources/led_gold_on.png -------------------------------------------------------------------------------- /resources/led_green.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuitarML/Chameleon/bf0b03b4ebead33c84432e3beabe199ff0fa847e/resources/led_green.png -------------------------------------------------------------------------------- /resources/led_green_on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuitarML/Chameleon/bf0b03b4ebead33c84432e3beabe199ff0fa847e/resources/led_green_on.png -------------------------------------------------------------------------------- /resources/led_red.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuitarML/Chameleon/bf0b03b4ebead33c84432e3beabe199ff0fa847e/resources/led_red.png -------------------------------------------------------------------------------- /resources/led_red_off.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuitarML/Chameleon/bf0b03b4ebead33c84432e3beabe199ff0fa847e/resources/led_red_off.png -------------------------------------------------------------------------------- /resources/led_red_on.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuitarML/Chameleon/bf0b03b4ebead33c84432e3beabe199ff0fa847e/resources/led_red_on.png -------------------------------------------------------------------------------- /resources/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuitarML/Chameleon/bf0b03b4ebead33c84432e3beabe199ff0fa847e/resources/logo.png -------------------------------------------------------------------------------- /resources/power_switch_down.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuitarML/Chameleon/bf0b03b4ebead33c84432e3beabe199ff0fa847e/resources/power_switch_down.png -------------------------------------------------------------------------------- /resources/power_switch_mid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuitarML/Chameleon/bf0b03b4ebead33c84432e3beabe199ff0fa847e/resources/power_switch_mid.png -------------------------------------------------------------------------------- /resources/power_switch_up.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/GuitarML/Chameleon/bf0b03b4ebead33c84432e3beabe199ff0fa847e/resources/power_switch_up.png -------------------------------------------------------------------------------- /test/pytorch_lstm_custom.py: -------------------------------------------------------------------------------- 1 | import numpy as np 2 | import matplotlib.pyplot as plt 3 | from scipy.io import wavfile 4 | import json 5 | from tensorflow.keras.activations import sigmoid 6 | 7 | # Developer Note: 8 | # This script was used in verifying the step by step LSTM calculations 9 | # before converting to c++. It compares a pre-rendered baseline wav file 10 | # with the output from the custom LSTM. 11 | 12 | # Reference: 13 | # https://dtransposed.github.io/blog/Under-the-hood-LSTM.html 14 | 15 | 16 | ## Define parameters ## 17 | 18 | no_of_layers = 1 # Number of hidden LSTM layers in the network. (for this application will always be 1) 19 | no_of_units = 32 # Number of units in every LSTM layer. 20 | 21 | test_length = 4410 # Number of samples to test (44100 is one second of audio) 22 | 23 | def save_wav(name, data): 24 | if name.endswith('.wav') == False: 25 | name = name + '.wav' 26 | wavfile.write(name, 44100, data.flatten().astype(np.float32)) 27 | print("Predicted wav file generated: "+name) 28 | 29 | def read_wav(wav_file): 30 | # Extract Audio and framerate from Wav File 31 | fs, signal = wavfile.read(wav_file) 32 | return signal, fs 33 | 34 | ## Define LSTM networks ## 35 | 36 | class custom_LSTM(object): 37 | ''' 38 | custom_LSTM creates a single LSTM layer ('custom-made' implementation) 39 | ''' 40 | def __init__(self, input_size, no_of_units): 41 | self.input_size = input_size 42 | self.hidden_units = no_of_units # c++ code needs to handle a variable number of hidden_units (default is 32) 43 | self.hidden = np.zeros((self.input_size, self.hidden_units),dtype = np.float32) 44 | self.cell_state = np.zeros((self.input_size, self.hidden_units),dtype = np.float32) 45 | self.output_array = [] 46 | self.residual = 0 47 | 48 | def tanh(self, x): 49 | return np.tanh(x) 50 | 51 | def sigmoid(self, z): 52 | return 1/(1 + np.exp(-z)) 53 | 54 | def layer(self, xt, W, U, b): 55 | # This is the main function needed to be converted to c++ (the conv1d layer is already mostly implemented in c++ already) 56 | # 57 | # Optimized Version ( 2 bigger matrix multiplications instead of 8 smaller matrix multiplications ) 58 | # Reference "Algorithm 1" on page 5 of research paper, that version 59 | # might be easier to implement in c++. It does the same thing as below, but it 60 | # updates each index "for each i in [0 -> N"]) where "N" is the hidden size (self.hidden_units) 61 | # Ignore line 2 from Algorithm 1 "if b_cond was given..", not implemented here 62 | # 63 | # The below matrix shapes are the default for the ts9_model.h5, the sizes are determined by the parameters listed beside the defaults 64 | # The c++ code will need to be able to account for variations in these parameters ("filters" and "hidden_units" can vary depending on the model parameters) 65 | # 66 | # xt shape = (1,) (filters,) <-- the number of filters in the conv1d_1 layer 67 | # W shape = (1, 128) (filters, hidden_units*4) <-- the number of filters in the conv1d_1 layer, and hidden_units of LSTM * 4 68 | # U shape = (32, 128) (hidden_units, hidden_units*4) <-- hidden_units in LSTM, and hidden_units of LSTM * 4 69 | # bias shape = (128,) (hidden_units*4) <-- hidden_units of LSTM * 4 70 | 71 | self.residual = xt # residual is for skip connection 72 | 73 | HS = self.hidden_units # Hidden size 74 | hidden = self.hidden 75 | bias = b 76 | gates = np.dot(xt, W) + np.dot(hidden, U) + bias 77 | i_t, f_t, g_t, o_t = ( 78 | sigmoid(gates[:, :HS]), # input 79 | sigmoid(gates[:, HS:HS*2]), # forget 80 | self.tanh(gates[:, HS*2:HS*3]), 81 | sigmoid(gates[:, HS*3:]), # output 82 | ) 83 | c_t = f_t * self.cell_state + i_t * g_t # Cell state 84 | h_t = o_t * self.tanh(c_t) # Hidden state 85 | self.hidden = h_t 86 | self.cell_state = c_t 87 | 88 | return self.hidden 89 | 90 | def reset_state(self): 91 | self.hidden = np.zeros((self.input_size, self.hidden_units),dtype = np.float32) 92 | self.cell_state = np.zeros((self.input_size, self.hidden_units),dtype = np.float32) 93 | 94 | def dense(self, x, weights, bias): 95 | result = np.dot(x, weights)+bias 96 | self.result=result[0] + self.residual 97 | return result[0] + self.residual 98 | 99 | def output_array_append(self): 100 | self.output_array.append(self.result[0]) 101 | 102 | 103 | 104 | ## Main ## 105 | 106 | ########################################################### Load and process the audio input data 107 | in_rate, in_data = wavfile.read('x_test1.wav') 108 | X = in_data.astype(np.float32).flatten()[0:test_length] #read input wav file to np array 109 | 110 | ########################################################### Load json model 111 | with open('ts9_model_best.json') as json_file: 112 | data = json.load(json_file) 113 | 114 | # Transpose to match current custom implementation made for Keras 115 | weight_ih_l0 = np.array(data['state_dict']['rec.weight_ih_l0']).T ## TRANSPOSING FROM STATE DICT 116 | weight_hh_l0 = np.array(data['state_dict']['rec.weight_hh_l0']).T 117 | bias_ih_l0 = np.array(data['state_dict']['rec.bias_ih_l0']).T 118 | bias_hh_l0 = np.array(data['state_dict']['rec.bias_hh_l0']).T 119 | 120 | lin_weight = np.array(data['state_dict']['lin.weight']).T 121 | lin_bias = np.array(data['state_dict']['lin.bias']) 122 | 123 | print("Model Data: ", data['model_data']) 124 | print("rec.weight_ih_l0 shape:", weight_ih_l0.shape) 125 | print("rec.weight_hh_l0 shape:", weight_hh_l0.shape) 126 | print("rec.bias_ih_l0 shape:", bias_ih_l0.shape) 127 | print("rec.bias_hh_l0 shape:", bias_hh_l0.shape) 128 | print("lin.weight shape:", lin_weight.shape) 129 | print("lin.bias:", lin_bias.shape) 130 | 131 | input_size = int(data['model_data']['input_size']) 132 | hidden_units = int(data['model_data']['hidden_size']) 133 | 134 | print("input, hidden size:", input_size, hidden_units) 135 | 136 | LSTM_layer_1 = custom_LSTM(input_size, hidden_units) 137 | 138 | 139 | ## Prediction step using custom-made LSTM ## 140 | LSTM_layer_1.reset_state() #initialize the hidden and cell states for the LSTM (set to 0's) TODO WHEN SHOULD HIDDEN AND CELL STATES BE INITIALIZED? 141 | for sample in X: 142 | 143 | # Layer 1: LSTM (Long short term memory layer) 144 | output_from_LSTM_1 = LSTM_layer_1.layer(sample, weight_ih_l0, weight_hh_l0, bias_ih_l0 + bias_hh_l0) #Just add the biases at the beginning 145 | #print("Shape of output_from_LSTM_1", output_from_LSTM_1.shape) 146 | 147 | # Layer 2: Dense layer (Fully connected layer) 148 | LSTM_layer_1.dense(output_from_LSTM_1, lin_weight, lin_bias) 149 | LSTM_layer_1.output_array_append() 150 | 151 | ## Compare custom-made implementation ## 152 | 153 | result_custom = LSTM_layer_1.output_array 154 | save_wav("custom_lstm.wav", np.array(result_custom)) 155 | 156 | # Load baseline wav for ts9 from pytorch model 157 | signal, fs = read_wav('ts9_best_out.wav') 158 | test_signal = signal[0:test_length] 159 | 160 | test_input = in_data[0:test_length] 161 | 162 | dummy_axis = list(range(len(result_custom))) 163 | plt.plot(dummy_axis, result_custom, label ='Custom-made LSTM', marker='x') 164 | plt.plot(dummy_axis, test_signal, label ='Baseline Pytorch') 165 | plt.plot(dummy_axis, test_input, label ='Input') 166 | plt.legend(loc='best') 167 | plt.xlabel('Data point') 168 | plt.ylabel('Value') 169 | plt.title('Comparison of two methods') 170 | plt.show() 171 | -------------------------------------------------------------------------------- /validate.sh: -------------------------------------------------------------------------------- 1 | # install functions 2 | install_pluginval_linux() 3 | { 4 | curl -L "https://github.com/Tracktion/pluginval/releases/download/latest_release/pluginval_Linux.zip" -o pluginval.zip 5 | unzip pluginval > /dev/null 6 | echo "./pluginval" 7 | } 8 | 9 | install_pluginval_mac() 10 | { 11 | curl -L "https://github.com/Tracktion/pluginval/releases/download/latest_release/pluginval_macOS.zip" -o pluginval.zip 12 | unzip pluginval > /dev/null 13 | echo "pluginval.app/Contents/MacOS/pluginval" 14 | } 15 | 16 | install_pluginval_win() 17 | { 18 | powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; Invoke-WebRequest https://github.com/Tracktion/pluginval/releases/download/latest_release/pluginval_Windows.zip -OutFile pluginval.zip" 19 | powershell -Command "Expand-Archive pluginval.zip -DestinationPath ." 20 | echo "./pluginval.exe" 21 | } 22 | 23 | # install 24 | if [[ "$OSTYPE" == "linux-gnu"* ]]; then 25 | exit 0 26 | # pluginval=$(install_pluginval_linux) 27 | # declare -a plugins=() 28 | elif [[ "$OSTYPE" == "darwin"* ]]; then 29 | pluginval=$(install_pluginval_mac) 30 | declare -a plugins=("build/Chameleon_artefacts/VST3/Chameleon.vst3") 31 | else 32 | pluginval=$(install_pluginval_win) 33 | declare -a plugins=("build/Chameleon_artefacts/Release/VST3/Chameleon.vst3") 34 | fi 35 | 36 | echo "Pluginval installed at ${pluginval}" 37 | echo "Validating ${plugin}" 38 | $pluginval --strictness-level 8 --validate-in-process --validate $plugin --timeout-ms 600000 39 | result=$? 40 | 41 | # clean up 42 | rm -Rf pluginval* 43 | exit $result 44 | -------------------------------------------------------------------------------- /win_builds.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | build64(){ 4 | #cmake -Bbuild -G"Visual Studio 15 2017 Win64" 5 | cmake -Bbuild -G"Visual Studio 16 2019" -A x64 6 | cmake --build build --config Release -j4 7 | } 8 | 9 | # exit on failure 10 | set -e 11 | 12 | # clean up old builds 13 | rm -Rf build/ 14 | rm -Rf bin/*Win64* 15 | 16 | 17 | # set up VST and ASIO paths 18 | sed -i -e "9s/#//" CMakeLists.txt 19 | sed -i -e "10s/#//" CMakeLists.txt 20 | sed -i -e '16s/#//' CMakeLists.txt 21 | 22 | # cmake new builds 23 | build64 & 24 | wait 25 | 26 | # copy builds to bin 27 | mkdir -p bin/Win64 28 | declare -a plugins=("Chameleon") 29 | for plugin in "${plugins[@]}"; do 30 | cp -R build/${plugin}_artefacts/Release/VST3/${plugin}.vst3 bin/Win64/${plugin}.vst3 31 | done 32 | 33 | # reset CMakeLists.txt 34 | #git restore CMakeLists.txt 35 | 36 | # zip builds 37 | VERSION=$(cut -f 2 -d '=' <<< "$(grep 'CMAKE_PROJECT_VERSION:STATIC' build/CMakeCache.txt)") 38 | ( 39 | cd bin 40 | rm -f "Chameleon-Win64-${VERSION}.zip" 41 | tar -a -c -f "Chameleon-Win64-${VERSION}.zip" Win64 42 | ) 43 | 44 | # create installer 45 | echo "Creating installer..." 46 | ( 47 | cd installers/windows 48 | bash build_win_installer.sh 49 | ) 50 | --------------------------------------------------------------------------------