Processes its input to generate an output fade up and fade down within a specified range of input values

The Envelope widget allows any widget to operate within a certain range of a sensor, ramping up at the beginning of the range, and ramping down at the end of the range. It can be inserted between an input such as AnalogIn and another widget such as SoundControl so that the sound volume fades in at a certain input level, and fades out above another input level.

For example, if the sensor measured proximity, the sound could be made to play only when the person was between 5 feet and 7 feet, fading in and out beyond that range. In this way, it’s possible to have multiple sounds listening to the same sensor, each playing within a specific range of the sensor.

The points of fade-in and fade-out are determined by an envelope where the user specifies the fade-in start, fade-in end, fade-out start, and fade-out end. For example, if the user sets fade points of 1, 400, 800, and 1023 respectively (see the Envelope graphic on the right), the output would be at a min at all values up to 1, start fading in to the max between 1 and 400. The output would stay at the max from 400 to 800, then start fading out to the min from 800 to 1023, and be min for any values above 1023.

On Screen Features

  • min – sets the minimum output outside of the envelope
  • max – sets the maximum output at the peak of the envelope
  • fadeInStart – the beginning input value where the output starts to increase from min
  • fadeInEnd – the input value where the volume attains the max output
  • fadeOutStart – the beginning input value where the output starts to decrease from the max
  • fadeOutEnd – the input value where the putput is faded back to min


  • inputSource – the instance name of the source the widget listens to, e.g AnalogIn
  • invisible – If set to “true” or checked, the widget will disappear when the Flash movie is run – NOTE: you can make all the widgets invisible interactively when the Flash moving is running simply by pressing the backslash key “\”.

Last modified March 5th, 2012