Fast VCOs/V->F converters

Martin Czech martin.czech at intermetall.de
Tue Nov 24 14:23:48 CET 1998


> I would be interested in that C program, if you could mail it.
> Tanx.
> 

You mean the wavetable prg ? I have it at home.
But I have another program at hand right now, as a substitute...
This is a bit of c-code I used for my very recent composition.
This composition will be performed this very evening!

It actually does not produce a wavetable, but sine wave samples. These can
have an Attack Hold Release amplitude envelope and an Attack Hold Release
frequency envelope. The program can give an impression if it is worth the
pain to have different kinds of envelope shapes in analog hardware or
not. The amplitude envelope can have positive and negative exponential
shape, or linear shape. The frequency envelope can have exponential or
linear shape. All times are given in seconds, frequencys in Hertz.

You can do three basic things:

COMPSIN;

This is a macro that computes a sine burst according to the parameters
which are set in main.

pause(3.0);

This creates silence of 3 seconds lentgth.
     
sync_pause(10);

This creates silence until the time 10 seconds is reached. This can be
used to synchronize, because in the long run pause() and COMPSIN may
create little timing errors that may sum up to larger, audible timing
errors. Time is quantized in the digital domain!


The UNIX define is used to switch on/off unix specific system tasks.
int is assumed as 32 bit wide (compilers with 16 bit int are shit!)
double can be set to float, if this gives you any advantage.
Most systems treat float as double.
If you disable UNIX it should compile and run on allmost any system.



>From this little example it should be easy to create any kind of waves
you like.  I have programmes at home that use FM (really PM), distortion,
Fourier etc. to create Waldorf Microwave Wavetables.  They could be
easily adapted to create samples.

The output is a raw file that can be read eg. with cool-edit -> load_as,
and then motorola-format. Viola.


By the way: 

Could someone point me to a place where I can download a good Win95 C-compiler?
Gnu or something ? If it supports GUI, well this would not be harmfull...

m.c.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sin_comp.c
Type: application/octet-stream
Size: 26674 bytes
Desc: sin_comp.c
URL: <http://synth-diy.org/pipermail/synth-diy/attachments/19981124/324d1103/attachment.obj>


More information about the Synth-diy mailing list