Re: Hiss Effect
Re: Hiss Effect
- Subject: Re: Hiss Effect
- From: Artemiy Pavlov <email@hidden>
- Date: Tue, 17 May 2011 22:05:22 +0300
I don't know how sophisticated you want this hiss/noise to be, but here is a quick one:
- to create white noise, simply generate a random float value from -1 to 1. This can be done like this:
NoiseValue = 2.0f * random()/RAND_MAX - 1.0f;
- to have pop/scratch noises, define a period in samples in which these will occur, then on each period you generate a random number in the range of 0 and 1, if it's less than 0.5 you do nothing, if it's more than 0.5 you generate a random value like above. I.e. each period has this occurring:
NoiseProbability = random()/RAND_MAX;
if(NoiseProbability>0.5){
NoiseValue = 2.0f * random()/RAND_MAX - 1.0f;
} else {
NoiseValue = 0.0;
}
You can go more advanced from here and generate bursts of noise etc.
On 16 May 2011, at 19:00, email@hidden wrote:
> Hello,
>
> I need some sort of plugin library to add hiss and scratch to any given audio signal, do you guys know anything I could use? I don't need anything fancy but it has to be generated as a plugin, I can't use some pre-recorded hiss/scratch sound and loop it since I won't know the length of the given signal. This is supposed to work in the iPad.
>
> I appreciate any suggestion.
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Coreaudio-api mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden