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

  • SEARCH
  • Home
  • 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 8869157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:25:04+00:00 2026-06-14T17:25:04+00:00

Signal processing is a new domain for me, and I don’t quite know where

  • 0

Signal processing is a new domain for me, and I don’t quite know where to start looking for the solution to my problem.

I have a line graph that was converted to an audio file consisting of nothing but pure tones. I’m trying to convert it back to a line graph using Processing, although I think language is irrelevant. I’m vaguely aware that I may be needing to use a Fourier transform, but it’s not something I’m familiar with.

I’ve looked at all of the examples provided with Processing using Minim and its spectrum analysis functionality, and I’m still lost as to how I should proceed, or what I should even look for.

I imagine modems and fax machines convert serialized data to audio form and back in much the same way, though I’m not sure how they manage to convert the data back from tonal form.

  • 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-06-14T17:25:06+00:00Added an answer on June 14, 2026 at 5:25 pm

    The basic way to do this is for each pixel in the area you are drawing to, you determine which data sample or samples to represent by drawing a pixel at a calculated height.

    The gory details:

    Disregarding the complexity of compressed audio,an audio file is a set of samples. The samples are recorded at a fixed rate. For audio, common sample rates are 44100, 48000, or 96000 samples per second. The audio file will usually specify this rate. To draw this data, you then map the audio samples to pixels.

    For an easy example, say you have 1 second of ECG data recorded at 48000 samples per second. That’s 48000 samples in the file. Let the samples be floating point values that range from 0 to 1, though often they are integer samples. And assume you are drawing to a 10 pixel high by 100 pixel wide rectangle.

    Given all that, it means that each pixel will represent 480 samples of your data. You can average those 480 samples to get the value that you should draw in the first pixel. To figure out where to fill in the pixel you map the sample’s range, 0 to 1, to the drawing rectangle, height 0 to 10. A 0 sample will draw at the bottom of your rectangle, a 1 sample will draw at the top, and a 0.5 sample will draw in the middle. Say that first 480 samples averages to 0.1. Then you’d draw a dot at 1 pixel up from the bottom at the left-most pixel in the drawing area, (0,1) relative to the bottom of the drawing rectangle.

    Repeat this until you’ve determined where to draw the pixel for each pixel in your display area.

    If you have fewer samples than you have pixels to display into, you’ll interpolate values for each pixel. Given the same drawing area, 10 x 100, but only 10 data samples you’ll interpolate nine pixel positions for each data sample.

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

Sidebar

Related Questions

I have a header file, that is for a GNU Radio Signal Processing block,
I have a signal processing pathway made of many classes. Each processing class is
I have a signal that blocks SIGINT and basically says Sorry, you can't quit.\n
I'm using Django's post_save signal to send emails to users whenever a new article
I'm playing with waitpid() and signal() and I'm looking for reliable test cases for
I am learning Groovy CliBuilder and I find it great, except, I don't know
I am currently working on a signal processing lab for school that requires me
I'm looking for a Matlab function which would decompose a signal using Matching Pursuit
I am writing some signal processing code in C that has a communications channel.
I am beginning in signal processing and my professor is asking me to do

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.