Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7162581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T13:45:33+00:00 2026-05-28T13:45:33+00:00

I have to implement an audio (VU) meter using Javascript. This concept should be

  • 0

I have to implement an audio (VU) meter using Javascript. This concept should be new, so any integration in Javascript should be very exciting.

The input data for the animations will come from the backend and look like:

*

bands=[[20, 1267], [1268, 2515], [2516, 3763], [3764, 5011], [5012, 6259], [6260, 7507], [7508, 8755], [8756, 10000]];
numBands=8;
scaleAllBands=0;
amplitude=[0, 0, 0, 0, 0, 0, 0, 0, 14, 13, 10, 13, 19, 16, 11, 14, 14, 9, 7, 16, 11, 7, 14, 14, 8, 6, 5, 4, 4, 5, 14, 12, 7, 16, 17, 10, 7, 30, 22, 16, 11, 16, 12, 8, 13, 9, 6, 4, 4, 4, 4, 5, 3, 3, 3, 4, 3, 3, 3, 3, 2, 1, 1, 1, 1, 1, 15, 14, 9, 6, 4, 3, 3, 15, 9, 7, ETC (much more)
spectrum=[[0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], [0, 0, 0, 0, 0, 0, 0, 0], ETC (MUCH MORE)

*

The problem is that I don’t know how to interpret this raw data. I checked for some action script working examples, so that I can make a port to Javascript, but I didn’t find any working AS example that uses this kind of input.

Any working example or idea of interpreting this data would be very appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T13:45:33+00:00Added an answer on May 28, 2026 at 1:45 pm

    It seems like you have two kinds of data.

    1. amplitude is the global amplitude (the actual VU meter). You just have to know the delay between two values and animate a single bar with this values. You will have to find the maximum of these values for a better result.

    2. bands define frequencies of a 8-band analyzer. You don’t need these frequencies for your display. You just have to display 8 bars and animate them with the values from each value list in spectrum. The bar with the index i (between 0 and 7) at the time t will show the value spectrum[t][i].

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to understand how to implement HTML5 <audio> fallback using Javascript... i.e. I
I have to implement MPI system in a cluster. If anyone here has any
I have to implement a one linked list but it should put object in
I tried to implement this. My original post is here iphone: playing audio playlist
I am trying to implement 'volume automation' in a jQuery audio player I have
I'm using the jQuery audio player 'jPlayer', I have a loop which creates a
I found this link to a page here on StackOverflow about Creating Audio using
I have a web application using EF4. I am somewhat new to EF and
I am a very new programmer, and I have some trouble with the examples
I have to implement the VinPower application. They offer a Java version, a C

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.