SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Sponsored Links

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

Intended for developers :

The most important class (or file) in this project is the brain class. It defines basically a neural network with inputs, outputs and a function to make it process data.

The inputs are float, preferably beetween 0 and 1 (although there is an auto calibration system to make unspecified values to match [0,1]) The outputs are always float beetween 0 and 1.

test.c is a good and simple example of how it works. Take a look at this file, it's really simple !

From now on, it should be easy to generate weird sounds :

1st technique : Generating samples (I don't know if it oscillates enough to produce sound)

You have to create one brain with 1 or more inputs and 1 output (and as many neurons as you want...) You write what you want in inputs (random float values preferably between 0 and 1, sinus waves, a sound sample, whatever). You process one step
You read the output. It's a float value beetween 0 and 1. You convert it into one sample (basically by multiplying it by the max sample : 65536 for 16 bit samples), and you write that value to a well formated sound file.

Repeat as long as you want !

2nd technique : Generating frequences (It oscillates by definition).

You have to create one brain with 1 or more inputs and probably 3 outputs : one for the frequency, one for the length and maybe one other for the volume.

There are other sound synthesis techniques, feel free to implement them ! You can even try to make realtime sound synthesis, it would be really great :)

ikari <ikari@ifrance.com>


Sponsored Links

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.