Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sound chords in C#?

I've tried using Console.Beep() at low millisecond rates two play two frequencies 'at once', but the pause between beeps ruins it. I have tried researching it but I've found nothing, and don't know where to start, aside from DirectSound, which I'm looking in to. All I need is to make a program that plays two or more frequencies simultaneously out of one speaker, in C#.

Thanks.

like image 874
apophis Avatar asked Jan 15 '11 23:01

apophis


People also ask

What are the chords in C?

Clearly, the basic chords/triads in the key of C major are C major, D minor, E minor, F major, G major, A minor, and B diminished.

What are the 7 chords in C major?

The C Major 7 chord (also written as C Maj 7) contains the notes C, E, G and B. It is produced by taking the root, 3rd, 5th and 7th of the C Major scale. It is essentially a C Major chord, with the 7th note of the Major scale added. The C Major 7 chord is a very popular chord.

What are the 3 chords in C major?

For example, the key of C major is spelled C, D, E, F, G, A, and B. The first note is C, the fourth note is F, and the fifth is G. The I, IV, and V chords in the key of C are a C major triad, an F major triad, and a G major triad. We'd simply say, “The chords are C, F, and G.”


1 Answers

I suggest you look at DirectSound, which has nice .NET bindings. You can use two (or more) Buffer objects and invoke their Play methods to play them simultaneously.

This tutorial shows how to implement a simple drum machine in C# by synthesising sounds on the fly. Hope it helps.

like image 186
CesarGon Avatar answered Oct 05 '22 02:10

CesarGon