SoundTransform with the upper case 'S' is the class.
With the 'new' keyword you create a new instance of the class that is assigned to the soundTransform property of the mediaplayer component.

The easiest way to use the GUI slider is like this

slider1.onScroll = function(){
mediaplayer1.soundTransform = new SoundTransform(this.scrollPosition / 100);
}