Set value for slide object

    MaxMSP

    Bas van der Graaff's icon
    Bas van der Graaff's icon
    Bas van der Graaff
    Apr 28 2008 | 10:19 am
    Hi board,
    This may be a really stupid question, but is it possible to set the value of the [slide] object? Right now, it seems to be 0 on load, but I want to use it to scale something gradually so I'd like it to be 1.
    Can't imagine no-one has ever come across this, seems like such a basic thing.
    Alternatives welcome, but i'd prefer not to use line because of threading.

    • Emmanuel Jourdan's icon
      Emmanuel Jourdan's icon
      Emmanuel Jourdan
      Apr 28 2008 | 11:20 am
      On 28 avr. 08, at 12:19, Bas van der Graaff wrote:
      > Hi board, > > This may be a really stupid question, but is it possible to set the > value of the [slide] object? Right now, it seems to be 0 on load, > but I want to use it to scale something gradually so I'd like it to > be 1. > > Can't imagine no-one has ever come across this, seems like such a > basic thing. > > Alternatives welcome, but i'd prefer not to use line because of > threading.
      Did you try the set message?
      ej
      Share
    • Bas van der Graaff's icon
      Bas van der Graaff's icon
      Bas van der Graaff
      Apr 28 2008 | 12:43 pm
      Yes, it gives me this message:
      • error: slide: doesn't understand "set"
    • Emmanuel Jourdan's icon
      Emmanuel Jourdan's icon
      Emmanuel Jourdan
      Apr 28 2008 | 12:56 pm
      On 28 avr. 08, at 14:43, Bas van der Graaff wrote:
      > Yes, it gives me this message: > > • error: slide: doesn't understand "set"
      ah, sorry I must have add that for Max 5. For 4, you might have a look to my [mxj ej.lslide].
      ej
    • jasch's icon
      jasch's icon
      jasch
      Apr 28 2008 | 1:25 pm
      in max 4 you could set the filter coefficient to 1., then send your new value, then re-set the filter coefficient value back to your original coeffs. a coefficient of 1. means: don't keep any of the old values. this is equivalent to no filtering, which is what you do when you set a new value directly.
      hth
      /*j
      Max Patcher
      In Max, select New From Clipboard.
      Show Text
    • Bas van der Graaff's icon
      Bas van der Graaff's icon
      Bas van der Graaff
      Apr 28 2008 | 2:19 pm
      Good solution! Should have thought of that myself,I built a workaround by now.
      And good to hear it's added in Max5. Although there's still some objects which use the set message and other which have a right inlet, it's something that can't be missed, of course.