Page MenuHomeFeedback Tracker

Manipulate sound controllers from script
Closed, ResolvedPublic

Description

Currently (1.02) you can only specify a value for a sound controller variable (such as rpm, speed used for the cars) using the SoundObjectBuilder instance before playing the sound. Once the sound is playing you can not adjust the variables anymore.
Though the car class has a OnSound event for this, this concept should apply to other types of objects or also sounds that are entirely just played from script with no connection to any object.
Suggestion: Add the SetVariable interface featured in SoundObjectBuilder to the AbstractWave class

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General

Event Timeline

Arkensor created this task.Apr 23 2019, 1:13 PM

Alternatively, add a function "SetFrequency" to the AbstractWave class. Since volume can already be controlled via script this would then give total control over both. The formulas for calculating both volume and frequency can be done in enscript then.

komer added a subscriber: komer.Jun 12 2020, 1:17 PM

added the SetFrequency command to the AbstractWave class for experimental servers 1.08, they probably forgot to write about it in the news.

Arkensor added a comment.EditedJun 12 2020, 1:23 PM

Yeah, I forgot I made a ticket about it :)

GetFrequency should arrive with a future update as well. Maybe not 1.08 but then it would be 1.09

Note on SetFrequency is clamped to values between 0.5 and 2.0.

@Geez please close.

Arkensor added a subscriber: Geez.Jun 12 2020, 1:23 PM
Geez closed this task as Resolved.Jun 15 2020, 1:46 PM
Geez claimed this task.