Search code examples
c#guitar

How do I go about generating a sound at a specific frequency (guitar chord app) in c#


I am working on a guitar toolbox application a component of which is a chord and scale dictionary.

My questions are:

  1. If I know the frequency/pitch in khz of a given note, how can I generate an acceptable sound (maybe midi) at that pitch?

  2. My second question is that chords are built up of 2 or more notes, how would I go about layering 2 or more notes in an appregio (played 1 after another and held to form the chord)?

If there are any pointers about that I have searched for and missed please point me in the right direction.


Solution

  • try taking a look at this and see if it helps: http://blogs.msdn.com/b/dawate/archive/2009/06/24/intro-to-audio-programming-part-3-synthesizing-simple-wave-audio-using-c.aspx