[futurebasic] Re: Making Sounds

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 2000 : Group Archive : Group : All Groups

From: Robert Covington <artlythere@...>
Date: Tue, 24 Oct 2000 04:41:08 -0500
Tedd Man,

An email search through a thread that you started a long while back on the
same topic reveals the path to true knowledge of a frequent nature. Samples.

This is at least a road map to a solution. As I wrote you offlist, having a
batch of premade sound bases to resample up or down is the ticket.

I have a big batch of keyboards here, I can get you whatever you need, in
stereo too.  Problem is, the higher the frequency of the sample, the more
of a problem with aliasing you may encounter.

Is this something that could be non-computer based? With some basic
electronics from Radio Shack you could do an analog or digital counterpart.
555 Timers like to oscillate at times. :) And using one of their basic 300
in 1 kits, you can easily make a tick type frequency generator with
transistors or chips. Forrest Mims is their project guy all around, and his
little books that they sell may be of help. You might could configure the
analog or digital outputs of that ADB I/O to generate the sounds perhaps
using D/A or A/D converters. The option for computer programming would
still be there too, interface wise.

Remember , that which hertz you had better have a lawyer. That's sound
advice. Unless it is for a car, then its rental advice. And avoid DEF Fn's,
they may compound any conditions one may have.

(man, I am even hurting myself hear.) :)

Robert Covington
Recovering Punster


From our own Brian Hughes months ago:

>This is what follows the MIDI table in 'IM:Sound Manager':
>
>"You can play square-wave and wave-table data at these frequencies
>only. If you are playing a sampled sound, however, you can modify the
>sampleRate field of the sound header to play a sound at an arbitrary
>frequency. To do so, use the following formula:
>
>new sample rate = (new frequency / original frequency) * original sample rate
>
>where the new and original frequencies are measured in hertz.
>
>To convert a MIDI value to hertz for use in this formula, note that
>middle C is defined as 261.625 Hz and that the ratio between the
>frequencies of consecutive MIDI values equals the twelfth root of 2,
>defined by the constant twelfthRootTwo.
>
>CONST twelfthRootTwo = 1.05946309434;"

>Brian Hughes