#include <KwidgetGUI_CoreEngine.h>
|
| enum class | RenderStyle {
normal = 0
, borderless
, borderless_with_buttons
, minimised
,
NUM_STYLES
} |
| |
| std::function< void(const String &)> | onDelete |
| |
| std::unique_ptr< SliderParameterAttachment > | createParameterAttachment (const String ¶mID, Slider &slider) |
| |
| std::unique_ptr< ButtonParameterAttachment > | createParameterAttachment (const String ¶mID, Button &button) |
| |
| std::unique_ptr< ComboBoxParameterAttachment > | createParameterAttachment (const String ¶mID, ComboBox &comboBox) |
| |
| std::unique_ptr< ParameterAttachment > | createParameterAttachment (const String ¶mID, std::function< void(float)> callback) |
| |
| std::unique_ptr< LabelCustomParameterAttachment > | createCustomParameterAttachment (const String ¶mID, Label &label) |
| |
| template<typename AttachedComponentType > |
| void | addAttachedComponent (AttachedComponentType &component, const String ¶mID, bool isDraggable=true) |
| |
| template<typename AttachedComponentType > |
| void | addAttachedComponent (Component &parent, AttachedComponentType &component, const String ¶mID, bool isDraggable=true) |
| |
| void | addParameterCallback (const String ¶mID, std::function< void(float)> callback) |
| |
◆ KwidgetGUI_CoreEngine()
◆ ~KwidgetGUI_CoreEngine()
| krotos::KwidgetGUI_CoreEngine::~KwidgetGUI_CoreEngine |
( |
| ) |
|
|
override |
◆ clearEngine()
| void krotos::KwidgetGUI_CoreEngine::clearEngine |
( |
| ) |
|
|
private |
◆ fileHasBeenDropped()
| void krotos::KwidgetGUI_CoreEngine::fileHasBeenDropped |
( |
WaveformViewerAndEditor * | areaSelectionComp, |
|
|
const StringArray & | files ) |
|
overridevirtual |
◆ finalSetup()
| void krotos::KwidgetGUI_CoreEngine::finalSetup |
( |
| ) |
|
|
overridevirtual |
Your GUI can override this to get a callback when everything is created and after the first resize() is called
Reimplemented from krotos::KwidgetGUI.
◆ findSimilarAudioFile()
| String krotos::KwidgetGUI_CoreEngine::findSimilarAudioFile |
( |
String | samplePaths, |
|
|
bool | isCommandDown ) |
|
private |
◆ initialiseTabbedComponent()
| void krotos::KwidgetGUI_CoreEngine::initialiseTabbedComponent |
( |
| ) |
|
|
private |
◆ initialiseZoomControls()
| void krotos::KwidgetGUI_CoreEngine::initialiseZoomControls |
( |
| ) |
|
|
private |
◆ modeParamChanged()
| void krotos::KwidgetGUI_CoreEngine::modeParamChanged |
( |
float | val | ) |
|
◆ mouseEnter()
| void krotos::KwidgetGUI_CoreEngine::mouseEnter |
( |
const MouseEvent & | event | ) |
|
|
private |
◆ paint()
| void krotos::KwidgetGUI_CoreEngine::paint |
( |
Graphics & | g | ) |
|
|
override |
Perform any paint functions common to all Kwidgets here.
◆ resetBrowserButtonStatus()
| void krotos::KwidgetGUI_CoreEngine::resetBrowserButtonStatus |
( |
| ) |
|
|
private |
◆ resized()
| void krotos::KwidgetGUI_CoreEngine::resized |
( |
| ) |
|
|
override |
◆ resizeGranular()
| void krotos::KwidgetGUI_CoreEngine::resizeGranular |
( |
| ) |
|
◆ resizeSampler()
| void krotos::KwidgetGUI_CoreEngine::resizeSampler |
( |
| ) |
|
◆ resizeScrollBar()
| void krotos::KwidgetGUI_CoreEngine::resizeScrollBar |
( |
float | newThumbSize | ) |
|
|
overridevirtual |
◆ resizeScrollBarFromRange()
| void krotos::KwidgetGUI_CoreEngine::resizeScrollBarFromRange |
( |
Range< float > | newRange | ) |
|
|
override |
Changes the size and position of the scrollbar thumb
- Parameters
-
| [in] | Range<float> | newRange New start and end positions of the draggable scrollbar thumb, 0.0f-1.0f normalised values. |
◆ resizeVehicle()
| void krotos::KwidgetGUI_CoreEngine::resizeVehicle |
( |
| ) |
|
◆ scrollBarMoved()
| void krotos::KwidgetGUI_CoreEngine::scrollBarMoved |
( |
ScrollBar * | scrollBarThatHasMoved, |
|
|
double | newRangeStart ) |
|
override |
◆ selectionsChanged()
| void krotos::KwidgetGUI_CoreEngine::selectionsChanged |
( |
WaveformViewerAndEditor * | , |
|
|
std::vector< Range< int > > | selections ) |
|
overridevirtual |
◆ selectSample() [1/2]
| void krotos::KwidgetGUI_CoreEngine::selectSample |
( |
int | segmentIndex | ) |
|
|
private |
Selects a sample in the waveform veiwer and sample browser, and cues it in the sample engine to be played back next.
Call this when the user has selected sample from the UI. To select a sample without cueing it, pass the additional cueSelected parameter.
- Parameters
-
| segmentIndex | The index of the segment in the sample engine to be shown, and cued to play back next. This will affect the sample playback queue when in robin mode. For example, selectSample(8) will cause sample segment 8 to be played back next, followed by 9, 10, 11, etc. |
- See also
- selectSample(int segmentIndex, bool cueSelected)
◆ selectSample() [2/2]
| void krotos::KwidgetGUI_CoreEngine::selectSample |
( |
int | segmentIndex, |
|
|
bool | cueSelected ) |
|
private |
Updates the waveform veiwer and sample browser to show a single segment.
- Parameters
-
| segmentIndex | The index of the segment in the sample engine to be shown |
| cueSelected | When true, this will cue the segment as the next one to be played i.e. by a user. This will show the sample immediately in the UI, and cue the sample engine to play it back next. |
The expected behaviour of the waveform viewer is based on how a sample has been selected:
1. A sample is automatically selected by the sample engine:
Note on -> change to show sample
2. A sample has been selected (or 'cued') by the user:
User selects sample -> change to show sample -> note on -> sample remains shown
Use cueSelected = true for scenario 1, and false for scenario 2.
◆ setAmpEnvTabGUI()
| void krotos::KwidgetGUI_CoreEngine::setAmpEnvTabGUI |
( |
Component * | incomingGui | ) |
|
|
inline |
Set external gui for amplitude ADSR tab
◆ setGranularControlsVisibility()
| void krotos::KwidgetGUI_CoreEngine::setGranularControlsVisibility |
( |
bool | shouldBeVisible | ) |
|
|
private |
◆ setPitchEnvTabGUI()
| void krotos::KwidgetGUI_CoreEngine::setPitchEnvTabGUI |
( |
Component * | incomingGui | ) |
|
|
inline |
Set external gui for pitch ADSR tab
◆ setSamplerControlsVisibility()
| void krotos::KwidgetGUI_CoreEngine::setSamplerControlsVisibility |
( |
bool | shouldBeVisible | ) |
|
|
private |
◆ setVehicleControlsVisibility()
| void krotos::KwidgetGUI_CoreEngine::setVehicleControlsVisibility |
( |
bool | shouldBeVisible | ) |
|
|
private |
◆ setVisibleControlsSet()
◆ showSampleBrowser()
| void krotos::KwidgetGUI_CoreEngine::showSampleBrowser |
( |
| ) |
|
|
private |
◆ soundChanged()
◆ tabSetupGranular()
| void krotos::KwidgetGUI_CoreEngine::tabSetupGranular |
( |
| ) |
|
Setup tabs for granular mode
◆ tabSetupSampler()
| void krotos::KwidgetGUI_CoreEngine::tabSetupSampler |
( |
| ) |
|
Setup tabs for sampler mode
◆ analyticsEventAddedSamplesEngine
| const std::string krotos::KwidgetGUI_CoreEngine::analyticsEventAddedSamplesEngine {"analyticsEventAddedSamplesEngine"} |
|
static |
◆ analyticsEventChangedMidiTriggerEngine
| const std::string krotos::KwidgetGUI_CoreEngine::analyticsEventChangedMidiTriggerEngine |
|
static |
Initial value:{
"analyticsEventChangedMidiTriggerEngine"}
◆ analyticsEventClearedEngine
| const std::string krotos::KwidgetGUI_CoreEngine::analyticsEventClearedEngine {"analyticsEventClearedEngine"} |
|
static |
◆ analyticsEventRemovedEngine
| const std::string krotos::KwidgetGUI_CoreEngine::analyticsEventRemovedEngine {"analyticsEventRemovedEngine"} |
|
static |
◆ m_activeMode
◆ m_AMix
◆ m_ampEnvTab
| Component krotos::KwidgetGUI_CoreEngine::m_ampEnvTab |
|
private |
◆ m_ARate
◆ m_ASize
◆ m_ASpray
◆ m_audioDataset
| SharedResourcePointer<AudioDataset> krotos::KwidgetGUI_CoreEngine::m_audioDataset |
|
private |
◆ m_AutoplayToggle
◆ m_AutoRateToggle
◆ m_BMix
◆ m_BRate
◆ m_BSize
◆ m_BSpray
◆ m_calledFromMarqueeEnd
| bool krotos::KwidgetGUI_CoreEngine::m_calledFromMarqueeEnd = false |
|
private |
◆ m_calledFromMarqueeStart
| bool krotos::KwidgetGUI_CoreEngine::m_calledFromMarqueeStart = false |
|
private |
◆ m_clearButton
| TextButton krotos::KwidgetGUI_CoreEngine::m_clearButton |
|
protected |
◆ m_colourDefinitions
◆ m_coreEngineNameLabel
| Label krotos::KwidgetGUI_CoreEngine::m_coreEngineNameLabel |
|
protected |
◆ m_cuedSegment
| int krotos::KwidgetGUI_CoreEngine::m_cuedSegment {0} |
|
private |
◆ m_Cycles
◆ m_defaultDeleteButton
| std::unique_ptr<Drawable> krotos::KwidgetGUI_CoreEngine::m_defaultDeleteButton |
|
private |
◆ m_defaultDropText
| const String krotos::KwidgetGUI_CoreEngine::m_defaultDropText {"Drag & Drop Samples Here or Click the Plus Icon"} |
|
private |
◆ m_Detune
◆ m_DetuneRand
| AttachedSlider krotos::KwidgetGUI_CoreEngine::m_DetuneRand {"Pitch RND"} |
|
protected |
◆ m_Distance
◆ m_EnableMuteDownToggle
◆ m_EnableMuteUpToggle
◆ m_extrasTab
| Component krotos::KwidgetGUI_CoreEngine::m_extrasTab |
|
private |
◆ m_GrainMax
◆ m_GranularLevel
| AttachedSlider krotos::KwidgetGUI_CoreEngine::m_GranularLevel {"Granular Lvl"} |
|
protected |
◆ m_hoverDeleteButton
| std::unique_ptr<Drawable> krotos::KwidgetGUI_CoreEngine::m_hoverDeleteButton |
|
private |
◆ m_layout
◆ m_Level
◆ m_LevelRand
◆ m_mainTab
| Component krotos::KwidgetGUI_CoreEngine::m_mainTab |
|
private |
◆ m_mode
◆ m_muteButton
| TextButton krotos::KwidgetGUI_CoreEngine::m_muteButton |
|
protected |
◆ m_muteButtonAttachment
| std::unique_ptr<ButtonParameterAttachment> krotos::KwidgetGUI_CoreEngine::m_muteButtonAttachment |
|
protected |
◆ m_NormaliseToggle
◆ m_NORToggle
◆ m_noteIsOn
| bool krotos::KwidgetGUI_CoreEngine::m_noteIsOn {false} |
|
protected |
◆ m_notifyMidiTriggerChange
| bool krotos::KwidgetGUI_CoreEngine::m_notifyMidiTriggerChange {false} |
|
private |
◆ m_owner
| Kwidget& krotos::KwidgetGUI_CoreEngine::m_owner |
|
private |
◆ m_Pan
◆ m_PanRand
◆ m_PhaseLockToggle
◆ m_PhaseSyncToggle
◆ m_pitchEnvTab
| Component krotos::KwidgetGUI_CoreEngine::m_pitchEnvTab |
|
private |
◆ m_prevSegmentIndex
| int krotos::KwidgetGUI_CoreEngine::m_prevSegmentIndex {-1} |
|
private |
◆ m_QuenchToggle
◆ m_randTab
| Component krotos::KwidgetGUI_CoreEngine::m_randTab |
|
private |
◆ m_Rate
◆ m_RateRand
◆ m_removeEngineButton
| DrawableButton krotos::KwidgetGUI_CoreEngine::m_removeEngineButton |
|
protected |
◆ m_RobinToggle
◆ m_SALoopToggle
◆ m_sampleBrowserButton
◆ m_samplePathRestore
| String krotos::KwidgetGUI_CoreEngine::m_samplePathRestore {""} |
|
private |
◆ m_SamplerLevel
| AttachedSlider krotos::KwidgetGUI_CoreEngine::m_SamplerLevel {"Sampler Lvl"} |
|
protected |
◆ m_samplesTree
| SamplesTree krotos::KwidgetGUI_CoreEngine::m_samplesTree |
|
private |
◆ m_selectedSegment
| int krotos::KwidgetGUI_CoreEngine::m_selectedSegment {0} |
|
private |
◆ m_Sensitivity
| AttachedSlider krotos::KwidgetGUI_CoreEngine::m_Sensitivity {"Sensitivity"} |
|
protected |
◆ m_Shape
◆ m_Size
◆ m_SizeRand
◆ m_Smoothing
| AttachedSlider krotos::KwidgetGUI_CoreEngine::m_Smoothing {"Smoothing"} |
|
protected |
◆ m_soloButton
| TextButton krotos::KwidgetGUI_CoreEngine::m_soloButton |
|
protected |
◆ m_soloButtonAttachment
| std::unique_ptr<ButtonParameterAttachment> krotos::KwidgetGUI_CoreEngine::m_soloButtonAttachment |
|
protected |
◆ m_soSound
◆ m_Start
◆ m_StartRand
| AttachedSlider krotos::KwidgetGUI_CoreEngine::m_StartRand {"Start RND"} |
|
protected |
◆ m_tabbedComponent
| std::unique_ptr<TabbedComponent> krotos::KwidgetGUI_CoreEngine::m_tabbedComponent |
|
private |
◆ m_Tracking
◆ m_trigger
| ComboBox krotos::KwidgetGUI_CoreEngine::m_trigger |
|
protected |
◆ m_tweakButton1
| TextButton krotos::KwidgetGUI_CoreEngine::m_tweakButton1 |
|
protected |
◆ m_tweakButton2
| TextButton krotos::KwidgetGUI_CoreEngine::m_tweakButton2 |
|
protected |
◆ m_VehicleLevel
| AttachedSlider krotos::KwidgetGUI_CoreEngine::m_VehicleLevel {"VehicleLevel"} |
|
protected |
◆ m_waveformViewerAndEditor
◆ m_waveformViewScrollbar
| ScrollBar krotos::KwidgetGUI_CoreEngine::m_waveformViewScrollbar { false} |
|
private |
◆ m_Width
◆ m_WidthRand
| AttachedSlider krotos::KwidgetGUI_CoreEngine::m_WidthRand {"Width RND"} |
|
protected |
◆ m_zoomInButton
| DrawableButton krotos::KwidgetGUI_CoreEngine::m_zoomInButton {"zoomin", DrawableButton::ButtonStyle::ImageStretched} |
|
private |
◆ m_zoomInButtonImage
| std::unique_ptr<Drawable> krotos::KwidgetGUI_CoreEngine::m_zoomInButtonImage |
|
private |
◆ m_zoomInButtonImageMouseOver
| std::unique_ptr<Drawable> krotos::KwidgetGUI_CoreEngine::m_zoomInButtonImageMouseOver |
|
private |
◆ m_zoomOutButton
| DrawableButton krotos::KwidgetGUI_CoreEngine::m_zoomOutButton {"zoomout", DrawableButton::ButtonStyle::ImageStretched} |
|
private |
◆ m_zoomOutButtonImage
| std::unique_ptr<Drawable> krotos::KwidgetGUI_CoreEngine::m_zoomOutButtonImage |
|
private |
◆ m_zoomOutButtonImageMouseOver
| std::unique_ptr<Drawable> krotos::KwidgetGUI_CoreEngine::m_zoomOutButtonImageMouseOver |
|
private |
The documentation for this class was generated from the following files: