NeomGeneratorController class
- Inheritance
-
- Implemented types
-
Methods
-
addListener(SintStateUpdate listener)
→ Disposer
-
Register a closure to be called when the object notifies its listeners.
inherited
-
addListenerId(Object? key, SintStateUpdate listener)
→ Disposer
-
inherited
-
addPreset(BuildContext context, {int frequencyPracticeState = 0})
→ Future<void>
-
-
buildInciensoSession({String inciensoId = '', InciensoSource source = InciensoSource.userCreated, InciensoSessionEnd endReason = InciensoSessionEnd.stoppedByUser})
→ InciensoSession
-
Build an InciensoSession from the current tracker data.
Call after stopping playback.
-
containsListener(SintStateUpdate listener)
→ bool
-
inherited
-
debounce<T>(RxInterface<T> rx, void callback(T), {Duration duration = const Duration(milliseconds: 400)})
→ void
-
Calls
callback after rx stops changing for duration.
Useful for search-as-you-type, form validation, etc.
inherited
-
decreaseActiveValue({double step = 1})
→ Future<void>
-
-
decreaseFrequency({double step = 1})
→ Future<void>
-
-
decreaseOnLongPress()
→ void
-
-
decreaseSelected({double step = 1})
→ Future<void>
-
-
disableMultiFrequency()
→ void
-
Disable multi-frequency mode and return to standard binaural.
-
dispose()
→ void
-
inherited
-
ever<T>(RxInterface<T> rx, void callback(T))
→ void
-
Calls
callback every time rx changes.
Auto-cancels on controller disposal.
inherited
-
finishEditBeat()
→ void
-
-
finishEditFrequency()
→ void
-
-
frequencyAlreadyInItemlist()
→ bool
-
-
getMostFrequentPitch()
→ double
-
-
getPitchFromAudioData(Uint8List audioData)
→ Future<double>
-
-
increaseActiveValue({double step = 1})
→ Future<void>
-
-
increaseFrequency({double step = 1})
→ Future<void>
-
-
increaseOnLongPress()
→ void
-
-
increaseSelected({double step = 1})
→ Future<void>
-
-
initializeRecorder()
→ Future<void>
-
-
initializeStreamController()
→ void
-
-
interval<T>(RxInterface<T> rx, void callback(T), {Duration duration = const Duration(seconds: 1)})
→ void
-
Calls
callback at most once per duration, ignoring
intermediate changes. Useful for rate-limiting UI updates.
inherited
-
launchVisualExperience()
→ void
-
Navigate to the fullscreen visual experience matching the active incienso.
Falls back to photonicPulse behavior (no navigation) if no visual is set.
-
loadIncienso(Incienso incienso, {bool autoStart = true})
→ Future<void>
-
Load an Incienso preset into the generator, configuring all parameters
(frequencies, binaural beat, isochronic, visual, breathing) and optionally
auto-starting playback.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
once<T>(RxInterface<T> rx, void callback(T))
→ void
-
Calls
callback only the first time rx changes, then cancels.
inherited
-
onClose()
→ void
-
Called before onDelete method. onClose might be used to
dispose resources used by the controller. Like closing events,
or streams before the controller is destroyed.
Or dispose objects that can potentially create some memory leaks,
like TextEditingControllers, AnimationControllers.
Might be useful as well to persist some data on disk.
override
-
onDelete()
→ void
-
inherited
-
onInit()
→ void
-
Called immediately after the widget is allocated in memory.
You might use this to initialize something for the controller.
override
-
onReady()
→ void
-
Called 1 frame after onInit(). It is the perfect place to enter
navigation events, like snackbar, dialogs, or a new route, or
async request.
override
-
onStart()
→ void
-
Called at the exact moment the widget is allocated in memory.
It uses an internal "callable" type, to avoid any @overrides in subclasses.
This method should be internal and is required to define the
lifetime cycle of the subclass.
inherited
-
playStopPreview({bool stop = false})
→ Future<void>
-
-
refresh()
→ void
-
inherited
-
refreshGroup(Object id)
→ void
-
inherited
-
removeListener(VoidCallback listener)
→ void
-
Remove a previously registered closure from the list of closures that the
object notifies.
inherited
-
removeListenerId(Object id, VoidCallback listener)
→ void
-
inherited
-
removePreset(BuildContext context)
→ Future<void>
-
-
reportAdd(VoidCallback disposer)
→ void
-
inherited
-
reportRead()
→ void
-
inherited
-
saveAsIncienso(String name)
→ Incienso?
-
Stop recording and build a shareable Incienso from the session.
Returns null if session was too short (< 30s or < 5 keyframes).
-
selectBinauralBeat()
→ void
-
-
selectRootFrequency()
→ void
-
-
setBinauralBeat({double beat = 0})
→ void
-
override
-
setBreathDepth(double depth)
→ void
-
-
setBreathMode(NeomBreathMode mode)
→ void
-
-
setBreathRate(double bpm)
→ void
-
-
setFrequency(double frequency)
→ Future<void>
-
override
-
setFrequencyFromText(String value)
→ void
-
-
setFrequencyState(AppItemState newState)
→ void
-
-
setIsochronicDuty(double duty)
→ void
-
-
setIsochronicEnabled(bool enabled)
→ Future<void>
-
-
setIsochronicFrequency(double hz)
→ void
-
-
setModulationDepth(double depth)
→ void
-
-
setModulationEnabled(bool enabled)
→ void
-
-
setModulationFrequency(double hz)
→ void
-
-
setModulationType(NeomModulationType type)
→ void
-
-
setMultiFrequency({required double subHz, required double leftHz, required double rightHz})
→ void
-
Set multi-frequency mode with 3 independent oscillators.
-
setNeuroState(NeomNeuroState state)
→ void
-
-
setOctave(int octave)
→ void
-
-
setOrbitDirection(int dir)
→ void
-
-
setOrbitSpeed(double speed)
→ void
-
-
setParameterPosition({required double x, required double y, required double z})
→ void
-
override
-
setSelectedItemlist(String selectedItemlist)
→ void
-
-
setSpatialIntensity(double v)
→ void
-
-
setSpatialMode(NeomSpatialMode mode)
→ void
-
-
setVisualAmplitude(double v)
→ void
-
-
setVisualMode(NeomVisualMode mode)
→ void
-
-
setVolume(double volume, {bool? rightOrLeft})
→ void
-
override
-
startEditBeat()
→ void
-
-
startEditFrequency()
→ void
-
-
startRecording()
→ Future<void>
-
-
stopRecording()
→ void
-
-
toString()
→ String
-
A string representation of this object.
inherited
-
update([List<Object>? ids, bool condition = true])
→ void
-
Notifies listeners to update the UI.
inherited
-
updateDescriptionForFrequency(double frequency)
→ void
-
-
updateFrequency(double freq)
→ void
-
Update the main frequency directly (for controller-to-controller calls).