Merge pull request #11 from rerdavies/rerdavies/issue7
Rerdavies/issue7
This commit is contained in:
@@ -0,0 +1,224 @@
|
||||
@prefix doap: <http://usefulinc.com/ns/doap#> .
|
||||
@prefix lv2: <http://lv2plug.in/ns/lv2core#> .
|
||||
@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#> .
|
||||
@prefix urid: <http://lv2plug.in/ns/ext/urid#> .
|
||||
@prefix atom: <http://lv2plug.in/ns/ext/atom#> .
|
||||
@prefix midi: <http://lv2plug.in/ns/ext/midi#> .
|
||||
@prefix epp: <http://lv2plug.in/ns/ext/port-props#> .
|
||||
@prefix uiext: <http://lv2plug.in/ns/extensions/ui#> .
|
||||
@prefix idpy: <http://harrisonconsoles.com/lv2/inlinedisplay#> .
|
||||
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
|
||||
@prefix mod: <http://moddevices.com/ns/mod#> .
|
||||
@prefix param: <http://lv2plug.in/ns/ext/parameters#> .
|
||||
@prefix work: <http://lv2plug.in/ns/ext/worker#> .
|
||||
|
||||
@prefix atom: <http://lv2plug.in/ns/ext/atom#> .
|
||||
@prefix patch: <http://lv2plug.in/ns/ext/patch#> .
|
||||
@prefix plug: <http://two-play.com/plugins/toob-cab-sim#> .
|
||||
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
|
||||
@prefix state: <http://lv2plug.in/ns/ext/state#> .
|
||||
@prefix urid: <http://lv2plug.in/ns/ext/urid#> .
|
||||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
|
||||
|
||||
|
||||
<http://two-play.com/plugins/toob#frequencyResponseVector>
|
||||
a lv2:Parameter ;
|
||||
rdfs:label "frequencyResponseVector" ;
|
||||
rdfs:range atom:Vector .
|
||||
|
||||
<http://two-play.com/plugins/toob-cab-sim#uiState>
|
||||
a lv2:Parameter ;
|
||||
rdfs:label "uiState" ;
|
||||
rdfs:range atom:Vector .
|
||||
|
||||
|
||||
<http://two-play.com/rerdavies#me>
|
||||
a foaf:Person ;
|
||||
foaf:name "Robin Davies" ;
|
||||
foaf:mbox <mailto:rerdavies@gmail.com> ;
|
||||
foaf:homepage <http://two-play.com/> .
|
||||
|
||||
<http://two-play.com/plugins/toob-cab-sim>
|
||||
a lv2:Plugin ,
|
||||
lv2:SimulatorPlugin ;
|
||||
doap:name "TooB Cab Simulator" ,
|
||||
"TooB Cab Simulator"@en-gb-gb
|
||||
;
|
||||
doap:license <https://two-play.com/TooB/licenses/isc> ;
|
||||
doap:maintainer <http://two-play.com/rerdavies#me> ;
|
||||
lv2:minorVersion 0 ;
|
||||
lv2:microVersion 13 ;
|
||||
rdfs:comment "TooB amplifier cabinet simulator." ;
|
||||
|
||||
mod:brand "TooB";
|
||||
mod:label "Cab Simulator";
|
||||
lv2:requiredFeature urid:map ;
|
||||
lv2:optionalFeature lv2:hardRTCapable;
|
||||
lv2:extensionData state:interface;
|
||||
patch:readable
|
||||
<http://two-play.com/plugins/toob#frequencyResponseVector>,
|
||||
<http://two-play.com/plugins/toob-cab-sim#uiState>;
|
||||
rdfs:comment """
|
||||
The TooB Cabinet simulator provides EQ tools for emulating cabinet response. See the presets for
|
||||
emulations of well-known cabinets.
|
||||
|
||||
The TooB Cabinet Simulator is part of the TooB Amp Emulation Toolkit. Typically, you would
|
||||
use the following plugins in the following order:
|
||||
|
||||
- TooB Input Stage
|
||||
|
||||
- TooB Tone Stack
|
||||
|
||||
- Toob Power Stage
|
||||
|
||||
- Toob Cabinet Simulator
|
||||
|
||||
|
||||
""";
|
||||
lv2:port
|
||||
[
|
||||
a lv2:InputPort ,
|
||||
lv2:ControlPort ;
|
||||
|
||||
lv2:index 0 ;
|
||||
lv2:symbol "locut" ;
|
||||
lv2:name "Lo Cut";
|
||||
lv2:default 120.0 ;
|
||||
lv2:minimum 30.0 ;
|
||||
lv2:maximum 300.0 ;
|
||||
units:unit units:hz ;
|
||||
lv2:scalePoint [
|
||||
rdfs:label "30Hz" ;
|
||||
rdf:value 30.0
|
||||
], [
|
||||
rdfs:label "300Hz" ;
|
||||
rdf:value 300
|
||||
];
|
||||
rdfs:comment "Low cutoff frequency. 30hz to 300hz. Set to minimum to disable." ;
|
||||
], [
|
||||
a lv2:InputPort ,
|
||||
lv2:ControlPort ;
|
||||
|
||||
lv2:index 1 ;
|
||||
lv2:symbol "bright" ;
|
||||
lv2:name "Bright";
|
||||
lv2:default 0.0 ;
|
||||
lv2:minimum 0.0 ;
|
||||
lv2:maximum 20.0 ;
|
||||
units:unit units:db;
|
||||
lv2:scalePoint [
|
||||
rdfs:label "0dB" ;
|
||||
rdf:value 0.0
|
||||
] , [
|
||||
rdfs:label "10dB" ;
|
||||
rdf:value 10
|
||||
] , [
|
||||
rdfs:label "20dB" ;
|
||||
rdf:value 20
|
||||
];
|
||||
rdfs:comment "Bright boost (0db to 20db)." ;
|
||||
|
||||
], [
|
||||
a lv2:InputPort ,
|
||||
lv2:ControlPort ;
|
||||
|
||||
lv2:index 2 ;
|
||||
lv2:symbol "brightf" ;
|
||||
lv2:name "BrightF";
|
||||
lv2:default 1300.0 ;
|
||||
lv2:minimum 1000.0 ;
|
||||
lv2:maximum 5000.0;
|
||||
units:unit units:hz;
|
||||
lv2:designation param:cutoffFrequency ;
|
||||
rdfs:comment "Bright boost frequency. (1khz to 8khz)" ;
|
||||
|
||||
], [
|
||||
a lv2:InputPort ,
|
||||
lv2:ControlPort ;
|
||||
|
||||
lv2:index 3 ;
|
||||
lv2:symbol "hicut" ;
|
||||
lv2:name "Hi Cut";
|
||||
lv2:default 6000.0 ;
|
||||
lv2:minimum 2000.0 ;
|
||||
lv2:maximum 13000.0;
|
||||
units:unit units:hz;
|
||||
lv2:portProperty epp:logarithmic;
|
||||
lv2:designation param:cutoffFrequency ;
|
||||
rdfs:comment "Hi cutoff frequency. 2khz to 13khz. Set to maximum to disable." ;
|
||||
], [
|
||||
a lv2:InputPort ,
|
||||
lv2:ControlPort ;
|
||||
|
||||
lv2:index 4 ;
|
||||
lv2:symbol "comb" ;
|
||||
lv2:name "Comb";
|
||||
lv2:default 0.0 ;
|
||||
lv2:minimum 0.0 ;
|
||||
lv2:maximum 1.0;
|
||||
rdfs:comment "Amount of comb filtering. 0 to 1. Set to minimum to disable." ;
|
||||
], [
|
||||
a lv2:InputPort ,
|
||||
lv2:ControlPort ;
|
||||
|
||||
lv2:index 5 ;
|
||||
lv2:symbol "combf" ;
|
||||
lv2:name "Comb F";
|
||||
lv2:default 2000.0 ;
|
||||
lv2:minimum 1000.0 ;
|
||||
lv2:maximum 8000.0;
|
||||
units:unit units:hz;
|
||||
lv2:designation param:cutoffFrequency ;
|
||||
rdfs:comment "Comb filter frequency. (1khz to 8khz)" ;
|
||||
], [
|
||||
a lv2:InputPort ,
|
||||
lv2:ControlPort ;
|
||||
|
||||
lv2:index 6 ;
|
||||
lv2:symbol "trim" ;
|
||||
lv2:name "Trim";
|
||||
lv2:default 0.0 ;
|
||||
lv2:minimum -30.0 ;
|
||||
lv2:maximum 30.0;
|
||||
units:unit units:db;
|
||||
rdfs:comment "Master volume trim. (-30db to + 30db)" ;
|
||||
],
|
||||
[
|
||||
a lv2:AudioPort ,
|
||||
lv2:InputPort ;
|
||||
lv2:index 7 ;
|
||||
lv2:symbol "in" ;
|
||||
lv2:name "In"
|
||||
] ,
|
||||
[
|
||||
a lv2:AudioPort ,
|
||||
lv2:OutputPort ;
|
||||
lv2:index 8 ;
|
||||
lv2:symbol "out" ;
|
||||
lv2:name "Out"
|
||||
], [
|
||||
a atom:AtomPort ,
|
||||
lv2:InputPort;
|
||||
atom:bufferType atom:Sequence ;
|
||||
atom:supports patch:Message;
|
||||
lv2:designation lv2:control ;
|
||||
lv2:index 9 ;
|
||||
lv2:symbol "control" ;
|
||||
lv2:name "Control" ;
|
||||
rdfs:comment "Plugin to GUI communication" ;
|
||||
] , [
|
||||
a atom:AtomPort ,
|
||||
lv2:OutputPort ;
|
||||
atom:bufferType atom:Sequence ;
|
||||
atom:supports patch:Message;
|
||||
lv2:designation lv2:control ;
|
||||
lv2:index 10 ;
|
||||
lv2:symbol "notify" ;
|
||||
lv2:name "Notify" ;
|
||||
rdfs:comment "Plugin to GUI communication" ;
|
||||
]
|
||||
.
|
||||
|
||||
|
||||
+6
-5
@@ -32,6 +32,8 @@
|
||||
#include <pwd.h>
|
||||
#include "JackServerSettings.hpp"
|
||||
|
||||
#define SS(x) ( ((std::stringstream&)(std::stringstream() << x )).str())
|
||||
|
||||
using namespace std;
|
||||
using namespace pipedal;
|
||||
|
||||
@@ -187,7 +189,6 @@ static bool userExists(const char *userName)
|
||||
|
||||
static void RemoveLine(const std::string&path, const std::string lineToRemove)
|
||||
{
|
||||
std::string newLine = PAM_LINE;
|
||||
std::vector<std::string> lines;
|
||||
try
|
||||
{
|
||||
@@ -197,7 +198,7 @@ static void RemoveLine(const std::string&path, const std::string lineToRemove)
|
||||
ifstream f(path);
|
||||
if (!f.is_open())
|
||||
{
|
||||
throw PiPedalException((std::stringstream() << "Can't open " << path).str());
|
||||
throw PiPedalException(SS("Can't open " << path));
|
||||
}
|
||||
while (true)
|
||||
{
|
||||
@@ -216,7 +217,7 @@ static void RemoveLine(const std::string&path, const std::string lineToRemove)
|
||||
std::ofstream f(path);
|
||||
if (!f.is_open())
|
||||
{
|
||||
throw PiPedalException("Can't write to file.");
|
||||
throw PiPedalException(SS("Can't write to " << path));
|
||||
}
|
||||
for (auto&line: lines)
|
||||
{
|
||||
@@ -252,7 +253,7 @@ void InstallPamEnv()
|
||||
ifstream f(path);
|
||||
if (!f.is_open())
|
||||
{
|
||||
throw PiPedalException((std::stringstream() << "Can't open " << path).str());
|
||||
throw PiPedalException(SS("Can't open " << path));
|
||||
}
|
||||
while (true)
|
||||
{
|
||||
@@ -277,7 +278,7 @@ void InstallPamEnv()
|
||||
std::ofstream f(path);
|
||||
if (!f.is_open())
|
||||
{
|
||||
throw PiPedalException("Can't write to file.");
|
||||
throw PiPedalException(SS("Can't write to " << path));
|
||||
}
|
||||
for (auto&line: lines)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user