c++/lv2-demo-modul/amp.ttl
author František Kučera <franta-hg@frantovo.cz>
Fri, 15 May 2020 20:32:37 +0200
changeset 59 d6614ad97bed
permissions -rw-r--r--
LV2: modul zesilovače, dle oficiálního příkladu, ale bez závislosti na Pythonu – stačí gcc a make
franta-hg@59
     1
# The full description of the plugin is in this file, which is linked to from
franta-hg@59
     2
# `manifest.ttl`.  This is done so the host only needs to scan the relatively
franta-hg@59
     3
# small `manifest.ttl` files to quickly discover all plugins.
franta-hg@59
     4
franta-hg@59
     5
@prefix doap:  <http://usefulinc.com/ns/doap#> .
franta-hg@59
     6
@prefix lv2:   <http://lv2plug.in/ns/lv2core#> .
franta-hg@59
     7
@prefix rdf:   <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
franta-hg@59
     8
@prefix rdfs:  <http://www.w3.org/2000/01/rdf-schema#> .
franta-hg@59
     9
@prefix units: <http://lv2plug.in/ns/extensions/units#> .
franta-hg@59
    10
franta-hg@59
    11
# First the type of the plugin is described.  All plugins must explicitly list
franta-hg@59
    12
# `lv2:Plugin` as a type.  A more specific type should also be given, where
franta-hg@59
    13
# applicable, so hosts can present a nicer UI for loading plugins.  Note that
franta-hg@59
    14
# this URI is the identifier of the plugin, so if it does not match the one in
franta-hg@59
    15
# `manifest.ttl`, the host will not discover the plugin data at all.
franta-hg@59
    16
<http://lv2plug.in/plugins/eg-amp>
franta-hg@59
    17
	a lv2:Plugin ,
franta-hg@59
    18
		lv2:AmplifierPlugin ;
franta-hg@59
    19
# Plugins are associated with a project, where common information like
franta-hg@59
    20
# developers, home page, and so on are described.  This plugin is part of the
franta-hg@59
    21
# LV2 project, which has URI <http://lv2plug.in/ns/lv2>, and is described
franta-hg@59
    22
# elsewhere.  Typical plugin collections will describe the project in
franta-hg@59
    23
# manifest.ttl
franta-hg@59
    24
	lv2:project <http://lv2plug.in/ns/lv2> ;
franta-hg@59
    25
# Every plugin must have a name, described with the doap:name property.
franta-hg@59
    26
# Translations to various languages can be added by putting a language tag
franta-hg@59
    27
# after strings as shown.
franta-hg@59
    28
	doap:name "Simple Amplifier" ,
franta-hg@59
    29
		"简单放大器"@zh ,
franta-hg@59
    30
		"Einfacher Verstärker"@de ,
franta-hg@59
    31
		"Simple Amplifier"@en-gb ,
franta-hg@59
    32
		"Amplificador Simple"@es ,
franta-hg@59
    33
		"Amplificateur de Base"@fr ,
franta-hg@59
    34
		"Amplificatore Semplice"@it ,
franta-hg@59
    35
		"簡単なアンプ"@jp ,
franta-hg@59
    36
		"Просто Усилитель"@ru ;
franta-hg@59
    37
	doap:license <http://opensource.org/licenses/isc> ;
franta-hg@59
    38
	lv2:optionalFeature lv2:hardRTCapable ;
franta-hg@59
    39
	lv2:port [
franta-hg@59
    40
# Every port must have at least two types, one that specifies direction
franta-hg@59
    41
# (lv2:InputPort or lv2:OutputPort), and another to describe the data type.
franta-hg@59
    42
# This port is a lv2:ControlPort, which means it contains a single float.
franta-hg@59
    43
		a lv2:InputPort ,
franta-hg@59
    44
			lv2:ControlPort ;
franta-hg@59
    45
		lv2:index 0 ;
franta-hg@59
    46
		lv2:symbol "gain" ;
franta-hg@59
    47
		lv2:name "Gain" ,
franta-hg@59
    48
			"收益"@zh ,
franta-hg@59
    49
			"Verstärkung"@de ,
franta-hg@59
    50
			"Gain"@en-gb ,
franta-hg@59
    51
			"Aumento"@es ,
franta-hg@59
    52
			"Gain"@fr ,
franta-hg@59
    53
			"Guadagno"@it ,
franta-hg@59
    54
			"利益"@jp ,
franta-hg@59
    55
			"Увеличение"@ru ;
franta-hg@59
    56
# An lv2:ControlPort should always describe its default value, and usually a
franta-hg@59
    57
# minimum and maximum value.  Defining a range is not strictly required, but
franta-hg@59
    58
# should be done wherever possible to aid host support, particularly for UIs.
franta-hg@59
    59
		lv2:default 0.0 ;
franta-hg@59
    60
		lv2:minimum -90.0 ;
franta-hg@59
    61
		lv2:maximum 24.0 ;
franta-hg@59
    62
# Ports can describe units and control detents to allow better UI generation
franta-hg@59
    63
# and host automation.
franta-hg@59
    64
		units:unit units:db ;
franta-hg@59
    65
		lv2:scalePoint [
franta-hg@59
    66
			rdfs:label "+5" ;
franta-hg@59
    67
			rdf:value 5.0
franta-hg@59
    68
		] , [
franta-hg@59
    69
			rdfs:label "0" ;
franta-hg@59
    70
			rdf:value 0.0
franta-hg@59
    71
		] , [
franta-hg@59
    72
			rdfs:label "-5" ;
franta-hg@59
    73
			rdf:value -5.0
franta-hg@59
    74
		] , [
franta-hg@59
    75
			rdfs:label "-10" ;
franta-hg@59
    76
			rdf:value -10.0
franta-hg@59
    77
		]
franta-hg@59
    78
	] , [
franta-hg@59
    79
		a lv2:AudioPort ,
franta-hg@59
    80
			lv2:InputPort ;
franta-hg@59
    81
		lv2:index 1 ;
franta-hg@59
    82
		lv2:symbol "in" ;
franta-hg@59
    83
		lv2:name "In"
franta-hg@59
    84
	] , [
franta-hg@59
    85
		a lv2:AudioPort ,
franta-hg@59
    86
			lv2:OutputPort ;
franta-hg@59
    87
		lv2:index 2 ;
franta-hg@59
    88
		lv2:symbol "out" ;
franta-hg@59
    89
		lv2:name "Out"
franta-hg@59
    90
	] .