Forums > Jitter

Midi triggering

July 28, 2006 | 4:36 pm

Hi dear cycling forum.

After a day spending searching the forum i coundn’t find where i was looking for. I’m making a little videoclip trigger application based on jitter example 26.

I’m feeding the example with external midinotes. With 120 bpm and 8th triggering it just do fine(30fps). when i go up to 16th triggering the fps is falling to 2 and nothing is coming out anymore. (2 fps = 1 frame every half second and 16th with 120 = one trigger every 0.125 second, so only one frame is showing instead of the 3 or 4 desired (30fps/8 = 3.75 frames))

is the problem in:

hardware/software? (WinXPPro, Pentium M 1.5, 1 gig RAM, GeForce FX Go5200, QT 7.0.4)

the way the maxpatch is constructed? other way’s like javascripting ?use of othertype of objects? wrong usage of objects?

The patch:

max v2;
#N vpatcher 24 75 1405 879;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 609 345 68 9240586 send movie;
#P toggle 609 303 15 0;
#P newex 612 326 62 9240586 metro 0.5;
#P window linecount 2;
#P message 692 508 68 9240586 ; movie stop;
#P message 611 508 74 9240586 ; movie start;
#P message 530 508 68 9240586 ; movie read;
#P window setfont "Sans Serif" 9.;
#P number 772 184 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont "Fixedwidth Serif" 10.;
#P window linecount 1;
#P newex 772 127 116 9240586 r rightmovieoutput;
#P newex 772 154 104 9240586 route framecount;
#P window setfont "Sans Serif" 9.;
#P comment 771 106 117 9109513 if movie is read get info;
#P window linecount 2;
#P message 390 534 75 9109513 ; movie frame $1;
#P flonum 390 512 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 390 483 27 9109513 / 60;
#P user kslider 388 197 35 1 0 60 19 7 0 128 128 128 128 128 128 255 255 255 0 0 0 0 0 0;
#P number 390 378 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont "Fixedwidth Serif" 10.;
#P flonum 468 360 60 10 0. 1. 3 141 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 468 339 43 9240586 / 127.;
#P newex 468 381 38 9240586 s vel;
#P newex 390 458 27 9240586 *;
#P number 455 317 35 10 0 127 3 141 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 390 317 35 10 0 127 3 141 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 388 248 62 9240586 poly 1 1;
#P newex 388 158 50 9240586 notein;
#P window setfont "Sans Serif" 9.;
#P user umenu 207 104 191 9109543 1 64 120 0;
#X add "Microsoft Synthesizer";
#X add "Microsoft GS Wavetable SW Synth";
#X add "USB Audio Device";
#P newex 207 82 41 9109513 midiinfo;
#P newex 207 59 45 9109513 loadbang;
#P newex 27 167 40 9109513 r movie;
#P newex 388 129 32 9109513 midiin;
#P user jit.fpsgui 26 591 57 9109513 0;
#X setrgb 132 0 0 187 187 187 234 234 234 4 4 4;
#P user jit.pwindow 24 343 322 242 1 1 1 1 1 1;
#P newex 27 190 94 9109513 jit.qt.movie 320 240;
#P connect 0 0 1 0;
#P connect 1 0 2 0;
#P connect 4 0 0 0;
#P connect 5 0 6 0;
#P connect 6 0 7 0;
#P connect 7 1 3 0;
#P connect 3 0 8 0;
#P fasten 8 0 17 0 393 188 393 188;
#P fasten 17 0 9 0 393 235 393 235;
#P fasten 9 1 10 0 419 278 395 278;
#P connect 10 0 16 0;
#P connect 16 0 12 0;
#P connect 12 0 18 0;
#P connect 18 0 19 0;
#P connect 19 0 20 0;
#P fasten 24 0 12 1 777 424 412 424;
#P fasten 17 1 9 1 629 240 445 240;
#P fasten 9 2 11 0 445 274 460 274;
#P fasten 11 0 14 0 460 335 473 335;
#P connect 14 0 15 0;
#P connect 15 0 13 0;
#P connect 28 0 30 0;
#P connect 29 0 28 0;
#P fasten 8 1 17 1 413 188 629 188;
#P connect 23 0 22 0;
#P connect 22 0 24 0;
#P pop;


July 31, 2006 | 2:39 am

Found it!

quicktime’s sound output is routed through windows sound mapper. It eat’s CPU performance for lunch. Workaround: back to QT 6.5 and spigot~.


Viewing 2 posts - 1 through 2 (of 2 total)