Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

note2Freq()

Purpose

Find the frequency of the specified note

Description

Finds the corresponding frequency for the specfied musical note

Syntax

frequency = note2Freq( note )

Arguments

frequency frequency 10Hz to 20Khz (10 - 20000)

note Int 0 to 128. 0 is C-1, 60 is C4 (Middle C)

Example

freq = []
for i = 0 to 7 loop
    freq[i] = note2Freq( i * 2 + 40 )
repeat

for i = 0 to 7 loop
    clear()
    printAt( 0, 0, "Frequency: ", freq[i] )
    update()
    playNote( 0, 0, freq[i], 0.5, 1, 0.5 )
    sleep( 1 )
repeat

Associated Commands

audioLength(), getChannelStatus(), loadAudio(), 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.