Skip to content

Commit

Permalink
version 0.0.2
Browse files Browse the repository at this point in the history
fix: audiounit manufacturer id changed
fix: 192kHz issue fixed
feat: optional VST2 build (-DWITH_VST2, requires SDK)
  • Loading branch information
njazz committed May 17, 2021
1 parent 5facc17 commit 3420563
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 12 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@

CMakeLists.txt.user
23 changes: 16 additions & 7 deletions modules/CloudSeedJUCE/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
cmake_minimum_required(VERSION 3.6)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.11)
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.9)
set(CMAKE_OSX_SYSROOT /)
set(CMAKE_SKIP_INSTALL_ALL_DEPENDENCY true)

set(CMAKE_XCODE_EFFECTIVE_PLATFORMS "-iphoneos;-iphonesimulator")
set_property(GLOBAL PROPERTY XCODE_EMIT_EFFECTIVE_PLATFORM_NAME ON)
set(CMAKE_OSX_ARCHITECTURES=x86_64;i386;arm64)

# set(CMAKE_XCODE_EFFECTIVE_PLATFORMS "-iphoneos;-iphonesimulator")
# set_property(GLOBAL PROPERTY XCODE_EMIT_EFFECTIVE_PLATFORM_NAME ON)

project(CloudSeedJUCE)

Expand Down Expand Up @@ -43,8 +45,15 @@ set(CS_HEADER_DIRS

add_subdirectory(../../third_party/JUCE "JUCE")

set(PLUGIN_FORMATS VST3 AU)

if (WITH_VST2)
juce_set_vst2_sdk_path(../../../vst2/)
set(PLUGIN_FORMATS ${PLUGIN_FORMATS} VST)
endif()

juce_add_plugin(CloudSeedJUCE
VERSION 2.0.0 # Set this if the plugin version is different to the project version
VERSION 0.0.2 # Set this if the plugin version is different to the project version
ICON_BIG ${CMAKE_CURRENT_SOURCE_DIR}/img/icon.png # ICON_* arguments specify a path to an image file to use as an icon for the Standalone
ICON_SMALL ${CMAKE_CURRENT_SOURCE_DIR}/img/icon.png
COMPANY_NAME "CloudSeed [JUCE]" # Specify the name of the plugin's author
Expand All @@ -54,9 +63,9 @@ juce_add_plugin(CloudSeedJUCE
IS_MIDI_EFFECT FALSE # Is this plugin a MIDI effect?
EDITOR_WANTS_KEYBOARD_FOCUS TRUE # Does the editor need keyboard focus?
COPY_PLUGIN_AFTER_BUILD TRUE # Should the plugin be installed to a default location after building?
PLUGIN_MANUFACTURER_CODE Andj # A four-character manufacturer id with at least one upper-case character
PLUGIN_MANUFACTURER_CODE Clsj # A four-character manufacturer id with at least one upper-case character
PLUGIN_CODE Clsj # A unique four-character plugin id with at least one upper-case character
FORMATS Standalone VST3 AU # The formats to build. Other valid formats are: AAX Unity VST AU AUv3 // AU VST3
FORMATS Standalone ${PLUGIN_FORMATS} # The formats to build. Other valid formats are: AAX Unity VST AU AUv3 // AU VST3
PRODUCT_NAME "CloudSeed [JUCE]") # The name of the final executable, which can differ from the target name

juce_generate_juce_header(CloudSeedJUCE)
Expand Down
2 changes: 1 addition & 1 deletion modules/CloudSeedJUCE/src/InfoString.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#pragma once

const auto infoString = "CloudSeed VST by Valdemar Eglingsson\nJUCE-based UI by Alex Nadzharov\nOriginal engine version: 1.0.1\nUI version: 0.0.1";
const auto infoString = "CloudSeed VST by Valdemar Eglingsson\nJUCE-based UI by Alex Nadzharov\nOriginal engine version: 1.0.1\nUI version: 0.0.2";
1 change: 1 addition & 0 deletions modules/CloudSeedJUCE/src/PluginProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -456,6 +456,7 @@ void CloudSeedProcessor::prepareToPlay(double sampleRate, int samplesPerBlock)
auto count = getTotalNumInputChannels();

controller->SetSamplerate(sampleRate);
controller->SetChannelCount(count);

///> @todo validate buffer size
/// there is currently a limitation in engine
Expand Down
4 changes: 3 additions & 1 deletion modules/CloudSeedNative/src/ModulatedAllpass.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,10 @@ namespace CloudSeed

// added:
for (int i=0;i<bufferSize;i++){
delayBuffer[i]=0;
output[i]=0;
}
for (int i=0;i<DelayBufferSamples;i++){
delayBuffer[i]=0;
}
}

Expand Down
6 changes: 3 additions & 3 deletions modules/CloudSeedNative/src/ReverbController.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ namespace CloudSeed

// added:
void SetChannelCount(const size_t&s){
channels.clear();
channels.resize(s);

for (auto& c: channelIns){
Expand All @@ -67,9 +68,8 @@ namespace CloudSeed
lineBuffers.resize(s);

auto idx = 0;
for (auto& c: channels)
{
c.reset(new ReverbChannel(bufferSize,samplerate,idx));
for (auto& c: channels){
c.reset(new ReverbChannel(bufferSize, samplerate, idx));
idx++;
}

Expand Down

0 comments on commit 3420563

Please sign in to comment.