Rename effect and parameters

pull/323/head
Anthony Hall 2025-09-09 15:17:32 -07:00
rodzic aaa491b349
commit b1037febba
3 zmienionych plików z 10 dodań i 11 usunięć

Wyświetl plik

@ -26,7 +26,7 @@
#include "audio/SwirlEffect.h"
#include "audio/BounceEffect.h"
#include "audio/SkewEffect.h"
#include "audio/RadiationEffect.h"
#include "audio/GodRayEffect.h"
#include "parser/FileParser.h"
#include "parser/FrameProducer.h"
@ -57,7 +57,7 @@ OscirenderAudioProcessor::OscirenderAudioProcessor() : CommonAudioProcessor(Buse
toggleableEffects.push_back(BounceEffect().build());
toggleableEffects.push_back(TwistEffect().build());
toggleableEffects.push_back(SkewEffect().build());
toggleableEffects.push_back(RadiationEffect().build());
toggleableEffects.push_back(GodRayEffect().build());
#endif
auto scaleEffect = ScaleEffectApp().build();

Wyświetl plik

@ -1,7 +1,7 @@
#pragma once
#include <JuceHeader.h>
class RadiationEffect : public osci::EffectApplication {
class GodRayEffect : public osci::EffectApplication {
public:
osci::Point apply(int index, osci::Point input, const std::vector<std::atomic<double>> &values, double sampleRate) override {
double noiseAmp = juce::jmax(0.0, values[0].load());
@ -22,14 +22,14 @@ public:
std::shared_ptr<osci::Effect> build() const override {
auto eff = std::make_shared<osci::Effect>(
std::make_shared<RadiationEffect>(),
std::make_shared<GodRayEffect>(),
std::vector<osci::EffectParameter*>{
new osci::EffectParameter("Radiation",
"Creates a crepuscular ray effect by adding noise. This slider controls the size of the rays. Looks best with higher sample rates.",
"radiationAmp", VERSION_HINT, 0.5, 0.0, 1.0),
new osci::EffectParameter("Radiation Bias",
new osci::EffectParameter("God Rays",
"Creates a god ray effect by adding noise. This slider controls the size of the rays. Looks best with higher sample rates.",
"godRayAmp", VERSION_HINT, 0.5, 0.0, 1.0),
new osci::EffectParameter("God Ray Position",
"Controls whether the rays appear to be radiating inward or outward.",
"radiationBias", VERSION_HINT, 0.8, -1.0, 1.0)
"godRayBias", VERSION_HINT, 0.8, -1.0, 1.0)
});
eff->setIcon(BinaryData::scale_svg);
return eff;

Wyświetl plik

@ -166,8 +166,7 @@
</GROUP>
<GROUP id="{75439074-E50C-362F-1EDF-8B4BE9011259}" name="Source">
<GROUP id="{85A33213-D880-BD92-70D8-1901DA6D23F0}" name="audio">
<FILE id="de5H36" name="RadiationEffect.h" compile="0" resource="0"
file="Source/audio/RadiationEffect.h"/>
<FILE id="de5H36" name="GodRayEffect.h" compile="0" resource="0" file="Source/audio/GodRayEffect.h"/>
<FILE id="tU2pQl" name="SkewEffect.h" compile="0" resource="0" file="Source/audio/SkewEffect.h"/>
<FILE id="HE3dFE" name="AudioRecorder.h" compile="0" resource="0" file="Source/audio/AudioRecorder.h"/>
<FILE id="Bc8UeW" name="BitCrushEffect.h" compile="0" resource="0"