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
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
sound freezer
48 posts
• Page 5 of 5 • 1, 2, 3, 4, 5
Re: sound freezer
I'm having a problem with that "mem" thing in FS.
Should I connect the "mem 2 float array" to that mem node, and refresh the output array by flip/floping a selector? And then use "float array section" primitive to extract a lenght of that array compatible with loop size?
//edit:
It looks we wrote in the same time.
Should I connect the "mem 2 float array" to that mem node, and refresh the output array by flip/floping a selector? And then use "float array section" primitive to extract a lenght of that array compatible with loop size?
//edit:
It looks we wrote in the same time.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
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
it is better to use mem-read primitive connected to an analyzer primitive (with respective index ramp calculator connected to read of course).
- KG_is_back
- Posts: 1196
- Joined: Tue Oct 22, 2013 5:43 pm
- Location: Slovakia
Re: sound freezer
Signal analyzer is not blue, is poly.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
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
It will not be in the blue line... it will be separate... look here
- Attachments
-
- freeze.fsm
- (165.63 KiB) Downloaded 1389 times
- KG_is_back
- Posts: 1196
- Joined: Tue Oct 22, 2013 5:43 pm
- Location: Slovakia
Re: sound freezer
Ah, I see. Btw, my alternative thought was this one.
Okay, thanks. Will explore it tomorrow, because right now the morning is coming...
Okay, thanks. Will explore it tomorrow, because right now the morning is coming...
- Attachments
-
- freeze-var.fsm
- (159.79 KiB) Downloaded 1365 times
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
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
KG_is_back wrote:in my schematic in off state the freezer writes data to index [0] and reads from index[0] afterwards. In writing mode it writes to indexes 1,2,3,... until zero crossing is found and looping mode turns on. In looping mode it writes to index [0] and reads indexes [0] to period length.
the memory is fixed size - to save one period from it you have to extract section [0] to [period length].
note that there is a parameter which defines the minimum period length (basically defines how long is the algorithm latent after finding first zero crossing and stating to search for the second one). That should be calculated with from the pitch of your signal and some "tolerance" like:
minimal period length [in samples]=0.99[tolerance of 1%]*2/f[normalized frequency]
So just to clarify few things, because I'm doing final (successful) wiring.
1) Tolerance thing will output amount of samples, yes? That is - if I have 44100Hz sampling rate and 100Hz, then single cycle wave will be 441 samples long, and tolerance values for 1% will be somewhere around 432 samples, after which the algo seeks for zero crossing. Yes?
2) I noticed, there are slight differences in array values between your analyzer based capturing and my rough approach with re-switchable selector. It happens at un-even values (like 101Hz). If I understand correctly - analyzer is doing better smothing job on array values, to give better wave as a result, yes?
3) I noticed in your schematic, you are using in the analyzer some 1-sample limiters. One for reducing amount of samples by 1 (analyzer) and one to "read" primitive (in general), to shift index by one. I'm not sure if I understand the practical meaning of this?
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
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
tester wrote:1) Tolerance thing will output amount of samples, yes? That is - if I have 44100Hz sampling rate and 100Hz, then single cycle wave will be 441 samples long, and tolerance values for 1% will be somewhere around 432 samples, after which the algo seeks for zero crossing. Yes?
correct. Or as I've mentioned above you can define it relatively. convert your found pitch to period length in samples and multiply that with the tolerance which is 1-x% (in case you what 1% tolerance multiply period length with 0.99)
tester wrote:2) I noticed, there are slight differences in array values between your analyzer based capturing and my rough approach with re-switchable selector. It happens at un-even values (like 101Hz). If I understand correctly - analyzer is doing better smothing job on array values, to give better wave as a result, yes?
some frequencies do not have integer period in samples, but the captured loop is always integer. For example Nyquist frequency has 2sample period. but frequency Nyquist*4/5 has period of 2,5sample. If you capture that loop with zero crossing method you'll get randomly 2 or 3 sample loop.
I do not exactly know why you have different results - it might be only an offset.
tester wrote:in your schematic, you are using in the analyzer some 1-sample limiters. One for reducing amount of samples by 1 (analyzer) and one to "read" primitive (in general), to shift index by one. I'm not sure if I understand the practical meaning of this?
As I have explained before the actual loop is written from index 1 - the index [0] is a "dummy" index that the write primitive writes when no writing should happen. That means it is not part of the loop. That is why read index starts from 1 and not 0. Actually I've just checked and I've made a mistake. The counter starts from 1, so the green +1 is not needed and also the -1 on analyzer is wrong then sorry my bad...
- KG_is_back
- Posts: 1196
- Joined: Tue Oct 22, 2013 5:43 pm
- Location: Slovakia
Re: sound freezer
Thanks for additional explanations. I just need to digest it my way, that's why so many questions.
And also sincere thanks for that little project on capturing and saving single-cycle loops.
Maybe the whole sound freezer - isn't able to provide smooth and naturally sounding, seamless, multicycle loops (yet...), but saving single-cycle waves is very useful to some of my other projects.
And also sincere thanks for that little project on capturing and saving single-cycle loops.
Maybe the whole sound freezer - isn't able to provide smooth and naturally sounding, seamless, multicycle loops (yet...), but saving single-cycle waves is very useful to some of my other projects.
Need to take a break? I have something right for you.
Feel free to donate. Thank you for your contribution.
Feel free to donate. Thank you for your contribution.
- tester
- Posts: 1786
- Joined: Wed Jan 18, 2012 10:52 pm
- Location: Poland, internet
48 posts
• Page 5 of 5 • 1, 2, 3, 4, 5
Who is online
Users browsing this forum: No registered users and 57 guests