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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T04:45:03+00:00 2026-05-23T04:45:03+00:00

I’m trying to develop an application similiar to the tonematrix in C#. I’ve tried

  • 0

I’m trying to develop an application similiar to the tonematrix in C#. I’ve tried first with .net and NAudio library, now I’m trying with XNA, but it seems like that all I can get is a cacophony.


With NAudio, I’m generating 8 simple sinewaves with differente frequencies, varying from (440hz * 1) to (440hz * 8).

With XNA, I’m using multiple SoundEffectInstance of the same audio file (like a D4 note of a piano), each one with a different Pitch value; the Pitch value can go up or down of a maximum of an octave.

In both cases, when the sounds overlap I’m getting noise instead of music. Maybe I got it all wrong and it is not a question of mixing sounds of varying pitch/frequency.

I find difficult to believe that the tonematrix is using nothing more than a “simple sinewave synthesizer”, since the sounds are pretty rich and when they are mixed together they always generate an harmonic tune, while a simple sinewave is always sounding ugly and artificial to me.

Am I having a bad approach for creating harmonies? Do you have an idea of what is exactly happening to the sinewaves used by tonematrix?

  • 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-23T04:45:04+00:00Added an answer on May 23, 2026 at 4:45 am

    I happen to be able to answer your music questions, but these kind of questions are probably better asked on https://music.stackexchange.com/.

    First of all the scale. These things generally use a pentatonic scales (from Wikipedia: “any pitches of such a scale may be played in any order or combination without clashing”). According to the comments, the example you linked uses D Major Pentatonic from A to A.

    You will find that it is not using a straight up sine wave, but is in fact using an ADSR envelope to give it the pleasing “punch” at the start and (fake) “echo” at the end. This is easy to implement, as you only need to modulate the amplitude.

    As far as I can tell, it is not doing anything special when mixing the waveforms together. Chances are it is doing simple addition.

    As for implementation, if you have a method for generating sine waves, rather than attempting to pitch-shift a sample, why not use DynamicSoundEffectInstance and feed it your sine wave?

    XNA’s built-in pitch shifting isn’t really well suited to this task. Are you sure you’re using the correct values to tune it?

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

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
this is what i have right now Drawing an RSS feed into the php,
Seemingly simple, but I cannot find anything relevant on the web. What is the
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
We're building an app, our first using Rails 3, and we're having to build

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.