Page 2 of 2
Re: Carla and Bass Redirection LV2 Plugin: LV2 Bundle
Posted: Sat Aug 31, 2013 4:27 pm
by GraysonPeddie
Okay, so I've taken the time to write the code:
Code: Select all
declare name "BassRedirection";
declare version "0.1";
declare license "GPL";
import("filter.lib");
crossoverfreq = hslider("Crossover [unit:Hz]", 80, 40, 200, 20);
process = par(in,6, _) <: (
highpass(3,crossoverfreq),
highpass(3,crossoverfreq),
highpass(3,crossoverfreq),
highpass(3,crossoverfreq),
highpass(3,crossoverfreq),
!),
((_,_,_,_,_,_) :> /(6) : lowpass(3,crossoverfreq));
...compiled it as 64-Bit LV2, and when I execute carla-discovery-native, I get this:
Code: Select all
lv2_rdf_new("http://faust-lv2.googlecode.com/BassRedirection") - got unknown unit type '1genid2'
And now I am stuck.
(Forum being so slow lately...?)
Re: Carla and Bass Redirection LV2 Plugin: LV2 Bundle
Posted: Sat Aug 31, 2013 5:15 pm
by GraysonPeddie
BassRedirection.ttl:
Code: Select all
@prefix doap: <http://usefulinc.com/ns/doap#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix lv2: <http://lv2plug.in/ns/lv2core#> .
@prefix epp: <http://lv2plug.in/ns/ext/port-props#> .
@prefix ev: <http://lv2plug.in/ns/ext/event#> .
@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#> .
<http://faust-lv2.googlecode.com/BassRedirection>
a lv2:Plugin ;
doap:name "BassRedirection" ;
lv2:binary <BassRedirection.so> ;
lv2:optionalFeature epp:supportsStrictBounds ;
lv2:optionalFeature lv2:hardRtCapable ;
doap:license "GPL" ;
lv2:port [
a lv2:ControlPort ;
a lv2:InputPort ;
lv2:index 0 ;
lv2:symbol "Crossover" ;
lv2:name "Crossover" ;
lv2:default 80 ;
lv2:minimum 40 ;
lv2:maximum 200 ;
units:unit [
a units:Unit ;
units:name "Hz" ;
units:symbol "Hz" ;
units:render "%f Hz"
] ;
] , [
a lv2:AudioPort ;
a lv2:InputPort ;
lv2:index 1 ;
lv2:symbol "in0" ;
lv2:name "in0" ;
] , [
a lv2:AudioPort ;
a lv2:InputPort ;
lv2:index 2 ;
lv2:symbol "in1" ;
lv2:name "in1" ;
] , [
a lv2:AudioPort ;
a lv2:InputPort ;
lv2:index 3 ;
lv2:symbol "in2" ;
lv2:name "in2" ;
] , [
a lv2:AudioPort ;
a lv2:InputPort ;
lv2:index 4 ;
lv2:symbol "in3" ;
lv2:name "in3" ;
] , [
a lv2:AudioPort ;
a lv2:InputPort ;
lv2:index 5 ;
lv2:symbol "in4" ;
lv2:name "in4" ;
] , [
a lv2:AudioPort ;
a lv2:InputPort ;
lv2:index 6 ;
lv2:symbol "in5" ;
lv2:name "in5" ;
] , [
a lv2:AudioPort ;
a lv2:OutputPort ;
lv2:index 7 ;
lv2:symbol "out0" ;
lv2:name "out0" ;
] , [
a lv2:AudioPort ;
a lv2:OutputPort ;
lv2:index 8 ;
lv2:symbol "out1" ;
lv2:name "out1" ;
] , [
a lv2:AudioPort ;
a lv2:OutputPort ;
lv2:index 9 ;
lv2:symbol "out2" ;
lv2:name "out2" ;
] , [
a lv2:AudioPort ;
a lv2:OutputPort ;
lv2:index 10 ;
lv2:symbol "out3" ;
lv2:name "out3" ;
] , [
a lv2:AudioPort ;
a lv2:OutputPort ;
lv2:index 11 ;
lv2:symbol "out4" ;
lv2:name "out4" ;
] , [
a lv2:AudioPort ;
a lv2:OutputPort ;
lv2:index 12 ;
lv2:symbol "out5" ;
lv2:name "out5" ;
]
.
manifest.ttl:
Code: Select all
########## http://faust-lv2.googlecode.com/BassRedirection ##########
@prefix doap: <http://usefulinc.com/ns/doap#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix lv2: <http://lv2plug.in/ns/lv2core#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
<http://faust-lv2.googlecode.com/BassRedirection>
a lv2:Plugin ;
lv2:binary <BassRedirection.so> ;
rdfs:seeAlso <BassRedirection.ttl> .
# Here's how you can declare the category of the plugin. (For lv2synth.cpp
# instances, the lv2:InstrumentPlugin type will be added automatically.) See
# http://lv2plug.in/ns/lv2core/ for a list of known plugin classes.
# <http://faust-lv2.googlecode.com/BassRedirection> a lv2:FilterPlugin .
# You might also want to set the license and author information below.
# NOTE: This isn't normally necessary if you declared the corresponding
# information as metadata in the Faust source of the plugin. The standard
# author, license and description fields in the Faust source are automagically
# included in the generated LV2 manifest.
# <http://faust-lv2.googlecode.com/BassRedirection>
# doap:license <http://opensource.org/licenses/isc> ;
# doap:maintainer [
# foaf:name "Your Name Here" ;
# foaf:homepage <http://somewhere.org/> ;
# foaf:mbox <mailto:your@mail.here> ;
# ] .
This is what FAUST generated.
Re: Carla and Bass Redirection LV2 Plugin: LV2 Bundle
Posted: Sat Aug 31, 2013 6:33 pm
by tramp
This looks correct to me, but maybe I oversee a error?
However, you could try it without the [unit:Hz] metadata (which seems to be the culprit here), you could load it into jalv.gtk or jalv.qt (it works in both) or you could build a jack standalone app (which makes properly most sense for such a unit).
Re: Carla and Bass Redirection LV2 Plugin: LV2 Bundle
Posted: Sat Aug 31, 2013 7:42 pm
by GraysonPeddie
Carla-Discover-Native did not complain when I remove the code:
Code: Select all
units:unit [
a units:Unit ;
units:name "Hz" ;
units:symbol "Hz" ;
units:render "%f Hz"
] ;
But in Carla, it told me it can't find a plugin bundle. Removing [unit:Hz] didn't help.
Re: Carla and Bass Redirection LV2 Plugin: LV2 Bundle
Posted: Sat Aug 31, 2013 8:41 pm
by GraysonPeddie
Well, I got it to work! Adding new folders does not seem to be the problem, but I had to restart Carla after I add a new plugin to /usr/local/lib/lv2, no matter how many times I tried to refresh the plugins list.