small ui update

This commit is contained in:
2025-12-25 23:00:13 -06:00
parent ce5c9e76a3
commit 9874d5983b
3 changed files with 66 additions and 22 deletions

View File

@@ -74,6 +74,8 @@ void Synth::process(float* out, uint32_t nFrames, uint32_t sampleRate) {
// process all envelopes // process all envelopes
gainEnvelope_.set(getParam(ParamId::Osc1VolumeEnvA), getParam(ParamId::Osc1VolumeEnvD), getParam(ParamId::Osc1VolumeEnvS), getParam(ParamId::Osc1VolumeEnvR)); gainEnvelope_.set(getParam(ParamId::Osc1VolumeEnvA), getParam(ParamId::Osc1VolumeEnvD), getParam(ParamId::Osc1VolumeEnvS), getParam(ParamId::Osc1VolumeEnvR));
float gain = gainEnvelope_.process(); float gain = gainEnvelope_.process();
// TODO: envelope is shared between all notes so this sequence involves a note change but only one envelope attack:
// NOTE_A_ON > NOTE_B_ON > NOTE_A_OFF and note B starts playing part-way through note A's envelope
// skip if no active notes // skip if no active notes
if(!gainEnvelope_.isActive()) { if(!gainEnvelope_.isActive()) {

View File

@@ -6,7 +6,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>800</width> <width>739</width>
<height>605</height> <height>605</height>
</rect> </rect>
</property> </property>
@@ -38,10 +38,10 @@
<widget class="SmartSlider" name="sliderGainR" native="true"> <widget class="SmartSlider" name="sliderGainR" native="true">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>580</x> <x>480</x>
<y>180</y> <y>180</y>
<width>171</width> <width>120</width>
<height>321</height> <height>300</height>
</rect> </rect>
</property> </property>
<property name="autoFillBackground"> <property name="autoFillBackground">
@@ -51,10 +51,10 @@
<widget class="SmartSlider" name="sliderGainA" native="true"> <widget class="SmartSlider" name="sliderGainA" native="true">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>40</x> <x>120</x>
<y>180</y> <y>180</y>
<width>171</width> <width>120</width>
<height>321</height> <height>300</height>
</rect> </rect>
</property> </property>
<property name="autoFillBackground"> <property name="autoFillBackground">
@@ -64,10 +64,10 @@
<widget class="SmartSlider" name="sliderGainD" native="true"> <widget class="SmartSlider" name="sliderGainD" native="true">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>220</x> <x>240</x>
<y>180</y> <y>180</y>
<width>171</width> <width>120</width>
<height>321</height> <height>300</height>
</rect> </rect>
</property> </property>
<property name="autoFillBackground"> <property name="autoFillBackground">
@@ -77,10 +77,10 @@
<widget class="SmartSlider" name="sliderGainS" native="true"> <widget class="SmartSlider" name="sliderGainS" native="true">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>400</x> <x>360</x>
<y>180</y> <y>180</y>
<width>171</width> <width>120</width>
<height>321</height> <height>300</height>
</rect> </rect>
</property> </property>
<property name="autoFillBackground"> <property name="autoFillBackground">

View File

@@ -6,22 +6,34 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>168</width> <width>120</width>
<height>298</height> <height>300</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy">
<sizepolicy hsizetype="Preferred" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="windowTitle"> <property name="windowTitle">
<string>Form</string> <string>Form</string>
</property> </property>
<widget class="QSlider" name="slider"> <widget class="QSlider" name="slider">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>70</x> <x>50</x>
<y>90</y> <y>90</y>
<width>16</width> <width>16</width>
<height>160</height> <height>160</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="orientation"> <property name="orientation">
<enum>Qt::Orientation::Vertical</enum> <enum>Qt::Orientation::Vertical</enum>
</property> </property>
@@ -32,32 +44,50 @@
<widget class="QDoubleSpinBox" name="spinMin"> <widget class="QDoubleSpinBox" name="spinMin">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>40</x> <x>20</x>
<y>260</y> <y>260</y>
<width>82</width> <width>82</width>
<height>24</height> <height>24</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget> </widget>
<widget class="QDoubleSpinBox" name="spinMax"> <widget class="QDoubleSpinBox" name="spinMax">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>40</x> <x>20</x>
<y>60</y> <y>60</y>
<width>82</width> <width>82</width>
<height>24</height> <height>24</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
</widget> </widget>
<widget class="QDoubleSpinBox" name="spinValue"> <widget class="QDoubleSpinBox" name="spinValue">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>40</x> <x>20</x>
<y>10</y> <y>20</y>
<width>82</width> <width>82</width>
<height>31</height> <height>31</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy">
<sizepolicy hsizetype="Minimum" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="font"> <property name="font">
<font> <font>
<pointsize>12</pointsize> <pointsize>12</pointsize>
@@ -67,12 +97,18 @@
<widget class="Line" name="line"> <widget class="Line" name="line">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>20</x> <x>0</x>
<y>10</y> <y>10</y>
<width>20</width> <width>20</width>
<height>271</height> <height>271</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="orientation"> <property name="orientation">
<enum>Qt::Orientation::Vertical</enum> <enum>Qt::Orientation::Vertical</enum>
</property> </property>
@@ -80,12 +116,18 @@
<widget class="Line" name="line_2"> <widget class="Line" name="line_2">
<property name="geometry"> <property name="geometry">
<rect> <rect>
<x>120</x> <x>100</x>
<y>10</y> <y>10</y>
<width>20</width> <width>20</width>
<height>271</height> <height>271</height>
</rect> </rect>
</property> </property>
<property name="sizePolicy">
<sizepolicy hsizetype="Fixed" vsizetype="Preferred">
<horstretch>0</horstretch>
<verstretch>0</verstretch>
</sizepolicy>
</property>
<property name="orientation"> <property name="orientation">
<enum>Qt::Orientation::Vertical</enum> <enum>Qt::Orientation::Vertical</enum>
</property> </property>