├── Audio_Examples ├── .DS_Store ├── drums_dry.wav ├── drums_highcomp.wav ├── drums_lowcomp.wav ├── drums_midcomp.wav ├── sweep.wav ├── sweep_filter.wav ├── sweep_high.wav ├── sweep_low.wav └── sweep_mid.wav ├── JuceLibraryCode ├── AppConfig.h ├── JuceHeader.h ├── ReadMe.txt ├── include_juce_audio_basics.cpp ├── include_juce_audio_basics.mm ├── include_juce_audio_devices.cpp ├── include_juce_audio_devices.mm ├── include_juce_audio_formats.cpp ├── include_juce_audio_formats.mm ├── include_juce_audio_plugin_client_AAX.cpp ├── include_juce_audio_plugin_client_AAX.mm ├── include_juce_audio_plugin_client_AU.r ├── include_juce_audio_plugin_client_AU_1.mm ├── include_juce_audio_plugin_client_AU_2.mm ├── include_juce_audio_plugin_client_AUv3.mm ├── include_juce_audio_plugin_client_RTAS.r ├── include_juce_audio_plugin_client_RTAS_1.cpp ├── include_juce_audio_plugin_client_RTAS_2.cpp ├── include_juce_audio_plugin_client_RTAS_3.cpp ├── include_juce_audio_plugin_client_RTAS_4.cpp ├── include_juce_audio_plugin_client_RTAS_utils.cpp ├── include_juce_audio_plugin_client_RTAS_utils.mm ├── include_juce_audio_plugin_client_Standalone.cpp ├── include_juce_audio_plugin_client_VST2.cpp ├── include_juce_audio_plugin_client_VST3.cpp ├── include_juce_audio_plugin_client_VST_utils.mm ├── include_juce_audio_plugin_client_utils.cpp ├── include_juce_audio_processors.cpp ├── include_juce_audio_processors.mm ├── include_juce_audio_utils.cpp ├── include_juce_audio_utils.mm ├── include_juce_core.cpp ├── include_juce_core.mm ├── include_juce_cryptography.cpp ├── include_juce_cryptography.mm ├── include_juce_data_structures.cpp ├── include_juce_data_structures.mm ├── include_juce_events.cpp ├── include_juce_events.mm ├── include_juce_graphics.cpp ├── include_juce_graphics.mm ├── include_juce_gui_basics.cpp ├── include_juce_gui_basics.mm ├── include_juce_gui_extra.cpp ├── include_juce_gui_extra.mm ├── include_juce_opengl.cpp ├── include_juce_opengl.mm ├── include_juce_video.cpp └── include_juce_video.mm ├── LICENSE ├── MultiBandCompressor.jucer ├── Plugin_UI ├── .DS_Store ├── IIRHighPass.jpg ├── IIRLowPass.jpg ├── combined.jpg ├── plugin.png ├── plugin_low.png ├── spectrogram_highpassIR.png ├── spectrogram_lowpassIR.png ├── sweep.png ├── sweep_filter.png ├── sweep_high.png ├── sweep_low.png └── sweep_mid.png ├── README.md └── Source ├── Compressor.cpp ├── Compressor.h ├── PluginEditor.cpp ├── PluginEditor.h ├── PluginProcessor.cpp └── PluginProcessor.h /Audio_Examples/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoghmatt/MultiBandCompressor/50dca796f6f9ecb1bbbd8d8c29c3f3b14282532a/Audio_Examples/.DS_Store -------------------------------------------------------------------------------- /Audio_Examples/drums_dry.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoghmatt/MultiBandCompressor/50dca796f6f9ecb1bbbd8d8c29c3f3b14282532a/Audio_Examples/drums_dry.wav -------------------------------------------------------------------------------- /Audio_Examples/drums_highcomp.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoghmatt/MultiBandCompressor/50dca796f6f9ecb1bbbd8d8c29c3f3b14282532a/Audio_Examples/drums_highcomp.wav -------------------------------------------------------------------------------- /Audio_Examples/drums_lowcomp.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoghmatt/MultiBandCompressor/50dca796f6f9ecb1bbbd8d8c29c3f3b14282532a/Audio_Examples/drums_lowcomp.wav -------------------------------------------------------------------------------- /Audio_Examples/drums_midcomp.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoghmatt/MultiBandCompressor/50dca796f6f9ecb1bbbd8d8c29c3f3b14282532a/Audio_Examples/drums_midcomp.wav -------------------------------------------------------------------------------- /Audio_Examples/sweep.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoghmatt/MultiBandCompressor/50dca796f6f9ecb1bbbd8d8c29c3f3b14282532a/Audio_Examples/sweep.wav -------------------------------------------------------------------------------- /Audio_Examples/sweep_filter.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoghmatt/MultiBandCompressor/50dca796f6f9ecb1bbbd8d8c29c3f3b14282532a/Audio_Examples/sweep_filter.wav -------------------------------------------------------------------------------- /Audio_Examples/sweep_high.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoghmatt/MultiBandCompressor/50dca796f6f9ecb1bbbd8d8c29c3f3b14282532a/Audio_Examples/sweep_high.wav -------------------------------------------------------------------------------- /Audio_Examples/sweep_low.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoghmatt/MultiBandCompressor/50dca796f6f9ecb1bbbd8d8c29c3f3b14282532a/Audio_Examples/sweep_low.wav -------------------------------------------------------------------------------- /Audio_Examples/sweep_mid.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoghmatt/MultiBandCompressor/50dca796f6f9ecb1bbbd8d8c29c3f3b14282532a/Audio_Examples/sweep_mid.wav -------------------------------------------------------------------------------- /JuceLibraryCode/AppConfig.h: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | There's a section below where you can add your own custom code safely, and the 7 | Projucer will preserve the contents of that block, but the best way to change 8 | any of these definitions is by using the Projucer's project settings. 9 | 10 | Any commented-out settings will assume their default values. 11 | 12 | */ 13 | 14 | #pragma once 15 | 16 | //============================================================================== 17 | // [BEGIN_USER_CODE_SECTION] 18 | 19 | // (You can add your own code in this section, and the Projucer will not overwrite it) 20 | 21 | // [END_USER_CODE_SECTION] 22 | 23 | /* 24 | ============================================================================== 25 | 26 | In accordance with the terms of the JUCE 5 End-Use License Agreement, the 27 | JUCE Code in SECTION A cannot be removed, changed or otherwise rendered 28 | ineffective unless you have a JUCE Indie or Pro license, or are using JUCE 29 | under the GPL v3 license. 30 | 31 | End User License Agreement: www.juce.com/juce-5-licence 32 | 33 | ============================================================================== 34 | */ 35 | 36 | // BEGIN SECTION A 37 | 38 | #ifndef JUCE_DISPLAY_SPLASH_SCREEN 39 | #define JUCE_DISPLAY_SPLASH_SCREEN 1 40 | #endif 41 | 42 | #ifndef JUCE_REPORT_APP_USAGE 43 | #define JUCE_REPORT_APP_USAGE 1 44 | #endif 45 | 46 | // END SECTION A 47 | 48 | #define JUCE_USE_DARK_SPLASH_SCREEN 1 49 | 50 | //============================================================================== 51 | #define JUCE_MODULE_AVAILABLE_juce_audio_basics 1 52 | #define JUCE_MODULE_AVAILABLE_juce_audio_devices 1 53 | #define JUCE_MODULE_AVAILABLE_juce_audio_formats 1 54 | #define JUCE_MODULE_AVAILABLE_juce_audio_plugin_client 1 55 | #define JUCE_MODULE_AVAILABLE_juce_audio_processors 1 56 | #define JUCE_MODULE_AVAILABLE_juce_audio_utils 1 57 | #define JUCE_MODULE_AVAILABLE_juce_core 1 58 | #define JUCE_MODULE_AVAILABLE_juce_cryptography 1 59 | #define JUCE_MODULE_AVAILABLE_juce_data_structures 1 60 | #define JUCE_MODULE_AVAILABLE_juce_events 1 61 | #define JUCE_MODULE_AVAILABLE_juce_graphics 1 62 | #define JUCE_MODULE_AVAILABLE_juce_gui_basics 1 63 | #define JUCE_MODULE_AVAILABLE_juce_gui_extra 1 64 | #define JUCE_MODULE_AVAILABLE_juce_opengl 1 65 | #define JUCE_MODULE_AVAILABLE_juce_video 1 66 | 67 | #define JUCE_GLOBAL_MODULE_SETTINGS_INCLUDED 1 68 | 69 | //============================================================================== 70 | // juce_audio_devices flags: 71 | 72 | #ifndef JUCE_ASIO 73 | //#define JUCE_ASIO 0 74 | #endif 75 | 76 | #ifndef JUCE_WASAPI 77 | //#define JUCE_WASAPI 1 78 | #endif 79 | 80 | #ifndef JUCE_WASAPI_EXCLUSIVE 81 | //#define JUCE_WASAPI_EXCLUSIVE 0 82 | #endif 83 | 84 | #ifndef JUCE_DIRECTSOUND 85 | //#define JUCE_DIRECTSOUND 1 86 | #endif 87 | 88 | #ifndef JUCE_ALSA 89 | //#define JUCE_ALSA 1 90 | #endif 91 | 92 | #ifndef JUCE_JACK 93 | //#define JUCE_JACK 0 94 | #endif 95 | 96 | #ifndef JUCE_USE_ANDROID_OPENSLES 97 | //#define JUCE_USE_ANDROID_OPENSLES 0 98 | #endif 99 | 100 | #ifndef JUCE_USE_WINRT_MIDI 101 | //#define JUCE_USE_WINRT_MIDI 0 102 | #endif 103 | 104 | #ifndef JUCE_DISABLE_AUDIO_MIXING_WITH_OTHER_APPS 105 | //#define JUCE_DISABLE_AUDIO_MIXING_WITH_OTHER_APPS 0 106 | #endif 107 | 108 | //============================================================================== 109 | // juce_audio_formats flags: 110 | 111 | #ifndef JUCE_USE_FLAC 112 | //#define JUCE_USE_FLAC 1 113 | #endif 114 | 115 | #ifndef JUCE_USE_OGGVORBIS 116 | //#define JUCE_USE_OGGVORBIS 1 117 | #endif 118 | 119 | #ifndef JUCE_USE_MP3AUDIOFORMAT 120 | //#define JUCE_USE_MP3AUDIOFORMAT 0 121 | #endif 122 | 123 | #ifndef JUCE_USE_LAME_AUDIO_FORMAT 124 | //#define JUCE_USE_LAME_AUDIO_FORMAT 0 125 | #endif 126 | 127 | #ifndef JUCE_USE_WINDOWS_MEDIA_FORMAT 128 | //#define JUCE_USE_WINDOWS_MEDIA_FORMAT 1 129 | #endif 130 | 131 | //============================================================================== 132 | // juce_audio_plugin_client flags: 133 | 134 | #ifndef JUCE_FORCE_USE_LEGACY_PARAM_IDS 135 | //#define JUCE_FORCE_USE_LEGACY_PARAM_IDS 0 136 | #endif 137 | 138 | #ifndef JUCE_FORCE_LEGACY_PARAMETER_AUTOMATION_TYPE 139 | //#define JUCE_FORCE_LEGACY_PARAMETER_AUTOMATION_TYPE 0 140 | #endif 141 | 142 | #ifndef JUCE_USE_STUDIO_ONE_COMPATIBLE_PARAMETERS 143 | //#define JUCE_USE_STUDIO_ONE_COMPATIBLE_PARAMETERS 1 144 | #endif 145 | 146 | #ifndef JUCE_STANDALONE_FILTER_WINDOW_USE_KIOSK_MODE 147 | //#define JUCE_STANDALONE_FILTER_WINDOW_USE_KIOSK_MODE 0 148 | #endif 149 | 150 | //============================================================================== 151 | // juce_audio_processors flags: 152 | 153 | #ifndef JUCE_PLUGINHOST_VST 154 | //#define JUCE_PLUGINHOST_VST 0 155 | #endif 156 | 157 | #ifndef JUCE_PLUGINHOST_VST3 158 | //#define JUCE_PLUGINHOST_VST3 0 159 | #endif 160 | 161 | #ifndef JUCE_PLUGINHOST_AU 162 | //#define JUCE_PLUGINHOST_AU 0 163 | #endif 164 | 165 | //============================================================================== 166 | // juce_audio_utils flags: 167 | 168 | #ifndef JUCE_USE_CDREADER 169 | //#define JUCE_USE_CDREADER 0 170 | #endif 171 | 172 | #ifndef JUCE_USE_CDBURNER 173 | //#define JUCE_USE_CDBURNER 0 174 | #endif 175 | 176 | //============================================================================== 177 | // juce_core flags: 178 | 179 | #ifndef JUCE_FORCE_DEBUG 180 | //#define JUCE_FORCE_DEBUG 0 181 | #endif 182 | 183 | #ifndef JUCE_LOG_ASSERTIONS 184 | //#define JUCE_LOG_ASSERTIONS 0 185 | #endif 186 | 187 | #ifndef JUCE_CHECK_MEMORY_LEAKS 188 | //#define JUCE_CHECK_MEMORY_LEAKS 1 189 | #endif 190 | 191 | #ifndef JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES 192 | //#define JUCE_DONT_AUTOLINK_TO_WIN32_LIBRARIES 0 193 | #endif 194 | 195 | #ifndef JUCE_INCLUDE_ZLIB_CODE 196 | //#define JUCE_INCLUDE_ZLIB_CODE 1 197 | #endif 198 | 199 | #ifndef JUCE_USE_CURL 200 | //#define JUCE_USE_CURL 0 201 | #endif 202 | 203 | #ifndef JUCE_CATCH_UNHANDLED_EXCEPTIONS 204 | //#define JUCE_CATCH_UNHANDLED_EXCEPTIONS 1 205 | #endif 206 | 207 | #ifndef JUCE_ALLOW_STATIC_NULL_VARIABLES 208 | //#define JUCE_ALLOW_STATIC_NULL_VARIABLES 1 209 | #endif 210 | 211 | //============================================================================== 212 | // juce_events flags: 213 | 214 | #ifndef JUCE_EXECUTE_APP_SUSPEND_ON_IOS_BACKGROUND_TASK 215 | //#define JUCE_EXECUTE_APP_SUSPEND_ON_IOS_BACKGROUND_TASK 0 216 | #endif 217 | 218 | //============================================================================== 219 | // juce_graphics flags: 220 | 221 | #ifndef JUCE_USE_COREIMAGE_LOADER 222 | //#define JUCE_USE_COREIMAGE_LOADER 1 223 | #endif 224 | 225 | #ifndef JUCE_USE_DIRECTWRITE 226 | //#define JUCE_USE_DIRECTWRITE 1 227 | #endif 228 | 229 | //============================================================================== 230 | // juce_gui_basics flags: 231 | 232 | #ifndef JUCE_ENABLE_REPAINT_DEBUGGING 233 | //#define JUCE_ENABLE_REPAINT_DEBUGGING 0 234 | #endif 235 | 236 | #ifndef JUCE_USE_XRANDR 237 | //#define JUCE_USE_XRANDR 1 238 | #endif 239 | 240 | #ifndef JUCE_USE_XINERAMA 241 | //#define JUCE_USE_XINERAMA 1 242 | #endif 243 | 244 | #ifndef JUCE_USE_XSHM 245 | //#define JUCE_USE_XSHM 1 246 | #endif 247 | 248 | #ifndef JUCE_USE_XRENDER 249 | //#define JUCE_USE_XRENDER 0 250 | #endif 251 | 252 | #ifndef JUCE_USE_XCURSOR 253 | //#define JUCE_USE_XCURSOR 1 254 | #endif 255 | 256 | //============================================================================== 257 | // juce_gui_extra flags: 258 | 259 | #ifndef JUCE_WEB_BROWSER 260 | //#define JUCE_WEB_BROWSER 1 261 | #endif 262 | 263 | #ifndef JUCE_ENABLE_LIVE_CONSTANT_EDITOR 264 | //#define JUCE_ENABLE_LIVE_CONSTANT_EDITOR 0 265 | #endif 266 | 267 | //============================================================================== 268 | // juce_video flags: 269 | 270 | #ifndef JUCE_USE_CAMERA 271 | //#define JUCE_USE_CAMERA 0 272 | #endif 273 | //============================================================================== 274 | #ifndef JUCE_STANDALONE_APPLICATION 275 | #if defined(JucePlugin_Name) && defined(JucePlugin_Build_Standalone) 276 | #define JUCE_STANDALONE_APPLICATION JucePlugin_Build_Standalone 277 | #else 278 | #define JUCE_STANDALONE_APPLICATION 0 279 | #endif 280 | #endif 281 | 282 | //============================================================================== 283 | // Audio plugin settings.. 284 | 285 | #ifndef JucePlugin_Build_VST 286 | #define JucePlugin_Build_VST 1 287 | #endif 288 | #ifndef JucePlugin_Build_VST3 289 | #define JucePlugin_Build_VST3 0 290 | #endif 291 | #ifndef JucePlugin_Build_AU 292 | #define JucePlugin_Build_AU 1 293 | #endif 294 | #ifndef JucePlugin_Build_AUv3 295 | #define JucePlugin_Build_AUv3 0 296 | #endif 297 | #ifndef JucePlugin_Build_RTAS 298 | #define JucePlugin_Build_RTAS 0 299 | #endif 300 | #ifndef JucePlugin_Build_AAX 301 | #define JucePlugin_Build_AAX 0 302 | #endif 303 | #ifndef JucePlugin_Build_Standalone 304 | #define JucePlugin_Build_Standalone 1 305 | #endif 306 | #ifndef JucePlugin_Enable_IAA 307 | #define JucePlugin_Enable_IAA 0 308 | #endif 309 | #ifndef JucePlugin_Name 310 | #define JucePlugin_Name "MultiBandCompressor" 311 | #endif 312 | #ifndef JucePlugin_Desc 313 | #define JucePlugin_Desc "MultiBandCompressor" 314 | #endif 315 | #ifndef JucePlugin_Manufacturer 316 | #define JucePlugin_Manufacturer "amoghmatt" 317 | #endif 318 | #ifndef JucePlugin_ManufacturerWebsite 319 | #define JucePlugin_ManufacturerWebsite "www.amoghmatt.com" 320 | #endif 321 | #ifndef JucePlugin_ManufacturerEmail 322 | #define JucePlugin_ManufacturerEmail "amogh.matt@gmail.com" 323 | #endif 324 | #ifndef JucePlugin_ManufacturerCode 325 | #define JucePlugin_ManufacturerCode 0x4d616e75 // 'Manu' 326 | #endif 327 | #ifndef JucePlugin_PluginCode 328 | #define JucePlugin_PluginCode 0x586c6168 // 'Xlah' 329 | #endif 330 | #ifndef JucePlugin_IsSynth 331 | #define JucePlugin_IsSynth 0 332 | #endif 333 | #ifndef JucePlugin_WantsMidiInput 334 | #define JucePlugin_WantsMidiInput 0 335 | #endif 336 | #ifndef JucePlugin_ProducesMidiOutput 337 | #define JucePlugin_ProducesMidiOutput 0 338 | #endif 339 | #ifndef JucePlugin_IsMidiEffect 340 | #define JucePlugin_IsMidiEffect 0 341 | #endif 342 | #ifndef JucePlugin_EditorRequiresKeyboardFocus 343 | #define JucePlugin_EditorRequiresKeyboardFocus 0 344 | #endif 345 | #ifndef JucePlugin_Version 346 | #define JucePlugin_Version 1.0.0 347 | #endif 348 | #ifndef JucePlugin_VersionCode 349 | #define JucePlugin_VersionCode 0x10000 350 | #endif 351 | #ifndef JucePlugin_VersionString 352 | #define JucePlugin_VersionString "1.0.0" 353 | #endif 354 | #ifndef JucePlugin_VSTUniqueID 355 | #define JucePlugin_VSTUniqueID JucePlugin_PluginCode 356 | #endif 357 | #ifndef JucePlugin_VSTCategory 358 | #define JucePlugin_VSTCategory kPlugCategEffect 359 | #endif 360 | #ifndef JucePlugin_AUMainType 361 | #define JucePlugin_AUMainType kAudioUnitType_Effect 362 | #endif 363 | #ifndef JucePlugin_AUSubType 364 | #define JucePlugin_AUSubType JucePlugin_PluginCode 365 | #endif 366 | #ifndef JucePlugin_AUExportPrefix 367 | #define JucePlugin_AUExportPrefix MultiBandCompressorAU 368 | #endif 369 | #ifndef JucePlugin_AUExportPrefixQuoted 370 | #define JucePlugin_AUExportPrefixQuoted "MultiBandCompressorAU" 371 | #endif 372 | #ifndef JucePlugin_AUManufacturerCode 373 | #define JucePlugin_AUManufacturerCode JucePlugin_ManufacturerCode 374 | #endif 375 | #ifndef JucePlugin_CFBundleIdentifier 376 | #define JucePlugin_CFBundleIdentifier com.amoghmatt.MultiBandCompressor 377 | #endif 378 | #ifndef JucePlugin_RTASCategory 379 | #define JucePlugin_RTASCategory ePlugInCategory_None 380 | #endif 381 | #ifndef JucePlugin_RTASManufacturerCode 382 | #define JucePlugin_RTASManufacturerCode JucePlugin_ManufacturerCode 383 | #endif 384 | #ifndef JucePlugin_RTASProductId 385 | #define JucePlugin_RTASProductId JucePlugin_PluginCode 386 | #endif 387 | #ifndef JucePlugin_RTASDisableBypass 388 | #define JucePlugin_RTASDisableBypass 0 389 | #endif 390 | #ifndef JucePlugin_RTASDisableMultiMono 391 | #define JucePlugin_RTASDisableMultiMono 0 392 | #endif 393 | #ifndef JucePlugin_AAXIdentifier 394 | #define JucePlugin_AAXIdentifier com.amoghmatt.MultiBandCompressor 395 | #endif 396 | #ifndef JucePlugin_AAXManufacturerCode 397 | #define JucePlugin_AAXManufacturerCode JucePlugin_ManufacturerCode 398 | #endif 399 | #ifndef JucePlugin_AAXProductId 400 | #define JucePlugin_AAXProductId JucePlugin_PluginCode 401 | #endif 402 | #ifndef JucePlugin_AAXCategory 403 | #define JucePlugin_AAXCategory AAX_ePlugInCategory_Dynamics 404 | #endif 405 | #ifndef JucePlugin_AAXDisableBypass 406 | #define JucePlugin_AAXDisableBypass 0 407 | #endif 408 | #ifndef JucePlugin_AAXDisableMultiMono 409 | #define JucePlugin_AAXDisableMultiMono 0 410 | #endif 411 | #ifndef JucePlugin_IAAType 412 | #define JucePlugin_IAAType 0x61757278 // 'aurx' 413 | #endif 414 | #ifndef JucePlugin_IAASubType 415 | #define JucePlugin_IAASubType JucePlugin_PluginCode 416 | #endif 417 | #ifndef JucePlugin_IAAName 418 | #define JucePlugin_IAAName "amoghmatt: MultiBandCompressor" 419 | #endif 420 | -------------------------------------------------------------------------------- /JuceLibraryCode/JuceHeader.h: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | This is the header file that your files should include in order to get all the 7 | JUCE library headers. You should avoid including the JUCE headers directly in 8 | your own source files, because that wouldn't pick up the correct configuration 9 | options for your app. 10 | 11 | */ 12 | 13 | #pragma once 14 | 15 | #include "AppConfig.h" 16 | 17 | #include 18 | #include 19 | #include 20 | #include 21 | #include 22 | #include 23 | #include 24 | #include 25 | #include 26 | #include 27 | #include 28 | #include 29 | #include 30 | #include 31 | #include 32 | 33 | 34 | #if ! DONT_SET_USING_JUCE_NAMESPACE 35 | // If your code uses a lot of JUCE classes, then this will obviously save you 36 | // a lot of typing, but can be disabled by setting DONT_SET_USING_JUCE_NAMESPACE. 37 | using namespace juce; 38 | #endif 39 | 40 | #if ! JUCE_DONT_DECLARE_PROJECTINFO 41 | namespace ProjectInfo 42 | { 43 | const char* const projectName = "MultiBandCompressor"; 44 | const char* const versionString = "1.0.0"; 45 | const int versionNumber = 0x10000; 46 | } 47 | #endif 48 | -------------------------------------------------------------------------------- /JuceLibraryCode/ReadMe.txt: -------------------------------------------------------------------------------- 1 | 2 | Important Note!! 3 | ================ 4 | 5 | The purpose of this folder is to contain files that are auto-generated by the Projucer, 6 | and ALL files in this folder will be mercilessly DELETED and completely re-written whenever 7 | the Projucer saves your project. 8 | 9 | Therefore, it's a bad idea to make any manual changes to the files in here, or to 10 | put any of your own files in here if you don't want to lose them. (Of course you may choose 11 | to add the folder's contents to your version-control system so that you can re-merge your own 12 | modifications after the Projucer has saved its changes). 13 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_audio_basics.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_audio_basics.mm: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_audio_devices.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_audio_devices.mm: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_audio_formats.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_audio_formats.mm: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_audio_plugin_client_AAX.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_audio_plugin_client_AAX.mm: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_audio_plugin_client_AU.r: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_audio_plugin_client_AU_1.mm: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_audio_plugin_client_AU_2.mm: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_audio_plugin_client_AUv3.mm: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_audio_plugin_client_RTAS.r: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_audio_plugin_client_RTAS_1.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_audio_plugin_client_RTAS_2.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_audio_plugin_client_RTAS_3.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_audio_plugin_client_RTAS_4.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_audio_plugin_client_RTAS_utils.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_audio_plugin_client_RTAS_utils.mm: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_audio_plugin_client_Standalone.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_audio_plugin_client_VST2.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_audio_plugin_client_VST3.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_audio_plugin_client_VST_utils.mm: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_audio_plugin_client_utils.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_audio_processors.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_audio_processors.mm: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_audio_utils.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_audio_utils.mm: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_core.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_core.mm: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_cryptography.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_cryptography.mm: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_data_structures.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_data_structures.mm: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_events.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_events.mm: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_graphics.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_graphics.mm: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_gui_basics.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_gui_basics.mm: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_gui_extra.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_gui_extra.mm: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_opengl.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_opengl.mm: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_video.cpp: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /JuceLibraryCode/include_juce_video.mm: -------------------------------------------------------------------------------- 1 | /* 2 | 3 | IMPORTANT! This file is auto-generated each time you save your 4 | project - if you alter its contents, your changes may be overwritten! 5 | 6 | */ 7 | 8 | #include "AppConfig.h" 9 | #include 10 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /MultiBandCompressor.jucer: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16 | 17 | 18 | 19 | 20 | 22 | 24 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 96 | -------------------------------------------------------------------------------- /Plugin_UI/.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoghmatt/MultiBandCompressor/50dca796f6f9ecb1bbbd8d8c29c3f3b14282532a/Plugin_UI/.DS_Store -------------------------------------------------------------------------------- /Plugin_UI/IIRHighPass.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoghmatt/MultiBandCompressor/50dca796f6f9ecb1bbbd8d8c29c3f3b14282532a/Plugin_UI/IIRHighPass.jpg -------------------------------------------------------------------------------- /Plugin_UI/IIRLowPass.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoghmatt/MultiBandCompressor/50dca796f6f9ecb1bbbd8d8c29c3f3b14282532a/Plugin_UI/IIRLowPass.jpg -------------------------------------------------------------------------------- /Plugin_UI/combined.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoghmatt/MultiBandCompressor/50dca796f6f9ecb1bbbd8d8c29c3f3b14282532a/Plugin_UI/combined.jpg -------------------------------------------------------------------------------- /Plugin_UI/plugin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoghmatt/MultiBandCompressor/50dca796f6f9ecb1bbbd8d8c29c3f3b14282532a/Plugin_UI/plugin.png -------------------------------------------------------------------------------- /Plugin_UI/plugin_low.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoghmatt/MultiBandCompressor/50dca796f6f9ecb1bbbd8d8c29c3f3b14282532a/Plugin_UI/plugin_low.png -------------------------------------------------------------------------------- /Plugin_UI/spectrogram_highpassIR.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoghmatt/MultiBandCompressor/50dca796f6f9ecb1bbbd8d8c29c3f3b14282532a/Plugin_UI/spectrogram_highpassIR.png -------------------------------------------------------------------------------- /Plugin_UI/spectrogram_lowpassIR.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoghmatt/MultiBandCompressor/50dca796f6f9ecb1bbbd8d8c29c3f3b14282532a/Plugin_UI/spectrogram_lowpassIR.png -------------------------------------------------------------------------------- /Plugin_UI/sweep.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoghmatt/MultiBandCompressor/50dca796f6f9ecb1bbbd8d8c29c3f3b14282532a/Plugin_UI/sweep.png -------------------------------------------------------------------------------- /Plugin_UI/sweep_filter.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoghmatt/MultiBandCompressor/50dca796f6f9ecb1bbbd8d8c29c3f3b14282532a/Plugin_UI/sweep_filter.png -------------------------------------------------------------------------------- /Plugin_UI/sweep_high.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoghmatt/MultiBandCompressor/50dca796f6f9ecb1bbbd8d8c29c3f3b14282532a/Plugin_UI/sweep_high.png -------------------------------------------------------------------------------- /Plugin_UI/sweep_low.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoghmatt/MultiBandCompressor/50dca796f6f9ecb1bbbd8d8c29c3f3b14282532a/Plugin_UI/sweep_low.png -------------------------------------------------------------------------------- /Plugin_UI/sweep_mid.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/amoghmatt/MultiBandCompressor/50dca796f6f9ecb1bbbd8d8c29c3f3b14282532a/Plugin_UI/sweep_mid.png -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # MultiBandCompressor 2 | My implementation of a Multi-band Dynamic Range Compressor Audio Plugin developed using JUCE 3 | 4 | ## Running Instructions 5 | The plugin can be compiled by running the MultiBandCompressor.jucer file. 6 | -------------------------------------------------------------------------------- /Source/Compressor.cpp: -------------------------------------------------------------------------------- 1 | // 2 | // Compressor.cpp 3 | // MultibandCompressor - VST 4 | // 5 | // Created by Amogh Matt on 03/03/2018. 6 | // 7 | // Based on the compressor example plug-in by Reiss and McPherson 8 | // --- 9 | // 10 | // Compressor: dynamic range compression effect 11 | // See textbook Chapter 6: Dynamics Processing 12 | // 13 | // Code by Joshua Reiss, Brecht de Man and Andrew McPherson 14 | // 15 | // --- 16 | 17 | #include "Compressor.h" 18 | #include 19 | 20 | void Compressor::processBlock(AudioSampleBuffer &buffer) 21 | { 22 | int bufferSize = buffer.getNumSamples(); 23 | int numChannels = buffer.getNumChannels(); // number of channels 24 | int M = round(numChannels/2); // number of stereo channels 25 | 26 | // create blank input buffer to add to 27 | AudioSampleBuffer inputBuffer(M, bufferSize); 28 | inputBuffer.clear(); 29 | 30 | for (int m = 0 ; m < M ; ++m) //For each channel pair of channels 31 | { 32 | if (compressorState) // check if compressor is active 33 | { 34 | if ( (cThreshold < 0) ) // check if compressor threshold is non-zero 35 | { 36 | // Mix down left-right to analyse the input 37 | inputBuffer.addFrom(m,0,buffer,m*2,0,bufferSize,0.5); 38 | inputBuffer.addFrom(m,0,buffer,m*2+1,0,bufferSize,0.5); 39 | 40 | // compression : calculates the control voltage 41 | float alphaAttack = exp(-1/(0.001 * cSampleRate * cAttack)); 42 | float alphaRelease= exp(-1/(0.001 * cSampleRate * cRelease)); 43 | for (int i = 0 ; i < bufferSize ; ++i) 44 | { 45 | //Level detection- estimate level using peak detector 46 | if (fabs(buffer.getWritePointer(m)[i]) < 0.000001) 47 | { 48 | inputGain =-120; 49 | } 50 | else 51 | { 52 | inputGain =20*log10(fabs(buffer.getWritePointer(m)[i])); 53 | } 54 | 55 | // Gain computer - apply input/output curve with kneewidth 56 | // Incorporating the SOFT KNEE 57 | if (2 * (inputGain-cThreshold) >= cKneeWidth) 58 | { 59 | // above knee 60 | outputGain = cThreshold+ (inputGain - cThreshold) / cRatio; 61 | } 62 | else if (2 * fabs(inputGain - cThreshold) <= cKneeWidth) 63 | { 64 | // in knee 65 | outputGain = inputGain + (1/cRatio - 1) * pow(inputGain - cThreshold + cKneeWidth/2, 2)/(2 * cKneeWidth); 66 | } 67 | else { 68 | // below knee 69 | outputGain = inputGain; 70 | } 71 | 72 | inputLevel = inputGain - outputGain; 73 | 74 | //Ballistics- smoothing of the gain 75 | if (inputLevel>previousOutputLevel) 76 | outputLevel=alphaAttack * previousOutputLevel+(1 - alphaAttack ) * inputLevel; 77 | else 78 | outputLevel=alphaRelease* previousOutputLevel+(1 - alphaRelease) * inputLevel; 79 | 80 | //find control voltage 81 | controlVoltage = pow(10,(cMakeUpGain - outputLevel)/20); 82 | previousOutputLevel=outputLevel; 83 | 84 | // apply control voltage to both channels 85 | buffer.getWritePointer(2*m+0)[i] *= controlVoltage; 86 | buffer.getWritePointer(2*m+1)[i] *= controlVoltage; 87 | } 88 | } 89 | else 90 | { 91 | // if threshold = 0, still apply make up gain. 92 | buffer.applyGain(pow(10,(cMakeUpGain)/20)); 93 | } 94 | } 95 | } 96 | } 97 | 98 | void Compressor::setParameters(float ratio, float threshold, float attack, float release, float makeUpGain, float kneeWidth) 99 | { 100 | cRatio = ratio; 101 | cThreshold = threshold; 102 | cAttack = attack; 103 | cRelease = release; 104 | cMakeUpGain = Decibels::gainToDecibels(makeUpGain); 105 | cKneeWidth = kneeWidth; 106 | } 107 | 108 | void Compressor::prepareToPlay(double samplerate, int samplesPerBlock, int numInputChannels) 109 | { 110 | cSampleRate = samplerate; 111 | previousOutputLevel = 0; 112 | } 113 | -------------------------------------------------------------------------------- /Source/Compressor.h: -------------------------------------------------------------------------------- 1 | // 2 | // Compressor.h 3 | // MultibandCompressor 4 | // 5 | // Created by Amogh Matt on 03/03/2018. 6 | // 7 | // Based on the compressor example plug-in by Reiss and McPherson 8 | // --- 9 | // 10 | // Compressor: dynamic range compression effect 11 | // See textbook Chapter 6: Dynamics Processing 12 | // 13 | // Code by Joshua Reiss, Brecht de Man and Andrew McPherson 14 | // 15 | // --- 16 | 17 | #ifndef Compressor_h 18 | #define Compressor_h 19 | #include "../JuceLibraryCode/JuceHeader.h" 20 | 21 | class Compressor 22 | { 23 | public: 24 | Compressor() {} 25 | ~Compressor() {} 26 | 27 | void prepareToPlay (double samplerate, int samplesPerBlock, int numInputChannels); 28 | void processBlock(AudioSampleBuffer &buffer); 29 | void setParameters(float ratio, float threshold, float attack, float release, float makeUpGain, float kneeWidth); 30 | 31 | private: 32 | // Parameters 33 | float cRatio; 34 | float cThreshold; 35 | float cAttack; 36 | float cRelease; 37 | float cMakeUpGain; 38 | float cKneeWidth; 39 | float cSampleRate; 40 | 41 | // Compressor ON-OFF state 42 | int compressorState = 1; 43 | 44 | // Gain and Levels 45 | float inputGain; 46 | float inputLevel; 47 | float outputGain; 48 | float outputLevel; 49 | 50 | float previousOutputLevel; 51 | 52 | float controlVoltage; 53 | }; 54 | 55 | #endif /* Compressor_h */ 56 | -------------------------------------------------------------------------------- /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 | 14 | //============================================================================== 15 | MultibandCompressorAudioProcessorEditor::MultibandCompressorAudioProcessorEditor (MultibandCompressorAudioProcessor& p) 16 | : AudioProcessorEditor (&p), processor (p) 17 | { 18 | // Make sure that before the constructor has finished, you've set the 19 | // editor's size to whatever you need it to be. 20 | 21 | // Low Band Knobs 22 | addAndMakeVisible(sliderLowThreshold = new Slider ("Low Gain Threshold")); 23 | (*sliderLowThreshold).setRange(-80, 0, 0); 24 | (*sliderLowThreshold).setSliderStyle (Slider::LinearVertical); 25 | (*sliderLowThreshold).setTextBoxStyle (Slider::TextBoxAbove, false, 40, 20); 26 | (*sliderLowThreshold).addListener (this); 27 | 28 | addAndMakeVisible(sliderLowRatio = new Slider ("Low Ratio Slider")); 29 | (*sliderLowRatio).setRange (1, 10, 0); 30 | (*sliderLowRatio).setSliderStyle (Slider::Rotary); 31 | (*sliderLowRatio).setTextBoxStyle (Slider::TextBoxBelow, true, 80, 20); 32 | (*sliderLowRatio).addListener (this); 33 | 34 | addAndMakeVisible(sliderLowAttack = new Slider ("Low Attack Slider")); 35 | (*sliderLowAttack).setRange (5, 100, 0); 36 | (*sliderLowAttack).setSliderStyle (Slider::Rotary); 37 | (*sliderLowAttack).setTextBoxStyle (Slider::TextBoxBelow, true, 80, 20); 38 | (*sliderLowAttack).addListener (this); 39 | 40 | addAndMakeVisible(sliderLowRelease = new Slider ("Low Release Slider")); 41 | (*sliderLowRelease).setRange (5, 100, 0); 42 | (*sliderLowRelease).setSliderStyle (Slider::Rotary); 43 | (*sliderLowRelease).setTextBoxStyle (Slider::TextBoxBelow, true, 80, 20); 44 | (*sliderLowRelease).addListener (this); 45 | 46 | addAndMakeVisible(sliderLowGain = new Slider ("Low Gain Slider")); 47 | (*sliderLowGain).setRange (-80, 40, 0); 48 | (*sliderLowGain).setSliderStyle (Slider::Rotary); 49 | (*sliderLowGain).setTextBoxStyle (Slider::TextBoxBelow, false, 80, 20); 50 | (*sliderLowGain).addListener (this); 51 | 52 | // Mid Band Knobs 53 | addAndMakeVisible(sliderMidThreshold = new Slider ("Mid Gain Threshold")); 54 | (*sliderMidThreshold).setRange (-80, 0, 0); 55 | (*sliderMidThreshold).setSliderStyle (Slider::LinearVertical); 56 | (*sliderMidThreshold).setTextBoxStyle (Slider::TextBoxAbove, false, 40, 20); 57 | (*sliderMidThreshold).addListener (this); 58 | 59 | addAndMakeVisible(sliderMidRatio = new Slider ("Mid Ratio Slider")); 60 | (*sliderMidRatio).setRange (1, 10, 0); 61 | (*sliderMidRatio).setSliderStyle (Slider::Rotary); 62 | (*sliderMidRatio).setTextBoxStyle (Slider::TextBoxBelow, true, 80, 20); 63 | (*sliderMidRatio).addListener (this); 64 | 65 | addAndMakeVisible (sliderMidAttack = new Slider ("Mid Attack Slider")); 66 | (*sliderMidAttack).setRange (5, 100, 0); 67 | (*sliderMidAttack).setSliderStyle (Slider::Rotary); 68 | (*sliderMidAttack).setTextBoxStyle (Slider::TextBoxBelow, true, 80, 20); 69 | (*sliderMidAttack).addListener (this); 70 | 71 | addAndMakeVisible (sliderMidRelease = new Slider ("Mid Release Slider")); 72 | (*sliderMidRelease).setRange (5, 100, 0); 73 | (*sliderMidRelease).setSliderStyle (Slider::Rotary); 74 | (*sliderMidRelease).setTextBoxStyle (Slider::TextBoxBelow, true, 80, 20); 75 | (*sliderMidRelease).addListener (this); 76 | 77 | addAndMakeVisible (sliderMidGain = new Slider ("Mid Gain Slider")); 78 | (*sliderMidGain).setRange (-80, 40, 0); 79 | (*sliderMidGain).setSliderStyle (Slider::Rotary); 80 | (*sliderMidGain).setTextBoxStyle (Slider::TextBoxBelow, false, 80, 20); 81 | (*sliderMidGain).addListener (this); 82 | 83 | // High Band Knobs 84 | addAndMakeVisible (sliderHighThreshold = new Slider ("High Gain Threshold")); 85 | (*sliderHighThreshold).setRange (-80, 0, 0); 86 | (*sliderHighThreshold).setSliderStyle (Slider::LinearVertical); 87 | (*sliderHighThreshold).setTextBoxStyle (Slider::TextBoxAbove, false, 40, 20); 88 | (*sliderHighThreshold).addListener (this); 89 | 90 | addAndMakeVisible (sliderHighRatio = new Slider ("High Ratio Slider")); 91 | (*sliderHighRatio).setRange (1, 10, 0); 92 | (*sliderHighRatio).setSliderStyle (Slider::Rotary); 93 | (*sliderHighRatio).setTextBoxStyle (Slider::TextBoxBelow, true, 80, 20); 94 | (*sliderHighRatio).addListener (this); 95 | 96 | addAndMakeVisible (sliderHighAttack = new Slider ("High Attack Slider")); 97 | (*sliderHighAttack).setRange (5, 100, 0); 98 | (*sliderHighAttack).setSliderStyle (Slider::Rotary); 99 | (*sliderHighAttack).setTextBoxStyle (Slider::TextBoxBelow, true, 80, 20); 100 | (*sliderHighAttack).addListener (this); 101 | 102 | addAndMakeVisible (sliderHighRelease = new Slider ("High Release Slider")); 103 | (*sliderHighRelease).setRange (5, 100, 0); 104 | (*sliderHighRelease).setSliderStyle (Slider::Rotary); 105 | (*sliderHighRelease).setTextBoxStyle (Slider::TextBoxBelow, true, 80, 20); 106 | (*sliderHighRelease).addListener (this); 107 | 108 | addAndMakeVisible (sliderHighGain = new Slider ("High Gain Slider")); 109 | (*sliderHighGain).setRange (-80, 40, 0); 110 | (*sliderHighGain).setSliderStyle (Slider::Rotary); 111 | (*sliderHighGain).setTextBoxStyle (Slider::TextBoxBelow, false, 80, 20); 112 | (*sliderHighGain).addListener (this); 113 | 114 | // Low Cutoff Frequency Slider 115 | addAndMakeVisible(sliderLowCutoff = new Slider ("Low Cutoff")); 116 | (*sliderLowCutoff).setRange (150, 600, 0); 117 | (*sliderLowCutoff).setSliderStyle (Slider::Rotary); 118 | (*sliderLowCutoff).setTextBoxStyle (Slider::TextBoxBelow, false, 80, 20); 119 | (*sliderLowCutoff).addListener (this); 120 | (*sliderLowCutoff).setSkewFactor (2); 121 | 122 | // High Cutoff Frequency Slider 123 | addAndMakeVisible(sliderHighCutoff = new Slider ("High Cutoff")); 124 | (*sliderHighCutoff).setRange (1000, 4000, 0); 125 | (*sliderHighCutoff).setSliderStyle (Slider::Rotary); 126 | (*sliderHighCutoff).setTextBoxStyle (Slider::TextBoxBelow, false, 80, 20); 127 | (*sliderHighCutoff).addListener (this); 128 | (*sliderHighCutoff).setSkewFactor (2); 129 | 130 | // Compressor State Buttons 131 | addAndMakeVisible(buttonLowCompressorState = new TextButton ("Low Compressor")); 132 | (*buttonLowCompressorState).setButtonText (TRANS("Low")); 133 | (*buttonLowCompressorState).setColour(TextButton::buttonOnColourId, Colours::lightblue); 134 | (*buttonLowCompressorState).setColour(TextButton::textColourOnId, Colours::black); 135 | (*buttonLowCompressorState).setColour(TextButton::textColourOffId, Colours::white); 136 | (*buttonLowCompressorState).addListener (this); 137 | 138 | addAndMakeVisible(buttonMidCompressorState = new TextButton ("Mid Compressor")); 139 | (*buttonMidCompressorState).setButtonText (TRANS("Mid")); 140 | (*buttonMidCompressorState).setColour(TextButton::buttonOnColourId, Colours::lightblue); 141 | (*buttonMidCompressorState).setColour(TextButton::textColourOnId, Colours::black); 142 | (*buttonMidCompressorState).setColour(TextButton::textColourOffId, Colours::white); 143 | (*buttonMidCompressorState).addListener (this); 144 | 145 | addAndMakeVisible(buttonHighCompressorState = new TextButton ("High Compressor")); 146 | (*buttonHighCompressorState).setButtonText (TRANS("High")); 147 | (*buttonHighCompressorState).setColour(TextButton::buttonOnColourId, Colours::lightblue); 148 | (*buttonHighCompressorState).setColour(TextButton::textColourOnId, Colours::black); 149 | (*buttonHighCompressorState).setColour(TextButton::textColourOffId, Colours::white); 150 | (*buttonHighCompressorState).addListener (this); 151 | 152 | (*buttonHighCompressorState).setClickingTogglesState(true); 153 | (*buttonMidCompressorState).setClickingTogglesState(true); 154 | (*buttonLowCompressorState).setClickingTogglesState(true); 155 | 156 | // Labels 157 | addAndMakeVisible(cutoffLabel = new Label ("Cutoff", TRANS("Cutoff:"))); 158 | (*cutoffLabel).setFont (Font (15.00f, Font::plain)); 159 | (*cutoffLabel).setJustificationType (Justification::centredLeft); 160 | (*cutoffLabel).setEditable (false, false, false); 161 | (*cutoffLabel).setColour(Label::textColourId, Colours::white); 162 | 163 | addAndMakeVisible(thresholdLabel = new Label ("Threshold", TRANS("Threshold:"))); 164 | (*thresholdLabel).setFont (Font (15.00f, Font::plain)); 165 | (*thresholdLabel).setJustificationType (Justification::centredLeft); 166 | (*thresholdLabel).setEditable (false, false, false); 167 | (*thresholdLabel).setColour(Label::textColourId, Colours::white); 168 | 169 | addAndMakeVisible(ratioLabel = new Label ("Ratio", TRANS("Ratio:"))); 170 | (*ratioLabel).setFont (Font (15.00f, Font::plain)); 171 | (*ratioLabel).setJustificationType (Justification::centredLeft); 172 | (*ratioLabel).setEditable (false, false, false); 173 | (*ratioLabel).setColour(Label::textColourId, Colours::white); 174 | 175 | addAndMakeVisible(attackLabel = new Label ("Attack", TRANS("Attack:"))); 176 | (*attackLabel).setFont (Font (15.00f, Font::plain)); 177 | (*attackLabel).setJustificationType (Justification::centredLeft); 178 | (*attackLabel).setEditable (false, false, false); 179 | (*attackLabel).setColour(Label::textColourId, Colours::white); 180 | 181 | addAndMakeVisible(releaseLabel = new Label ("Release", TRANS("Release:"))); 182 | (*releaseLabel).setFont (Font (15.00f, Font::plain)); 183 | (*releaseLabel).setJustificationType (Justification::centredLeft); 184 | (*releaseLabel).setEditable (false, false, false); 185 | (*releaseLabel).setColour(Label::textColourId, Colours::white); 186 | 187 | addAndMakeVisible(gainLabel = new Label ("Gain", TRANS("Gain:"))); 188 | (*gainLabel).setFont (Font (15.00f, Font::plain)); 189 | (*gainLabel).setJustificationType (Justification::centredLeft); 190 | (*gainLabel).setEditable (false, false, false); 191 | (*gainLabel).setColour(Label::textColourId, Colours::white); 192 | 193 | addAndMakeVisible (sliderKneeWidth = new Slider ("Knee Width")); 194 | (*sliderKneeWidth).setRange (0, 10, 0); 195 | (*sliderKneeWidth).setSliderStyle (Slider::Rotary); 196 | (*sliderKneeWidth).setTextBoxStyle (Slider::TextBoxBelow, false, 80, 20); 197 | (*sliderKneeWidth).addListener (this); 198 | 199 | addAndMakeVisible (sliderOverallGain = new Slider ("Overall Gain")); 200 | (*sliderOverallGain).setRange (-40, 10, 0); 201 | (*sliderOverallGain).setSliderStyle (Slider::Rotary); 202 | (*sliderOverallGain).setTextBoxStyle (Slider::TextBoxBelow, false, 80, 20); 203 | (*sliderOverallGain).addListener (this); 204 | 205 | addAndMakeVisible (kneeWidthLabel = new Label ("Kneewidth", TRANS("Knee Width:"))); 206 | (*kneeWidthLabel).setFont (Font (15.00f, Font::plain)); 207 | (*kneeWidthLabel).setJustificationType (Justification::centredLeft); 208 | (*kneeWidthLabel).setEditable (false, false, false); 209 | (*kneeWidthLabel).setColour (TextEditor::textColourId, Colours::black); 210 | (*kneeWidthLabel).setColour (TextEditor::backgroundColourId, Colour (0x00000000)); 211 | 212 | addAndMakeVisible (overallGainLabel = new Label ("OverallGain", TRANS("Overall Gain:"))); 213 | (*overallGainLabel).setFont (Font (15.00f, Font::plain)); 214 | (*overallGainLabel).setJustificationType (Justification::centredLeft); 215 | (*overallGainLabel).setEditable (false, false, false); 216 | (*overallGainLabel).setColour(Label::textColourId, Colours::white); 217 | 218 | setSize (800, 600); 219 | startTimer(100); 220 | 221 | } 222 | 223 | MultibandCompressorAudioProcessorEditor::~MultibandCompressorAudioProcessorEditor() 224 | { 225 | sliderLowCutoff = nullptr; 226 | sliderHighCutoff = nullptr; 227 | 228 | buttonLowCompressorState = nullptr; 229 | buttonMidCompressorState = nullptr; 230 | buttonHighCompressorState = nullptr; 231 | 232 | sliderLowThreshold = nullptr; 233 | sliderLowRatio = nullptr; 234 | sliderLowAttack = nullptr; 235 | sliderLowRelease = nullptr; 236 | sliderLowGain = nullptr; 237 | 238 | sliderMidThreshold = nullptr; 239 | sliderMidRatio = nullptr; 240 | sliderMidAttack = nullptr; 241 | sliderMidRelease = nullptr; 242 | sliderMidGain = nullptr; 243 | 244 | sliderHighThreshold = nullptr; 245 | sliderHighRatio = nullptr; 246 | sliderHighAttack = nullptr; 247 | sliderHighRelease = nullptr; 248 | sliderHighGain = nullptr; 249 | 250 | cutoffLabel = nullptr; 251 | thresholdLabel = nullptr; 252 | ratioLabel = nullptr; 253 | attackLabel = nullptr; 254 | releaseLabel = nullptr; 255 | gainLabel = nullptr; 256 | 257 | kneeWidthLabel = nullptr; 258 | sliderKneeWidth = nullptr; 259 | 260 | overallGainLabel = nullptr; 261 | sliderOverallGain = nullptr; 262 | } 263 | 264 | //============================================================================== 265 | void MultibandCompressorAudioProcessorEditor::paint (Graphics& g) 266 | { 267 | // (Our component is opaque, so we must completely fill the background with a solid colour) 268 | //g.fillAll (getLookAndFeel().findColour (ResizableWindow::backgroundColourId)); 269 | g.fillAll(Colours::black); 270 | g.setColour (Colours::white); 271 | g.setFont (15.0f); 272 | g.drawFittedText("Multiband Compressor", getWidth()/2 - 75, 0, 150, 20, Justification::centred, 1); 273 | } 274 | 275 | void MultibandCompressorAudioProcessorEditor::resized() 276 | { 277 | // This is generally where you'll want to lay out the positions of any 278 | // subcomponents in your editor.. 279 | 280 | // Cutoff Frequency Sliders 281 | (*sliderLowCutoff).setBounds (175, 31, 56, 64); 282 | (*sliderHighCutoff).setBounds (325, 31, 56, 64); 283 | 284 | // Compressor State Buttons 285 | (*buttonLowCompressorState).setBounds (110, 98, 50, 24); 286 | (*buttonMidCompressorState).setBounds (260, 98, 50, 24); 287 | (*buttonHighCompressorState).setBounds (410, 98, 50, 24); 288 | 289 | // Threshold Sliders 290 | (*sliderLowThreshold).setBounds (115, 128, 40, 112); 291 | (*sliderMidThreshold).setBounds (265, 128, 40, 112); 292 | (*sliderHighThreshold).setBounds (415, 128, 40, 112); 293 | 294 | // Labels 295 | (*cutoffLabel).setBounds(16, 60, 88, 24); 296 | (*thresholdLabel).setBounds (16, 160, 88, 24); 297 | (*ratioLabel).setBounds (16, 280, 48, 24); 298 | (*attackLabel).setBounds (16, 360, 64, 24); 299 | (*releaseLabel).setBounds (16, 440, 72, 24); 300 | (*gainLabel).setBounds (16, 520, 48, 24); 301 | 302 | // Low Band Knobs 303 | (*sliderLowRatio).setBounds (100, 260, 80, 64); 304 | (*sliderLowAttack).setBounds (100, 340, 80, 64); 305 | (*sliderLowRelease).setBounds (100, 420, 80, 64); 306 | (*sliderLowGain).setBounds (100, 500, 80, 64); 307 | 308 | // Mid Band Knobs 309 | (*sliderMidRatio).setBounds (250, 260, 80, 64); 310 | (*sliderMidAttack).setBounds (250, 340, 80, 64); 311 | (*sliderMidRelease).setBounds (250, 420, 80, 64); 312 | (*sliderMidGain).setBounds (250, 500, 80, 64); 313 | 314 | // High Band Knobs 315 | (*sliderHighRatio).setBounds (400, 260, 80, 64); 316 | (*sliderHighAttack).setBounds (400, 340, 80, 64); 317 | (*sliderHighRelease).setBounds (400, 420, 80, 64); 318 | (*sliderHighGain).setBounds (400, 500, 80, 64); 319 | 320 | // Knee Width 321 | (*kneeWidthLabel).setBounds (500, 360, 88, 24); 322 | (*sliderKneeWidth).setBounds (600, 340, 80, 64); 323 | 324 | // Overall Gain 325 | (*overallGainLabel).setBounds (500, 440, 88, 24); 326 | (*sliderOverallGain).setBounds (600, 420, 80, 64); 327 | 328 | } 329 | 330 | void MultibandCompressorAudioProcessorEditor::sliderValueChanged (Slider* sliderThatWasMoved) 331 | { 332 | // Slider Changed Values for Low Compressor 333 | if (sliderThatWasMoved == sliderLowThreshold) 334 | processor.setLowThreshold((*sliderLowThreshold).getValue()); 335 | else if (sliderThatWasMoved == sliderLowRatio) 336 | processor.setLowRatio((*sliderLowRatio).getValue()); 337 | else if (sliderThatWasMoved == sliderLowAttack) 338 | processor.setLowAttack((*sliderLowAttack).getValue()); 339 | else if (sliderThatWasMoved == sliderLowRelease) 340 | processor.setLowRelease((*sliderLowRelease).getValue()); 341 | else if (sliderThatWasMoved == sliderLowGain) 342 | processor.setLowGain((*sliderLowGain).getValue()); 343 | 344 | // Slider Changed Values for Mid Compressor 345 | else if (sliderThatWasMoved == sliderMidThreshold) 346 | processor.setMidThreshold((*sliderMidThreshold).getValue()); 347 | else if (sliderThatWasMoved == sliderMidRatio) 348 | processor.setMidRatio((*sliderMidRatio).getValue()); 349 | else if (sliderThatWasMoved == sliderMidAttack) 350 | processor.setMidAttack((*sliderMidAttack).getValue()); 351 | else if (sliderThatWasMoved == sliderMidRelease) 352 | processor.setMidRelease((*sliderMidRelease).getValue()); 353 | else if (sliderThatWasMoved == sliderMidGain) 354 | processor.setMidGain((*sliderMidGain).getValue()); 355 | 356 | // Slider Changed Values for High Compressor 357 | else if (sliderThatWasMoved == sliderHighThreshold) 358 | processor.setHighThreshold((*sliderHighThreshold).getValue()); 359 | else if (sliderThatWasMoved == sliderHighRatio) 360 | processor.setHighRatio((*sliderHighRatio).getValue()); 361 | else if (sliderThatWasMoved == sliderHighAttack) 362 | processor.setHighAttack((*sliderHighAttack).getValue()); 363 | else if (sliderThatWasMoved == sliderHighRelease) 364 | processor.setHighRelease((*sliderHighRelease).getValue()); 365 | else if (sliderThatWasMoved == sliderHighGain) 366 | processor.setHighGain((*sliderHighGain).getValue()); 367 | else if (sliderThatWasMoved == sliderKneeWidth) 368 | processor.setKneeWidth((*sliderKneeWidth).getValue()); 369 | else if (sliderThatWasMoved == sliderOverallGain) 370 | processor.setOverallGain((*sliderOverallGain).getValue()); 371 | 372 | // Slider Changed Values for Cut Off Frequencies 373 | else if (sliderThatWasMoved == sliderLowCutoff) 374 | processor.setLowCutoff((*sliderLowCutoff).getValue()); 375 | else if (sliderThatWasMoved == sliderHighCutoff) 376 | processor.setHighCutoff((*sliderHighCutoff).getValue()); 377 | } 378 | 379 | void MultibandCompressorAudioProcessorEditor::buttonClicked (Button* buttonThatWasClicked) 380 | { 381 | if (buttonThatWasClicked == buttonLowCompressorState) 382 | processor.setLowCompressorState((*buttonLowCompressorState).getToggleState()); 383 | else if (buttonThatWasClicked == buttonMidCompressorState) 384 | processor.setMidCompressorState((*buttonMidCompressorState).getToggleState()); 385 | else if (buttonThatWasClicked == buttonHighCompressorState) 386 | processor.setHighCompressorState((*buttonHighCompressorState).getToggleState()); 387 | } 388 | 389 | //[MiscUserCode] You can add your own definitions of your custom methods or any other code here... 390 | 391 | void MultibandCompressorAudioProcessorEditor::timerCallback() { 392 | 393 | (*sliderOverallGain).setValue(processor.getOverallGain()); 394 | (*sliderKneeWidth).setValue(processor.getKneeWidth()); 395 | 396 | (*sliderLowGain).setValue(processor.getLowGain()); 397 | (*sliderLowThreshold).setValue(processor.getLowThreshold()); 398 | (*sliderLowRatio).setValue(processor.getLowRatio()); 399 | (*sliderLowAttack).setValue(processor.getLowAttack()); 400 | (*sliderLowRelease).setValue(processor.getLowRelease()); 401 | 402 | (*sliderMidGain).setValue(processor.getMidGain()); 403 | (*sliderMidThreshold).setValue(processor.getMidThreshold()); 404 | (*sliderMidRatio).setValue(processor.getMidRatio()); 405 | (*sliderMidAttack).setValue(processor.getMidAttack()); 406 | (*sliderMidRelease).setValue(processor.getMidRelease()); 407 | 408 | (*sliderHighGain).setValue(processor.getHighGain()); 409 | (*sliderHighThreshold).setValue(processor.getHighThreshold()); 410 | (*sliderHighRatio).setValue(processor.getHighRatio()); 411 | (*sliderHighAttack).setValue(processor.getHighAttack()); 412 | (*sliderHighRelease).setValue(processor.getHighRelease()); 413 | 414 | (*buttonLowCompressorState).setToggleState(processor.getLowCompressorState(), dontSendNotification); 415 | (*buttonMidCompressorState).setToggleState(processor.getMidCompressorState(), dontSendNotification); 416 | (*buttonHighCompressorState).setToggleState(processor.getHighCompressorState(), dontSendNotification); 417 | 418 | (*sliderLowCutoff).setValue(processor.getLowCutoff()); 419 | (*sliderHighCutoff).setValue(processor.getHighCutoff()); 420 | 421 | } 422 | -------------------------------------------------------------------------------- /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 | 16 | //============================================================================== 17 | /** 18 | */ 19 | class MultibandCompressorAudioProcessorEditor : public AudioProcessorEditor, public Timer, public Slider::Listener, public Button::Listener 20 | { 21 | public: 22 | MultibandCompressorAudioProcessorEditor (MultibandCompressorAudioProcessor&); 23 | ~MultibandCompressorAudioProcessorEditor(); 24 | 25 | //============================================================================== 26 | void timerCallback() override; 27 | 28 | void paint (Graphics&) override; 29 | void resized() override; 30 | void sliderValueChanged(Slider* sliderMoved) override; 31 | void buttonClicked(Button* buttonClicked) override; 32 | 33 | private: 34 | // This reference is provided as a quick way for your editor to 35 | // access the processor object that created it. 36 | MultibandCompressorAudioProcessor& processor; 37 | 38 | //============================================================================== 39 | //Appended by Amogh Matt 40 | // Low Compressor Sliders 41 | ScopedPointer sliderLowThreshold; 42 | ScopedPointer sliderLowRatio; 43 | ScopedPointer sliderLowAttack; 44 | ScopedPointer sliderLowRelease; 45 | ScopedPointer sliderLowGain; 46 | // Mid Compressor Sliders 47 | ScopedPointer sliderMidThreshold; 48 | ScopedPointer sliderMidRatio; 49 | ScopedPointer sliderMidAttack; 50 | ScopedPointer sliderMidRelease; 51 | ScopedPointer sliderMidGain; 52 | // High Compressor Sliders 53 | ScopedPointer sliderHighThreshold; 54 | ScopedPointer sliderHighRatio; 55 | ScopedPointer sliderHighAttack; 56 | ScopedPointer sliderHighRelease; 57 | ScopedPointer sliderHighGain; 58 | 59 | ScopedPointer sliderKneeWidth; 60 | ScopedPointer sliderOverallGain; 61 | 62 | // Labels 63 | ScopedPointer