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 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

Related Questions

ANSWER: If you ever see these lines and are mistified like I was, here's
Before you answer this I have never developed anything popular enough to attain high
From the selected answer in this SO-question this very ingenious function creates an Array
This is a follow up question to the selected answer in this post: Output
This answer says that Linq is targeted at a slightly different group of developers
An answer to a Stack Overflow question stated that a particular framework violated a
In answer to this question Joel Coehoorn said Finally, only after the site's gone
An answer to one of my questions included the following line of code: label
Sorry answer found while typing I am trying to connect to an external webservice
This answer to a question about C++ unit test frameworks suggests a possibility that

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.