You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
James Brundage edited this page Oct 23, 2026
·
1 revision
ReverseMelody
Reverses Wave Melody
Reverses a Wave's melody.
This reverses the notes in the wave, but does not reverse the samples.
View Source
<#.SYNOPSIS Reverses Wave Melody.DESCRIPTION Reverses a Wave's melody. This reverses the notes in the wave, but does not reverse the samples.#>param()
# Get the current melody$melody=@($this.Melody)
# If there is not a current melody, return thisif (-not$melody) { return$this }
# Reverse the melody
[Array]::Reverse($melody)
# Reassign the current melody to it's reverse$this.Melody=$melody# Return the reversed melodyreturn$this.Sound()