Skip to content

Commit

Permalink
Replace reverb with Airwindows MatrixVerb
Browse files Browse the repository at this point in the history
  • Loading branch information
narenratan committed Mar 18, 2024
1 parent 83613cf commit 95880c2
Show file tree
Hide file tree
Showing 8 changed files with 814 additions and 509 deletions.
59 changes: 12 additions & 47 deletions b_reverb/Makefile
Original file line number Diff line number Diff line change
@@ -1,49 +1,14 @@
MODNAME=Organ Reverb
include ../common.mak
include ../git2lv2.mk

LOADLIBES = -lm
override CFLAGS+= -fvisibility=hidden

targets=reverb.o

LV2NAME=b_reverb

ifeq ($(LV2AVAIL), yes)
targets+=lv2
endif

all: $(targets)

lv2: manifest.ttl $(LV2NAME)$(LIB_EXT) $(LV2NAME).ttl

manifest.ttl:
sed "s/@LV2NAME@/$(LV2NAME)/;s/@LIB_EXT@/$(LIB_EXT)/" manifest.ttl.in > manifest.ttl

$(LV2NAME).ttl: $(LV2NAME).ttl.in Makefile
sed "s/@VERSION@/lv2:microVersion $(LV2MIC) ;lv2:minorVersion $(LV2MIN) ;/g;s/@MODBRAND@/$(MODBRAND)/;s/@MODLABEL@/$(MODLABEL)/" \
$(LV2NAME).ttl.in > $(LV2NAME).ttl

$(LV2NAME)$(LIB_EXT): lv2.c reverb.o
$(CC) $(CPPFLAGS) $(CFLAGS) \
-o $(LV2NAME)$(LIB_EXT) lv2.c reverb.o \
-shared $(LV2LDFLAGS) $(LDFLAGS)

%.o: %c %.h ../src/cfgParser.h

install: $(targets)
ifeq ($(LV2AVAIL)$(INSTALL_EXTRA_LV2), yesyes)
install -d $(DESTDIR)$(lv2dir)/$(LV2NAME)
install -m755 $(LV2NAME)$(LIB_EXT) $(DESTDIR)$(lv2dir)/$(LV2NAME)
install -m644 manifest.ttl $(LV2NAME).ttl $(DESTDIR)$(lv2dir)/$(LV2NAME)
endif

uninstall:
rm -f $(DESTDIR)$(lv2dir)/$(LV2NAME)/*.ttl
rm -f $(DESTDIR)$(lv2dir)/$(LV2NAME)/$(LV2NAME)$(LIB_EXT)
-rmdir $(DESTDIR)$(lv2dir)/$(LV2NAME)
tests: reverb.h reverb.cpp
clang++ \
-g \
-Wall \
-fsanitize=address,undefined \
-o tests \
-DTESTS \
-I../libs/doctest/doctest \
reverb.cpp \

./tests

clean:
rm -f *.o manifest.ttl $(LV2NAME)$(LIB_EXT) $(LV2NAME).ttl

.PHONY: clean all install uninstall lv2
rm -f tests
59 changes: 0 additions & 59 deletions b_reverb/b_reverb.ttl.in

This file was deleted.

159 changes: 0 additions & 159 deletions b_reverb/lv2.cpp

This file was deleted.

7 changes: 0 additions & 7 deletions b_reverb/manifest.ttl.in

This file was deleted.

Loading

0 comments on commit 95880c2

Please sign in to comment.