Skip to content

Commit

Permalink
First release
Browse files Browse the repository at this point in the history
  • Loading branch information
sboukortt committed Feb 4, 2017
0 parents commit 6f97877
Show file tree
Hide file tree
Showing 11 changed files with 1,197 additions and 0 deletions.
674 changes: 674 additions & 0 deletions GPLv3.txt

Large diffs are not rendered by default.

18 changes: 18 additions & 0 deletions Tupfile
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 added Tupfile.ini
Empty file.
5 changes: 5 additions & 0 deletions config/debug.config
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
5 changes: 5 additions & 0 deletions config/release.config
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
5 changes: 5 additions & 0 deletions config/win32.config
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
5 changes: 5 additions & 0 deletions config/win64.config
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
2 changes: 2 additions & 0 deletions intersect
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'
134 changes: 134 additions & 0 deletions metadata/intersect.ttl
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 ;
] .
17 changes: 17 additions & 0 deletions metadata/manifest.ttl.in
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> .
Loading

0 comments on commit 6f97877

Please sign in to comment.