home *** CD-ROM | disk | FTP | other *** search
/ VCD Film, Television & An…on Creation Encyclopedia / mycd.iso / AEffects.31 / DISK2 / DATA.2 / mmscript / layer_audio.mm < prev    next >
Encoding:
Text File  |  1996-12-19  |  635 b   |  16 lines

  1. // Layer audio - Version 1.3
  2.  
  3. // This Program Sets the value of the first set of popups
  4. // to the audio level of the layer in popup 2, scaled to lie within the range [min, max]
  5.  
  6. // LAYER                                        PROPERTY                    CHANNEL
  7. // ------                                        ----------                    --------
  8. // 1: Layer to copy audio amplitude into        property to vary            channel of property
  9. // 2: Layer with audio                            doesn't matter                doesn't matter
  10.  
  11. max = 1000;        // change this to the maximum value
  12. min = 50;        // change this to the minimum value
  13.  
  14. value(pop_layer(1), pop_property(1)) [pop_channel(1)] = 
  15.      min + layer_audio_amplitude(pop_layer(2)) * (max - min);
  16.