1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-11 09:03:36 +02:00

Adding new libraries for LV2 support.

lilv-0.16.0
lv2-1.6.0
serd-0.18.2
sord-0.12.0
sratom-0.4.2
This commit is contained in:
lllucius
2013-10-27 08:56:51 +00:00
parent 52afa22aaf
commit bc5e7ffce8
588 changed files with 170918 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
%module lilv
%{
#include "lilv/lilv.h"
#include "lilv/lilvmm.hpp"
%}
%include "lilv/lilv.h"
%include "lilv/lilvmm.hpp"
namespace Lilv {
%extend Plugins {
%pythoncode %{
def __iter__(self):
class Iterator(object):
def __init__(self, plugins):
self.plugins = plugins
self.iter = plugins.begin()
def next(self):
self.iter = self.plugins.next(self.iter)
if not self.plugins.is_end(self.iter):
return self.plugins.get(self.iter)
else:
raise StopIteration
return Iterator(self)
%}
};
%extend Node {
%pythoncode %{
def __str__(self):
return self.get_turtle_token()
%}
};
} /* namespace Lilv */