sfplay~: controlling speed with envelope

zangpa's icon

Hi.
I'm new to Max, so there's probably an easy way to do this, but i can't seem to figure out how to control the speed of sfplay~ via an envelope. I've tried both sending envelope-data as a message and using the function object, but it doesn't seem to work.
Can anyone help me, please?

Christopher Dobrian's icon

The second outlet of the function object sends out a list message intended to describe the function to a line~ object. You can use the line~ object to supply the speed value to the right inlet of the sfplay~ object.

Christopher Dobrian's icon
Max Patch
Copy patch and select New From Clipboard in Max.

So you could do something like this.

zangpa's icon

Great! Thank you very much for the help!