XML Feeds

.

[jitter] Feedback patch, need to speed it up :)

Carl Knott carl.knott at gmail.com
Thu Jul 26 12:14:09 MDT 2007


Hey all, I've written a pretty kick-ass patch but I'm having some problems with a feedback loop.. this is the workflow:

- person speaks
- analyzes frequency
- produces n and m 
- uses n and m for a chladni pattern in a circular membrane
- produces pattern

I'm using a sand algorithm from another patch that simulates the movement of sand on the plate, however, its too slow and I cant work out why...

The patch is below:

max v2;
#N vpatcher 711 127 1311 527;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 172 88 52 196617 metro 20;
#P newex 284 205 34 196617 delay;
#P outlet 156 285 15 0;
#P inlet 210 61 15 0;
#N vpatcher 448 400 847 654;
#P outlet 62 194 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 62 165 64 196617 jit.op @op +;
#P inlet 212 60 15 0;
#P inlet 62 61 15 0;
#P inlet 310 68 15 0;
#P window linecount 0;
#P newex 310 105 30 196617 !- 1.;
#P window linecount 1;
#P newex 212 131 114 196617 jit.op @op * @val 0.06;
#P window linecount 0;
#P newex 62 132 114 196617 jit.op @op * @val 0.94;
#P connect 4 0 0 0;
#P connect 0 0 6 0;
#P connect 6 0 7 0;
#P fasten 1 0 6 1 217 157 121 157;
#P fasten 3 0 0 1 315 97 171 97;
#P connect 5 0 1 0;
#P connect 3 0 2 0;
#P connect 2 0 1 1;
#P pop;
#P newobj 156 195 45 196617 p mixer;
#P newex 156 230 65 196617 jit.op @op *;
#P newex 156 164 181 196617 jit.matrix 1 float32 256 256 @thru 0;
#P newex 172 129 134 196617 jit.noise 1 float32 256 256;
#P inlet 172 61 15 0;
#P window linecount 2;
#P comment 11 46 100 196617 Virtual sand \, not written by Carlos.;
#P connect 9 0 3 0;
#P fasten 4 0 3 0 161 257 147 257 147 156 161 156;
#P connect 3 0 5 0;
#P connect 5 0 4 0;
#P connect 4 0 7 0;
#P connect 1 0 9 0;
#P connect 9 0 2 0;
#P connect 2 0 5 1;
#P connect 6 0 4 1;
#P pop;

I cant upload the full patch because there are too many java files, but once I've finished it I'll get it on my website.

Nice one.



More information about the jitter mailing list