AlbumTrack ​
Inherits: Resource
One track of a Music Album: the file, how likely it is to be picked (for the weighted order) and how loud it is. See docs: Audio > Music Albums.
Properties ​
String | path | "" |
float | weight | 1.0 |
TimeOfDay.PlaysAt | plays_at | TimeOfDay.PlaysAt.ANY |
float | volume_db | 0.0 |
Methods ​
String | describe() |
PackedStringArray | validate() |
Property descriptions ​
String path = "" ​
The track (a file of the audio library)
float weight = 1.0 ​
How likely the track is compared with the others when the album picks by weight (a track of 3 comes up three times as often as a track of 1; 0 = never)
TimeOfDay.PlaysAt plays_at = TimeOfDay.PlaysAt.ANY ​
When the track plays: any time, by day only or by night only (the sun decides, see TimeOfDay). An album with no track for the time plays all of them
float volume_db = 0.0 ​
How loud this track is on top of the album's volume (dB)
Method descriptions ​
String describe() ​
The title of the track in the editor
PackedStringArray validate() ​
The warnings of this track