Skip to content

Commit d3bbb10

Browse files
committed
Use Jamba 7.0.0
- removed support for vst2
1 parent fa28395 commit d3bbb10

File tree

7 files changed

+52
-101
lines changed

7 files changed

+52
-101
lines changed

CMakeLists.txt

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
cmake_minimum_required(VERSION 3.12)
22

3-
# build VST 2?
4-
option(JAMBA_ENABLE_VST2 "Use VST2" ON)
5-
63
# build Audio Unit?
74
option(JAMBA_ENABLE_AUDIO_UNIT "Enable Audio Unit" ON)
85

@@ -11,17 +8,17 @@ set(JAMBA_MACOS_DEPLOYMENT_TARGET "10.14" CACHE STRING "macOS deployment target"
118

129
# To use local jamba install, uncomment the following line (no download)
1310
set(JAMBA_ROOT_DIR "")
14-
#set(JAMBA_ROOT_DIR "${CMAKE_CURRENT_LIST_DIR}/../../pongasoft/jamba")
11+
set(JAMBA_ROOT_DIR "${CMAKE_CURRENT_LIST_DIR}/../../pongasoft/jamba")
1512

1613
# download jamba framework
1714
include(fetch_jamba.cmake)
1815

1916
# Determine proper architecture for the project
2017
include("${JAMBA_ROOT_DIR}/cmake/JambaSetArchitecture.cmake")
2118

22-
set(PLUGIN_MAJOR_VERSION 1)
23-
set(PLUGIN_MINOR_VERSION 2)
24-
set(PLUGIN_PATCH_VERSION 9)
19+
set(PLUGIN_MAJOR_VERSION 2)
20+
set(PLUGIN_MINOR_VERSION 0)
21+
set(PLUGIN_PATCH_VERSION 0)
2522
set(PLUGIN_VERSION "${PLUGIN_MAJOR_VERSION}.${PLUGIN_MINOR_VERSION}.${PLUGIN_PATCH_VERSION}")
2623

2724
project("jamba-sample-gain" VERSION "${PLUGIN_VERSION}")
@@ -41,13 +38,6 @@ set(CPP_SOURCES src/cpp)
4138
set(VERSION_DIR "${CMAKE_BINARY_DIR}/generated")
4239
configure_file("${CPP_SOURCES}/version.h.in" "${VERSION_DIR}/version.h")
4340

44-
# Source files for VST2
45-
if (JAMBA_ENABLE_VST2)
46-
set(vst2_sources
47-
${CPP_SOURCES}/JSGainVST2.cpp
48-
)
49-
endif ()
50-
5141
# Source files for VST3
5242
set(vst_sources
5343
${CPP_SOURCES}/JSGainCIDs.h
@@ -96,7 +86,7 @@ jamba_add_vst_plugin(
9686
RELEASE_FILENAME "JambaSampleGain" # filename for the plugin (JambaSampleGain.vst3)
9787
ARCHIVE_ARCHITECTURE "${JAMBA_ARCHIVE_ARCHITECTURE}" # handle proper archive name based on architecture
9888
TARGETS_PREFIX "jmb_" # prefix used by all targets directly linked to this plugin
99-
VST_SOURCES "${vst_sources}" "${vst2_sources}" # the source files that compose the plugin
89+
VST_SOURCES "${vst_sources}" # the source files that compose the plugin
10090
INCLUDE_DIRECTORIES "${VERSION_DIR}" # we add the version folder to the list of includes
10191
UIDESC "${RES_DIR}/JSGain.uidesc" # the main xml file for the GUI
10292
RESOURCES "${vst_resources}" # the resources for the GUI (png files)

README.md

Lines changed: 44 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ This is what the plugin looks like:
1212

1313
Concepts
1414
--------
15-
Jamba is a set of helpers (classes, concepts, build files, etc...) built on top of the VST SDK to provide a lightweight framework to build a VST2/3 plugin.
15+
Jamba is a set of helpers (classes, concepts, build files, etc...) built on top of the VST SDK to provide a lightweight framework to build a VST3 plugin.
1616

1717
### Parameters
1818
VST parameters are what the host DAW deal with (for example a knob is usually tied to a VST parameter). Both the GUI and the RT (Real Time) are "sharing" those parameters. As a result Jamba makes them front and center: you define them in one place and use them in the GUI and RT. Check the file [JSGainPlugin.h](src/cpp/JSGainPlugin.h)
@@ -99,91 +99,86 @@ The following steps describes how to build the plugin:
9999

100100
### macOS:
101101

102-
- For simplicity I am creating the build at the root of the source tree, but can obviously be *outside* the source tree entirely by running the script from anywhere
102+
- For simplicity, I am creating the build at the root of the source tree, but can obviously be *outside* the source tree entirely by running the script from anywhere
103103

104104
> ./configure.py -h
105-
usage: configure.py [-h] [-n] [-f] [-r] [--vst3 VST3_SDK_ROOT] [--vst2 VST2_SDK_ROOT]
106-
[-G GENERATOR] [-B BUILD_DIR] [-- <cmake_options>]
105+
usage: configure.py [-h] [-n] [-f] [-r] [--vst3 VST3_SDK_ROOT] [-G GENERATOR] [-B BUILD_DIR] [-- <cmake_options>]
107106
108107
positional arguments:
109-
cmake_options Any options for cmake
108+
cmake_options Any options for cmake
110109
111110
optional arguments:
112-
-h, --help show this help message and exit
113-
-n, --dry-run Dry run (prints what it is going to do)
114-
-f, --force Force a regeneration (delete and recreate build folder)
115-
--vst3 VST3_SDK_ROOT Path to the VST3 SDK (optional)
116-
--vst2 VST2_SDK_ROOT Path to the VST2 SDK (optional)
117-
-r, --release Use CMake Release build type (for single-config generators)
118-
-G GENERATOR, --generator GENERATOR
119-
CMake generator (optional)
120-
-B BUILD_DIR, --build-dir BUILD_DIR
121-
Build folder (defaults to ./build)
111+
-h, --help show this help message and exit
112+
-n, --dry-run Dry run (prints what it is going to do)
113+
-f, --force Force a regeneration (delete and recreate build
114+
folder)
115+
--vst3 VST3_SDK_ROOT Path to the VST3 SDK (optional)
116+
-r, --release Use CMake Release build type (for single-config
117+
generators)
118+
-G GENERATOR, --generator GENERATOR
119+
CMake generator (optional)
120+
-B BUILD_DIR, --build-dir BUILD_DIR
121+
Build folder (defaults to ./build)
122122
123123
Notes
124-
---vst3 defaults to /Users/Shared/Steinberg/VST_SDK.<JAMBA_VST3SDK_VERSION>
125-
---vst2 defaults to /Users/Shared/Steinberg/VST_SDK.<JAMBA_VST2SDK_VERSION>
124+
---vst3 defaults to /Users/Shared/Steinberg/VST_SDK.<JAMBA_VST3SDK_VERSION>
126125
127-
-G defaults to "Xcode" on macOS and "Visual Studio 16 2019" for Windows10
128-
run 'cmake --help' to get the list of generators supported
126+
-G defaults to "Xcode" on macOS and "Visual Studio 16 2019" for Windows10
127+
run 'cmake --help' to get the list of generators supported
129128
130-
For single-config generators, Debug is used by default and can be changed with -r for Release
131-
For multi-config generators, -r is ignored
129+
For single-config generators, Debug is used by default and can be changed with -r for Release
130+
For multi-config generators, -r is ignored
132131
133-
To provide extra options to CMake you do it this way
134-
python3 configure.py -- -Wdev
132+
To provide extra options to CMake you do it this way
133+
python3 configure.py -- -Wdev
135134
136135
Examples
137-
# Specify an explicit path to the VST3 sdk and uses default generator
138-
python3 configure.py ---vst3 /opt/local/VST_SDK.3.7.0
136+
# Specify an explicit path to the VST3 sdk and uses default generator
137+
python3 configure.py ---vst3 /opt/local/VST_SDK.3.7.0
139138
140-
# Use default paths and uses another generator
141-
python3 configure.py -G "CodeBlocks - Unix Makefiles"
139+
# Use default paths and uses another generator
140+
python3 configure.py -G "CodeBlocks - Unix Makefiles"
142141
143-
# Use defaults
144-
145-
> ./configure.py
146-
> cd build
142+
# Use defaults
143+
python3 configure.py
147144

148-
- In order to build, test, validate, etc... simply use the `jamba.sh` script like this:
145+
- In order to build, test, validate, etc... simply use the `jamba.sh` script like this:
149146

150-
> ./jamba.sh -h
151-
usage: jamba.sh [-hnvbdr] <command> [<command> ...] [-- [native-options]]
147+
> ./jamba.sh -h
148+
usage: jamba.sh [-hnvbdr] <command> [<command> ...] [-- [native-options]]
152149
153-
positional arguments:
150+
positional arguments:
154151
command See "Commands" section
155152
156-
optional arguments:
153+
optional arguments:
157154
-h, --help show this help message and exit
158155
-n, --dry-run Dry run (prints what it is going to do)
159156
-v, --verbose Verbose build
160157
-b, --banner Display a banner before every command
161158
-d, --debug use Debug build config
162159
-r, --release use Release build config
163160
164-
Commands
161+
Commands [Debug]
165162
---- Main commands ----
166163
clean : clean all builds
167164
build : build the plugin
168165
test : run the tests for the plugin
169166
validate : run the validator for the vst3 plugin
170167
edit : run the editor (full editing available in Debug config only)
171-
install : build and install all the plugins (vst2/vst3/audio unit)
172-
uninstall : delete the installed plugins (vst2/vst3/audio unit)
168+
info : run the module info tool (display json info about the plugin)
169+
inspect : run the inspector (inspects ALL installed plugins)
170+
install : build and install all the plugins (vst3/audio unit)
171+
uninstall : delete the installed plugins (vst3/audio unit)
173172
archive : create an archive containing the plugins
174173
175174
---- VST3 commands ----
176175
install-vst3 : install the vst3 plugin only
177176
uninstall-vst3 : uninstall the vst3 plugin only
178177
179-
---- VST2 commands ----
180-
install-vst2 : install the vst2 plugin only
181-
uninstall-vst2 : uninstall the vst2 plugin only
182-
183178
---- Audio Unit commands ----
184-
build-au : builds the Audio Unit wrapper
185-
install-au : install the vst2 plugin only
186-
uninstall-au : uninstall the vst2 plugin only
179+
build-au : builds the Audio Unit only
180+
install-au : install the Audio Unit only
181+
uninstall-au : uninstall the Audio Unit only
187182
188183
---- CMake target ----
189184
<command> : Any unknown <command> is treated as a cmake target
@@ -203,6 +198,9 @@ For windows, follow the same steps for macOS with the following changes:
203198
Release Notes
204199
-------------
205200

201+
### 2023-05-25 - `v2.0.0`
202+
* use latest version of Jamba (v7.0.0) / removed support for VST2
203+
206204
### 2022-06-02 - `v1.2.9`
207205
* use latest version of Jamba (v6.0.1) to fix gtest crash on Apple M1
208206

archive/README-macOS_64bits.txt

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,6 @@ Install instructions
33

44
macOS (64 bits)
55
---------------
6-
For VST2, copy JambaSampleGain.vst3 and RENAME into JambaSampleGain.vst under
7-
- $HOME/Library/Audio/Plug-ins/VST for a single user
8-
- or /Library/Audio/Plug-ins/VST for all users (may require admin access)
9-
- or any DAW specific path (64bits)
10-
MAKE SURE TO RENAME the file otherwise it will not work
11-
126
For VST3, copy JambaSampleGain.vst3 under
137
- $HOME/Library/Audio/Plug-ins/VST3 for a single user
148
- or /Library/Audio/Plug-ins/VST3 for all users (may require admin access)

archive/README-win_64bits.txt

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@ Install instructions
33

44
Windows (64 bit)
55
----------------
6-
For VST2, copy JambaSampleGain.vst3 and RENAME into JambaSampleGain.dll under
7-
- C:\ProgramFiles\VstPlugins
8-
- or any DAW specific path (64bits)
9-
MAKE SURE TO RENAME the file otherwise it will not work
10-
116
For VST3, copy JambaSampleGain.vst3 under
127
- C:\Program Files\Common Files\VST3 (may require admin access)
138
- or any DAW specific path (64bits)

configure.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,11 @@
2222
import platform
2323

2424
parser = argparse.ArgumentParser(allow_abbrev=False,
25-
usage='configure.py [-h] [-n] [-f] [-r] [--vst3 VST3_SDK_ROOT] [--vst2 VST2_SDK_ROOT] [-G GENERATOR] [-B BUILD_DIR] [-- <cmake_options>]',
25+
usage='configure.py [-h] [-n] [-f] [-r] [--vst3 VST3_SDK_ROOT] [-G GENERATOR] [-B BUILD_DIR] [-- <cmake_options>]',
2626
formatter_class=argparse.RawDescriptionHelpFormatter,
2727
epilog='''
2828
Notes
2929
---vst3 defaults to /Users/Shared/Steinberg/VST_SDK.<JAMBA_VST3SDK_VERSION>
30-
---vst2 defaults to /Users/Shared/Steinberg/VST_SDK.<JAMBA_VST2SDK_VERSION>
3130
3231
-G defaults to "Xcode" on macOS and "Visual Studio 16 2019" for Windows10
3332
run 'cmake --help' to get the list of generators supported
@@ -51,7 +50,6 @@
5150
parser.add_argument("-n", "--dry-run", help="Dry run (prints what it is going to do)", action="store_true", dest="dry_run")
5251
parser.add_argument("-f", "--force", help="Force a regeneration (delete and recreate build folder)", action="store_true")
5352
parser.add_argument("--vst3", help="Path to the VST3 SDK (optional)", dest="vst3_sdk_root")
54-
parser.add_argument("--vst2", help="Path to the VST2 SDK (optional)", dest="vst2_sdk_root")
5553
parser.add_argument("-r", "--release", help="Use CMake Release build type (for single-config generators)", action="store_true")
5654
parser.add_argument("-G", "--generator", help="CMake generator (optional)")
5755
parser.add_argument("-B", "--build-dir", help="Build folder (defaults to ./build)", dest="build_dir")
@@ -65,9 +63,6 @@
6563
# VST3_SDK_ROOT
6664
vst3_sdk_root = [f'-DVST3_SDK_ROOT:PATH={args.vst3_sdk_root}'] if args.vst3_sdk_root else []
6765

68-
# VST2_SDK_ROOT
69-
vst2_sdk_root = [f'-DVST2_SDK_ROOT:PATH={args.vst2_sdk_root}'] if args.vst2_sdk_root else []
70-
7166
# CMake generator
7267
cmake_generator = ['-G']
7368
if args.generator:
@@ -91,7 +86,7 @@
9186
# CMake command
9287
cmake_command = ['cmake',
9388
*cmake_build_dir,
94-
*vst3_sdk_root, *vst2_sdk_root,
89+
*vst3_sdk_root,
9590
*cmake_build_type,
9691
*cmake_generator,
9792
*cmake_options,

src/cpp/JSGainCIDs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace pongasoft::VST::JSGain {
1111

1212
//------------------------------------------------------------------------
13-
// These 2 IDs are used in JSGainVST2.cpp and JSGainVST3.cpp to create
13+
// These 2 IDs are used in JSGainVST3.cpp to create
1414
// the processor (RT) and controller (GUI). Note that those IDs must be
1515
// unique. You can use an online generator like https://www.guidgenerator.com
1616
// to generate them. Those were generated with java UUID.randomUUID().

src/cpp/JSGainVST2.cpp

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)