Sound.fadeIn

From MiniScript Wiki
Revision as of 04:28, 28 April 2020 by SpatialPlays (talk | contribs) (Created page with "<c>Sound.fadeIn</c> controls how much to fade a sound in from silence in seconds. == Examples == This script creates a sort of comedic sliding up sound that fades in for...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Sound.fadeIn controls how much to fade a sound in from silence in seconds.

Examples

This script creates a sort of comedic sliding up sound that fades in for a second.

snd = new Sound
duration = 2
freqList = [ noteFreq(60), noteFreq(72) ]
envelope = 1

snd.init duration, freqList, envelope, Sound.sineWave

snd.fadeIn = 1

snd.play