First time here? Check out the FAQ!
x

How to write reversed audio to a MemoryWriter

0 votes
455 views
I have a situation where I would like to write a forward and a reversed capture of live audio to a Memory writer for reading back in a Waveshaper from MemoryWriter... I know that I can read back from a SampleFromMemoryWriter with a frequency of default *-1 and then write to another memory writer ... but because of sync issues with frame data, I discover that this solution is not working. Could I appy FrameSynchronizer or something here?

Or is there a way to capture to MemoryWriter in realtime, but backwards?
asked Nov 10, 2019 in Sound Design by cristian-vogel (Master) (8,460 points)

2 Answers

0 votes

You could use the TimeIndex Sound with the Reverse parameter set to 1 in order to index backward through a SampleWithTimeIndex or a Waveshaper. To literally capture the reverse of a live signal in real time implies that you know the end of the input before it actually happens; so you would always have to capture a segment of live audio first, then reverse that segment (perhaps in parallel with capturing the next segment).

answered Nov 10, 2019 by ssc (Savant) (128,240 points)
0 votes
ok, i figured out I can flip the read index of the Waveshaper from MemoryWriter... working in that direction now
answered Nov 10, 2019 by cristian-vogel (Master) (8,460 points)
...