Skip to content

Commit

Permalink
This seems to be how lv2proc detects the latency port…
Browse files Browse the repository at this point in the history
  • Loading branch information
sboukortt committed Jul 12, 2017
1 parent da8590e commit 3cdd94b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion metadata/intersect.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ _:input_right
lv2:designation pg:right .

_:latency
a lv2:OutputPort, lv2:ControlPort ;
a lv2:OutputPort, lv2:ControlPort, lv2:reportsLatency ;
lv2:designation lv2:latency ;
lv2:index 4 ;
lv2:symbol "latency" ;
Expand Down
4 changes: 2 additions & 2 deletions tests/Tupfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ OVERLAP_FACTOR=128
: |> sox -n %o synth 3 sin 10000-100 gain -6 |> right.flac
: |> sox -n %o synth 3 sin 2000 gain -6 |> center.flac

: left.flac right.flac center.flac |> sox --combine merge %f %o remix 1,3 2,3 pad 0 $(FFT_SIZE)s |> input.flac
: left.flac right.flac center.flac |> sox --combine merge %f %o remix 1,3 2,3 |> input.flac
: left.flac right.flac center.flac |> sox --combine merge %f %o |> expected.flac

: |> ln -s ../../intersect.lv2 %o |> lv2-path/intersect.lv2
: input.flac | ../<lv2> lv2-path/intersect.lv2 |> bash -c 'LV2_PATH="$PWD/lv2-path" ../intersect -i %f -o %o -c fft_window_size:$(FFT_SIZE) -c overlap_factor:$(OVERLAP_FACTOR)' |> actual.flac

: actual.flac |> sox %f %o trim $(FFT_SIZE)s gain 6 |> adjusted.flac
: actual.flac |> sox %f %o gain 6 |> adjusted.flac
: adjusted.flac expected.flac |> sox --combine merge %f %o remix 1,4i 2,5i 3,6i |> difference.flac

: difference.flac |> sox %f -n stats > %o 2>&1 |> difference-stats.txt
Expand Down

0 comments on commit 3cdd94b

Please sign in to comment.