GUI: add amplitude setting to per-chan osc

issue #1135
This commit is contained in:
tildearrow 2023-07-09 18:59:58 -05:00
parent 46ede984a7
commit 319ed04946

View file

@ -149,6 +149,14 @@ void FurnaceGUI::drawChanOsc() {
ImGui::EndTable();
}
ImGui::Text("Amplitude");
ImGui::SameLine();
ImGui::SetNextItemWidth(ImGui::GetContentRegionAvail().x);
if (CWSliderFloat("##COSAmp",&chanOscAmplify,0.0f,2.0f)) {
if (chanOscAmplify<0.0f) chanOscAmplify=0.0f;
if (chanOscAmplify>2.0f) chanOscAmplify=2.0f;
}
ImGui::Checkbox("Gradient",&chanOscUseGrad);
if (chanOscUseGrad) {