This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat <<'EOF' > "./manifest.ttl.in" | |
@prefix lv2: <http://lv2plug.in/ns/lv2core#> . | |
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
<@uri@> | |
a lv2:Plugin ; | |
lv2:binary <@name@@dllext@> ; | |
rdfs:seeAlso <@[email protected]> . | |
EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(CLSNAME).cpp:am-modulator.dsp | |
faust -i -a /usr/share/faust/lv2.cpp -cn $(CLSNAME) $< -o $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(CLSNAME).so:$(CLSNAME).cpp | |
$(CXX) -shared -O3 -std=c++11 -ffast-math -ftree-vectorize '-DDLLEXT=".so"' -fPIC '-DPLUGIN_URI="$(URI_PREFIX)/$(CLSNAME)"' -DFAUST_META=1 -DFAUST_MIDICC=1 -DFAUST_MTS=1 -DFAUST_UI=0 -DVOICE_CTRLS=1 $< -o $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class am_modulator : public dsp { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
am_modulator.cpp:47:27: fatal error: faust/dsp/dsp.h: No such file or directory | |
#include <faust/dsp/dsp.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p ./plugins/package/am_modulator/source |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
faust2lv2 am_modulator.dsp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set -x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
manifest.ttl:manifest.ttl.in | |
sed -e"s?@name@?$(CLSNAME)?g" -e"s?@uri@?$(URI_PREFIX)/$(CLSNAME)?g" -e"s?@dllext@?.so?g" > "manifest.ttl" < manifest.ttl.in | |
$(CLSNAME).ttl:$(CLSNAME).cpp | |
g++ -O3 -std=c++11 -ffast-math -ftree-vectorize '-DDLLEXT=".so"' '-DPLUGIN_URI="$(URI_PREFIX)/$(CLSNAME)"' -DFAUST_META=1 -DFAUST_MIDICC=1 -DFAUST_MTS=1 -DFAUST_UI=0 -DVOICE_CTRLS=1 $< -o $(CLSNAME) | |
./$(CLSNAME) > $(CLSNAME).ttl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd source | |
cat <<'EOF' > "./manifest.ttl.in" | |
@prefix lv2: <http://lv2plug.in/ns/lv2core#> . | |
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | |
<@uri@> | |
a lv2:Plugin ; | |
lv2:binary <@name@@dllext@> ; | |
rdfs:seeAlso <@[email protected]> . | |
EOF |