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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:51:04+00:00 2026-06-11T23:51:04+00:00

I would like to create a little application that plays back a music file

  • 0

I would like to create a little application that plays back a music file (format doesn’t really matter). The hard part is: at the same time I would like to display the current amplitude of the lower frequencies (bass), the middle frequencies and the high frequencies.

So I would need some kind of simple spectral analysis together with playback functionality. Is there a C# audio library that can do this without too much hassle?

The purpose of this project is to drive an RGB-LED lighting system I’ve recently installed in my room 😉

  • 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-11T23:51:05+00:00Added an answer on June 11, 2026 at 11:51 pm

    NAudio : http://naudio.codeplex.com/ (Open source)

    Bass and Bass.Net: http://www.un4seen.com/ (Free for non commercial)

    Fmod Ex: http://www.fmod.org/index.html (Also free for non commercial use)

    Doing what you need using Bass is very easy:

    string filepath ="";
    Bass.BASS_Init(-1, 44100, BASSInit.BASS_DEVICE_DEFAULT, IntPtr.Zero, null);
    int handle = Bass.BASS_StreamCreateFile(filepath, 0, 0, BASSFlag.BASS_SAMPLE_FLOAT);
    Bass.BASS_ChannelPlay(handle,false);
    

    Then to get spectrum:

    float[] buffer = new float[256];
    Bass.BASS_ChannelGetData(handle, buffer, (int)BASSData.BASS_DATA_FFT256);
    

    From there you can easily average bands for specific frequencies

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

Sidebar

Related Questions

I would like to create an Intent that opens the messages application in a
I'd like to know how one would create an application that starts in the
idea I would like to create a little app for myself to store ideas
I would like to create a c++ type that mimic the build-in type exactly.
I would like to create a class that runs something (a runnable) at regular
I would like to create an application which can learn to classify a sequence
I am writing an application that I would like to release binaries for on
I would like to create an exception handler for the specific case that happens
I would like to create a page a little like the Grouped Items Page
I would like to create events for certain resources that are used across various

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.