Forums > MaxMSP

adjusting function time

March 13, 2011 | 12:29 pm

Hi all I have created synth patch that uses a function box to create a pitch envelope. the time length of the function box is changed depending on the length of the note set by and adsr. however when i have set a pitch envelope at say a time length of 2000 milliseconds and then increase the lenth of the note the function length changes but the envelope stays the same in time. what I need the envelope to do is adjust in time so that the image on the function goes from beginning of note till end. hope you get what i mean. thanks Lee.


March 13, 2011 | 3:47 pm

look at the [domain $1] (and [range $1 $2]) messages to your function; domain is the X axis, range the Y axis

Brendan



pid
March 13, 2011 | 5:53 pm

you explicitly need [SETdomain $1] and [SETrange $1] messages.


March 13, 2011 | 9:25 pm

or just multiply the time /domain values of its output (before the data is send to line, line~, curve~zl reg or whatever).

-110


March 20, 2011 | 7:56 pm

Thanks all great help


Viewing 5 posts - 1 through 5 (of 5 total)