Mapping Instrument & Effect Property Values to Labels

I couldn’t help myself, I had to have a play.

I grabbed the values for osc1waveform by comparing Reaper’s native UI values to the NoiseMaker GUI. There’s only three options here so I figured it would be a good one to start with.

I modified a version of /usr/lib/lv2/TAL-NoiseMaker.lv2/TAL-NoiseMaker.ttl by adding the following lines to the osc1waveform section:

    lv2:scalePoint [ rdfs:label "Saw"; rdf:value 0.0 ] ;
    lv2:scalePoint [ rdfs:label "Pulse"; rdf:value 0.5 ] ;
    lv2:scalePoint [ rdfs:label "Noise"; rdf:value 1.0 ] ;

Then pushed it back to the Zynthian, added a NoiseMaker layer aaaand… no dice. I restarted the GUI, same same. Restarted the Zynthian, same same.

Back on my computer I took another look at Calf’s Monosynth.ttl and compared it to the NoiseMaker one. I found that the NoiseMaker one was missing the rdf prefix, so I added the following line to the top of TAL-NoiseMaker.ttl:

@prefix rdf: http://www.w3.org/1999/02/22-rdf-syntax-ns# .

Pushed it back to the Zynthian, added a NoiseMaker layer aaaaaand… no dice. I restarted the GUI, added a new NoiseMaker layer aaand IT WORKED! I now know what waveform I have selected for my oscillators when using NoiseMaker!

I will get onto mapping the rest of the values over the next couple of days. For now I gotta get back to other things, it’s not like I should be working or anything… Ooops!

Edit: Oh, and what is best practice for getting modifications like this included in the Zynthian repo? I suppose I should figure out how to submit a pull request on GitHub?

3 Likes