-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 6f97877
Showing
11 changed files
with
1,197 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
.gitignore | ||
|
||
ifndef CONFIG_CC | ||
error No config specified. Please try e.g. `tup variant config/debug.config`, then run tup again. | ||
endif | ||
|
||
LIBS = lv2 fftw3f | ||
CFLAGS = @(CFLAGS) `@(PKGCONFIG) --cflags $(LIBS)` | ||
LFLAGS = @(LFLAGS) `@(PKGCONFIG) --libs $(LIBS)` | ||
|
||
!cc = |> @(CC) -c %f -o %o $(CFLAGS) |> %B.o | ||
!so = |> @(CC) -shared %f -o %o $(CFLAGS) $(LFLAGS) |> | ||
|
||
: foreach src/*.c |> !cc |> obj/%B.o {objs} | ||
: {objs} |> !so |> intersect.lv2/intersect.@(EXT) | ||
|
||
: foreach metadata/*.ttl |> cp %f %o |> intersect.lv2/%b | ||
: foreach metadata/*.in |> tup varsed %f %o |> intersect.lv2/%B |
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CONFIG_CC=clang | ||
CONFIG_PKGCONFIG=pkg-config | ||
CONFIG_CFLAGS=-g -fPIC | ||
CONFIG_LFLAGS= | ||
CONFIG_EXT=so |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CONFIG_CC=clang | ||
CONFIG_PKGCONFIG=pkg-config | ||
CONFIG_CFLAGS=-O3 -flto -fPIC | ||
CONFIG_LFLAGS=-s | ||
CONFIG_EXT=so |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CONFIG_CC=i686-w64-mingw32-gcc | ||
CONFIG_PKGCONFIG=i686-w64-mingw32-pkg-config --static | ||
CONFIG_CFLAGS=-O3 -flto | ||
CONFIG_LFLAGS=-static -s | ||
CONFIG_EXT=dll |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
CONFIG_CC=x86_64-w64-mingw32-gcc | ||
CONFIG_PKGCONFIG=x86_64-w64-mingw32-pkg-config --static | ||
CONFIG_CFLAGS=-O3 -flto | ||
CONFIG_LFLAGS=-static -s | ||
CONFIG_EXT=dll |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/usr/bin/env bash | ||
lv2proc "$@" 'https://sami.boukortt.com/plugins/intersect#Upmix' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
@prefix doap: <http://usefulinc.com/ns/doap#> . | ||
@prefix foaf: <http://xmlns.com/foaf/0.1/> . | ||
@prefix lv2: <http://lv2plug.in/ns/lv2core#> . | ||
@prefix pg: <http://lv2plug.in/ns/ext/port-groups#> . | ||
@prefix pprops: <http://lv2plug.in/ns/ext/port-props#> . | ||
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
@prefix units: <http://lv2plug.in/ns/extensions/units#> . | ||
|
||
<https://sami.boukortt.com/me> | ||
a foaf:Person ; | ||
foaf:name "Sami Boukortt" ; | ||
foaf:mbox <mailto:[email protected]> . | ||
|
||
<https://sami.boukortt.com/plugins/intersect> | ||
a lv2:Project ; | ||
doap:license <https://opensource.org/licenses/GPL-3.0> ; | ||
doap:name "Intersect" ; | ||
doap:programming-language "C" ; | ||
doap:developer <https://sami.boukortt.com/me> ; | ||
doap:maintainer <https://sami.boukortt.com/me> . | ||
|
||
_:fft_window_size | ||
a lv2:InputPort, lv2:ControlPort ; | ||
lv2:index 0 ; | ||
lv2:symbol "fft_window_size" ; | ||
lv2:name "FFT window size" ; | ||
lv2:portProperty lv2:integer, pprops:logarithmic, pprops:notAutomatic ; | ||
units:unit units:frame ; | ||
lv2:minimum 1 ; | ||
lv2:maximum 65536 ; | ||
lv2:default 16384 . | ||
|
||
_:overlap_factor | ||
a lv2:InputPort, lv2:ControlPort ; | ||
lv2:index 1 ; | ||
lv2:symbol "overlap_factor" ; | ||
lv2:name "Overlap factor" ; | ||
lv2:portProperty lv2:integer, pprops:logarithmic, pprops:notAutomatic ; | ||
lv2:minimum 1 ; | ||
lv2:maximum 65536 ; | ||
lv2:default 512 . | ||
|
||
_:input | ||
a pg:InputGroup ; | ||
lv2:symbol "input" . | ||
|
||
_:input_left | ||
a lv2:InputPort, lv2:AudioPort ; | ||
lv2:index 2 ; | ||
lv2:symbol "input_left" ; | ||
lv2:name "Input (left channel)" ; | ||
pg:group _:input ; | ||
lv2:designation pg:left . | ||
|
||
_:input_right | ||
a lv2:InputPort, lv2:AudioPort ; | ||
lv2:index 3 ; | ||
lv2:symbol "input_right" ; | ||
lv2:name "Input (right channel)" ; | ||
pg:group _:input ; | ||
lv2:designation pg:right . | ||
|
||
_:latency | ||
a lv2:OutputPort, lv2:ControlPort ; | ||
lv2:index 4 ; | ||
lv2:symbol "latency" ; | ||
lv2:name "Latency" ; | ||
lv2:portProperty lv2:reportsLatency . | ||
|
||
_:output | ||
a pg:OutputGroup ; | ||
lv2:symbol "output" ; | ||
pg:source _:input . | ||
|
||
_:output_left | ||
a lv2:OutputPort, lv2:AudioPort ; | ||
lv2:index 5 ; | ||
lv2:symbol "output_left" ; | ||
lv2:name "Output (left)" ; | ||
pg:group _:output ; | ||
lv2:designation pg:left . | ||
|
||
_:output_right | ||
a lv2:OutputPort, lv2:AudioPort ; | ||
lv2:index 6 ; | ||
lv2:symbol "output_right" ; | ||
lv2:name "Output (right)" ; | ||
pg:group _:output ; | ||
lv2:designation pg:right . | ||
|
||
<https://sami.boukortt.com/plugins/intersect#Intersect> | ||
a lv2:Plugin, lv2:SpatialPlugin ; | ||
lv2:project <https://sami.boukortt.com/plugins/intersect> ; | ||
doap:name "Channel Intersection" ; | ||
lv2:port | ||
_:fft_window_size, _:overlap_factor, | ||
_:input_left, _:input_right, | ||
_:latency, | ||
[ | ||
a lv2:OutputPort, lv2:AudioPort ; | ||
lv2:index 5 ; | ||
lv2:symbol "output" ; | ||
lv2:name "Output" ; | ||
pg:group _:output ; | ||
lv2:designation pg:center ; | ||
] . | ||
|
||
<https://sami.boukortt.com/plugins/intersect#SymmetricDifference> | ||
a lv2:Plugin, lv2:SpatialPlugin ; | ||
lv2:project <https://sami.boukortt.com/plugins/intersect> ; | ||
doap:name "Channel Symmetric Difference" ; | ||
lv2:port | ||
_:fft_window_size, _:overlap_factor, | ||
_:input_left, _:input_right, | ||
_:latency, | ||
_:output_left, _:output_right . | ||
|
||
<https://sami.boukortt.com/plugins/intersect#Upmix> | ||
a lv2:Plugin, lv2:SpatialPlugin ; | ||
lv2:project <https://sami.boukortt.com/plugins/intersect> ; | ||
doap:name "2.0 -> 3.0 Upmix" ; | ||
lv2:port | ||
_:fft_window_size, _:overlap_factor, | ||
_:input_left, _:input_right, | ||
_:latency, | ||
_:output_left, _:output_right, [ | ||
a lv2:OutputPort, lv2:AudioPort ; | ||
lv2:index 7 ; | ||
lv2:symbol "output_center" ; | ||
lv2:name "Output (center)" ; | ||
pg:group _:output ; | ||
lv2:designation pg:center ; | ||
] . |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@prefix lv2: <http://lv2plug.in/ns/lv2core#> . | ||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . | ||
|
||
<https://sami.boukortt.com/plugins/intersect#Intersect> | ||
a lv2:Plugin ; | ||
lv2:binary <intersect.@EXT@> ; | ||
rdfs:seeAlso <intersect.ttl> . | ||
|
||
<https://sami.boukortt.com/plugins/intersect#SymmetricDifference> | ||
a lv2:Plugin ; | ||
lv2:binary <intersect.@EXT@> ; | ||
rdfs:seeAlso <intersect.ttl> . | ||
|
||
<https://sami.boukortt.com/plugins/intersect#Upmix> | ||
a lv2:Plugin ; | ||
lv2:binary <intersect.@EXT@> ; | ||
rdfs:seeAlso <intersect.ttl> . |
Oops, something went wrong.