Difference between revisions of "Sound.fadeIn"
Jump to navigation
Jump to search
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...") |
SpatialPlays (talk | contribs) m (Adds links to related pages) |
||
Line 14: | Line 14: | ||
snd.play</ms> | snd.play</ms> | ||
+ | |||
+ | See also: <c>[[Sound.fadeOut]]</c>; <c>[[Sound.envelope]]</c> | ||
[[Category:Mini Micro]] | [[Category:Mini Micro]] |
Revision as of 04:48, 28 April 2020
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
See also: Sound.fadeOut
; Sound.envelope