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 965873
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T02:04:07+00:00 2026-05-16T02:04:07+00:00

Okay this one may be a bit out from left field, but I’m going

  • 0

Okay this one may be a bit out from left field, but I’m going to try anyways.

A pad is a sort of ambient electronic sound that kind of ‘hums’. Something like this .

How can I produce this in code? Using either Processing, OpenFrameworks, C, Objective-C or C++. Keep in mind I haven’t been programming for that long.

I will be very impressed if this results in an answer!

Okay… Go!

  • 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-16T02:04:08+00:00Added an answer on May 16, 2026 at 2:04 am

    I’ve never heard the term “pad” as applied here, but it sounds like a synth organ sound, playing major chords.

    As a start, to represent a single note, you could generate sin waves at the fundamental frequency of the note (say 440Hz if we’re talking about an A Major) and the next few multiples of that (880, 1760, 3520) and sum them with some (diminishing) weights. Then add in the other notes of the chord (C# and E) rendered in the same way.

    If this is sounding useful to you so far, I can expand if needed.

    EDIT: By “some (diminishing) weights”, I meant adding the overtones times some amplification, e.g.

    F = 440;  // Hz
    tone[t] = A * sin(t/F) + B * sin(t/(2*F)) + C * sin(t/(3*F)); // + etc, perhaps
    

    where, perhaps,

    A = 1.0;
    B = 1.0/2.0;
    C = 1.0/3.0;
    

    or some such thing.

    For an ADSR filter (look that up), you’ll multiply the generated waveform by an amplification that increases from 0 to 1 during the “attack” period you choose, then drops during the “decay” period to some number you choose (perhaps 0.7), then drops to 0 linearly when you “release” the sustained note.

    For echo/reverb, you can add the waveform back into itself with some delay, e.g.

    D = 4410;  // 10 msec at 44.1 kHz., as an example value
    tone[t] += 0.5 * tone[t-D];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay, so this one may be difficult but I will do my best to
Okay, this may be a dumb question, but I've not been able to find
Okay this may be a simple question but I have yet to come with
Okay, I have this program and I don't want more than one instance of
Okay so im working on this php image upload system but for some reason
Okay, so this probably sounds terribly nefarious, but I need such capabilities for my
Okay, I think I might be over-complicating this issue but I truly am stuck.
Okay this one has me stumped.. mainly because i have been working on this
Okay this one's pretty straightforward. I'm creating a checkbox in my Page.xaml.cs file, and
this is a follow up question from this one , I don't want to

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.