aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Wischer <twischer@de.adit-jv.com>2017-10-09 16:47:53 +0200
committerDavid Robillard <d@drobilla.net>2018-08-01 19:01:05 +0200
commitb7b3046ba11c7904c563f320d0db807a7c7662e6 (patch)
treef913cd9ef65522c49751c809b56a56eb4d0209b2
parent78ead8b827dc245195a1e29c5316d23a8221bf3d (diff)
downloadjalv-b7b3046ba11c7904c563f320d0db807a7c7662e6.tar.gz
jalv-b7b3046ba11c7904c563f320d0db807a7c7662e6.tar.bz2
jalv-b7b3046ba11c7904c563f320d0db807a7c7662e6.zip
Use lilv_port_get_range() to get default, min, max of a control port
Signed-off-by: Timo Wischer <twischer@de.adit-jv.com>
-rw-r--r--src/control.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/control.c b/src/control.c
index dcde255..9fe5924 100644
--- a/src/control.c
+++ b/src/control.c
@@ -43,9 +43,6 @@ new_port_control(Jalv* jalv, uint32_t index)
id->label = lilv_port_get_name(plug, lport);
id->index = index;
id->group = lilv_port_get(plug, lport, jalv->nodes.pg_group);
- id->min = lilv_port_get(plug, lport, nodes->lv2_minimum);
- id->max = lilv_port_get(plug, lport, nodes->lv2_maximum);
- id->def = lilv_port_get(plug, lport, nodes->lv2_default);
id->value_type = jalv->forge.Float;
id->is_writable = lilv_port_is_a(plug, lport, nodes->lv2_InputPort);
id->is_readable = lilv_port_is_a(plug, lport, nodes->lv2_OutputPort);