Guidence Needed writing an lv2 patch convertor.

What other apps and distros do you use to round out your studio?

Moderators: khz, MattKingUSA

Baggypants
Established Member
Posts: 91
Joined: Fri Jul 31, 2015 11:28 pm

Guidence Needed writing an lv2 patch convertor.

Postby Baggypants » Mon Nov 04, 2019 11:30 am

Hi. I'm writing a python tool to convert native plugin patches to lv2 format for the Zynthian Project. I've cobbled together a simple tool that fudges synthv1 xml files to lv2 using a text template. synthv12vl2.

However I've realised if I want to make it more flexible and convert more preset types I should really use the python rdflib to create a graph and serialize out the lv2 stuff, especially as I want the tool to be able to take in multiple presets and generate banks of presets in the form

Code: Select all

./synth_bankname.lv2/manifest.ttl
./synth_bankname.lv2/preset1.ttl
./synth_bankname.lv2/preset2.ttl


I understand enough that the rdf turtle format uses the form

Code: Select all

 subject, predicate, object
and the concept of all the resources being urls and the prefix stuff at the top of the ttl files. But I'm not competent enough to work out how I should be creating the sort resources to generate an lv2 preset. Would someone mind showing me how I would use rdflib to create a template lv2 preset that I can use?

References I've looked at are

http://ll-plugins.nongnu.org/lv2pftci/ which as some examples in C++ which I've never coded in.
https://harryhaaren.blogspot.com/2012/0 ... rview.html
and the rdflib docs linked above.

Anything else I should look at?

Return to “Linux Distributions & Other Software”

Who is online

Users browsing this forum: MSN [Bot] and 4 guests