@prefix doap:      <http://usefulinc.com/ns/doap#> .
@prefix dc:        <http://purl.org/dc/terms/> .
@prefix foaf:      <http://xmlns.com/foaf/0.1/> .
@prefix rdf:       <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs:      <http://www.w3.org/2000/01/rdf-schema#> .
@prefix lv2:       <http://lv2plug.in/ns/lv2core#> .
@prefix lv2ext:    <http://lv2plug.in/ns/ext/> .
@prefix pp:        <http://lv2plug.in/ns/ext/port-props#> .
@prefix pg:        <http://lv2plug.in/ns/ext/port-groups#> .
@prefix ui:        <http://lv2plug.in/ns/extensions/ui#> .
@prefix units:     <http://lv2plug.in/ns/extensions/units#> .
@prefix atom:      <http://lv2plug.in/ns/ext/atom#> .
@prefix urid:      <http://lv2plug.in/ns/ext/urid#> .
@prefix opts:      <http://lv2plug.in/ns/ext/options#> .
@prefix work:      <http://lv2plug.in/ns/ext/worker#> .
@prefix rsz:       <http://lv2plug.in/ns/ext/resize-port#> .
@prefix patch:     <http://lv2plug.in/ns/ext/patch#> .
@prefix state:     <http://lv2plug.in/ns/ext/state#> .
@prefix midi:      <http://lv2plug.in/ns/ext/midi#> .
@prefix time:      <http://lv2plug.in/ns/ext/time#> .
@prefix hcid:      <http://harrisonconsoles.com/lv2/inlinedisplay#> .
@prefix lsp:       <http://lsp-plug.in/plugins/lv2/> .
@prefix lsp_pg:    <http://lsp-plug.in/plugins/lv2/sampler_mono/port_groups#> .
@prefix lsp_ui:    <http://lsp-plug.in/ui/lv2/> .
@prefix lsp_dev:   <http://lsp-plug.in/developers/> .
@prefix lsp_p:     <http://lsp-plug.in/plugins/lv2/sampler_mono/ports#> .


lsp_dev:v_sadovnikov
	a foaf:Person ;
	foaf:name "Vladimir Sadovnikov" ;
	foaf:nick "SadKo" ;
	foaf:mbox <mailto:lsp.plugin@gmail.com> ;
	foaf:homepage <http://lsp-plug.in/#v_sadovnikov>
	.

lsp_dev:lsp
	a foaf:Person ;
	foaf:name "LSP LV2" ;
	foaf:homepage <http://lsp-plug.in/#lsp>
	.

lsp_pg:mono_in
	a pg:MonoGroup, pg:InputGroup ;
	lv2:symbol "mono_in";
	rdfs:label "Mono Input"
	.

lsp_pg:mono_out
	a pg:MonoGroup, pg:OutputGroup ;
	lv2:symbol "mono_out";
	rdfs:label "Mono Output"
	.

lsp:sampler_mono
	a lv2:Plugin, doap:Project, lv2:InstrumentPlugin, lv2:SimulatorPlugin ;
	doap:name "Sampler Mono - Klangerzeuger Mono" ;
	lv2:minorVersion 0 ;
	lv2:microVersion 1 ;
	doap:developer lsp_dev:v_sadovnikov ;
	doap:maintainer lsp_dev:lsp ;
	doap:license "LSP (Linux Studio Plugins)" ;
	lv2:binary <lsp-plugins-lv2.so> ;
	ui:ui lsp_ui:sampler_mono ;

	lv2:requiredFeature urid:map ;
	lv2:optionalFeature lv2:hardRTCapable, hcid:queue_draw, work:schedule ;
	lv2:extensionData state:interface, work:interface, hcid:interface ;
	opts:supportedOption ui:updateRate ;

	lv2:port [
		a lv2:InputPort, lv2:AudioPort ;
		lv2:index 0 ;
		lv2:symbol "in" ;
		lv2:name "Input" ;
		pg:group lsp_pg:mono_in ;
		lv2:designation pg:center ;
	] , [
		a lv2:OutputPort, lv2:AudioPort ;
		lv2:index 1 ;
		lv2:symbol "out" ;
		lv2:name "Output" ;
		pg:group lsp_pg:mono_out ;
		lv2:designation pg:center ;
	] , [
		a lv2:InputPort, lv2:ControlPort ;
		lv2:index 2 ;
		lv2:symbol "bypass" ;
		lv2:name "Bypass" ;
		lv2:portProperty lv2:toggled ;
		lv2:minimum 0 ;
		lv2:maximum 1 ;
		lv2:default 0 ;
	] , [
		a lv2:InputPort, lv2:ControlPort ;
		lv2:index 3 ;
		lv2:symbol "mute" ;
		lv2:name "Forced mute" ;
		lv2:portProperty lv2:toggled ;
		lv2:minimum 0 ;
		lv2:maximum 1 ;
		lv2:default 0 ;
	] , [
		a lv2:InputPort, lv2:ControlPort ;
		lv2:index 4 ;
		lv2:symbol "muting" ;
		lv2:name "Mute on stop" ;
		lv2:portProperty lv2:toggled ;
		lv2:minimum 0 ;
		lv2:maximum 1 ;
		lv2:default 1 ;
	] , [
		a lv2:InputPort, lv2:ControlPort ;
		lv2:index 5 ;
		lv2:symbol "noff" ;
		lv2:name "Note-off handling" ;
		lv2:portProperty lv2:toggled ;
		lv2:minimum 0 ;
		lv2:maximum 1 ;
		lv2:default 0 ;
	] , [
		a lv2:InputPort, lv2:ControlPort ;
		lv2:index 6 ;
		lv2:symbol "fout" ;
		lv2:name "Note-off fadeout" ;
		units:unit units:ms ;
		lv2:portProperty pp:hasStrictBounds ;
		lv2:minimum 0.000000 ;
		lv2:maximum 50.000000 ;
		lv2:default 10.000000 ;
	] , [
		a lv2:InputPort, lv2:ControlPort ;
		lv2:index 7 ;
		lv2:symbol "dry" ;
		lv2:name "Dry amount" ;
		units:unit [
			a units:Unit ;
			rdfs:label "gain" ;
			units:symbol "G" ;
			units:render "%f G" ;
		] ;
		lv2:portProperty pp:logarithmic, pp:hasStrictBounds ;
		lv2:minimum 0.000000 ;
		lv2:maximum 10.000000 ;
		lv2:default 1.000000 ;
	] , [
		a lv2:InputPort, lv2:ControlPort ;
		lv2:index 8 ;
		lv2:symbol "wet" ;
		lv2:name "Wet amount" ;
		units:unit [
			a units:Unit ;
			rdfs:label "gain" ;
			units:symbol "G" ;
			units:render "%f G" ;
		] ;
		lv2:portProperty pp:logarithmic, pp:hasStrictBounds ;
		lv2:minimum 0.000000 ;
		lv2:maximum 10.000000 ;
		lv2:default 1.000000 ;
	] , [
		a lv2:InputPort, lv2:ControlPort ;
		lv2:index 9 ;
		lv2:symbol "g_out" ;
		lv2:name "Output gain" ;
		units:unit [
			a units:Unit ;
			rdfs:label "gain" ;
			units:symbol "G" ;
			units:render "%f G" ;
		] ;
		lv2:portProperty pp:logarithmic, pp:hasStrictBounds ;
		lv2:minimum 0.000000 ;
		lv2:maximum 10.000000 ;
		lv2:default 1.000000 ;
	] , [
		a lv2:InputPort, lv2:ControlPort ;
		lv2:index 10 ;
		lv2:symbol "chan" ;
		lv2:name "Channel" ;
		lv2:portProperty lv2:integer, lv2:enumeration, pp:hasStrictBounds ;
		lv2:scalePoint
			[ rdfs:label "01"; rdf:value 0 ] ,
			[ rdfs:label "02"; rdf:value 1 ] ,
			[ rdfs:label "03"; rdf:value 2 ] ,
			[ rdfs:label "04"; rdf:value 3 ] ,
			[ rdfs:label "05"; rdf:value 4 ] ,
			[ rdfs:label "06"; rdf:value 5 ] ,
			[ rdfs:label "07"; rdf:value 6 ] ,
			[ rdfs:label "08"; rdf:value 7 ] ,
			[ rdfs:label "09"; rdf:value 8 ] ,
			[ rdfs:label "10"; rdf:value 9 ] ,
			[ rdfs:label "11"; rdf:value 10 ] ,
			[ rdfs:label "12"; rdf:value 11 ] ,
			[ rdfs:label "13"; rdf:value 12 ] ,
			[ rdfs:label "14"; rdf:value 13 ] ,
			[ rdfs:label "15"; rdf:value 14 ] ,
			[ rdfs:label "16"; rdf:value 15 ] ;
		lv2:minimum 0 ;
		lv2:maximum 15 ;
		lv2:default 0 ;
	] , [
		a lv2:InputPort, lv2:ControlPort ;
		lv2:index 11 ;
		lv2:symbol "note" ;
		lv2:name "Note" ;
		lv2:portProperty lv2:integer, lv2:enumeration, pp:hasStrictBounds ;
		lv2:scalePoint
			[ rdfs:label "C"; rdf:value 0 ] ,
			[ rdfs:label "C#"; rdf:value 1 ] ,
			[ rdfs:label "D"; rdf:value 2 ] ,
			[ rdfs:label "D#"; rdf:value 3 ] ,
			[ rdfs:label "E"; rdf:value 4 ] ,
			[ rdfs:label "F"; rdf:value 5 ] ,
			[ rdfs:label "F#"; rdf:value 6 ] ,
			[ rdfs:label "G"; rdf:value 7 ] ,
			[ rdfs:label "G#"; rdf:value 8 ] ,
			[ rdfs:label "A"; rdf:value 9 ] ,
			[ rdfs:label "A#"; rdf:value 10 ] ,
			[ rdfs:label "B"; rdf:value 11 ] ;
		lv2:minimum 0 ;
		lv2:maximum 11 ;
		lv2:default 9 ;
	] , [
		a lv2:InputPort, lv2:ControlPort ;
		lv2:index 12 ;
		lv2:symbol "oct" ;
		lv2:name "Octave" ;
		lv2:portProperty lv2:integer, lv2:enumeration, pp:hasStrictBounds ;
		lv2:scalePoint
			[ rdfs:label "-2"; rdf:value 0 ] ,
			[ rdfs:label "-1"; rdf:value 1 ] ,
			[ rdfs:label "0"; rdf:value 2 ] ,
			[ rdfs:label "1"; rdf:value 3 ] ,
			[ rdfs:label "2"; rdf:value 4 ] ,
			[ rdfs:label "3"; rdf:value 5 ] ,
			[ rdfs:label "4"; rdf:value 6 ] ,
			[ rdfs:label "5"; rdf:value 7 ] ,
			[ rdfs:label "6"; rdf:value 8 ] ,
			[ rdfs:label "7"; rdf:value 9 ] ,
			[ rdfs:label "8"; rdf:value 10 ] ;
		lv2:minimum 0 ;
		lv2:maximum 10 ;
		lv2:default 4 ;
	] , [
		a lv2:OutputPort, lv2:ControlPort ;
		lv2:index 13 ;
		lv2:symbol "mn" ;
		lv2:name "MIDI Note #" ;
		lv2:portProperty lv2:integer, pp:hasStrictBounds ;
		lv2:minimum 0 ;
		lv2:maximum 127 ;
		lv2:default 0 ;
	] , [
		a lv2:InputPort, lv2:ControlPort ;
		lv2:index 14 ;
		lv2:symbol "trg" ;
		lv2:name "Instrument listen" ;
		lv2:portProperty lv2:toggled ;
		lv2:minimum 0 ;
		lv2:maximum 1 ;
		lv2:default 0 ;
	] , [
		a lv2:InputPort, lv2:ControlPort ;
		lv2:index 15 ;
		lv2:symbol "dyna" ;
		lv2:name "Dynamics" ;
		units:unit units:pc ;
		lv2:portProperty pp:hasStrictBounds ;
		lv2:minimum 0.000000 ;
		lv2:maximum 100.000000 ;
		lv2:default 0.000000 ;
	] , [
		a lv2:InputPort, lv2:ControlPort ;
		lv2:index 16 ;
		lv2:symbol "drft" ;
		lv2:name "Time drifting" ;
		units:unit units:ms ;
		lv2:portProperty pp:hasStrictBounds ;
		lv2:minimum 0.000000 ;
		lv2:maximum 100.000000 ;
		lv2:default 0.000000 ;
	] , [
		a lv2:InputPort, atom:AtomPort ;
		atom:bufferType atom:Sequence ;
		atom:supports atom:Sequence, patch:Message, time:Position, midi:MidiEvent ;
		lv2:designation lv2:control ;
		lv2:index 17 ;
		lv2:symbol "in_midi" ;
		lv2:name "MIDI Input, UI Input" ;
		rdfs:comment "MIDI IN, UI -> DSP communication" ;
		rsz:minimumSize 364544 ;
	] , [
		a lv2:OutputPort, atom:AtomPort ;
		atom:bufferType atom:Sequence ;
		atom:supports atom:Sequence, patch:Message, time:Position, midi:MidiEvent ;
		lv2:designation lv2:control ;
		lv2:index 18 ;
		lv2:symbol "out_midi" ;
		lv2:name "MIDI Output, UI Output" ;
		rdfs:comment "MIDI OUT, DSP -> UI communication" ;
		rsz:minimumSize 421888 ;
	] , [
		a lv2:OutputPort, lv2:ControlPort ;
		lv2:index 19 ;
		lv2:symbol "out_latency" ;
		lv2:name "Latency OUT" ;
		rdfs:comment "DSP -> Host latency report" ;
		lv2:portProperty pp:hasStrictBounds ;
		lv2:portProperty lv2:integer ;
		lv2:portProperty lv2:reportsLatency ;
		lv2:minimum 0 ;
		lv2:maximum 192000 ;
		lv2:default 0 ;
	]
	.

lsp_ui:sampler_mono
	a ui:X11UI ;
	lv2:minorVersion 0 ;
	lv2:microVersion 1 ;
	lv2:requiredFeature urid:map, ui:idleInterface ;
	lv2:optionalFeature ui:parent, ui:resize, ui:noUserResize, lv2ext:instance-access ;
	lv2:extensionData ui:idleInterface ;
	ui:binary <lsp-plugins-lv2.so> ;

	ui:portNotification [
		ui:plugin lsp:sampler_mono ;
		ui:portIndex 2 ;
		ui:protocol ui:floatProtocol ;
	] , [
		ui:plugin lsp:sampler_mono ;
		ui:portIndex 3 ;
		ui:protocol ui:floatProtocol ;
	] , [
		ui:plugin lsp:sampler_mono ;
		ui:portIndex 4 ;
		ui:protocol ui:floatProtocol ;
	] , [
		ui:plugin lsp:sampler_mono ;
		ui:portIndex 5 ;
		ui:protocol ui:floatProtocol ;
	] , [
		ui:plugin lsp:sampler_mono ;
		ui:portIndex 6 ;
		ui:protocol ui:floatProtocol ;
	] , [
		ui:plugin lsp:sampler_mono ;
		ui:portIndex 7 ;
		ui:protocol ui:floatProtocol ;
	] , [
		ui:plugin lsp:sampler_mono ;
		ui:portIndex 8 ;
		ui:protocol ui:floatProtocol ;
	] , [
		ui:plugin lsp:sampler_mono ;
		ui:portIndex 9 ;
		ui:protocol ui:floatProtocol ;
	] , [
		ui:plugin lsp:sampler_mono ;
		ui:portIndex 10 ;
		ui:protocol ui:floatProtocol ;
	] , [
		ui:plugin lsp:sampler_mono ;
		ui:portIndex 11 ;
		ui:protocol ui:floatProtocol ;
	] , [
		ui:plugin lsp:sampler_mono ;
		ui:portIndex 12 ;
		ui:protocol ui:floatProtocol ;
	] , [
		ui:plugin lsp:sampler_mono ;
		ui:portIndex 13 ;
		ui:protocol ui:floatProtocol ;
	] , [
		ui:plugin lsp:sampler_mono ;
		ui:portIndex 14 ;
		ui:protocol ui:floatProtocol ;
	] , [
		ui:plugin lsp:sampler_mono ;
		ui:portIndex 15 ;
		ui:protocol ui:floatProtocol ;
	] , [
		ui:plugin lsp:sampler_mono ;
		ui:portIndex 16 ;
		ui:protocol ui:floatProtocol ;
	]  , [
		ui:plugin lsp:sampler_mono ;
		ui:portIndex 17 ;
		ui:protocol atom:eventTransfer ;
		ui:notifyType atom:Sequence ;
	] , [
		ui:plugin lsp:sampler_mono ;
		ui:portIndex 18 ;
		ui:protocol atom:eventTransfer ;
		ui:notifyType atom:Sequence ;
	] , [
		ui:plugin lsp:sampler_mono ;
		ui:portIndex 19 ;
		ui:protocol ui:floatProtocol ;
	]
	.

