@@ -14,7 +14,7 @@ | |||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
# GNU General Public License for more details. | # GNU General Public License for more details. | ||||
# | # | ||||
# For a full copy of the GNU General Public License see the GPL.txt file | |||||
# For a full copy of the GNU General Public License see the doc/GPL.txt file. | |||||
# ------------------------------------------------------------------------------------------------------------ | # ------------------------------------------------------------------------------------------------------------ | ||||
# Imports (Config) | # Imports (Config) | ||||
@@ -14,7 +14,7 @@ | |||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
# GNU General Public License for more details. | # GNU General Public License for more details. | ||||
# | # | ||||
# For a full copy of the GNU General Public License see the GPL.txt file | |||||
# For a full copy of the GNU General Public License see the doc/GPL.txt file. | |||||
# ------------------------------------------------------------------------------------------------------------ | # ------------------------------------------------------------------------------------------------------------ | ||||
# Imports (Custom Stuff) | # Imports (Custom Stuff) | ||||
@@ -14,7 +14,7 @@ | |||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
# GNU General Public License for more details. | # GNU General Public License for more details. | ||||
# | # | ||||
# For a full copy of the GNU General Public License see the GPL.txt file | |||||
# For a full copy of the GNU General Public License see the doc/GPL.txt file. | |||||
# ------------------------------------------------------------------------------------------------------------ | # ------------------------------------------------------------------------------------------------------------ | ||||
# Imports (Custom Stuff) | # Imports (Custom Stuff) | ||||
@@ -4,17 +4,17 @@ | |||||
# Carla application | # Carla application | ||||
# Copyright (C) 2013-2014 Filipe Coelho <falktx@falktx.com> | # Copyright (C) 2013-2014 Filipe Coelho <falktx@falktx.com> | ||||
# | # | ||||
# This program is free software you can redistribute it and/or modify | |||||
# it under the terms of the GNU General Public License as published by | |||||
# the Free Software Foundation either version 2 of the License, or | |||||
# any later version. | |||||
# This program is free software; you can redistribute it and/or | |||||
# modify it under the terms of the GNU General Public License as | |||||
# published by the Free Software Foundation; either version 2 of | |||||
# the License, or any later version. | |||||
# | # | ||||
# This program is distributed in the hope that it will be useful, | # This program is distributed in the hope that it will be useful, | ||||
# but WITHOUT ANY WARRANTY without even the implied warranty of | |||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | |||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |||||
# GNU General Public License for more details. | # GNU General Public License for more details. | ||||
# | # | ||||
# For a full copy of the GNU General Public License see the GPL.txt file | |||||
# For a full copy of the GNU General Public License see the doc/GPL.txt file. | |||||
# ------------------------------------------------------------------------------------------------------------ | # ------------------------------------------------------------------------------------------------------------ | ||||
# Imports (Config) | # Imports (Config) | ||||
@@ -14,7 +14,7 @@ | |||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||||
# GNU General Public License for more details. | # GNU General Public License for more details. | ||||
# | # | ||||
# For a full copy of the GNU General Public License see the GPL.txt file | |||||
# For a full copy of the GNU General Public License see the doc/GPL.txt file. | |||||
# ------------------------------------------------------------------------------------------------------------ | # ------------------------------------------------------------------------------------------------------------ | ||||
# Imports (Global) | # Imports (Global) | ||||
@@ -16,7 +16,7 @@ | |||||
# | # | ||||
# For a full copy of the GNU General Public License see the doc/GPL.txt file. | # For a full copy of the GNU General Public License see the doc/GPL.txt file. | ||||
# ------------------------------------------------------------------------------- | |||||
# ------------------------------------------------------------------------------------------------------------ | |||||
# C types | # C types | ||||
# Imports (Global) | # Imports (Global) | ||||
@@ -131,7 +131,7 @@ class LADSPA_RDF_Descriptor(Structure): | |||||
("Ports", POINTER(LADSPA_RDF_Port)) | ("Ports", POINTER(LADSPA_RDF_Port)) | ||||
] | ] | ||||
# ------------------------------------------------------------------------------- | |||||
# ------------------------------------------------------------------------------------------------------------ | |||||
# Python compatible C types | # Python compatible C types | ||||
PyLADSPA_RDF_ScalePoint = { | PyLADSPA_RDF_ScalePoint = { | ||||
@@ -163,7 +163,7 @@ PyLADSPA_RDF_Descriptor = { | |||||
'Ports': [] | 'Ports': [] | ||||
} | } | ||||
# ------------------------------------------------------------------------------- | |||||
# ------------------------------------------------------------------------------------------------------------ | |||||
# RDF data and conversions | # RDF data and conversions | ||||
# Namespaces | # Namespaces | ||||
@@ -328,7 +328,7 @@ def get_c_unit_type(value): | |||||
return ret | return ret | ||||
# ------------------------------------------------------------------------------- | |||||
# ------------------------------------------------------------------------------------------------------------ | |||||
# Global objects | # Global objects | ||||
global LADSPA_RDF_PATH, LADSPA_Plugins | global LADSPA_RDF_PATH, LADSPA_Plugins | ||||
@@ -340,7 +340,7 @@ def set_rdf_path(PATH): | |||||
global LADSPA_RDF_PATH | global LADSPA_RDF_PATH | ||||
LADSPA_RDF_PATH = PATH | LADSPA_RDF_PATH = PATH | ||||
# ------------------------------------------------------------------------------- | |||||
# ------------------------------------------------------------------------------------------------------------ | |||||
# Helper methods | # Helper methods | ||||
LADSPA_RDF_TYPE_PLUGIN = 1 | LADSPA_RDF_TYPE_PLUGIN = 1 | ||||
@@ -372,7 +372,7 @@ def to_plugin_and_port_number(subject): | |||||
def to_plugin_port(subject): | def to_plugin_port(subject): | ||||
return to_plugin_and_port_number(subject)[1] | return to_plugin_and_port_number(subject)[1] | ||||
# ------------------------------------------------------------------------------- | |||||
# ------------------------------------------------------------------------------------------------------------ | |||||
# RDF store/retrieve data methods | # RDF store/retrieve data methods | ||||
def check_and_add_plugin(pluginId): | def check_and_add_plugin(pluginId): | ||||
@@ -490,7 +490,7 @@ def get_value_index(value, vlist): | |||||
print("LADSPA_RDF - CRITICAL ERROR #002") | print("LADSPA_RDF - CRITICAL ERROR #002") | ||||
return 0 | return 0 | ||||
# ------------------------------------------------------------------------------- | |||||
# ------------------------------------------------------------------------------------------------------------ | |||||
# RDF sort data methods | # RDF sort data methods | ||||
# Sort the plugin's port's ScalePoints by value | # Sort the plugin's port's ScalePoints by value | ||||
@@ -534,7 +534,7 @@ def SORT_PyLADSPA_RDF_Ports(oldDictList): | |||||
return newDictList | return newDictList | ||||
# ------------------------------------------------------------------------------- | |||||
# ------------------------------------------------------------------------------------------------------------ | |||||
# RDF data parsing | # RDF data parsing | ||||
from rdflib import ConjunctiveGraph, URIRef, BNode | from rdflib import ConjunctiveGraph, URIRef, BNode | ||||
@@ -681,7 +681,7 @@ def parse_rdf_file(filename): | |||||
index, pluginId, portId, value = portDefault | index, pluginId, portId, value = portDefault | ||||
set_port_default(pluginId, portId, value) | set_port_default(pluginId, portId, value) | ||||
# ------------------------------------------------------------------------------- | |||||
# ------------------------------------------------------------------------------------------------------------ | |||||
# LADSPA_RDF main methods | # LADSPA_RDF main methods | ||||
import os | import os | ||||
@@ -795,3 +795,5 @@ def get_c_ladspa_rdfs(pyPluginList): | |||||
C_LADSPA_Plugins.append(desc) | C_LADSPA_Plugins.append(desc) | ||||
return C_LADSPA_Plugins | return C_LADSPA_Plugins | ||||
# ------------------------------------------------------------------------------------------------------------ |