Skip to content

Commit

Permalink
Mix knob bitmap update
Browse files Browse the repository at this point in the history
  • Loading branch information
BLumia committed Aug 20, 2016
1 parent 7d336a2 commit 9b51dbb
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
3 changes: 2 additions & 1 deletion Synthesis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ Synthesis::Synthesis(IPlugInstanceInfo instanceInfo)

// Knob bitmap for ADSR
IBitmap greenKnobBitmap = pGraphics->LoadIBitmap(GREEN_KNOB_ID, GREEN_KNOB_FN, 31);
IBitmap greenKnobCenterBitmap = pGraphics->LoadIBitmap(GREEN_KNOB_CENTER_ID, GREEN_KNOB_CENTER_FN, 31);
IBitmap blueKnobBitmap = pGraphics->LoadIBitmap(BLUE_KNOB_ID, BLUE_KNOB_FN, 31);
IBitmap blueKnobCenterBitmap = pGraphics->LoadIBitmap(BLUE_KNOB_CENTER_ID, BLUE_KNOB_CENTER_FN, 31);
IBitmap orangeKnobBitmap = pGraphics->LoadIBitmap(ORANGE_KNOB_ID, ORANGE_KNOB_FN, 31);
Expand All @@ -83,7 +84,7 @@ Synthesis::Synthesis(IPlugInstanceInfo instanceInfo)
// mOscillatorMix
GetParam(mOscillatorMix)->InitDouble("Osc Mix", 0.0, 0.0, 1.0, 0.001);
GetParam(mOscillatorMix)->SetShape(1);
pGraphics->AttachControl(new IKnobMultiControl(this, 275, kGreenRow, mOscillatorMix, &greenKnobBitmap));
pGraphics->AttachControl(new IKnobMultiControl(this, 275, kGreenRow, mOscillatorMix, &greenKnobCenterBitmap));

// Attack knob:
ampAdsrKnobs[E_Att] = new IKnobMultiControl(this, 329, kOrangeRow, mAttack, &orangeKnobBitmap);
Expand Down
17 changes: 9 additions & 8 deletions Synthesis.rc
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
#include "resource.h"

BG_ID PNG BG_FN
PIANO_KEY_ID PNG PIANO_KEY_FN
WAVEFORM_ID PNG WAVEFORM_FN
GREEN_KNOB_ID PNG GREEN_KNOB_FN
BLUE_KNOB_ID PNG BLUE_KNOB_FN
BLUE_KNOB_CENTER_ID PNG BLUE_KNOB_CENTER_FN
FILTERMODE_ID PNG FILTERMODE_FN
ORANGE_KNOB_ID PNG ORANGE_KNOB_FN
BG_ID PNG BG_FN
PIANO_KEY_ID PNG PIANO_KEY_FN
WAVEFORM_ID PNG WAVEFORM_FN
GREEN_KNOB_ID PNG GREEN_KNOB_FN
GREEN_KNOB_CENTER_ID PNG GREEN_KNOB_CENTER_FN
BLUE_KNOB_ID PNG BLUE_KNOB_FN
BLUE_KNOB_CENTER_ID PNG BLUE_KNOB_CENTER_FN
FILTERMODE_ID PNG FILTERMODE_FN
ORANGE_KNOB_ID PNG ORANGE_KNOB_FN

#ifdef SA_API
//Standalone stuff
Expand Down
2 changes: 2 additions & 0 deletions resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,14 @@ instrument determined by PLUG _IS _INST
#define FILTERMODE_ID 106
#define BLUE_KNOB_CENTER_ID 107
#define ORANGE_KNOB_ID 108
#define GREEN_KNOB_CENTER_ID 109

// Image resource locations for this plug.
#define BG_FN "resources/img/bg.png"
#define PIANO_KEY_FN "resources/img/key.png"
#define WAVEFORM_FN "resources/img/waveform.png"
#define GREEN_KNOB_FN "resources/img/greenknob.png"
#define GREEN_KNOB_CENTER_FN "resources/img/greenknob-center0.png"
#define BLUE_KNOB_FN "resources/img/blueknob.png"
#define BLUE_KNOB_CENTER_FN "resources/img/blueknob-center0.png"
#define FILTERMODE_FN "resources/img/filtermode.png"
Expand Down
Binary file added resources/img/greenknob-center0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9b51dbb

Please sign in to comment.