[Stk] 2d mesh theory

rurik leffanta rleffanta at cox.net
Sat Jul 4 20:07:19 PDT 2009


I've completed several builds but haven't produced oscillation from a 2d (orthagonal) mesh.

Consider a non-optimised elementary build using a 2d array for the current sample, and a 2d array for the previous sample.

On each sample, all current samples are passed to the previous sample array as such:

for (x=0; x < NX - 1; x++) {
    for (y=0; y < NY - 1; y++) {
        lastSample[x][y] = currentSample[x][y];
    }
}

The computation for each sample then sums the four adjacent lastSample[][] values for each junction and divides by two (Not as efficient as using the & 1 flipflop, this form is only for comprehension). Reflection at boundary cells is also performed.

Without making any improvements, my experience with other waveguide systems says that "there should be some oscillation if there is reflection at the boundaries," i think i've attempted this four times over the last few years, and even implementing the STK version variable for variable (sans the filter which I assume is highpass and reflection) I'm producing an exponential DC output.

Rurik.
http://www.xoxos.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ccrma-mail.stanford.edu/pipermail/stk/attachments/20090704/23912889/attachment.html 


More information about the Stk mailing list