renamed bw_example_synth as bw_example_synth_simple

This commit is contained in:
Stefano D'Angelo 2022-11-30 10:14:12 +01:00
parent 7034a5d85a
commit 42d5682195
17 changed files with 118 additions and 118 deletions

View File

@ -1,43 +0,0 @@
/*
* Brickworks
*
* Copyright (C) 2022 Orastron Srl unipersonale
*
* Brickworks is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3 of the License.
*
* Brickworks is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
*
* File author: Stefano D'Angelo
*/
#ifndef _BW_EXAMPLE_SYNTH_H
#define _BW_EXAMPLE_SYNTH_H
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _bw_example_synth* bw_example_synth;
bw_example_synth bw_example_synth_new();
void bw_example_synth_free(bw_example_synth instance);
void bw_example_synth_set_sample_rate(bw_example_synth instance, float sample_rate);
void bw_example_synth_reset(bw_example_synth instance);
void bw_example_synth_process(bw_example_synth instance, const float** x, float** y, int n_samples);
void bw_example_synth_set_parameter(bw_example_synth instance, int index, float value);
float bw_example_synth_get_parameter(bw_example_synth instance, int index);
void bw_example_synth_note_on(bw_example_synth instance, char note, char velocity);
void bw_example_synth_note_off(bw_example_synth instance, char note);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -17,7 +17,7 @@
* File author: Stefano D'Angelo
*/
#include "bw_example_synth.h"
#include "bw_example_synth_simple.h"
#ifdef __WASM__
# include "walloc.h"
@ -50,7 +50,7 @@ enum {
#define BUFFER_SIZE 128
struct _bw_example_synth {
struct _bw_example_synth_simple {
// Sub-components
bw_phase_gen_coeffs phase_gen_coeffs;
bw_phase_gen_state phase_gen_state;
@ -75,8 +75,8 @@ struct _bw_example_synth {
float buf[BUFFER_SIZE];
};
bw_example_synth bw_example_synth_new() {
bw_example_synth instance = (bw_example_synth)malloc(sizeof(struct _bw_example_synth));
bw_example_synth_simple bw_example_synth_simple_new() {
bw_example_synth_simple instance = (bw_example_synth_simple)malloc(sizeof(struct _bw_example_synth_simple));
if (instance == NULL)
return NULL;
@ -95,11 +95,11 @@ bw_example_synth bw_example_synth_new() {
return instance;
}
void bw_example_synth_free(bw_example_synth instance) {
void bw_example_synth_simple_free(bw_example_synth_simple instance) {
free(instance);
}
void bw_example_synth_set_sample_rate(bw_example_synth instance, float sample_rate) {
void bw_example_synth_simple_set_sample_rate(bw_example_synth_simple instance, float sample_rate) {
bw_phase_gen_set_sample_rate(&instance->phase_gen_coeffs, sample_rate);
bw_osc_pulse_set_sample_rate(&instance->osc_pulse_coeffs, sample_rate);
bw_svf_set_sample_rate(&instance->svf_coeffs, sample_rate);
@ -108,7 +108,7 @@ void bw_example_synth_set_sample_rate(bw_example_synth instance, float sample_ra
bw_env_follow_set_sample_rate(&instance->env_follow_coeffs, sample_rate);
}
void bw_example_synth_reset(bw_example_synth instance) {
void bw_example_synth_simple_reset(bw_example_synth_simple instance) {
bw_phase_gen_reset_coeffs(&instance->phase_gen_coeffs);
bw_phase_gen_reset_state(&instance->phase_gen_coeffs, &instance->phase_gen_state, 0.f);
bw_osc_pulse_reset_coeffs(&instance->osc_pulse_coeffs);
@ -123,7 +123,7 @@ void bw_example_synth_reset(bw_example_synth instance) {
instance->note = -1;
}
void bw_example_synth_process(bw_example_synth instance, const float** x, float** y, int n_samples) {
void bw_example_synth_simple_process(bw_example_synth_simple instance, const float** x, float** y, int n_samples) {
char gate = instance->note >= 0 ? 1 : 0;
bw_env_gen_set_gate(&instance->env_gen_coeffs, gate);
if (instance->note >= 0)
@ -146,7 +146,7 @@ void bw_example_synth_process(bw_example_synth instance, const float** x, float*
}
}
void bw_example_synth_set_parameter(bw_example_synth instance, int index, float value) {
void bw_example_synth_simple_set_parameter(bw_example_synth_simple instance, int index, float value) {
if (instance->params[index] == value)
return;
instance->params[index] = value;
@ -181,15 +181,15 @@ void bw_example_synth_set_parameter(bw_example_synth instance, int index, float
}
}
float bw_example_synth_get_parameter(bw_example_synth instance, int index) {
float bw_example_synth_simple_get_parameter(bw_example_synth_simple instance, int index) {
return index < p_n ? instance->params[index] : bw_clipf(bw_env_follow_get_y_z1(&instance->env_follow_state), 0.f, 1.f);
}
void bw_example_synth_note_on(bw_example_synth instance, char note, char velocity) {
void bw_example_synth_simple_note_on(bw_example_synth_simple instance, char note, char velocity) {
instance->note = note;
}
void bw_example_synth_note_off(bw_example_synth instance, char note) {
void bw_example_synth_simple_note_off(bw_example_synth_simple instance, char note) {
if (note == instance->note)
instance->note = -1;
}

View File

@ -0,0 +1,43 @@
/*
* Brickworks
*
* Copyright (C) 2022 Orastron Srl unipersonale
*
* Brickworks is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, version 3 of the License.
*
* Brickworks is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
*
* File author: Stefano D'Angelo
*/
#ifndef _BW_EXAMPLE_SYNTH_SIMPLE_H
#define _BW_EXAMPLE_SYNTH_SIMPLE_H
#ifdef __cplusplus
extern "C" {
#endif
typedef struct _bw_example_synth_simple* bw_example_synth_simple;
bw_example_synth_simple bw_example_synth_simple_new();
void bw_example_synth_simple_free(bw_example_synth_simple instance);
void bw_example_synth_simple_set_sample_rate(bw_example_synth_simple instance, float sample_rate);
void bw_example_synth_simple_reset(bw_example_synth_simple instance);
void bw_example_synth_simple_process(bw_example_synth_simple instance, const float** x, float** y, int n_samples);
void bw_example_synth_simple_set_parameter(bw_example_synth_simple instance, int index, float value);
float bw_example_synth_simple_get_parameter(bw_example_synth_simple instance, int index);
void bw_example_synth_simple_note_on(bw_example_synth_simple instance, char note, char velocity);
void bw_example_synth_simple_note_off(bw_example_synth_simple instance, char note);
#ifdef __cplusplus
}
#endif
#endif

View File

@ -49,7 +49,7 @@ struct config_parameter {
#define COMPANY_WEBSITE "https://www.orastron.com/"
#define COMPANY_MAILTO "mailto:info@orastron.com"
#define PLUGIN_NAME "bw_example_synth"
#define PLUGIN_NAME "bw_example_synth_simple"
#define PLUGIN_VERSION "0.2.0"
#define NUM_BUSES_IN 0
@ -79,17 +79,17 @@ static struct config_parameter config_parameters[NUM_PARAMETERS] = {
// Internal API
#include "bw_example_synth.h"
#include "bw_example_synth_simple.h"
#define P_TYPE bw_example_synth
#define P_NEW bw_example_synth_new
#define P_FREE bw_example_synth_free
#define P_SET_SAMPLE_RATE bw_example_synth_set_sample_rate
#define P_RESET bw_example_synth_reset
#define P_PROCESS bw_example_synth_process
#define P_SET_PARAMETER bw_example_synth_set_parameter
#define P_GET_PARAMETER bw_example_synth_get_parameter
#define P_NOTE_ON bw_example_synth_note_on
#define P_NOTE_OFF bw_example_synth_note_off
#define P_TYPE bw_example_synth_simple
#define P_NEW bw_example_synth_simple_new
#define P_FREE bw_example_synth_simple_free
#define P_SET_SAMPLE_RATE bw_example_synth_simple_set_sample_rate
#define P_RESET bw_example_synth_simple_reset
#define P_PROCESS bw_example_synth_simple_process
#define P_SET_PARAMETER bw_example_synth_simple_set_parameter
#define P_GET_PARAMETER bw_example_synth_simple_get_parameter
#define P_NOTE_ON bw_example_synth_simple_note_on
#define P_NOTE_OFF bw_example_synth_simple_note_off
#endif

View File

@ -19,7 +19,7 @@ INSTALL_PREFIX=/usr/local
ROOT_DIR=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
SOURCES= \
${ROOT_DIR}/../src/bw_example_synth.c \
${ROOT_DIR}/../src/bw_example_synth_simple.c \
\
${ROOT_DIR}/../../common/vst3/entry.cpp \
${ROOT_DIR}/../../common/vst3/plugin.cpp \
@ -48,25 +48,25 @@ SOURCES= \
${VST3_SDK_DIR}/public.sdk/source/vst/vstbus.cpp \
${VST3_SDK_DIR}/public.sdk/source/vst/vsteditcontroller.cpp \
${VST3_SDK_DIR}/public.sdk/source/vst/vstparameters.cpp
SO_DIR=build/bw_example_synth.vst3/Contents/$(shell uname -m)-linux
SO_DIR=build/bw_example_synth_simple.vst3/Contents/$(shell uname -m)-linux
all: build/bw_example_synth.vst3/Contents/Resources ${SO_DIR}/bw_example_synth.so
all: build/bw_example_synth_simple.vst3/Contents/Resources ${SO_DIR}/bw_example_synth_simple.so
${SO_DIR}/bw_example_synth.so: ${SOURCES}
${SO_DIR}/bw_example_synth_simple.so: ${SOURCES}
mkdir -p ${SO_DIR}
${CXX} $^ ${CXXFLAGS} ${LDFLAGS} -o $@
build/bw_example_synth.vst3/Contents/Resources: build/bw_example_synth.vst3/Contents ${ROOT_DIR}/bw_example_synth.vst3/Contents/Resources
cp -R ${ROOT_DIR}/bw_example_synth.vst3/Contents/Resources build/bw_example_synth.vst3/Contents
build/bw_example_synth_simple.vst3/Contents/Resources: build/bw_example_synth_simple.vst3/Contents ${ROOT_DIR}/bw_example_synth_simple.vst3/Contents/Resources
cp -R ${ROOT_DIR}/bw_example_synth_simple.vst3/Contents/Resources build/bw_example_synth_simple.vst3/Contents
build/bw_example_synth.vst3/Contents:
build/bw_example_synth_simple.vst3/Contents:
mkdir -p $@
install-user: all
mkdir -p ${HOME}/.vst3
@echo mkdir -p -m 0755 `find build/bw_example_synth.vst3 -type d | sed s:^build/:${HOME}/.vst3/:g`
@mkdir -p -m 0755 `find build/bw_example_synth.vst3 -type d | sed s:^build/:${HOME}/.vst3/:g`
@for f in `find build/bw_example_synth.vst3 -type f | sed s:^build/::g`; do \
@echo mkdir -p -m 0755 `find build/bw_example_synth_simple.vst3 -type d | sed s:^build/:${HOME}/.vst3/:g`
@mkdir -p -m 0755 `find build/bw_example_synth_simple.vst3 -type d | sed s:^build/:${HOME}/.vst3/:g`
@for f in `find build/bw_example_synth_simple.vst3 -type f | sed s:^build/::g`; do \
d=`dirname $$f`; \
echo install -m `[ -x build/$$f ] && echo 0755 || echo 0644` build/$$f ${HOME}/.vst3/$$d; \
install -m `[ -x build/$$f ] && echo 0755 || echo 0644` build/$$f ${HOME}/.vst3/$$d; \
@ -74,13 +74,13 @@ install-user: all
install: all
mkdir -p ${INSTALL_PREFIX}/lib/vst3
@echo mkdir -p -m 0755 `find build/bw_example_synth.vst3 -type d | sed s:^build/:${INSTALL_PREFIX}/vst3/:g`
@mkdir -p -m 0755 `find build/bw_example_synth.vst3 -type d | sed s:^build/:${INSTALL_PREFIX}/vst3/:g`
@for f in `find build/bw_example_synth.vst3 -type f | sed s:^build/::g`; do \
@echo mkdir -p -m 0755 `find build/bw_example_synth_simple.vst3 -type d | sed s:^build/:${INSTALL_PREFIX}/vst3/:g`
@mkdir -p -m 0755 `find build/bw_example_synth_simple.vst3 -type d | sed s:^build/:${INSTALL_PREFIX}/vst3/:g`
@for f in `find build/bw_example_synth_simple.vst3 -type f | sed s:^build/::g`; do \
d=`dirname $$f`; \
echo install -m `[ -x build/$$f ] && echo 0755 || echo 0644` build/$$f ${INSTALL_PREFIX}/vst3/$$d; \
install -m `[ -x build/$$f ] && echo 0755 || echo 0644` build/$$f ${INSTALL_PREFIX}/vst3/$$d; \
done
clean:
rm -fr build/bw_example_synth.vst3
rm -fr build/bw_example_synth_simple.vst3

View File

@ -16,7 +16,7 @@ LDFLAGS= \
ROOT_DIR=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
SOURCES= \
${ROOT_DIR}/../src/bw_example_synth.c \
${ROOT_DIR}/../src/bw_example_synth_simple.c \
\
${ROOT_DIR}/../../common/vst3/entry.cpp \
${ROOT_DIR}/../../common/vst3/plugin.cpp \
@ -46,34 +46,34 @@ SOURCES= \
${VST3_SDK_DIR}/public.sdk/source/vst/vsteditcontroller.cpp \
${VST3_SDK_DIR}/public.sdk/source/vst/vstparameters.cpp
all: build/bw_example_synth.vst3/Contents/Info.plist build/bw_example_synth.vst3/Contents/PkgInfo build/bw_example_synth.vst3/Contents/MacOS/bw_example_synth
all: build/bw_example_synth_simple.vst3/Contents/Info.plist build/bw_example_synth_simple.vst3/Contents/PkgInfo build/bw_example_synth_simple.vst3/Contents/MacOS/bw_example_synth_simple
build/bw_example_synth.vst3/Contents/MacOS/bw_example_synth: build/tmp/bw_example_synth-x86_64 build/tmp/bw_example_synth-arm64
mkdir -p build/bw_example_synth.vst3/Contents/MacOS
build/bw_example_synth_simple.vst3/Contents/MacOS/bw_example_synth_simple: build/tmp/bw_example_synth_simple-x86_64 build/tmp/bw_example_synth_simple-arm64
mkdir -p build/bw_example_synth_simple.vst3/Contents/MacOS
lipo -create -output $@ $^
build/bw_example_synth.vst3/Contents/Info.plist: build/bw_example_synth.vst3/Contents ${ROOT_DIR}/bw_example_synth.vst3/Contents/Info.plist
cp ${ROOT_DIR}/bw_example_synth.vst3/Contents/Info.plist build/bw_example_synth.vst3/Contents/Info.plist
build/bw_example_synth_simple.vst3/Contents/Info.plist: build/bw_example_synth_simple.vst3/Contents ${ROOT_DIR}/bw_example_synth_simple.vst3/Contents/Info.plist
cp ${ROOT_DIR}/bw_example_synth_simple.vst3/Contents/Info.plist build/bw_example_synth_simple.vst3/Contents/Info.plist
build/bw_example_synth.vst3/Contents/PkgInfo: build/bw_example_synth.vst3/Contents ${ROOT_DIR}/bw_example_synth.vst3/Contents/PkgInfo
cp ${ROOT_DIR}/bw_example_synth.vst3/Contents/PkgInfo build/bw_example_synth.vst3/Contents/PkgInfo
build/bw_example_synth_simple.vst3/Contents/PkgInfo: build/bw_example_synth_simple.vst3/Contents ${ROOT_DIR}/bw_example_synth_simple.vst3/Contents/PkgInfo
cp ${ROOT_DIR}/bw_example_synth_simple.vst3/Contents/PkgInfo build/bw_example_synth_simple.vst3/Contents/PkgInfo
build/bw_example_synth.vst3/Contents:
build/bw_example_synth_simple.vst3/Contents:
mkdir -p $@
build/tmp/bw_example_synth-x86_64: ${SOURCES}
build/tmp/bw_example_synth_simple-x86_64: ${SOURCES}
mkdir -p build/tmp
${CXX} $^ ${CXXFLAGS} ${LDFLAGS} -arch x86_64 -o $@
build/tmp/bw_example_synth-arm64: ${SOURCES}
build/tmp/bw_example_synth_simple-arm64: ${SOURCES}
mkdir -p build/tmp
${CXX} $^ ${CXXFLAGS} ${LDFLAGS} -arch arm64 -o $@
install-user: all
mkdir -p ${HOME}/Library/Audio/Plug-Ins/VST3
@echo mkdir -p -m 0755 `find build/bw_example_synth.vst3 -type d | sed s:^build/:${HOME}/Library/Audio/Plug-Ins/VST3/:g`
@mkdir -p -m 0755 `find build/bw_example_synth.vst3 -type d | sed s:^build/:${HOME}/Library/Audio/Plug-Ins/VST3/:g`
@for f in `find build/bw_example_synth.vst3 -type f | sed s:^build/::g`; do \
@echo mkdir -p -m 0755 `find build/bw_example_synth_simple.vst3 -type d | sed s:^build/:${HOME}/Library/Audio/Plug-Ins/VST3/:g`
@mkdir -p -m 0755 `find build/bw_example_synth_simple.vst3 -type d | sed s:^build/:${HOME}/Library/Audio/Plug-Ins/VST3/:g`
@for f in `find build/bw_example_synth_simple.vst3 -type f | sed s:^build/::g`; do \
d=`dirname $$f`; \
echo install -m `[ -x build/$$f ] && echo 0755 || echo 0644` build/$$f ${HOME}/Library/Audio/Plug-Ins/VST3/$$d; \
install -m `[ -x build/$$f ] && echo 0755 || echo 0644` build/$$f ${HOME}/Library/Audio/Plug-Ins/VST3/$$d; \
@ -81,13 +81,13 @@ install-user: all
install: all
mkdir -p /Library/Audio/Plug-Ins/VST3
@echo mkdir -p -m 0755 `find build/bw_example_synth.vst3 -type d | sed s:^build/:/Library/Audio/Plug-Ins/VST3/:g`
@mkdir -p -m 0755 `find build/bw_example_synth.vst3 -type d | sed s:^build/:/Library/Audio/Plug-Ins/VST3/:g`
@for f in `find build/bw_example_synth.vst3 -type f | sed s:^build/::g`; do \
@echo mkdir -p -m 0755 `find build/bw_example_synth_simple.vst3 -type d | sed s:^build/:/Library/Audio/Plug-Ins/VST3/:g`
@mkdir -p -m 0755 `find build/bw_example_synth_simple.vst3 -type d | sed s:^build/:/Library/Audio/Plug-Ins/VST3/:g`
@for f in `find build/bw_example_synth_simple.vst3 -type f | sed s:^build/::g`; do \
d=`dirname $$f`; \
echo install -m `[ -x build/$$f ] && echo 0755 || echo 0644` build/$$f /Library/Audio/Plug-Ins/VST3/$$d; \
install -m `[ -x build/$$f ] && echo 0755 || echo 0644` build/$$f /Library/Audio/Plug-Ins/VST3/$$d; \
done
clean:
rm -fr build/bw_example_synth.vst3 build/tmp
rm -fr build/bw_example_synth_simple.vst3 build/tmp

View File

@ -24,7 +24,7 @@ ARCH=x86_64
ROOT_DIR=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
SOURCES= \
${ROOT_DIR}/../src/bw_example_synth.c \
${ROOT_DIR}/../src/bw_example_synth_simple.c \
\
${ROOT_DIR}/../../common/vst3/entry.cpp \
${ROOT_DIR}/../../common/vst3/plugin.cpp \
@ -53,39 +53,39 @@ SOURCES= \
${VST3_SDK_DIR}/public.sdk/source/vst/vstbus.cpp \
${VST3_SDK_DIR}/public.sdk/source/vst/vsteditcontroller.cpp \
${VST3_SDK_DIR}/public.sdk/source/vst/vstparameters.cpp
DLL_DIR=build/bw_example_synth.vst3/Contents/${ARCH}-win
DLL_DIR=build/bw_example_synth_simple.vst3/Contents/${ARCH}-win
USER_PREFIX=$(shell echo '${LOCALAPPDATA}' | sed 's:\\:/:g')
all: build/bw_example_synth.vst3/desktop.ini build/bw_example_synth.vst3/Plugin.ico build/bw_example_synth.vst3/Contents/Resources ${DLL_DIR}/bw_example_synth.vst3
all: build/bw_example_synth_simple.vst3/desktop.ini build/bw_example_synth_simple.vst3/Plugin.ico build/bw_example_synth_simple.vst3/Contents/Resources ${DLL_DIR}/bw_example_synth_simple.vst3
${DLL_DIR}/bw_example_synth.vst3: ${SOURCES}
${DLL_DIR}/bw_example_synth_simple.vst3: ${SOURCES}
mkdir -p ${DLL_DIR}
${CXX} $^ ${CXXFLAGS} ${LDFLAGS} -o $@
build/bw_example_synth.vst3/desktop.ini: build/bw_example_synth.vst3 ${ROOT_DIR}/bw_example_synth.vst3/desktop.ini
cp ${ROOT_DIR}/bw_example_synth.vst3/desktop.ini build/bw_example_synth.vst3
build/bw_example_synth_simple.vst3/desktop.ini: build/bw_example_synth_simple.vst3 ${ROOT_DIR}/bw_example_synth_simple.vst3/desktop.ini
cp ${ROOT_DIR}/bw_example_synth_simple.vst3/desktop.ini build/bw_example_synth_simple.vst3
build/bw_example_synth.vst3/Plugin.ico: build/bw_example_synth.vst3 ${ROOT_DIR}/bw_example_synth.vst3/Plugin.ico
cp ${ROOT_DIR}/bw_example_synth.vst3/Plugin.ico build/bw_example_synth.vst3
build/bw_example_synth_simple.vst3/Plugin.ico: build/bw_example_synth_simple.vst3 ${ROOT_DIR}/bw_example_synth_simple.vst3/Plugin.ico
cp ${ROOT_DIR}/bw_example_synth_simple.vst3/Plugin.ico build/bw_example_synth_simple.vst3
build/bw_example_synth.vst3/Contents/Resources: build/bw_example_synth.vst3/Contents ${ROOT_DIR}/bw_example_synth.vst3/Contents/Resources
cp -R ${ROOT_DIR}/bw_example_synth.vst3/Contents/Resources build/bw_example_synth.vst3/Contents
build/bw_example_synth_simple.vst3/Contents/Resources: build/bw_example_synth_simple.vst3/Contents ${ROOT_DIR}/bw_example_synth_simple.vst3/Contents/Resources
cp -R ${ROOT_DIR}/bw_example_synth_simple.vst3/Contents/Resources build/bw_example_synth_simple.vst3/Contents
build/bw_example_synth.vst3/Contents: build/bw_example_synth.vst3
build/bw_example_synth_simple.vst3/Contents: build/bw_example_synth_simple.vst3
mkdir -p $@
build/bw_example_synth.vst3:
build/bw_example_synth_simple.vst3:
mkdir -p $@
install-user: all
mkdir -p ${USER_PREFIX}/Programs/Common/VST3
@echo mkdir -p -m 0755 `find build/bw_example_synth.vst3 -type d | sed s?^build/?${USER_PREFIX}/Programs/Common/VST3/?g`
@mkdir -p -m 0755 `find build/bw_example_synth.vst3 -type d | sed s?^build/?${USER_PREFIX}/Programs/Common/VST3/?g`
@for f in `find build/bw_example_synth.vst3 -type f | sed s?^build/??g`; do \
@echo mkdir -p -m 0755 `find build/bw_example_synth_simple.vst3 -type d | sed s?^build/?${USER_PREFIX}/Programs/Common/VST3/?g`
@mkdir -p -m 0755 `find build/bw_example_synth_simple.vst3 -type d | sed s?^build/?${USER_PREFIX}/Programs/Common/VST3/?g`
@for f in `find build/bw_example_synth_simple.vst3 -type f | sed s?^build/??g`; do \
d=`dirname $$f`; \
echo install -m `[ -x build/$$f ] && echo 0755 || echo 0644` build/$$f ${USER_PREFIX}/Programs/Common/VST3/$$d; \
install -m `[ -x build/$$f ] && echo 0755 || echo 0644` build/$$f ${USER_PREFIX}/Programs/Common/VST3/$$d; \
done
clean:
rm -fr build/bw_example_synth.vst3
rm -fr build/bw_example_synth_simple.vst3

View File

@ -3,10 +3,10 @@
<plist version="1.0">
<dict>
<key>CFBundleName</key>
<string>bw_example_synth</string>
<string>bw_example_synth_simple</string>
<key>CFBundleExecutable</key>
<string>bw_example_synth</string>
<string>bw_example_synth_simple</string>
</dict>
</plist>

View File

Before

Width:  |  Height:  |  Size: 33 KiB

After

Width:  |  Height:  |  Size: 33 KiB

View File

@ -28,7 +28,7 @@ LDFLAGS= \
ROOT_DIR=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
SOURCES= \
${ROOT_DIR}/../src/bw_example_synth.c \
${ROOT_DIR}/../src/bw_example_synth_simple.c \
${ROOT_DIR}/../../common/web/walloc.c \
${ROOT_DIR}/../../common/web/wrapper.c