fader defaults to zero- can i change this?

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

in this patch, the fader always defaults to the bottom every time- so even if i put it half way up and save the patch- its still at the bottom when I open the patch again. Can i set the default position so it opens at a higher value?....

Roman Thilenius's icon

no, objetcs fall back to "no state", which is the lowest value possible.

use [loadbang] to set initial states.

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

Fader does not have an initial level value (like the Live objects, ie live.gain~ does) So for this object this is probably the simple way (loadbang). If you need more flexibility check preset or pattrstorage. Edit: Roman beat me to the reply "...by that much".

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

Actually, there are several ways to initialize UI objects, but the data is not stored with the object itself (except for the Live objects). As mentioned, triggering an initializing message to the object with loadbang is one way. See also loadmess, patcherargs, and pattr (and probably other ways I'm overlooking).

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

since max6, most gui objects can do what the live objects can do. you just need to enable 'parameter mode enable' in the inspector and you can set the 'initial' state no problem.

in true cycling 74 fashion, they seem to have neglected to tell anyone this. even though it is rather cool.

spectro's icon

Nice one pid. Never paid a great deal of attention to parameter mode assuming it was (just) for M4L use...