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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:54:24+00:00 2026-05-11T09:54:24+00:00

((Answer selected – see Edit 5 below.)) I need to write a simple pink-noise

  • 0

((Answer selected – see Edit 5 below.))

I need to write a simple pink-noise generator in C#. The problem is, I’ve never done any audio work before, so I don’t know how to interact with the sound card, etc. I do know that I want to stay away from using DirectX, mostly because I don’t want to download a massive SDK just for this tiny project.

So I have two problems:

  1. How do I generate Pink Noise?
  2. How do I stream it to the sound card?

Edit: I really want to make a pink noise generator… I’m aware there are other ways to solve the root problem. =)

Edit 2: Our firewall blocks streaming audio and video – otherwise I’d just go to http://www.simplynoise.com as suggested in the comments. 🙁

Edit 3: I’ve got the generation of white-noise down, as well as sending output to the sound card – now all I need to know is how to turn the white-noise into pink noise. Oh – and I don’t want to loop a wav file because every application I’ve tried to use for looping ends up with a tiny little break in between loops, which is jarring enough to have prompted me in this direction in the first place…

Edit 4: … I’m surprised so many people have jumped in to very explicitly not answer a question. I probably would have gotten a better response if I lied about why I need pink noise… This question is more about how to generate and stream data to the sound card than it is about what sort of headphones I should be using. To that end I’ve edited out the background details – you can read about it in the edits…

Edit 5: I’ve selected Paul’s answer below because the link he provided gave me the formula to convert white noise (which is easily generated via the random number generator) into pink noise. In addition to this, I used Ianier Munoz’s CodeProject entry ‘Programming Audio Effects in C#’ to learn how to generate, modify, and output sound data to the sound card. Thank you guys for your help. =)

  • 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. 2026-05-11T09:54:25+00:00Added an answer on May 11, 2026 at 9:54 am

    Maybe you can convert the C/C++ code here to C#:

    http://www.firstpr.com.au/dsp/pink-noise/

    The easiest way to get sound to the sound card is to generate a wav (spit out some hardcoded headers and then sample data). Then you can play the .wav file.

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

Sidebar

Ask A Question

Stats

  • Questions 100k
  • Answers 100k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer If you use let s = Console.ReadLine you are only… May 11, 2026 at 7:59 pm
  • Editorial Team
    Editorial Team added an answer When injecting your dependencies without a DI framework you end… May 11, 2026 at 7:59 pm
  • Editorial Team
    Editorial Team added an answer I would second Henk's #2 suggestion: failure to properly close… May 11, 2026 at 7:59 pm

Related Questions

((Answer selected - see Edit 5 below.)) I need to write a simple pink-noise
A large international company deploys a new web and MOTO (Mail Order and Telephone
I know that I can make a setter that checks to see if a
I have data that looks like this: entities id name 1 Apple 2 Orange
Why are 'me' and 'this' undefined when setTimeout calls it's anonymous callback? var gMyObj

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.