unreal.TimeSynthComponent
¶
- class unreal.TimeSynthComponent(outer=None, name='None')¶
Bases:
unreal.SynthComponent
Time Synth Component
C++ Source:
Plugin: TimeSynth
Module: TimeSynth
File: TimeSynthComponent.h
Editor Properties: (see get_editor_property/set_editor_property)
absolute_location
(bool): [Read-Write] If RelativeLocation should be considered relative to the world, rather than the parentabsolute_rotation
(bool): [Read-Write] If RelativeRotation should be considered relative to the world, rather than the parentabsolute_scale
(bool): [Read-Write] If RelativeScale3D should be considered relative to the world, rather than the parentallow_spatialization
(bool): [Read-Write] Is this audio component allowed to be spatialized?asset_user_data
(Array(AssetUserData)): [Read-Write] Array of user data stored with the componentattenuation_overrides
(SoundAttenuationSettings): [Read-Write] If bOverrideSettings is true, the attenuation properties to use for sounds generated by this componentattenuation_settings
(SoundAttenuation): [Read-Write] If bOverrideSettings is false, the asset to use to determine attenuation properties for sounds generated by this componentauto_activate
(bool): [Read-Write] Whether the component is activated at creation or must be explicitly activated.bus_sends
(Array(SoundSourceBusSendInfo)): [Read-Write] This sound will send its audio output to this list of buses if there are bus instances playing after source effects are processed.can_ever_affect_navigation
(bool): [Read-Write] Whether this component can potentially influence navigationcomponent_tags
(Array(Name)): [Read-Write] Array of tags that can be used for grouping and categorizing. Can also be accessed from scripting.concurrency_set
(Set(SoundConcurrency)): [Read-Write] What sound concurrency to use for sounds generated by this audio componentdetail_mode
(DetailMode): [Read-Write] If detail mode is >= system detail mode, primitive won’t be rendered.editable_when_inherited
(bool): [Read-Write] True if this component can be modified when it was inherited from a parent actor classenable_base_submix
(bool): [Read-Write] If enabled, sound will route to the Master Submix by default or to the Base Submix if defined. If disabled, sound will route ONLY to the Submix Sends and/or Bus Sendsenable_bus_sends
(bool): [Read-Write] Whether or not to enable sending this audio’s output to buses.enable_spectral_analysis
(bool): [Read-Write] Whether or not we are enabling spectrum analysis on the synth component. Enabling will result in FFT analysis being run.enable_submix_sends
(bool): [Read-Write] Whether or not to enable Submix Sends other than the Base Submix.envelope_follower_attack_time
(int32): [Read-Write] The attack time in milliseconds for the envelope follower. Delegate callbacks can be registered to get the envelope value of sounds played with this audio component. Only used in audio mixer.envelope_follower_release_time
(int32): [Read-Write] The release time in milliseconds for the envelope follower. Delegate callbacks can be registered to get the envelope value of sounds played with this audio component. Only used in audio mixer.envelope_follower_settings
(TimeSynthEnvelopeFollowerSettings): [Read-Write] The envelope follower settings to usefft_size
(TimeSynthFFTSize): [Read-Write] What FFT bin-size to use. Smaller makes it more time-reactive but less accurate in frequency space.filter_a_settings
(TimeSynthFilterSettings): [Read-Write] The filter settings to use for filter Afilter_b_settings
(TimeSynthFilterSettings): [Read-Write] The filter settings to use for filter Bfrequencies_to_analyze
(Array(float)): [Read-Write] What frequencies to report magnitudes for during spectrum analysishidden_in_game
(bool): [Read-Write] Whether to hide the primitive in game, if the primitive is Visible.is_editor_only
(bool): [Read-Write] If true, the component will be excluded from non-editor buildsis_envelope_follower_enabled
(bool): [Read-Write] Whether or not the filter is enabledis_filter_a_enabled
(bool): [Read-Write] Whether or not the filter A is enabledis_filter_b_enabled
(bool): [Read-Write] Whether or not the filter B is enabledis_ui_sound
(bool): [Read-Write] Whether or not this sound plays when the game is paused in the UImax_pool_size
(int32): [Read-Write] Set the Max Pool Sizemobility
(ComponentMobility): [Read-Write] How often this component is allowed to move, used to make various optimizations. Only safe to set in constructor.on_audio_envelope_value
(OnSynthEnvelopeValue): [Read-Write] On Audio Envelope Valueon_component_activated
(ActorComponentActivatedSignature): [Read-Write] Called when the component has been activated, with parameter indicating if it was from a reseton_component_deactivated
(ActorComponentDeactivateSignature): [Read-Write] Called when the component has been deactivatedon_playback_time
(OnTimeSynthPlaybackTime): [Read-Write] Delegate to get continuous playback time in secondsoverride_attenuation
(bool): [Read-Write] Should the Attenuation Settings asset be used (false) or should the properties set directly on the component be used for attenuation propertiesphysics_volume_changed_delegate
(PhysicsVolumeChanged): [Read-Write] Delegate that will be called when PhysicsVolume has been changed *pre_effect_bus_sends
(Array(SoundSourceBusSendInfo)): [Read-Write] This sound will send its audio output to this list of buses if there are bus instances playing before source effects are processed.primary_component_tick
(ActorComponentTickFunction): [Read-Write] Main tick function for the Componentquantization_settings
(TimeSynthQuantizationSettings): [Read-Write] The default quantizations settingsrelative_location
(Vector): [Read-Write] Location of the component relative to its parentrelative_rotation
(Rotator): [Read-Write] Rotation of the component relative to its parentrelative_scale3d
(Vector): [Read-Write] Non-uniform scaling of the component relative to its parent. Note that scaling is always applied in local space (no shearing etc)replicates
(bool): [Read-Write] Is this component currently replicating? Should the network code consider it for replication? Owning Actor must be replicating first!should_update_physics_volume
(bool): [Read-Write] Whether or not the cached PhysicsVolume this component overlaps should be updated when the component is moved. see: GetPhysicsVolume()sound_class
(SoundClass): [Read-Write] Sound class this sound belongs tosound_submix
(SoundSubmixBase): [Read-Write] Submix this sound belongs tosound_submix_sends
(Array(SoundSubmixSendInfo)): [Read-Write] An array of submix sends. Audio from this sound will send a portion of its audio to these effects.source_effect_chain
(SoundEffectSourcePresetChain): [Read-Write] The source effect chain to use for this sound.use_attach_parent_bound
(bool): [Read-Write] If true, this component uses its parents bounds when attached. This can be a significant optimization with many components attached together.visible
(bool): [Read-Write] Whether to completely draw the primitive; if false, the primitive is not drawn, does not cast a shadow.
- add_quantization_event_delegate(quantization_type, on_quantization_event) → None¶
Register an event to respond to a specific quantization event
- Parameters
quantization_type (TimeSynthEventQuantization) –
on_quantization_event (OnQuantizationEventBP) –
- property enable_spectral_analysis¶
[Read-Write] Whether or not we are enabling spectrum analysis on the synth component. Enabling will result in FFT analysis being run.
- Type
(bool)
- property envelope_follower_settings¶
[Read-Write] The envelope follower settings to use
- property fft_size¶
[Read-Write] What FFT bin-size to use. Smaller makes it more time-reactive but less accurate in frequency space.
- Type
- property filter_a_settings¶
[Read-Write] The filter settings to use for filter A
- Type
- property filter_b_settings¶
[Read-Write] The filter settings to use for filter B
- Type
- property frequencies_to_analyze¶
[Read-Write] What frequencies to report magnitudes for during spectrum analysis
- get_bpm() → int32¶
Returns the current BPM of the time synth
- Returns
- Return type
int32
- get_envelope_follower_value() → float¶
Returns the current envelope follower value. Call at whatever rate desired
- Returns
- Return type
- get_max_active_clip_limit() → int32¶
Get Max Active Clip Limit
- Returns
- Return type
int32
- get_spectral_data()¶
Returns the spectral data if spectrum analysis is enabled.
- Returns
- Return type
- has_active_clips() → bool¶
Check to see if clips are actively generating sound on the TimeSynth
- Returns
- Return type
- property is_envelope_follower_enabled¶
[Read-Write] Whether or not the filter is enabled
- Type
(bool)
- property max_pool_size¶
[Read-Write] Set the Max Pool Size
- Type
(int32)
- property on_playback_time¶
[Read-Write] Delegate to get continuous playback time in seconds
- Type
- play_clip(clip, volume_group=None) → TimeSynthClipHandle¶
Plays the given clip using the global quantization setting
- Parameters
clip (TimeSynthClip) –
volume_group (TimeSynthVolumeGroup) –
- Returns
- Return type
- property quantization_settings¶
[Read-Write] The default quantizations settings
- reset_seed() → None¶
Resets the internal seed to it’s current seed (allows repeating same random choices)
- set_bpm(beats_per_minute) → None¶
Sets just the BPM of the time synth on the next bar event.
- Parameters
beats_per_minute (float) –
- set_envelope_follower_enabled(is_enabled) → None¶
Enables or disables the envelope follower
- Parameters
is_enabled (bool) –
- set_envelope_follower_settings(settings) → None¶
Set the envelope follower settings
- Parameters
settings (TimeSynthEnvelopeFollowerSettings) –
- set_fft_size(fft_size) → None¶
Sets the desired FFT Size for the spectrum analyzer
- Parameters
fft_size (TimeSynthFFTSize) –
- set_filter_enabled(filter, is_enabled) → None¶
Enables or disables the filter
- Parameters
filter (TimeSynthFilter) –
is_enabled (bool) –
- set_filter_settings(filter, settings) → None¶
Set the filter settings for the filter at the particular index
- Parameters
filter (TimeSynthFilter) –
settings (TimeSynthFilterSettings) –
- set_quantization_settings(quantization_settings) → None¶
Sets the quantization settings on the time synth
- Parameters
quantization_settings (TimeSynthQuantizationSettings) –
- set_seed(seed) → None¶
Sets the seed of the internal random stream so choices can be repeated or controlled.
- Parameters
seed (int32) –
- set_volume_group(volume_group, volume_db, fade_time_sec=0.0) → None¶
Sets the volume (in dB) of the given volume group over the supplied FadeTime
- Parameters
volume_group (TimeSynthVolumeGroup) –
volume_db (float) –
fade_time_sec (float) –
- stop_clip(clip_handle, event_quantization) → None¶
Stops the clip on the desired quantization boundary with given fade time. Uses clip’s fade time.
- Parameters
clip_handle (TimeSynthClipHandle) –
event_quantization (TimeSynthEventClipQuantization) –
- stop_clip_with_fade_override(clip_handle, event_quantization, fade_time) → None¶
Stops the clip on the desired quantization boundary with given fade time. Overrides the clip’s fade time.
- Parameters
clip_handle (TimeSynthClipHandle) –
event_quantization (TimeSynthEventClipQuantization) –
fade_time (TimeSynthTimeDef) –
- stop_sounds_on_volume_group(volume_group, event_quantization) → None¶
Stops clips playing on given volume group. Clips use their fade time.
- Parameters
volume_group (TimeSynthVolumeGroup) –
event_quantization (TimeSynthEventClipQuantization) –
- stop_sounds_on_volume_group_with_fade_override(volume_group, event_quantization, fade_time) → None¶
Stops clips playing on given volume group with the given fade time override.
- Parameters
volume_group (TimeSynthVolumeGroup) –
event_quantization (TimeSynthEventClipQuantization) –
fade_time (TimeSynthTimeDef) –