Request- float arrays to stereo mem

For general discussion related FlowStone
Post Reply
User avatar
nix
Posts: 817
Joined: Tue Jul 13, 2010 10:51 am

Request- float arrays to stereo mem

Post by nix »

Hey folk,
Back after a sucky summer where my house burnt down.
Anyway-
I manged to build a float array recorder that doesn't click--
taking 1 second float arrays with 'mono to graph' and appending them.
Ruby is suffient to give one second interval ticks.
The jury is still out as to how much RAM it is using.
I have different result on my desktop-- it use no RAM possibly.
As this is working,
I need to ask for a prim that will turn 2 float arrays into a stereo mem.
I don't want to render the data with
'wave write stereo',
it takes time, whereas the float array should be available immediately.
Cheers!
User avatar
trogluddite
Posts: 1730
Joined: Fri Oct 22, 2010 12:46 am
Location: Yorkshire, UK

Re: Request- float arrays to stereo mem

Post by trogluddite »

Hi nix, good to see you back.
nix wrote:Back after a sucky summer where my house burnt down.

Ouch, that sounds a bit beyond "sucky" - hope things are getting back on traclk OK.

Sounds like an interesting little project. I've been trying to use Ruby to do something similar direct to disk - but seems the IO access is just too slow to do it without ticks and crackles.
I'd like to see that primitive too - but in the meantime...
Presumably there are two things you might do with your stereo mem...
1) Play it back!
Could be worked around by using two mono wave reads with the same index, maybe?
2) Save it as a file.
That's the tricky one, because you have to have a single mem - but I may have a workaround soon. My Ruby 'live recorder' is too clunky to use, but it means that with a bit of tweaking, I have the file format nailed to make .wav file save that could work directly from the float arrays without 'mem' conversion. Just 16bit at the moment, but I'm working on the header format for 24bit and float.
How quick it would be, I don't know, as I can't try a big "off-line" save until I re-build it - but interleaving the left and right array can be achieved with two built in Ruby methods that are both compiled C routines, so I would think it would be faster than an real-time render, though maybe a bit of a CPU hog.
I'll let you know as soon as I have a working schematic to play with.
All schematics/modules I post are free for all to use - but a credit is always polite!
Don't stagnate, mutate to create!
User avatar
nix
Posts: 817
Joined: Tue Jul 13, 2010 10:51 am

Re: Request- float arrays to stereo mem

Post by nix »

Thanks a bundle trogs!

Yeah-we're all safe,
it was a beautiful house though--we were set up there.
If I can complete as many projects as possible,
I will be on track IMO.

The playback method will suffice for now-
but it makes saving so long if you have track length takes
User avatar
nix
Posts: 817
Joined: Tue Jul 13, 2010 10:51 am

Re: Request- float arrays to stereo mem

Post by nix »

I'd like to bump this in the hope of a reply from support :?:
Post Reply