mirror of
https://github.com/mikeoliphant/neural-amp-modeler-lv2.git
synced 2026-05-06 19:50:11 +02:00
Try to use atom:path to get model path
This commit is contained in:
@@ -1,22 +1,26 @@
|
||||
@prefix atom: <http://lv2plug.in/ns/ext/atom#>.
|
||||
@prefix doap: <http://usefulinc.com/ns/doap#>.
|
||||
@prefix foaf: <http://xmlns.com/foaf/0.1/>.
|
||||
@prefix lv2: <http://lv2plug.in/ns/lv2core#>.
|
||||
@prefix props: <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 rsz: <http://lv2plug.in/ns/ext/resize-port#>.
|
||||
@prefix ui: <http://lv2plug.in/ns/extensions/ui#>.
|
||||
@prefix units: <http://lv2plug.in/ns/extensions/units#>.
|
||||
@prefix urid: <http://lv2plug.in/ns/ext/urid#>.
|
||||
@prefix param: <http://lv2plug.in/ns/ext/parameters#>.
|
||||
@prefix patch: <http://lv2plug.in/ns/ext/patch#>.
|
||||
@prefix state: <http://lv2plug.in/ns/ext/state#>.
|
||||
|
||||
<@NAM_LV2_ID@>
|
||||
a doap:Project;
|
||||
doap:maintainer <http://github.com/mikeoliphant>;
|
||||
doap:name "Neural Amp Modeler".
|
||||
|
||||
<http://github.com/mikeoliphant/neural-amp-modeler-lv2>
|
||||
<@NAM_LV2_ID@#model>
|
||||
a lv2:Parameter;
|
||||
rdfs:label "Model";
|
||||
rdfs:range atom:Path.
|
||||
|
||||
<@NAM_LV2_ID@>
|
||||
a lv2:Plugin, lv2:AmplifierPlugin;
|
||||
doap:name "Neural Amp Modeler";
|
||||
lv2:project <@NAM_LV2_ID@>;
|
||||
@@ -29,6 +33,8 @@
|
||||
|
||||
rdfs:comment "An LV2 implementation of Neural Amp Modeler";
|
||||
|
||||
patch:writable <@NAM_LV2_ID@#model>;
|
||||
|
||||
# Audio Ports
|
||||
lv2:port [
|
||||
a lv2:InputPort, lv2:AudioPort;
|
||||
@@ -41,17 +47,6 @@
|
||||
lv2:symbol "output";
|
||||
lv2:name "Output";
|
||||
];
|
||||
|
||||
# Mixer
|
||||
lv2:port [
|
||||
a lv2:InputPort, lv2:ControlPort;
|
||||
lv2:designation param:wetDryRatio;
|
||||
lv2:index 2;
|
||||
lv2:symbol "mix";
|
||||
lv2:name "Mix";
|
||||
rdfs:comment "dry/wet ratio";
|
||||
lv2:default 100.0;
|
||||
lv2:minimum 0.0;
|
||||
lv2:maximum 100.0;
|
||||
units:unit units:pc
|
||||
].
|
||||
state:state [
|
||||
<@NAM_LV2_ID@#model> <click.wav> ;
|
||||
].
|
||||
|
||||
+5
-17
@@ -23,26 +23,14 @@ set_target_properties(neural_amp_modeler
|
||||
|
||||
# Compile Options
|
||||
|
||||
option(FORCE_DISABLE_DENORMALS "Disable denormal numbers before processing" ON)
|
||||
target_compile_definitions(neural_amp_modeler
|
||||
PRIVATE
|
||||
"$<$<CONFIG:RELEASE>:NDEBUG>"
|
||||
"$<$<BOOL:${FORCE_DISABLE_DENORMALS}>:FORCE_DISABLE_DENORMALS>"
|
||||
)
|
||||
|
||||
# Architecture
|
||||
if (
|
||||
FORCE_DISABLE_DENORMALS
|
||||
AND CMAKE_SYSTEM_PROCESSOR MATCHES "(x86_64)|(i386)|(i686)|(AMD64)"
|
||||
)
|
||||
if (MSVC)
|
||||
target_compile_options(neural_amp_modeler PRIVATE /arch:SSE2)
|
||||
else()
|
||||
target_compile_options(neural_amp_modeler PRIVATE -msse3)
|
||||
endif()
|
||||
if (MSVC)
|
||||
target_compile_options(neural_amp_modeler PRIVATE /Ot )
|
||||
else()
|
||||
target_compile_options(neural_amp_modeler PRIVATE -msse3)
|
||||
endif()
|
||||
|
||||
|
||||
|
||||
# Platform
|
||||
|
||||
if (CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||
|
||||
+1
-6
@@ -48,12 +48,7 @@ static LV2_Handle instantiate(
|
||||
|
||||
static void connect_port(LV2_Handle instance, uint32_t port, void* data) {
|
||||
auto nam = static_cast<NAM::Plugin*>(instance);
|
||||
constexpr uint32_t misc_port_cnt = sizeof(nam->ports)/sizeof(void*);
|
||||
if (port >= misc_port_cnt)
|
||||
{
|
||||
}
|
||||
else
|
||||
*(reinterpret_cast<void**>(&nam->ports)+port) = data;
|
||||
*(reinterpret_cast<void**>(&nam->ports)+port) = data;
|
||||
}
|
||||
|
||||
static void activate(LV2_Handle) {}
|
||||
|
||||
Reference in New Issue
Block a user