Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!mips!atha!aunro!ukma!psuvax1!hsdndev!cmcl2!uupsi!phage!cuddihyd From: cuddihyd@cshl.org (David Cuddihy) Newsgroups: comp.sys.amiga.audio Subject: Multiplexing Message-ID: <1991Jun28.215418.5565@cshl.org> Date: 28 Jun 91 21:54:18 GMT Organization: Cold Spring Harbor Laboratory Lines: 18 If I wanted to have a program that was to play samples as controlled by say a MIDI device or something like that, the point being I want a real time response how would I go about multiplexing in order to get say 8 voices? In theory it seems very straight forward: You take the two samples in question, take the one to be played back at the higher frequency and use that as the AUDxPER, copy that into a piece of memory pointed to by AUDxPOS(??) of a length AUDxLEN and then copy the slower frequency sample into that memory area every Fz2/Fz1 word (Not actually copy but 'multiplex' or do some sort of an averaging routine... Infact you can get fancy and plot slopes or Simpson curves or god knows what across the gaps between sample two's active words to 'fill in the gaps' but thats not really the point) The trick here is to get an AUDxLEN long enough as to let Paula give enough time to the processor to let it run this little multiplexing routine. Fine and dandy, except at 7.1Mhz(or whatever) this will NEVER HAPPEN!(Or am I wrong) Can someone suggest an alternative method to this multiplexing porblem? Much appreciated, -Dave