Search found 7 matches

by PaulSlocum
Wed Jul 23, 2008 12:42 am
Forum: General Audio Programming
Topic: Mixing down multiple channels
Replies: 5
Views: 2437

Re: Mixing down multiple channels

That's easy to do, just attenuate the tracks to 1/n their volume, where n is the number of tracks you're mixing. Or do a real-time normalization. But he's already tried something similar and complains that although the parts with lots of stuff going on are fine, the passages of the music where only ...
by PaulSlocum
Tue Jul 22, 2008 5:43 am
Forum: General Audio Programming
Topic: Vibrato and EQ Algorithms
Replies: 8
Views: 6165

Re: Vibrato and EQ Algorithms

I'll experiment with the FP stuff and see how the performance works out. I'm using it for the software at the link below that I'm developing. An effect I use often in my music is to have a very slow, very subtle vibrato on most tracks, which is what I'll be using it for. http://www.qotile.net/blog/w...
by PaulSlocum
Tue Jul 22, 2008 5:39 am
Forum: General Audio Programming
Topic: Mixing down multiple channels
Replies: 5
Views: 2437

Re: Mixing down multiple channels

You need a compressor. Might be able to find code for one somewhere. Seems like it wouldn't be terribly difficult to code. Although you'd probably benefit from a multi-band compressor which I think is a bit more difficult to code.
by PaulSlocum
Tue Jul 22, 2008 2:19 am
Forum: General Audio Programming
Topic: Vibrato and EQ Algorithms
Replies: 8
Views: 6165

Re: Vibrato and EQ Algorithms

Floating point ops are generally slower. Probably wouldn't make much difference on recent home computers unless you're running on a massive amount of tracks. Would make a difference if it were run on an embedded device or something. Some embedded CPUs don't even have a FPU (like my MP3 player) so in...
by PaulSlocum
Tue Jul 22, 2008 1:23 am
Forum: General Audio Programming
Topic: Vibrato and EQ Algorithms
Replies: 8
Views: 6165

Re: Vibrato and EQ Algorithms

Vibrato works. Here's the code, a little rough but you get the idea. Could probably do it with a sine lookup table, all integer math, and no between sample consideration if you're willing to sacrifice a little sound quality for speed. // vibrato for( i=0; i<(length/2); i++ ) // note: length/2 becaus...
by PaulSlocum
Mon Jul 21, 2008 4:05 am
Forum: General Audio Programming
Topic: Vibrato and EQ Algorithms
Replies: 8
Views: 6165

Re: Vibrato and EQ Algorithms

update, I found a document that tells how to do a parametric EQ: http://epubl.luth.se/1402-1773/2003/044/LTU-CUPP-03044-SE.pdf And I think I've figured out how to do vibrato -- just resample, distributing the samples earlier/later using a sine wave to control the time displacement. I'll post the cod...
by PaulSlocum
Thu Jul 17, 2008 2:28 am
Forum: General Audio Programming
Topic: Vibrato and EQ Algorithms
Replies: 8
Views: 6165

Vibrato and EQ Algorithms

I'm writing audio code in C/C++ using SDL. I'm looking for simple algorithms for vibrato and a very basic EQ with treble/bass/mid. The functions will be applied to 16-bit audio buffers. Thanks in advance for any help.

-paul