Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

setEnvelope()

Purpose

Set audio envelope

Description

Set an envelope on an audio channel

Syntax

setEnvelope( channel, speed )

Arguments

channel audio channel from 0 to 15

speed speed of the envelope

Example

envelopeSpeed = 0.01
clip = loadAudio( "David Silvera/animals_sheep_3" )
playAudio( 0, clip, 4, 0.5, 1, -1 )

loop
    clear()
    c = controls( 0 )
    envelopeSpeed += c.ly * 0.05
    envelopeSpeed = clamp( envelopeSpeed, 0, 0.3 )
    printAt( 0, 0, "Move Joy-Con left control stick up or down to adjust envelope speed" )
    printAt( 0, 1, "Envelope Speed: " + envelopeSpeed )
    setEnvelope( 0, envelopeSpeed )
    update()
repeat

Associated Commands

audioLength(), getChannelStatus(), loadAudio(), note2Freq(), playAudio(), playNote(), setClipper(), setFilter(), setPan(), setVolume(), startChannel(), stopChannel()

logo

©2019 FUZE Technologies Ltd. FUZE is a registered trademark of FUZE Technologies Ltd. All rights reserved.

Useful links

  • Fuze Main Site
  • Fuze Arena on Twitter
  • Fuze Arena on Youtube
  • Download Buyer

Contact Information

  • FUZE Technologies Ltd
    15 Clearfields Farm
    Wotton Underwood
    Aylesbury, Buckinghamshire
    ​England, HP18 0RS

  • +44 (0) 1844 239 432

  • contact@fuze.co.uk

© Copyright FUZE Technologies Ltd. All rights reserved.