Line 139:
Line 139:
== Zynthian and presets of DrumKits ==
== Zynthian and presets of DrumKits ==
+
=== Data organization ===
+
+
It is a good idea to prepare a directory with individual drumkits on your PC. My favorite Drumkit is in ''zynthian-my-data-for-clear-installation/files/drumgizmo/CrocellKit''. Each of the sounds has its own sub-array, so you can find a snare or a snare rim shot. In these subdirectories there are samples in the form of ''wav'' files and an ''xml'' file describing individual levels of the force of hitting a given drum.
+
+
Example for kick drum right to weakest hit strength:
+
+
<sample name="KDrumR-1" power="0.00833794">
+
<audiofile channel="AmbLeft" file="samples/1-KDrumR.wav" filechannel="1"/>
+
<audiofile channel="AmbRight" file="samples/1-KDrumR.wav" filechannel="2"/>
+
<audiofile channel="FTom1" file="samples/1-KDrumR.wav" filechannel="3"/>
+
<audiofile channel="FTom2" file="samples/1-KDrumR.wav" filechannel="4"/>
+
<audiofile channel="Hihat" file="samples/1-KDrumR.wav" filechannel="5"/>
+
<audiofile channel="KDrumInside" file="samples/1-KDrumR.wav" filechannel="6"/>
+
<audiofile channel="KDrumOutside" file="samples/1-KDrumR.wav" filechannel="7"/>
+
<audiofile channel="OHCenter" file="samples/1-KDrumR.wav" filechannel="8"/>
+
<audiofile channel="OHLeft" file="samples/1-KDrumR.wav" filechannel="9"/>
+
<audiofile channel="OHRight" file="samples/1-KDrumR.wav" filechannel="10"/>
+
<audiofile channel="Ride" file="samples/1-KDrumR.wav" filechannel="11"/>
+
<audiofile channel="SnareBottom" file="samples/1-KDrumR.wav" filechannel="12"/>
+
<audiofile channel="SnareTop" file="samples/1-KDrumR.wav" filechannel="13"/>
+
<audiofile channel="Tom1" file="samples/1-KDrumR.wav" filechannel="14"/>
+
<audiofile channel="Tom2" file="samples/1-KDrumR.wav" filechannel="15"/>
+
</sample>
+
+
+
From this we read that there are 15 sound tracks corresponding to the positions of the microphones around the entire drum set.
+
+
To create a preset, we will always need a pair of files. One describing the set of drums, in the case of CrocellKit they are called e.g. ''CrocellKit_full.xml'' and similar. They define the ''instruments'' to be sampled. The number of ''instruments'' affects the time it takes to load samples into memory. the times are long and I list them below. The second type of xlm files are files describing mapping, i.e. assigning ''instruments'' to notes.
+
+
Example from ''Midimap_full.xlm''
+
+
<midimap>
+
<map note="54" instr="ChinaL"/>
+
<map note="52" instr="ChinaR"/>
+
<map note="49" instr="CrashL"/>
+
<map note="56" instr="CrashLStopped"/>
+
<map note="57" instr="CrashR"/>
+
<map note="75" instr="CrashRStopped"/>
+
<map note="59" instr="CrashRXtra"/>
+
<map note="42" instr="HihatClosed"/>
+
<map note="80" instr="HihatSemiOpen"/>
+
<map note="46" instr="HihatOpen"/>
+
<map note="78" instr="HihatClosedNoPedal"/>
+
<map note="44" instr="HihatPedal"/>
+
<map note="73" instr="HihatPedalHit"/>
+
<map note="35" instr="KDrumL"/>
+
<map note="36" instr="KDrumR"/>
+
<map note="55" instr="SplashL"/>
+
<map note="58" instr="SplashR"/>
+
<map note="51" instr="RideR"/>
+
<map note="53" instr="RideRBell"/>
+
<map note="38" instr="Snare"/>
+
<map note="37" instr="SnareRim"/>
+
<map note="40" instr="SnareRimShot"/>
+
<map note="39" instr="SnareRest"/>
+
<map note="48" instr="Tom1"/>
+
<map note="47" instr="Tom2"/>
+
<map note="43" instr="FTom1"/>
+
<map note="41" instr="FTom2"/>
+
</midimap>
+
+
Usually, in file names, the second word joins the correct pairs. For CrocellKit, the correct pair is ''CrocellKit_full.xml'' and ''Midimap_full.xlm''. The creation of these files is described in detail in the DrumGizmo project wiki.
+
+
=== Transfer DrumKit files to Zynthian ===
+
+
For our example, the data from the directory ''zynthian-my-data-for-clear-installation/files/drumgizmo/CrocellKit'' needs to get into Zynthian. More precisely, to the directory ''/home/pi/zynthian-my-data/files/drumgizmo/CrocellKit''. I used my favorite FileZilla. You can use other program allowing sftp transfer or ssh scp combination.
+
+
[[File:Fig-drumgizmo-transfer-of-files.png||thumb|alt=Transfer files to Zynthian|center]]
+
+
=== Creating a preset ===
+
+
* Make sure you have the option to show DrumGizmo LV2 plugin Engine in webconf enabled. Go to the menu SOFTWARE / LV2-Plugins check and choose DrumGizmo. The selection must be confirmed by clicking the SAVE button at the bottom of the page.
+
+
* Make sure you have VNC enabled on Zynthian. If not, then Turn on VNC connection in webconf - select Interface / User Interface / check Enable VNC server. Restart webconf (F5)
+
+
* Create a channel with the DrumGizmo engine.
+
+
[[File:Fig-add-midi-synth.png|thumb|center]]
+
[[File:Fig-drumgizmo-ui-01.png|thumb|center]]
+
+
* Choose the midi channel according to your need.
+
+
Since there are no presets, you get directly into the DrumGizma UI, which is not extensive, see images.
+
+
[[File:Fig-drumgizmo-settings-1.png|thumb|center]]
+
[[File:Fig-drumgizmo-settings-2.png|thumb|center]]
+
+
It is necessary to get into the GUI LV2 of the DrumGizmo plugin.
+
+
* In webconf go to a menu Interface / VNC - Engines -> this open new window with connection to the Synth Engine Native GUIs. Clik on Connect and fill password ''raspberry'' and push enter key.
+
+
[[File:Fig-drumgizmo-GUI-01.png|thumb|center]]
+
+
To create presets, we will need the upper left part of the GUI. In detail in fig.
+
[[File:Fig-drumgizmo-GUI-Drumkit.png|thumb|center]]
+
+
First, you can use the Browse button to select the Drumkit File. In our case to the file ''/home/pi/zynthian-my-data/files/drumgizmo/CrocellKit/CrocellKit_full.xml''. The window for selection is a bit specific, all movement is confirmed by clicking the ''Select'' button
+
+
[[File:Fig-drumgizmo-GUI-select-kit.png|thumb|center]]
+
+
Next we will make a choice for Midimap File. So we enter /home/pi/zynthian-my-data/files/drumgizmo/CrocellKit/Midimap_full.xlm.
+
+
[[File:Fig-drumgizmo-GUI-select-maps.png|thumb|center]]
+
+
Since it takes a long time to upload the samples, you will probably end up in the following state:
+
+
[[File:Fig-drumgizmo-kit-loading.png|thumb|center]]
+
+
If everything goes correctly, the final state is as follows:
+
+
[[File:Fig-drumgizmo-kit-loaded-OK.png|thumb|center]]
+
+
From now on, DrumGizmo will be drumming for you.
+
+
There is nothing left to do but save the preset. Selecting Preset from the DrumGizmo GUI window menu will do this for us. Store the presets in the directory ''/zynthian/zynthian-my-data/presets/lv2'' , so it is ensured that Zynthian can find them.
+
+
[[File:Fig-drumgizmo-GUI-save-preset.png|thumb|center]]
+
+
It is good to prepare several presets like this, because the last step is the longest.
+
+
*You have to within web browser, navigate to webconf ''SOFTWARE->LV2 Plugins''. Click “''Search for new Plugins & Presets''” button. Wait, take a cafe, a few minutes and Zynthian must restart automatically.
+
+
[[File:Find-presets.png|thumb|center]]
+
+
After this you will have saved presets available in Zynthian UI.
+
+
[[File:Drum-gizmo-select-preset.png|thumb|center]]
== Native GUI ==
== Native GUI ==