Support

If you have a problem or need to report a bug please email : support@dsprobotics.com

There are 3 sections to this support area:

DOWNLOADS: access to product manuals, support files and drivers

HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects

USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here

NEW REGISTRATIONS - please contact us if you wish to register on the forum

Unlimited Size WAV Record V0.4

Post any examples or modules that you want to share here

Re: Unlimited Size WAV Record V0.4

Postby aronb » Wed Oct 07, 2015 3:43 pm

Hi,

Wow that is cool !

How difficult would it be to change the code to allow for 5 channels to be recorded at the same time ?

6 or even 8 channels would work too (those are more like 5.1 and 7.1 surround sizes for example).

The wave file format allows for that see this link for details (I like this description):
http://web.archive.org/web/20080113195252/http://www.borg.com/~jglatt/tech/wave.htm

I would be willing to help if needed or if you want to keep it proprietary that's fine too, I may be able to pay for this as well depending on cost of course ;)

I use Flowstone as a data acquisition system and need to record data between DC and 15KHz (16bit format @44100sps, or 12bit format minimum at 44100sps). I do it now by outputting the streams to Reaper and it works fine... however there are a few issues with the "ease" of using virtual cables, but that is another story :?

Thanks,

Aron
User avatar
aronb
 
Posts: 154
Joined: Sun Apr 17, 2011 3:08 am
Location: Florida, USA

Re: Unlimited Size WAV Record V0.4

Postby Youlean » Fri Oct 09, 2015 11:20 pm

mccy wrote:Hey, this looks great! Thank you very much! Now I can handle the two arrays as dual mono mems/files, but how can I combine them to one stereo array?

thanks

Martin

Why do you want to do this?
Youlean
 
Posts: 176
Joined: Mon Jun 09, 2014 2:49 pm

Re: Unlimited Size WAV Record V0.4

Postby Youlean » Fri Oct 09, 2015 11:23 pm

aronb wrote:Hi,

Wow that is cool !

How difficult would it be to change the code to allow for 5 channels to be recorded at the same time ?

6 or even 8 channels would work too (those are more like 5.1 and 7.1 surround sizes for example).

The wave file format allows for that see this link for details (I like this description):
http://web.archive.org/web/20080113195252/http://www.borg.com/~jglatt/tech/wave.htm

I would be willing to help if needed or if you want to keep it proprietary that's fine too, I may be able to pay for this as well depending on cost of course ;)

I use Flowstone as a data acquisition system and need to record data between DC and 15KHz (16bit format @44100sps, or 12bit format minimum at 44100sps). I do it now by outputting the streams to Reaper and it works fine... however there are a few issues with the "ease" of using virtual cables, but that is another story :?

Thanks,

Aron

Please PM me what you actually want to do, and I will try to help you...
Youlean
 
Posts: 176
Joined: Mon Jun 09, 2014 2:49 pm

Re: Unlimited Size WAV Record V0.4

Postby mccy » Tue Oct 20, 2015 1:57 pm

I need stereo-sound, and it must be very simple, to save the recorded file as stereo and get it as a stereo array back in flowstone, because I want to switch between recorded and prerecorded material in the scratcher... I posted the "scratch" project in another thread.

1000 Thanks

Martin
Attachments
wavrec.jpg
wavrec.jpg (32.75 KiB) Viewed 26440 times
mccy
 
Posts: 69
Joined: Sun Feb 27, 2011 3:20 pm

Re: Unlimited Size WAV Record V0.4

Postby tester » Sat Oct 21, 2017 7:36 pm

Hey Youlean.

I'm glad that I found your module, however there are few problems to address.

Memory usage. Recording 15 minutes of audio (44.1k/stereo) produces about 600MB of memory usage. This is probably due to the green coversion on output (arrays of floats).

When recording stereo, channels are sent to output separately as arrays of floats. Converting this to single output file would require interweaving in greens (or whatever else in greens), which would produce additional usage.

Do you know any workaround for these issues?

The best way would be to have mono and stereo mem outputs, so that mem data are sent directly to saving or else, but from what I see - this dll prim does not supports such nodes.

So maybe there is some way through these red V (for ruby?) nodes and ruby?
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
tester
 
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: Unlimited Size WAV Record V0.4

Postby Youlean » Mon Oct 23, 2017 1:26 am

Well, workaround for these issues is to build new wav recorder. :lol:
Youlean
 
Posts: 176
Joined: Mon Jun 09, 2014 2:49 pm

Re: Unlimited Size WAV Record V0.4

Postby tester » Mon Oct 23, 2017 4:16 pm

Actually it could be easier than I thought, and perhaps you can help with that.

Here is a scenario.

1. FS trigger activates recording
2. external dll records audio
3. FS trigger activates stop
4. external dll saves recorded audio to wav (some cache file with provided folder)
5. optional: external dll sends confirmation that file was saved
6. FS loads audio file from cache folder (standard guts for loading audio).

Everything else (cache cleaning and so on) can be handled from within FS.

So, the external dll:
1. receives trigger for recording
2. receives trigger for stoping (where stop = save file)
3. sends optional (i.e. this can be handled by delay in FS, but it's less safe) trigger that file has ben saved.
4. optionally - recording is set to mono or stereo.

Not too many interactions. No green arrays are created in FS. If on dll side there are no memory issues, then this should work pretty well, and should record "unlimited" audio.

Could you make such dll for audio recording?
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
tester
 
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: Unlimited Size WAV Record V0.4

Postby Youlean » Mon Oct 23, 2017 8:50 pm

You can't write directly to a file. You must write to a ram, but I can optimize this dll a lot, though functionality you have described above will require some time to implement, so I will be only available to do that for a fee.
Youlean
 
Posts: 176
Joined: Mon Jun 09, 2014 2:49 pm

Re: Unlimited Size WAV Record V0.4

Postby tester » Mon Oct 23, 2017 10:10 pm

Yes, I know, you write it either through some sort of buffers (faster) or put all to ram and from ram to disk at once (slower). Correct me if I'm wrong, and tell me whether this matters anyway.

But the point is, when you record 16bit audio (44.1k/stereo), then you get 600MB per hour. The problem I see right now, is - whatever is pushed through flowstone's greenery - produces a lot of ram usage, which is not really useful. Apart from that, some green prims don't release ram correctly. But with no audio inside (and with no prims that hold greenry data after unloading audio), this should work as a switch per switch (recorder/flowstone).

My questions.

From your perspective - how it will behave in terms of what I wrote above? (what should be I aware of?).

For how much and how long it will take?
(PM me, just point technical details in this post)

To other flowstoners:
who is interested to contribute, so that this could be then released on forum for all?
(PM me)
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
tester
 
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: Unlimited Size WAV Record V0.4

Postby Youlean » Mon Oct 23, 2017 10:46 pm

Can you first tell me what you want to achieve? Then I will tell you what will be the best approach using dll. PM me if it is sensitive...
Youlean
 
Posts: 176
Joined: Mon Jun 09, 2014 2:49 pm

PreviousNext

Return to User Examples

Who is online

Users browsing this forum: Google [Bot] and 33 guests