Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

setFrequency()

Purpose

Set audio frequency

Description

Set the frequency on an audio channel

Syntax

setFrequency( channel, frequency )

Arguments

channel audio channel from 0 to 15

frequency frequency of the sound

Example

freq = 432
playNote( 0, 1, freq, 1, 0, 0.5 )

loop
    clear()
    c = controls( 0 )
    freq += c.ly
    freq = clamp( freq, 0, 20000 )
    setFrequency( 0, freq )
    printAt( 0, 0, "Move the left control stick up and down to control frequency of the note" )
    printAt( 0, 2, "Frequency: " + freq )
    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.