Skip to content

Commit

Permalink
added projucer project file for esier gui resources BinaryData exporting
Browse files Browse the repository at this point in the history
  • Loading branch information
midilab committed Jan 13, 2024
1 parent 3261e9e commit 2ffb059
Show file tree
Hide file tree
Showing 19 changed files with 3,816 additions and 5,138 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
# build artifacts
build*/
Build*/
Builds*/
lib*/
bin/
*_Packaged
*.exe
*.dmg
vstsdk2.4/
src/JuceLibraryCode/JuceHeader.h
src/JuceLibraryCode/ReadMe.txt

# ide settings
.vscode/
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ target_sources("${PROJECT_NAME}"
dsp/rosic_RealFunctions.cpp
dsp/rosic_TeeBeeFilter.cpp

ui/BinaryData.cpp
JuceLibraryCode/BinaryData.cpp

Gui.cpp
JC303.cpp)
Expand Down
4 changes: 2 additions & 2 deletions src/Gui.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

#include <JuceHeader.h>
#include "JC303.h"
#include "ui/BinaryData.h"
#include "ui/KnobLookAndFeel.h"
#include "JuceLibraryCode/BinaryData.h"
#include "gui/KnobLookAndFeel.h"

typedef juce::AudioProcessorValueTreeState::SliderAttachment SliderAttachment;

Expand Down
1 change: 1 addition & 0 deletions src/JC303.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ void JC303::setParameter (Open303Parameters index, float value)
//
// MODS
//
// get devilfish as parameter for now: http://www.synthdiy.com/show/?id=415
case TANH_SHAPER_DRIVE: // its valid for square but not super expresive
//open303Core.setTanhShaperDrive( linToLin(value, 0.0, 1.0, 0.0, 60.0) );
open303Core.setTanhShaperDrive( linToLin(value, 0.0, 1.0, 35.0, 80.0) );
Expand Down
8,896 changes: 3,764 additions & 5,132 deletions src/ui/BinaryData.cpp → src/JuceLibraryCode/BinaryData.cpp

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions src/ui/BinaryData.h → src/JuceLibraryCode/BinaryData.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,19 @@
namespace BinaryData
{
extern const char* jc303gui_png;
const int jc303gui_pngSize = 205153;
const int jc303gui_pngSize = 209116;

extern const char* jc303knob_png;
const int jc303knob_pngSize = 1380653;

extern const char* jc303modknob_png;
const int jc303modknob_pngSize = 49364;

extern const char* jc303modswitch_png;
const int jc303modswitch_pngSize = 4573;

// Number of elements in the namedResourceList and originalFileNames arrays.
const int namedResourceListSize = 2;
const int namedResourceListSize = 4;

// Points to the start of a list of resource names.
extern const char* namedResourceList[];
Expand Down
2 changes: 1 addition & 1 deletion src/ui/KnobLookAndFeel.h → src/gui/KnobLookAndFeel.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

//#include <JuceHeader.h>
#include "BinaryData.h"
#include "../JuceLibraryCode/BinaryData.h"

//==============================================================================
class KnobLookAndFeel : public LookAndFeel_V4
Expand Down
Binary file added src/gui/resources/jc303-gui.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added src/gui/resources/jc303-mod-knob.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/gui/resources/jc303-mod-switch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/gui/resources/jc303-mod-switch1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/gui/resources/jc303-mod-switch2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/gui/resources/jc303-mod-switch3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/gui/resources/jc303-mod-switch4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/gui/resources/jc303-mod-switch5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file renamed ui/jc303-ui.xcf → src/gui/resources/jc303-ui.xcf
Binary file not shown.
35 changes: 35 additions & 0 deletions src/jc303-gui.jucer
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>

<JUCERPROJECT id="DHEf05" name="jc303-gui" projectType="guiapp" useAppConfig="0"
addUsingNamespaceToJuceHeader="0" displaySplashScreen="1" jucerFormatVersion="1">
<MAINGROUP id="CJcFJY" name="jc303-gui">
<GROUP id="{DD8B1986-2C83-9275-BC5F-6F63D551FF92}" name="Resources">
<FILE id="a6T33A" name="jc303-gui.png" compile="0" resource="1" file="gui/resources/jc303-gui.png"/>
<FILE id="Q666HV" name="jc303-knob.png" compile="0" resource="1" file="gui/resources/jc303-knob.png"/>
<FILE id="adKUyb" name="jc303-mod-knob.png" compile="0" resource="1"
file="gui/resources/jc303-mod-knob.png"/>
<FILE id="qa4BlD" name="jc303-mod-switch.png" compile="0" resource="1"
file="gui/resources/jc303-mod-switch.png"/>
</GROUP>
<GROUP id="{448A74E3-0B21-A88C-6AF0-B8576C880BC5}" name="GUI">
<FILE id="RK1Gng" name="Gui.cpp" compile="1" resource="0" file="Gui.cpp"/>
<FILE id="dd3FGf" name="Gui.h" compile="0" resource="0" file="Gui.h"/>
<FILE id="gWFNci" name="KnobLookAndFeel.h" compile="0" resource="0"
file="gui/KnobLookAndFeel.h"/>
</GROUP>
<GROUP id="{A0D2D718-25B9-6767-C7D9-D915FFC2C688}" name="Source">
<FILE id="qz8Js5" name="JC303.cpp" compile="1" resource="0" file="JC303.cpp"/>
<FILE id="EyRABC" name="JC303.h" compile="0" resource="0" file="JC303.h"/>
</GROUP>
</MAINGROUP>
<JUCEOPTIONS JUCE_STRICT_REFCOUNTEDPOINTER="1"/>
<MODULES/>
<EXPORTFORMATS>
<LINUX_MAKE targetFolder="Builds/LinuxMakefile">
<CONFIGURATIONS>
<CONFIGURATION isDebug="1" name="Debug"/>
<CONFIGURATION isDebug="0" name="Release"/>
</CONFIGURATIONS>
</LINUX_MAKE>
</EXPORTFORMATS>
</JUCERPROJECT>
Binary file removed ui/jc303-gui.png
Binary file not shown.

0 comments on commit 2ffb059

Please sign in to comment.