6 const String Kwidget_Reformer::Parameters::PuckX =
"PuckX";
7 const String Kwidget_Reformer::Parameters::PuckY =
"PuckY";
8 const String Kwidget_Reformer::Parameters::Nearest =
"Nearest";
25 const String Kwidget_Reformer::Parameters::Popcorn =
"Popcorn";
26 const String Kwidget_Reformer::Parameters::Proximity =
"Proximity";
27 const String Kwidget_Reformer::Parameters::Radius =
"Radius";
35 const String Kwidget_Reformer::Parameters::Segmentation =
"Segmentation";
36 const String Kwidget_Reformer::Parameters::FeatureExtr =
"FeatureExtr";
44 const String Kwidget_Reformer::Parameters::Coeff0 =
"Coeff0";
45 const String Kwidget_Reformer::Parameters::Coeff1 =
"Coeff1";
46 const String Kwidget_Reformer::Parameters::Coeff2 =
"Coeff2";
47 const String Kwidget_Reformer::Parameters::Coeff3 =
"Coeff3";
48 const String Kwidget_Reformer::Parameters::Coeff4 =
"Coeff4";
49 const String Kwidget_Reformer::Parameters::Coeff5 =
"Coeff5";
50 const String Kwidget_Reformer::Parameters::Coeff6 =
"Coeff6";
51 const String Kwidget_Reformer::Parameters::Coeff7 =
"Coeff7";
52 const String Kwidget_Reformer::Parameters::SelectX =
"SelectX";
53 const String Kwidget_Reformer::Parameters::SelectY =
"SelectY";
54 const String Kwidget_Reformer::Parameters::SelectZ =
"SelectZ";
56 const String Kwidget_Reformer::Parameters::AAlpha =
"AAlpha";
57 const String Kwidget_Reformer::Parameters::AH =
"AH";
58 const String Kwidget_Reformer::Parameters::AA =
"AA";
66 {0,
"No Segmentation"},
68 {32,
"Texture Mode | Complex Audio Textures [Beta]"},
69 {64,
"Beats Mode | Percussive Sounds [Beta]"},
70 {96,
"Texture Mode | Complex Audio Textures"},
71 {128,
"Chords Mode | Delicate Nuanced Sounds [Beta]"}};
77 {1,
"HarmonicPitchEstimation"},
78 {32,
"MFCC/PCA [Beta]"},
79 {64,
"Centroid/Level"},
80 {96,
"SpectralCentroid/RMS [Beta]"},
81 {128,
"SpectralFlatness/RMS [Beta]"},
82 {160,
"erbCentroid/RMS [Beta]"},
83 {192,
"erbCentroid/erbFlatness [Beta]"}};
104 newSample.muteChanged = [
this, &newSample]() {
109 param.valueChanged = [
this](
const var& value) {
110 auto files = StringArray::fromLines(value.toString());
116 AudioFormatManager formatManager;
117 formatManager.registerBasicFormats();
118 for (
auto file : files)
122 File directoryPath(convertedFile);
124 if (directoryPath.isDirectory())
127 auto foundFiles = directoryPath.findChildFiles(
128 File::findFiles,
true, formatManager.getWildcardForAllFormats() +
";*" +
".kaf");
129 for (
auto f : foundFiles)
131 samplesTree->updateSample(f.getFileNameWithoutExtension(), f.getFullPathName());
136 samplesTree->updateSample(convertedFile.getFileNameWithoutExtension(), file);
141 samplesTree->dropCompleted();
277 if (newValue == 1.0f && soloVal == 1.0f)
296 bool tweakRequested =
false;
298 Array<File> filesToLoad;
311 if (!filesToLoad.isEmpty())
396 bool activeChild =
false;
399 if (child->isActive(voiceIdx))
417 child->noteOn(voiceIdx, midiNote, velocity);
449 bool noteNORFlagMatchesMode = noteNORFlag ==
m_enableNOR;
458 if (((midiNote &
MIDI_NOTE_MASK) == triggerNote) && noteNORFlagMatchesMode)
473 child->noteOff(voiceIdx, velocity);
492 child->noteCleared(voiceIdx);
526 {Parameters::PuckX, Parameters::PuckX, {0.0f, 1.0f, 0.001f}, 0.5f},
527 {Parameters::PuckY, Parameters::PuckY, {0.0f, 1.0f, 0.001f}, 0.5f},
528 {Parameters::Nearest, Parameters::Nearest, {1.f, 1000.f, 1.f, 1.0f}, 9.0f},
548 {Parameters::Popcorn, Parameters::Popcorn, {0.0f, 1.0f}, 1.0f},
549 {Parameters::Proximity, Parameters::Proximity, {0.0f, 1.0f}, 0.0f},
550 {Parameters::Radius, Parameters::Radius, {0.0f, 0.5f, 0.001f, 1.0f}, 0.1f},
561 {Parameters::Segmentation, Parameters::Segmentation, {0.0f, 1.0f}, 0.75f},
562 {Parameters::FeatureExtr, Parameters::FeatureExtr, {0.0f, 1.0f}, 0.333333333333333f},
564 {Parameters::Coeff0, Parameters::Coeff0, {0.0f, 1.0f, 0.001f, 1.0f}, 0.5f},
565 {Parameters::Coeff1, Parameters::Coeff1, {0.0f, 1.0f, 0.001f, 1.0f}, 0.5f},
566 {Parameters::Coeff2, Parameters::Coeff2, {0.0f, 1.0f, 0.001f, 1.0f}, 0.5f},
567 {Parameters::Coeff3, Parameters::Coeff3, {0.0f, 1.0f, 0.001f, 1.0f}, 0.5f},
568 {Parameters::Coeff4, Parameters::Coeff4, {0.0f, 1.0f, 0.001f, 1.0f}, 0.5f},
569 {Parameters::Coeff5, Parameters::Coeff5, {0.0f, 1.0f, 0.001f, 1.0f}, 0.5f},
570 {Parameters::Coeff6, Parameters::Coeff6, {0.0f, 1.0f, 0.001f, 1.0f}, 0.5f},
571 {Parameters::Coeff7, Parameters::Coeff7, {0.0f, 1.0f, 0.001f, 1.0f}, 0.5f},
572 {Parameters::SelectX, Parameters::SelectX, {0.0f, 1.0f, 0.001f, 1.0f}, 0.5f},
573 {Parameters::SelectY, Parameters::SelectY, {0.0f, 1.0f, 0.001f, 1.0f}, 0.5f},
574 {Parameters::SelectZ, Parameters::SelectZ, {0.0f, 1.0f, 0.001f, 1.0f}, 1.f},
576 {Parameters::AAlpha, Parameters::AAlpha, {0.0f, 255.0f, 1.0f, 1.0f}, 0.f},
577 {Parameters::AH, Parameters::AH, {0.0f, 255.0f, 1.0f, 1.0f}, 0.f},
578 {Parameters::AA, Parameters::AA, {0.0f, 255.0f, 1.0f, 1.0f}, 0.f},
584 return std::make_unique<KwidgetProcessor_Reformer>(*
this,
m_soSound);
589 return std::make_unique<KwidgetGUI_Reformer>(*
this,
m_soSound);
static Array< File > loadFiles(const StringArray &, const bool, const bool willLoadSpecificFiles)
Definition AssetManager.cpp:475
static File convertFilePath(const String &)
Definition AssetManager.cpp:604
static void alertNonSubscriber()
Definition AssetManagerUI.cpp:17
const ValueTree & getParameterTree() const
Definition CustomParameterTree.h:55
ValueTree getChild(int index) const
Definition CustomParameterTree.cpp:54
static const float defaultSliderSkew
Definition constants.h:26
An exception for asset manager, specifc to encrypted assets.
Definition AssetManager.h:167
@ Unipolar
Definition KAttachment.h:122
float get() const
Definition KParameter.cpp:126
void set(float newValue)
Definition KParameter.cpp:128
SegmentationMethod
Definition KrotosAudioBufferDSP.h:292
void setFeatureExtrMethod(FeatureExtrMethod featureExtraction)
Definition KrotosAudioBufferDSP.h:504
AnalysisCoefficients & getAnalysisCoefficients()
Definition KrotosAudioBufferDSP.cpp:979
void triggerDisplayCacheRegeneration()
Definition KrotosAudioBufferDSP.h:424
void setTrackingCycles(float newValue)
Definition KrotosAudioBufferDSP.h:482
void analyse()
analyse Analyses the audio waveform stored in the buffer according to the selected scheme This method...
Definition KrotosAudioBufferDSP.cpp:35
void setTrackingValue(float newValue)
Definition KrotosAudioBufferDSP.h:480
void setAnalysisScheme(AnalysisScheme scheme)
Definition KrotosAudioBufferDSP.h:506
FeatureExtrMethod
Definition KrotosAudioBufferDSP.h:303
void setSegmentationMethod(SegmentationMethod segmentation)
Definition KrotosAudioBufferDSP.h:502
void canReadSpecificFiles(bool canRead)
Definition KrotosSynthesiserSound.h:46
SampleEngine * getSampleEngine() override
Definition KrotosSynthesiserSound.h:44
int loadSounds(juce::Array< File > audioSampleFiles, bool getNearest)
Definition KrotosSynthesiserSound.cpp:139
ValueTree addModulation(const String &sourceID, int modulatorIdx, const String &destinationID, const String ¶mID, float depth=DefaultModDepth, KAttachment::Polarity=KAttachment::Polarity::Bipolar)
Definition ParameterManager.cpp:159
static const float OnOffThreshold
The threshold at which a toggle, or "on/off" parameter should change from on to off stage.
Definition ParameterManager.h:45
void setSegmentMuted(int segmentIndex, bool isMuted)
'Mutes' an audio segment in the sampler. In effect, this just means the sample is skipped in the roun...
Definition SampleEngine.cpp:372
void setSelectionRanges(const std::vector< Range< int > > &selectionRanges)
Sets the selection ranges of the audio segments.
Definition SampleEngine.cpp:106
std::vector< Range< int > > getSelectionRanges()
Returns an array of segment selection ranges.
Definition SampleEngine.cpp:96
void triggerDisplayUpdate()
send a trigger signal for the grain display to redraw
Definition SampleEngine.h:117
void setGranularOscillatorMIDIMode(MIDIMode newMode)
Definition SampleEngine.h:141
A wrapper around an individual sample in the tree, with parameters for mute, solo,...
Definition SampleDataTree.h:38
std::function< void()> dropCompleted
Assign this to do something once a "drop" action has been completed. This is called internally by the...
Definition SampleDataTree.h:175
std::function< void(Sample &newSample)> sampleAdded
Assign this to do something when a sample has been added to the tree.
Definition SampleDataTree.h:151
void setSampleSelections(const std::vector< Range< int > > &selections)
Set the selection ranges for all samples in the tree. The index of the selection range in the vector ...
Definition SampleDataTree.cpp:157
std::vector< Range< int > > getSampleSelections() const
Get the selection ranges for all samples in the tree. The index of the selection range in the vector ...
Definition SampleDataTree.cpp:145
const StringArray getFiles() const
Compatibility method for KrotosSampleOscillatorSound which requires samples to be loaded all at once ...
Definition SampleDataTree.cpp:122
Definition AirAbsorptionFilter.cpp:2
static const int MIDI_NOTE_MASK
Definition OscillatorUtils.h:21
static const int NUM_VOICES_POLY
Definition OscillatorUtils.h:32
static const int NUM_VOICES_DRONE
Definition OscillatorUtils.h:33
static const int MIDI_NOTE_FLAG_FLUSH
Definition OscillatorUtils.h:24
static const int MIDI_NOTE_FLAG_NOR
Definition OscillatorUtils.h:25
static const int MIDI_NOTE_FLAG_DRONE_NOTEUP
Definition OscillatorUtils.h:23
static const int MIDI_NOTE_NUMBER_C3
Definition OscillatorUtils.h:26
MIDIMode
Definition SampleEngine.h:54
float coeff6
Definition KrotosAudioBufferDSP.h:49
float coeff0
Definition KrotosAudioBufferDSP.h:43
float dispAH
Definition KrotosAudioBufferDSP.h:56
float coeff5
Definition KrotosAudioBufferDSP.h:48
float tracking
Definition KrotosAudioBufferDSP.h:51
float selectZ
Definition KrotosAudioBufferDSP.h:54
float coeff1
Definition KrotosAudioBufferDSP.h:44
float coeff7
Definition KrotosAudioBufferDSP.h:50
float selectX
Definition KrotosAudioBufferDSP.h:52
float dispAAlpha
Definition KrotosAudioBufferDSP.h:55
float dispAA
Definition KrotosAudioBufferDSP.h:57
float selectY
Definition KrotosAudioBufferDSP.h:53
float coeff3
Definition KrotosAudioBufferDSP.h:46
float coeff2
Definition KrotosAudioBufferDSP.h:45
float coeff4
Definition KrotosAudioBufferDSP.h:47
static const Identifier Mute
Definition SampleDataTree.h:22
static const Identifier Samples
Definition SampleDataTree.h:13