mirror of
https://codeberg.org/armin/chromaflock.git
synced 2026-09-01 04:10:47 +02:00
Switch license to AGPLv3 to align with JUCE license.
This commit is contained in:
parent
ce055cc1e3
commit
e595daeeb8
5 changed files with 719 additions and 30 deletions
|
|
@ -701,16 +701,21 @@ void MainContentComponent::paint(juce::Graphics& g) {
|
|||
int compH = getHeight();
|
||||
|
||||
g.setOpacity(0.35f);
|
||||
for (int x = 0; x < compW; x += imgW)
|
||||
for (int y = 0; y < compH; y += imgH)
|
||||
g.drawImageAt(bgImage, x, y);
|
||||
const float bgZoom = 1.8f;
|
||||
int tileW = static_cast<int>(imgW * bgZoom);
|
||||
int tileH = static_cast<int>(imgH * bgZoom);
|
||||
for (int x = 0; x < compW; x += tileW)
|
||||
for (int y = 0; y < compH; y += tileH)
|
||||
g.drawImage(bgImage, static_cast<float>(x), static_cast<float>(y),
|
||||
static_cast<float>(tileW), static_cast<float>(tileH),
|
||||
0, 0, imgW, imgH, false);
|
||||
g.setOpacity(1.0f);
|
||||
}
|
||||
|
||||
// Load logo
|
||||
if (!logoLoaded) {
|
||||
auto img = juce::ImageFileFormat::loadFrom(
|
||||
BinaryData::cf3d_png, BinaryData::cf3d_pngSize);
|
||||
BinaryData::newlogo_png, BinaryData::newlogo_pngSize);
|
||||
if (img.isValid()) {
|
||||
juce::Image::BitmapData bd(img, juce::Image::BitmapData::readOnly);
|
||||
int minX = bd.width, maxX = 0, minY = bd.height, maxY = 0;
|
||||
|
|
@ -780,9 +785,9 @@ void MainContentComponent::paint(juce::Graphics& g) {
|
|||
g.drawText(title, x + 6, y + titlePadY, w - 12, 14, juce::Justification::centred);
|
||||
};
|
||||
|
||||
drawSubSection(15, 508, 395, 140, "DISTORTION", 6);
|
||||
drawSubSection(420, 508, 660, 140, "COMPRESSOR", 6);
|
||||
drawSubSection(1090, 508, 240, 140, "AUTO-PAN", 6);
|
||||
drawSubSection(172, 508, 395, 140, "DISTORTION", 6);
|
||||
drawSubSection(577, 508, 660, 140, "COMPRESSOR", 6);
|
||||
drawSubSection(1247, 508, 240, 140, "AUTO-PAN", 6);
|
||||
|
||||
// LFO sub-sections
|
||||
drawSubSection(15, 658, 530, 150, "LFO 1", 4);
|
||||
|
|
@ -854,22 +859,22 @@ void MainContentComponent::resized() {
|
|||
|
||||
fxLabel.setBounds(10, fxY + 8, 1640, fxLabelH);
|
||||
|
||||
// Distortion sub-section (X=15, Y=476, W=395, H=140)
|
||||
distTypeBox.setBounds(22, fxKnobY + 2, 140, 36);
|
||||
distAmountKnob.setBounds(170, fxKnobY, fxKnobSize, fxKnobSize);
|
||||
distMixKnob.setBounds(280, fxKnobY, fxKnobSize, fxKnobSize);
|
||||
// Distortion sub-section (X=172, Y=476, W=395, H=140)
|
||||
distTypeBox.setBounds(179, fxKnobY + 2, 140, 36);
|
||||
distAmountKnob.setBounds(327, fxKnobY, fxKnobSize, fxKnobSize);
|
||||
distMixKnob.setBounds(437, fxKnobY, fxKnobSize, fxKnobSize);
|
||||
|
||||
// Compressor sub-section (X=420, Y=476, W=660, H=140)
|
||||
compThresholdKnob.setBounds(428, fxKnobY, fxKnobSize, fxKnobSize);
|
||||
compRatioKnob.setBounds(538, fxKnobY, fxKnobSize, fxKnobSize);
|
||||
compAttackKnob.setBounds(648, fxKnobY, fxKnobSize, fxKnobSize);
|
||||
compReleaseKnob.setBounds(758, fxKnobY, fxKnobSize, fxKnobSize);
|
||||
compMakeupKnob.setBounds(868, fxKnobY, fxKnobSize, fxKnobSize);
|
||||
compMixKnob.setBounds(978, fxKnobY, fxKnobSize, fxKnobSize);
|
||||
// Compressor sub-section (X=577, Y=476, W=660, H=140)
|
||||
compThresholdKnob.setBounds(585, fxKnobY, fxKnobSize, fxKnobSize);
|
||||
compRatioKnob.setBounds(695, fxKnobY, fxKnobSize, fxKnobSize);
|
||||
compAttackKnob.setBounds(805, fxKnobY, fxKnobSize, fxKnobSize);
|
||||
compReleaseKnob.setBounds(915, fxKnobY, fxKnobSize, fxKnobSize);
|
||||
compMakeupKnob.setBounds(1025, fxKnobY, fxKnobSize, fxKnobSize);
|
||||
compMixKnob.setBounds(1135, fxKnobY, fxKnobSize, fxKnobSize);
|
||||
|
||||
// Auto-Pan sub-section (X=1090, Y=476, W=240, H=140)
|
||||
autoPanRateKnob.setBounds(1098, fxKnobY, fxKnobSize, fxKnobSize);
|
||||
autoPanDepthKnob.setBounds(1098 + fxKnobSize + 8, fxKnobY, fxKnobSize, fxKnobSize);
|
||||
// Auto-Pan sub-section (X=1247, Y=476, W=240, H=140)
|
||||
autoPanRateKnob.setBounds(1255, fxKnobY, fxKnobSize, fxKnobSize);
|
||||
autoPanDepthKnob.setBounds(1255 + fxKnobSize + 8, fxKnobY, fxKnobSize, fxKnobSize);
|
||||
|
||||
// --- LFO SECTION ---
|
||||
int lfoY = 638;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue