Page 3 of 5
Re: sound freezer
Posted: Thu May 01, 2014 5:13 pm
by tester
Why the loop lenght is multiplied by 4?
4 channels?
Re: sound freezer
Posted: Thu May 01, 2014 5:24 pm
by KG_is_back
No... the memory size is in bytes. One sample is 4bytes (single precision float)
Re: sound freezer
Posted: Thu May 01, 2014 5:48 pm
by tester
In other words, for stereo recording - it would be set to 8, yes?
Re: sound freezer
Posted: Thu May 01, 2014 5:52 pm
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
Re: sound freezer
Posted: Thu May 01, 2014 5:53 pm
by tester
Yes I know, I'm just comparing schematics I have here.
Re: sound freezer
Posted: Thu May 01, 2014 6:07 pm
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)
Re: sound freezer
Posted: Thu May 01, 2014 6:17 pm
by KG_is_back
alternatively you can use the memory to both write and read the loop like this...
Re: sound freezer
Posted: Thu May 01, 2014 6:42 pm
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.
Re: sound freezer
Posted: Thu May 01, 2014 7:06 pm
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.
Re: sound freezer
Posted: Thu May 01, 2014 7:16 pm
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).