Go to bottom

Sound me beautilful

category: general [glöplog]
my 4k is nearly done with everything i wanted : ps, cameramovement complex model and so.

but there is still something missing : sound!!
i have try some experiments with evaldraw (yep still this annoying tool , but its SO usefull)
Code: (x,t,te) static vc1; tempo=20; pulse=int((t*tempo)%16); vcf=0; if(pulse==2){ vcf=-1+rnd*2; //noise dec=80; amp=10; } if(pulse==14){ //sine vcf=sin(t*440*PI*2)*1; } if(pulse==6){ //square vcf=-1+2*(int((t*400)%2)<1); } if(pulse==7){ //sawtooth vcf=-1+((t*1000)%2); } if(pulse==9){ //triangle if(((t*1000)%2)>1) t=-t; vcf=-1+2*(t*1000)%2; } //low pass filter (*cough*) (come from wikipedia lowpassfilter article) (seems to work) dt=1; resistor=10; a=dt/(resistor+dt); vcf=a*vcf+(1-a)*vcf1; //seems to be just a simple linear interpolation between to frames vcf1=vcf; //store for next frame vcf;

sound is something really new for me.
i try to create some really kick ass bass with 80hz sine and some frequency decay but everything i get is a flat *pang*
im also wondering how to create other sound filters (flanger, echo , reverb and so)
is it better to keep sound value between 0 and 1 or -1 and 1 ??? (and apply after some amplification)
i have also read some articles on wiki about 4k sound synthesis but it doesnt help me very much.

what i need is some basic sound (bass,snare, hats and so) and some great filters i can set on it
added on the 2006-11-05 16:17:43 by Tigrou Tigrou
Well look me up i guess i have what you need..
added on the 2006-11-05 17:46:49 by M:ET M:ET
My idea of a simple 4k bass:
- two sawteeth playing a low note, reasonably detuned from each other
- lowpass filter with a little bit of resonance
- distortion

Fuck around with Orangator, it might help :)

Also, www.musicdsp.org might be a good call :)
added on the 2006-11-05 17:55:11 by Gargaj Gargaj
what about just generating white noise and only letting a few narrow bands through? not sure how easily it's implemented in such tight size restrictions, but it should make for some interesting pad sounds. Either that or combine sine waves...
added on the 2006-11-05 18:18:15 by noouch noouch
thx for www.musicdsp.org link it just what I needed
added on the 2006-11-05 18:39:09 by Tigrou Tigrou


Go to top