diff --git a/CMakeLists.txt b/CMakeLists.txt index 2048ce8..f801fb9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 3.15) include(FetchContent) -project(DRUMLABOOH LANGUAGES CXX C VERSION 2.0.2) +project(DRUMLABOOH LANGUAGES CXX C VERSION 2.1.0) message("Compiler ID: ${CMAKE_CXX_COMPILER_ID}") diff --git a/Source/PluginEditor.cpp b/Source/PluginEditor.cpp index d8bb908..083642a 100644 --- a/Source/PluginEditor.cpp +++ b/Source/PluginEditor.cpp @@ -588,9 +588,8 @@ CAudioProcessorEditor::CAudioProcessorEditor (CAudioProcessor& parent, juce::Aud bt_file_open.onClick = [this] { - - dlg_fileopen = std::make_unique ("Select file to load...", - File::getSpecialLocation (juce::File::userHomeDirectory)); + dlg_fileopen = std::make_unique ("Select file to load...", + File::getSpecialLocation (juce::File::userHomeDirectory)); auto folderChooserFlags = juce::FileBrowserComponent::openMode; @@ -602,6 +601,21 @@ CAudioProcessorEditor::CAudioProcessorEditor (CAudioProcessor& parent, juce::Aud std::string full (f.getFullPathName().toRawUTF8()); + + bool supported = false; + + if (ends_with (full, ".xml")) + supported = true; + + if (ends_with (full, ".sfz")) + supported = true; + + if (ends_with (full, "drumkit.txt")) + supported = true; + + if (! supported) + return; + audioProcessor.drumkit_path = full; tmr_leds.stopTimer(); @@ -649,7 +663,7 @@ CAudioProcessorEditor::CAudioProcessorEditor (CAudioProcessor& parent, juce::Aud cmb_drumkit_selector.setSize (drumcells_group.getWidth() - (64 + XFILLER), 48); bt_file_open.setTopLeftPosition (cmb_drumkit_selector.getRight() + XFILLER, 8); - bt_file_open.setSize (64 + XFILLER, 48); + bt_file_open.setSize (64, 48); diff --git a/docs/index.html b/docs/index.html index 2350980..9077658 100644 --- a/docs/index.html +++ b/docs/index.html @@ -28,6 +28,9 @@

Free LV2/VSTi drum machine for Linux and Windows

NEWS

+

December 24 2023 - 2.1.0 release - The file open button has been added that allows to open the drumkit outside the pre-defined location.

+ +

October 10 2023 - 2.0.2 release - Drum kits list initialization fixed.

@@ -70,6 +73,9 @@

NEWS

НОВОСТИ

+

24 декабря 2023 - 2.1.0 release - Добавлена кнопка для выбора драмкита в произвольном, а не только в предустановленном каталоге.

+ +

10 октября 2023 - 2.0.2 release - Исправление инициализации списка драмкитов.

8 октября 2023 - выпуск 2.0.0
diff --git a/docs/install.html b/docs/install.html index fcd3dbd..716273d 100644 --- a/docs/install.html +++ b/docs/install.html @@ -23,11 +23,11 @@

Drumlabooh | Драмлабух: INSTALL

Get the plugin!

-

Latest release (2.0.2).
+

Latest release (2.1.0).
Github page
-Windows VSTi installer (2.0.2) (installs to C:\Program Files (x86)\Common Files\VST3)
+
Windows VSTi installer (2.1.0) (installs to C:\Program Files (x86)\Common Files\VST3)
AUR page // yay -S drumlabooh

diff --git a/docs/manual.html b/docs/manual.html index eb654d7..424d671 100644 --- a/docs/manual.html +++ b/docs/manual.html @@ -24,7 +24,7 @@

Drumlabooh | Драмлабух: USER'S MANUAL

-

Drumlabooh is aimed to not interfere with creativity. All that you need is to create a new MIDI track at your DAW, select the drumkit from the list, and play. Yes indeed, Drumlabooh is not for inventors of new, synthesized drum sounds. Drumlabooh uses the existing, sampled drumkits, so you need to install them first.

+

Drumlabooh is aimed to not interfere with the creativity. All that you need is to create a new MIDI track at your DAW, select the drumkit from the list, and play. Yes indeed, Drumlabooh is not for inventors of new, synthesized drum sounds. Drumlabooh uses the existing, sampled drumkits, so you need to install them first.

1. Stereo vs Multi-channel modes
2. Get kits
@@ -58,9 +58,11 @@

2. Get kits

All kits those found will be available from the menu (drop-down list) at the top left corner of the plugin.

-

Note: actually, Drumalbooh searches kits at many locations.

+

You can also select the drumkit at any directory, using the Or select file button near the drumkits dropdown list. Select xml (Hydrogen formet), sfz (SFZ) or drumkit.txt (Drumlabooh format) file at the drumkit's folder. +

+

Hydrogen format:

/usr/share/hydrogen/data/drumkits
@@ -217,6 +219,9 @@ 

2. Скачайте драмкиты

Все найденные драмкиты будут доступны в Драмлабухе из выпадающего списка в верхней левой части плагина

+

Справа от него есть также кнопочка Or select file, при помощи которой можно через диалоговое окно открыть драмкит в любом каталоге, где нужно выбрать файл xml (для формата Hydrogen ), sfz (для SFZ) или, в случае с форматом Drumlabooh, drumkit.txt. +

+

Примечание: вообще-то Драмлабух ищет киты во многих каталогах, а именно: