From fd11b8580005889b10552d70e94b5e6c5a27db19 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 11 Mar 2011 07:01:20 +0000 Subject: Use lv2: prefix instead of default prefix. git-svn-id: http://svn.drobilla.net/lad/trunk/plugins/mdala.lv2@3072 a436a847-0d15-0410-975c-d299462d15a1 --- lvz/gendata.cpp | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'lvz') diff --git a/lvz/gendata.cpp b/lvz/gendata.cpp index d641ad0..8a95722 100644 --- a/lvz/gendata.cpp +++ b/lvz/gendata.cpp @@ -96,13 +96,13 @@ write_plugin(AudioEffectX* effect, const string& lib_file_name) fstream os(data_file_name.c_str(), ios::out); effect->getProductString(name_buf); - os << "@prefix : ." << endl; + os << "@prefix lv2: ." << endl; os << "@prefix doap: ." << endl << endl; os << "<" << effect->getURI() << ">" << endl; - os << "\t:symbol \"" << effect->getUniqueID() << "\" ;" << endl; + os << "\tlv2:symbol \"" << effect->getUniqueID() << "\" ;" << endl; os << "\tdoap:name \"" << name_buf << "\" ;" << endl; os << "\tdoap:license ;" << endl; - os << "\t:pluginProperty :hardRTCapable"; + os << "\tlv2:pluginProperty lv2:hardRTCapable"; uint32_t num_params = effect->getNumParameters(); uint32_t num_audio_ins = effect->getNumInputs(); @@ -110,7 +110,7 @@ write_plugin(AudioEffectX* effect, const string& lib_file_name) uint32_t num_ports = num_params + num_audio_ins + num_audio_outs; if (num_ports > 0) - os << " ;" << endl << "\t:port [" << endl; + os << " ;" << endl << "\tlv2:port [" << endl; else os << " ." << endl; @@ -118,29 +118,29 @@ write_plugin(AudioEffectX* effect, const string& lib_file_name) for (uint32_t i = idx; i < num_params; ++i, ++idx) { effect->getParameterName(i, name_buf); - os << "\t\ta :InputPort, :ControlPort ;" << endl; - os << "\t\t:index" << " " << idx << " ;" << endl; - os << "\t\t:name \"" << name_buf << "\" ;" << endl; - os << "\t\t:symbol \"" << symbolify(name_buf) << "\" ;" << endl; - os << "\t\t:default " << effect->getParameter(i) << " ;" << endl; - os << "\t\t:minimum 0.0 ;" << endl; - os << "\t\t:maximum 1.0 ;" << endl; + os << "\t\ta lv2:InputPort, lv2:ControlPort ;" << endl; + os << "\t\tlv2:index" << " " << idx << " ;" << endl; + os << "\t\tlv2:name \"" << name_buf << "\" ;" << endl; + os << "\t\tlv2:symbol \"" << symbolify(name_buf) << "\" ;" << endl; + os << "\t\tlv2:default " << effect->getParameter(i) << " ;" << endl; + os << "\t\tlv2:minimum 0.0 ;" << endl; + os << "\t\tlv2:maximum 1.0 ;" << endl; os << ((idx == num_ports - 1) ? "\t] ." : "\t] , [") << endl; } for (uint32_t i = 0; i < num_audio_ins; ++i, ++idx) { - os << "\t\ta :InputPort, :AudioPort ;" << endl; - os << "\t\t:index" << " " << idx << " ;" << endl; - os << "\t\t:symbol \"in" << i+1 << "\" ;" << endl; - os << "\t\t:name \"Input " << i+1 << "\" ;" << endl; + os << "\t\ta lv2:InputPort, lv2:AudioPort ;" << endl; + os << "\t\tlv2:index" << " " << idx << " ;" << endl; + os << "\t\tlv2:symbol \"in" << i+1 << "\" ;" << endl; + os << "\t\tlv2:name \"Input " << i+1 << "\" ;" << endl; os << ((idx == num_ports - 1) ? "\t] ." : "\t] , [") << endl; } for (uint32_t i = 0; i < num_audio_outs; ++i, ++idx) { - os << "\t\ta :OutputPort, :AudioPort ;" << endl; - os << "\t\t:index " << idx << " ;" << endl; - os << "\t\t:symbol \"out" << i+1 << "\" ;" << endl; - os << "\t\t:name \"Output " << i+1 << "\" ;" << endl; + os << "\t\ta lv2:OutputPort, lv2:AudioPort ;" << endl; + os << "\t\tlv2:index " << idx << " ;" << endl; + os << "\t\tlv2:symbol \"out" << i+1 << "\" ;" << endl; + os << "\t\tlv2:name \"Output " << i+1 << "\" ;" << endl; os << ((idx == num_ports - 1) ? "\t] ." : "\t] , [") << endl; } @@ -179,14 +179,14 @@ write_gui(AEffEditor* gui, const string& lib_file_name) void write_manifest(ostream& os) { - os << "@prefix : ." << endl; + os << "@prefix lv2: ." << endl; os << "@prefix rdfs: ." << endl; os << "@prefix uiext: ." << endl << endl; for (Manifest::iterator i = manifest.begin(); i != manifest.end(); ++i) { Record& r = i->second; - os << "<" << i->first << "> a :Plugin ;" << endl; + os << "<" << i->first << ">\n\ta lv2:Plugin ;" << endl; os << "\trdfs:seeAlso <" << r.base_name << ".ttl> ;" << endl; - os << "\t:binary <" << r.base_name << ".so> "; + os << "\tlv2:binary <" << r.base_name << ".so> "; for (Record::UIs::iterator j = r.uis.begin(); j != r.uis.end(); ++j) os << ";" << endl << "\tuiext:ui <" << *j << "> "; os << "." << endl << endl; @@ -214,7 +214,7 @@ main(int argc, char** argv) } typedef AudioEffectX* (*new_effect_func)(); - typedef AEffEditor* (*new_gui_func)(); + typedef AEffEditor* (*new_gui_func)(); typedef AudioEffectX* (*plugin_uri_func)(); new_effect_func constructor = NULL; -- cgit v1.2.1