swesterfeld / liquidsfz

SFZ Sampler
Mozilla Public License 2.0
79 stars 12 forks source link

File extension in LV2 #9

Closed iurienistor closed 3 years ago

iurienistor commented 4 years ago

When opening the browse file dialog for LV2 there are shown all types of files. Is there a possibility to filter only *.sfz?

swesterfeld commented 4 years ago

The lv2 ui is a generic ui generated by the host. The file dialog is shown by the host, in the .ttl file it looks like

<http://spectmorph.org/plugins/liquidsfz#sfzfile>
  a lv2:Parameter;
  rdfs:label "SFZ File";
  rdfs:range atom:Path .
[...]
  patch:writable <http://spectmorph.org/plugins/liquidsfz#sfzfile>;

As far as I know there is no way to specify filters or extensions here.

swesterfeld commented 3 years ago

I'm closing this issue, as I see no way to implement an extension filter here. Btw, it would have to be .sfz/.xml due to hydrogen support these days.