Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
models/dx7_vae_model.pt filter=lfs diff=lfs merge=lfs -text
asssets/*.png filter=lfs diff=lfs merge=lfs -text
35 changes: 34 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,35 @@ if(UNIX AND NOT APPLE)
pkg_check_modules(HARFBUZZ REQUIRED harfbuzz)
endif()

# Add binary data for UI assets
juce_add_binary_data(AssetsData
HEADER_NAME "AssetsData.h"
NAMESPACE AssetsData
SOURCES
asssets/global_header.png
asssets/background0.png
asssets/background1.png
asssets/background2.png
asssets/background3.png
asssets/customise_generate_pressed.png
asssets/customise_generate_unpressed.png
asssets/customise_randomise_pressed.png
asssets/customise_randomise_unpressed.png
asssets/customise_slider_knob.png
asssets/customise_slider_track.png
asssets/customise_7_seg_background.png
asssets/randomise_cart.png
asssets/tab_customise_selected_pressed.png
asssets/tab_customise_selected_unpressed.png
asssets/tab_customise_unselected_pressed.png
asssets/tab_customise_unselected_unpressed.png
asssets/tab_randomise_selected_pressed.png
asssets/tab_randomise_selected_unpressed.png
asssets/tab_randomise_unselected_pressed.png
asssets/tab_randomise_unselected_unpressed.png
asssets/DSEG7Classic-Bold.ttf
)

# Create the plugin target
juce_add_plugin(NeuralDX7PatchGenerator
COMPANY_NAME "NintoracAudio"
Expand All @@ -62,7 +91,7 @@ juce_add_plugin(NeuralDX7PatchGenerator
NEEDS_MIDI_OUTPUT TRUE
IS_MIDI_PLUGIN TRUE
IS_MIDI_EFFECT TRUE
EDITOR_WANTS_KEYBOARD_FOCUS FALSE
EDITOR_WANTS_KEYBOARD_FOCUS TRUE
COPY_PLUGIN_AFTER_BUILD TRUE
PLUGIN_MANUFACTURER_CODE NinA
PLUGIN_CODE NeuD
Expand Down Expand Up @@ -94,6 +123,9 @@ target_sources(NeuralDX7PatchGenerator
PRIVATE
Source/PluginProcessor.cpp
Source/PluginEditor.cpp
Source/UI/DX7LatentSliderLookAndFeel.cpp
Source/UI/DX7LatentSlider.cpp
Source/UI/DX7TabComponents.cpp
Source/DX7Voice.cpp
Source/DX7VoicePacker.cpp
Source/DX7BulkPacker.cpp
Expand All @@ -105,6 +137,7 @@ target_sources(NeuralDX7PatchGenerator
# Link libraries
target_link_libraries(NeuralDX7PatchGenerator
PRIVATE
AssetsData
juce::juce_audio_utils
juce::juce_audio_processors
juce::juce_audio_devices
Expand Down
19 changes: 15 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,26 @@ To use a real trained model instead of the dummy:
```python
import torch
from agoge import InferenceWorker

# Load your trained model
model = InferenceWorker('hasty-copper-dogfish', 'dx7-vae', with_data=False).model

# Convert to TorchScript
scripted_model = torch.jit.script(model)

# Save the scripted model
scripted_model.save('dx7_vae_model.pt')
```

3. Replace the dummy model file with the real one.
3. Replace the dummy model file with the real one.

## Acknowledgements

This project uses the **DSEG7 Classic** font by keshikan for the 7-segment LED display styling:
- Font: DSEG7 Classic Regular
- Author: keshikan
- Website: https://www.keshikan.net/fonts-e.html
- GitHub: https://github.com/keshikan/DSEG
- License: SIL Open Font License 1.1

The DSEG font family provides authentic 7-segment and 14-segment display typefaces for digital display aesthetics.
Loading