kopia lustrzana https://github.com/jameshball/osci-render
Rename HarmonicDuplicator to Duplicator and add SVG
rodzic
1fd774b3cb
commit
07bfe8fdd8
|
@ -0,0 +1 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="#e3e3e3"><path d="M240-160q-50 0-85-35t-35-85q0-50 35-85t85-35q50 0 85 35t35 85q0 50-35 85t-85 35Zm480 0q-50 0-85-35t-35-85q0-50 35-85t85-35q50 0 85 35t35 85q0 50-35 85t-85 35ZM480-560q-50 0-85-35t-35-85q0-50 35-85t85-35q50 0 85 35t35 85q0 50-35 85t-85 35Z"/></svg>
|
Po Szerokość: | Wysokość: | Rozmiar: 363 B |
|
@ -17,7 +17,7 @@
|
|||
#include "audio/MultiplexEffect.h"
|
||||
#include "audio/SmoothEffect.h"
|
||||
#include "audio/WobbleEffect.h"
|
||||
#include "audio/HarmonicDuplicatorEffect.h"
|
||||
#include "audio/DuplicatorEffect.h"
|
||||
#include "audio/DashedLineEffect.h"
|
||||
#include "audio/VectorCancellingEffect.h"
|
||||
#include "audio/ScaleEffect.h"
|
||||
|
@ -50,7 +50,7 @@ OscirenderAudioProcessor::OscirenderAudioProcessor() : CommonAudioProcessor(Buse
|
|||
toggleableEffects.push_back(DashedLineEffect(*this).build());
|
||||
toggleableEffects.push_back(TraceEffect(*this).build());
|
||||
toggleableEffects.push_back(WobbleEffect(*this).build());
|
||||
toggleableEffects.push_back(HarmonicDuplicatorEffect(*this).build());
|
||||
toggleableEffects.push_back(DuplicatorEffect(*this).build());
|
||||
|
||||
#if OSCI_PREMIUM
|
||||
toggleableEffects.push_back(MultiplexEffect(*this).build());
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
#include <JuceHeader.h>
|
||||
#include "../PluginProcessor.h"
|
||||
|
||||
class HarmonicDuplicatorEffect : public osci::EffectApplication {
|
||||
class DuplicatorEffect : public osci::EffectApplication {
|
||||
public:
|
||||
HarmonicDuplicatorEffect(OscirenderAudioProcessor& p) : audioProcessor(p) {}
|
||||
DuplicatorEffect(OscirenderAudioProcessor& p) : audioProcessor(p) {}
|
||||
|
||||
osci::Point apply(int index, osci::Point input, const std::vector<std::atomic<double>>& values, double sampleRate) override {
|
||||
const double twoPi = juce::MathConstants<double>::twoPi;
|
||||
|
@ -25,21 +25,21 @@ public:
|
|||
|
||||
std::shared_ptr<osci::Effect> build() const override {
|
||||
auto eff = std::make_shared<osci::Effect>(
|
||||
std::make_shared<HarmonicDuplicatorEffect>(audioProcessor),
|
||||
std::make_shared<DuplicatorEffect>(audioProcessor),
|
||||
std::vector<osci::EffectParameter*>{
|
||||
new osci::EffectParameter("Copies",
|
||||
new osci::EffectParameter("Duplicator Copies",
|
||||
"Controls the number of copies of the input shape to draw. Splitting the shape into multiple copies creates audible harmony.",
|
||||
"harmonicDuplicatorCopies", VERSION_HINT, 3.0, 1.0, 6.0),
|
||||
"duplicatorCopies", VERSION_HINT, 3.0, 1.0, 6.0),
|
||||
new osci::EffectParameter("Spread",
|
||||
"Controls the spread between copies of the input shape.",
|
||||
"harmonicDuplicatorSpread", VERSION_HINT, 0.4, 0.0, 1.0),
|
||||
"duplicatorSpread", VERSION_HINT, 0.4, 0.0, 1.0),
|
||||
new osci::EffectParameter("Angle Offset",
|
||||
"Rotates the offsets between copies without rotating the input shape.",
|
||||
"harmonicDuplicatorAngle", VERSION_HINT, 0.0, 0.0, 1.0, 0.0001, osci::LfoType::Sawtooth, 0.1)
|
||||
"duplicatorAngle", VERSION_HINT, 0.0, 0.0, 1.0, 0.0001, osci::LfoType::Sawtooth, 0.1)
|
||||
}
|
||||
);
|
||||
eff->setName("Harmonic Duplicator");
|
||||
eff->setIcon(BinaryData::kaleidoscope_svg);
|
||||
eff->setName("Duplicator");
|
||||
eff->setIcon(BinaryData::duplicator_svg);
|
||||
return eff;
|
||||
}
|
||||
|
|
@ -95,6 +95,7 @@
|
|||
<FILE id="Z2xdIc" name="dodecahedron.svg" compile="0" resource="1"
|
||||
file="Resources/svg/dodecahedron.svg"/>
|
||||
<FILE id="QkDLXs" name="donut.svg" compile="0" resource="1" file="Resources/svg/donut.svg"/>
|
||||
<FILE id="I5dGjs" name="duplicator.svg" compile="0" resource="1" file="Resources/svg/duplicator.svg"/>
|
||||
<FILE id="YwkQpy" name="fixed_rotate.svg" compile="0" resource="1"
|
||||
file="Resources/svg/fixed_rotate.svg"/>
|
||||
<FILE id="WIkl6l" name="fullscreen.svg" compile="0" resource="1" file="Resources/svg/fullscreen.svg"/>
|
||||
|
@ -167,8 +168,8 @@
|
|||
<GROUP id="{75439074-E50C-362F-1EDF-8B4BE9011259}" name="Source">
|
||||
<GROUP id="{85A33213-D880-BD92-70D8-1901DA6D23F0}" name="audio">
|
||||
<FILE id="tU2pQl" name="SkewEffect.h" compile="0" resource="0" file="Source/audio/SkewEffect.h"/>
|
||||
<FILE id="yxWOsR" name="HarmonicDuplicatorEffect.h" compile="0" resource="0"
|
||||
file="Source/audio/HarmonicDuplicatorEffect.h"/>
|
||||
<FILE id="yxWOsR" name="DuplicatorEffect.h" compile="0" resource="0"
|
||||
file="Source/audio/DuplicatorEffect.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"
|
||||
file="Source/audio/BitCrushEffect.h"/>
|
||||
|
|
Ładowanie…
Reference in New Issue