view vamp-example-plugins:percussiononsets.n3 @ 0:581b1b150a4d

* copy to sonic-annotator
author Chris Cannam
date Thu, 11 Dec 2008 10:22:33 +0000
parents
children
line wrap: on
line source
@prefix rdfs:   <http://www.w3.org/2000/01/rdf-schema#>.
@prefix xsd:    <http://www.w3.org/2001/XMLSchema#>.
@prefix vamp:   <http://www.vamp-plugins.org/ontology/> .
@prefix vampex: <http://www.vamp-plugins.org/examples/> .
@prefix owl:    <http://www.w3.org/2002/07/owl#> .
@prefix dc:     <http://purl.org/dc/elements/1.1/> .
@prefix af:     <http://purl.org/ontology/af/> .
@prefix foaf:   <http://xmlns.com/foaf/0.1/> .
@prefix cc:     <http://web.resource.org/cc/> .
@prefix thisplug: <http://www.vamp-plugins.org/examples/percussiononsets#>.
@prefix :       <> .

<>  a   vamp:PluginDescription ;
    foaf:maker          <http://chrissutton.org/me> ;
    foaf:primaryTopic   vampex:percussiononsets .

vampex:percussiononsets a   vamp:Plugin ;
    dc:title                "Simple Percussion Onset Detector" ;
    dc:description          "Detect percussive note onsets by identifying broadband energy rises";
    foaf:maker              <http://www.all-day-breakfast.com/cannam> ; #we'll pretend this is his URI
    cc:license              <http://creativecommons.org/licenses/BSD/> ;
    vamp:identifier         "percussiononsets" ; # The Vamp identifier for the plugin
    vamp:vamp_API_version   vamp:version_v1.1b ; # Made up - this plugin doesn't actually specify it
    owl:versionInfo         "2" ;
    vamp:input_domain       vamp:TimeDomain ; # Made up - this plugin doesn't actually specify it

    vamp:parameter_descriptor   thisplug:pd1 ;
    vamp:parameter_descriptor   thisplug:pd2 ;
    vamp:output_descriptor      thisplug:od1 ;
    vamp:output_descriptor      thisplug:od2 .


thisplug:pd1    a       vamp:ParameterDescriptor ;
    vamp:identifier     "threshold" ;
    dc:title            "Energy Rise threshold" ;
    dc:description      "Energy rise within a frequency bin necessary to count toward broadband total" ;
    dc:format           "dB" ;
    vamp:minValue       0 ; #might be useful when interpreting plugin output
    vamp:maxValue       20 ;
    vamp:defaultValue   3 .


thisplug:pd2    a       vamp:ParameterDescriptor ;
    vamp:identifier     "sensitivity" ;
    dc:title            "Sensitivity" ;
    dc:description      "Sensitivity of peak detector applied to broadband detection function" ;
    dc:format           "%" ;
    vamp:minValue       0 ; #might be useful when interpreting plugin output
    vamp:maxValue       100 ;
    vamp:defaultValue   40 .
    
thisplug:od1    a       vamp:OutputDescriptor ;
    vamp:identifier     "onsets" ;
    dc:title            "Onsets" ;
    dc:description      "Percussive note onset locations" ;
    dc:format           "" ;
    vamp:fixed_bin_count "true" ;
    vamp:bin_count      0 ;
    vamp:sample_type    vamp:VariableSampleRate ;
    vamp:computes_event_type    af:Onset . # af:Onset is pending some thought

thisplug:od2    a       vamp:OutputDescriptor ;
    vamp:identifier     "detectionfunction" ;
    dc:title            "Detection Function" ;
    dc:description      "Broadband energy rise detection function";
    dc:format           "" ;
    vamp:fixed_bin_count "true" ;
    vamp:bin_count      1 ;
    vamp:sample_type    vamp:OneSamplePerStep ;
    vamp:computes_feature_type  af:OnsetDetectionFunction .