sound freezer

DSP related issues, mathematics, processing and techniques
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: sound freezer

Post by tester »

Why the loop lenght is multiplied by 4?
4 channels?
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: sound freezer

Post by KG_is_back »

No... the memory size is in bytes. One sample is 4bytes (single precision float)
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: sound freezer

Post by tester »

In other words, for stereo recording - it would be set to 8, yes?
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: sound freezer

Post by KG_is_back »

yes... but in case you want to convert the loop to wavetable I'd avoid using stereo memory - in stereo memory odd samples are left channel and even are right, but wavetable generation works only in mono
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: sound freezer

Post by tester »

Yes I know, I'm just comparing schematics I have here.
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: sound freezer

Post by tester »

Okay, I found some guts, so I have something like this.
Now I need to make that counter right.

Basically, my idea is to use a single cycle of ramp and scale it. Somehow. :-)
(I'm not sure how this recording/counting thing works, and what stops it)
Attachments
make-003.fsm
(6.35 KiB) Downloaded 1426 times
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: sound freezer

Post by KG_is_back »

alternatively you can use the memory to both write and read the loop like this...
Attachments
looper.fsm
(160.75 KiB) Downloaded 1464 times
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: sound freezer

Post by tester »

Okay, I'm lost a little bit. I have no idea how (why) it works. :-)

Generally, what I need to do, is - when I freeze the sound (which is a loop), and like the results I hear - I'd like to capture that portion, but not to a wave file, just to a text file, that can be then loaded/transformed to a wavetable.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
KG_is_back
Posts: 1196
Joined: Tue Oct 22, 2013 5:43 pm
Location: Slovakia

Re: sound freezer

Post by KG_is_back »

the write to memory works only if its output is connected to mono receiver (soundcard output, mono to float etc) and the values simply pass through unaltered. so while the selector is set to the write, the pirmitive writes to a memory. once you switch it to read, it stops writing (is bypassed in a way you are probably familiar with - selector) and it is being read by read primitive. the memory then contains the loop as a wave and you can use mem-to-floatarray primitive to convert it to array of floats.
tester
Posts: 1786
Joined: Wed Jan 18, 2012 10:52 pm
Location: Poland, internet

Re: sound freezer

Post by tester »

Ah, I see. I was wondering why I could not get readout from both prims at once.

Meanwhile I extracted the part that I'd like to combine with saving the snapshot. You need to select input first, then run audio out. Freeze button shows what is frozen, and this is what I'd like to send as a single-cycle wave (text). (basically I probably will reduce the wavetable making to buffer size = 1).
Attachments
temp.fsm
(35.98 KiB) Downloaded 1447 times
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
Post Reply