@Aarqon
Sounds like we were talking about two different things.
If you are going to use prerecorded tones (samples) as your instruments, you can easily change octaves by either doubling the sample rate (an octave up) or halving the sample rate (an octave down). The sample rate is controlled in DBC with the SET SOUND SPEED command.
You can retrieve the current speed with the GET SOUND SPEED command.
The only problem with changing the pitch of a sample by increasing or decreasing the sample rate, is the tambre will change, the duration of the note will change, and the pitch isn't 100% accurate. It is a fairly effective method though over short ranges of notes. If you want a nice sounding "keyboard" you'll want to have a separate sample for each key. This can really eat memory so usually you'd spread the samples out to cover a few keys at a time - maybe three to five samples per octave would be reasonable for pretty good quality.
The following snippet is an example of using a single sample over a full octave. Replace load sound 1 with one of your tone samples. The speed is divided into 13 parts. A single part is equivalent to about a half step. This value is added to the sample speed to increase it until it reaches an octave. Each note will play the new half step.
load sound "piano.wav" ,1
ss = get sound speed(1)
sndstep=ss/13
for n=0 to 12
set sound speed 1,ss+(n*sndstep)
play sound 1
wait 500
next n
Quote: "Are there any little programs out there that can modify these and/or make new ones the way you decribed them?"
Depends how deep you want to get into it.
You could create your own samples by just recording them with a mic or line into your soundcard. The mic probably is not great quality, but will get the job done - a line in is better, plus you could always go direct from a cd. Windows SoundRecorder would suffice for the most part.
If you know anything about midi, you could program your keyboard to trigger midi notes. You'd create your own DBC interface and use something like Timidity++ or SynthFont (both free) to play back SF2 files which are collections of sampled instruments. For midi and sound playback, look around on the internet for info on the Winmm.dll DLL . If you have DBC enhanced then there are a bunch of useful functions in the DLL to play sound and midi.
The sound synthesis that I thought you were doing might be a little tougher to program even when it comes to the basic waveforms I mentioned before. When you get into FM synthesis, LA synthesis, pass filters, added and subtracted harmonics - it get's pretty meaty.
Enjoy your day.