[SCM] calf/master: + LV2: Support for plugin classes

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:36:57 UTC 2013


The following commit has been merged in the master branch:
commit 2a3f651606fbb49bfdefd9f51fae552296b22553
Author: kfoltman <kfoltman at 78b06b96-2940-0410-b7fc-879d825d01d8>
Date:   Sat Jan 12 19:18:14 2008 +0000

    + LV2: Support for plugin classes
    
    
    
    git-svn-id: https://calf.svn.sourceforge.net/svnroot/calf/trunk@92 78b06b96-2940-0410-b7fc-879d825d01d8

diff --git a/src/makerdf.cpp b/src/makerdf.cpp
index 7abf4e9..e9fafff 100644
--- a/src/makerdf.cpp
+++ b/src/makerdf.cpp
@@ -114,11 +114,33 @@ void make_ttl()
     
     vector<synth::giface_plugin_info> plugins;
     synth::get_all_plugins(plugins);
+    
+    map<string, string> classes;
+    
+    const char *ptypes[] = {
+        "Flanger", "Reverb", "Generator", "Instrument", "Oscillator",
+        "Utility", "Converter", "Analyser", "Mixer", "Simulator",
+        "Delay", "Modulator", "Phaser", "Chorus", "Filter",
+        "Lowpass", "Highpass", "Bandpass", "Comb", "Allpass",
+        "Amplifier", "Distortion", "Waveshaper", "Dynamics", "Compressor",
+        "Expander", "Limiter", "Gate", NULL
+    };
+    
+    for(const char **p = ptypes; *p; p++) {
+        string name = string(*p) + "Plugin";
+        classes[name] = "lv2:" + name;
+    }
+        
     for (unsigned int i = 0; i < plugins.size(); i++) {
         synth::giface_plugin_info &pi = plugins[i];
         ttl += string("<http://calf.sourceforge.net/plugins/") 
             + string(pi.info->label)
             + "> a lv2:Plugin ;\n";
+        
+        if (classes.count(pi.info->plugin_type))
+            ttl += "    a " + classes[pi.info->plugin_type]+" ;\n";
+        
+            
         ttl += "    doap:name \""+string(pi.info->name)+"\" ;\n";
 #if USE_PHAT
         ttl += "    doap:license <http://usefulinc.com/doap/licenses/gpl> ;\n";

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list