Merging Waves

Please post bug reports, feature requests, or any question regarding the DELPHI AREA products here.

Merging Waves

Postby mightymango » March 11th, 2006, 8:41 am

Sorry if this is beyond the scope of WaveAudio but is it possible to merge two or more waves?

I have 8 tracks that are made up of different waves and would like to create a wave file where these tracks are all playing at the same time.

I have tried using the Insert method, inserting each of the waves at the same position (0) but this just appends the wave so that they play one after another.

Hope this makes sense!

Thanks
Simon
mightymango
Member
Member
 
Posts: 2
Joined: February 14th, 2006, 5:45 pm

Postby cozturk » March 11th, 2006, 10:24 am

You don't need any wave component to do this.

Only you need :

read wave streams byte by byte. and merge how you want.

for example 8 bit 8 waves we have, let's calculate first byte of mixed stream:
if no signal, byte is 128 (dc level, electronics term :? ). Therefore we must decrease '128' from all bytes before processing. Theese results are signed values .

bytemixed0 = (byte7_0-128) + (byte6_0-128) .....(byte0_0-128)

ok. we must add 128 again our mixed signal

bytemixed0 =bytemixed +128

if you have 16 bit waves, this methot may be easier . Becouse, zero level is 0 for 16 bit waves.
cozturk
Moderator
Moderator
 
Posts: 63
Joined: June 30th, 2005, 5:39 am
Location: Istanbul - Turkiye


Return to DELPHI AREA Products

Who is online

Users browsing this forum: No registered users and 3 guests

cron