Skip to main content
GameDev.net gamedev.net
🔒 Locked

how to program a synth

Started by vaneger Nov 19, 2003 at 4:14 PM 2 replies 550+ views
Original Post
vaneger
vaneger
how would i program a synth piano i have no idea where to look for info on it.
C-Junkie
C-Junkie
specifically?
Premandrake
Premandrake
There are tons of examples on the net about digital signal processing for sample generation. This is essentially what you want to do.

Start with a basic program that generates a constant tone (a simple sinuosoid will do) and plays it back. Then have the amplitude of the wave decay exponentially in time. Then start adding frequency oscillation and then it starts becoming more of a black art than a science.

After you have a good sounding piano note (and this can be extremely tough unfortunately) all you need to do is generate it at different frequencies and lengths to get your different piano notes. Then you need some sort of music description to play back. Look into the MIDI format, it is very easy to understand (the basic format that is) and is quite compact as well.

Good luck.
Infinisearch
Infinisearch
This might be of use to you.

http://www.musicdsp.org/archive.php
-potential energy is easily made kinetic-

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.