You are here

Generate a preset from commandline or from a text file, and other things...

Hello

I would like to be able to automate the creation of presets for drumkv1.

For instance, it would be great if I could create a preset from a text file, for instance:
36: kick.wav
37: kick2.wav

I know there are lots of parameters to tweak, but the default parameters could be enough for a start.

It would be great also to have a 'human' representation of the MIDI note, for instance 36 -> C3, 48 -> C4, and so on

And last thing, a 'reload preset' button would be a great addition, to be able to reload a preset without having to use the file selector.

Anyway, thank you for your great software!

Forums: 
rncbc's picture

- I know there are lots of parameters to tweak, but the default parameters could be enough for a start.

to be kinda blunt, the .drumkv1 preset file is plain straightforward XML; you can edit it with a lame text editor if you like :)

when producing a bare-bones preset file you can omit all the parameter sections and just come up with the <sample> ones, like the following taken from your example:

<!DOCTYPE drumkv1>
<preset name="filename">
 <elements>
  <element index="36">
   <sample name="GEN1_SAMPLE">kick.wav</sample>
  </element>
  <element index="37">
   <sample name="GEN1_SAMPLE">kick2.wav</sample>
  </element>
 </elements>
</preset>

notes: filename must equate to preset name; sample file paths maybe absolute or relative to where the filename.drumkv1 file is located.

got that?

- It would be great also to have a 'human' representation of the MIDI note, for instance 36 -> C3, 48 -> C4, and so on

well, for a the percussion notes it doesn't make any more useful or does it? that's why the element listing stands for the GM standard drum note/key names and not with melodic ones.

- And last thing, a 'reload preset' button would be a great addition, to be able to reload a preset without having to use the file selector.

that's partially what the "Reset" button does and for all other circumstances, just selecting the preset name from the drop-down-list (preset combo-box) does exactly what i think you're asking, rather totally and absolutely! ;)

- Anyway, thank you for your great software!

thanks.
hth.

Thank you for your reply, this is great news!
I will try to generate a simple XML preset.
I thought I had to edit the .ttl files in my home directory, but the xml method is much simpler.

About the percussion notes vs the melodic names, some software only show the melodic names, so it would be easier to match.

Thanks for the reload tip, good to know.

I have one more feature coming to mind, but perhaps it is already implemented or there is a hidden shortcut:
is it possible to preview a sound, directly from drumkv1 interface?
It would be even better if the file selector could auto play the selected file, to get an instant preview.

This could be an option with an 'enable' checkbox, as it could be annoying for performing live... but is would make it very easy to browse a long list of samples

Thank you

rncbc's picture

answer is no,

but you can you use your favorite audio sample file browser and use drag-n-drop into the drumkv1 GUI if you like.

byee

Of course I can use another player, but it can be difficult to setup an audio player when jack is running

Trying to use drumkv1 plugin in jalv lv2 host nogui mode. Generated .drumkv1 preset files as discribed and placed them to /drumkv1.lv2/ folder. How can i activate preset now.
Thank you.

rncbc's picture

it seems like a question regarding jalv operation than one of drumkv1 in particular or any other LV2 plugin in general. sorry.

however, you should be aware, that in that mode of operation, jalv may only load genuine LV2 state presets... that means you won't have a chance to load any native *.drumkv1 files in the jalv nogui mode whatsoever;

you may first use the normal jalv GUI mode to load a .drumkv1 preset, tweak and prepare if you wish and save it as a LV2 state preset, then run the jalv no-GUI mode, possibly with the previously saved LV2 preset name as a parameter. IDK if that's possible yet it should be, otherwise I really don't see the usefulness of the whole headless/nongui jalv mode whatever :)

hth.
cheers

Thank you for reply.
I will try this in jalv.gtk. It has possibility to save .ttl presets

Add new comment