Kyma Forum
  Kyma Support
  Loop Coding

Post New Topic  Post A Reply
profile | register | preferences | faq | search

next newest topic | next oldest topic
Author Topic:   Loop Coding
gustl
Member
posted 29 May 2014 06:44         Edit/Delete Message   Reply w/Quote
Hi there,

I was asking myself if it's possible to do loops (for, while, do) in realtime?
For Example: The Autocorrelation function R(j) = Sigma( x(n) * x(n - j) ) would be very easy to code using 2 loops but it is very complicated to calculate it using prototypes.

Best,
Gustl

IP: Logged

SSC
Administrator
posted 29 May 2014 09:12         Edit/Delete Message   Reply w/Quote
Other than delays and integrators, no. Or you could use the PitchDetector.

IP: Logged

gustl
Member
posted 29 May 2014 10:57         Edit/Delete Message   Reply w/Quote
Ok, I thought so. Is it possible when I create a Tool? Will not be realtime of course.

IP: Logged

SSC
Administrator
posted 29 May 2014 11:48         Edit/Delete Message   Reply w/Quote
Yes, in a Tool you can use Smalltalk looping constructs.

IP: Logged

gustl
Member
posted 29 May 2014 15:54         Edit/Delete Message   Reply w/Quote
Thanks

IP: Logged

gustl
Member
posted 06 June 2014 01:59         Edit/Delete Message   Reply w/Quote

AutoCorrellation.kym

 
Attached is a Sound calculating the AutoCorrellation function. Not very effective though, about 16 samples work fine for my Paca. It's about as realtime as it gets with 17 samples delay for calculating 16 samples. The summing is done by two alternating FIR Filters.
I don't know how useful this is but I had fun building it

[This message has been edited by gustl (edited 06 June 2014).]

IP: Logged

All times are CT (US)

next newest topic | next oldest topic

Administrative Options: Close Topic | Archive/Move | Delete Topic
Post New Topic  Post A Reply

Contact Us | Symbolic Sound Home

This forum is provided solely for the support and edification of the customers of Symbolic Sound Corporation.


Ultimate Bulletin Board 5.45c