Sound.fadeIn

From MiniScript Wiki
Revision as of 20:52, 1 August 2020 by JoeStrout (talk | contribs)
(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. If not specified, a value of 0.01 is used.

Examples

This script creates a sort of comedic sliding up sound that fades in for a second: Link to Generated Audio

snd = new Sound
snd.duration = 2
snd.freq = [ noteFreq(60), noteFreq(72) ]
snd.envelope = 1
snd.waveform = Sound.sineWave

snd.fadeIn = 1

snd.play

See also: Sound.fadeOut; Sound.envelope