math : Convert Tempo >> frequencie for phasor.

Mar 13, 2006 at 2:39pm

math : Convert Tempo >> frequencie for phasor.

Hi List,

I make a phasor~ based tempo patch but I don’t know how to convert my tempo for setup my phasor frequencie. patch below.

Cheers, nico.

max v2;
#N vpatcher 211 219 984 598;
#P origin 80 33;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 244 86 40 9109513 t 1 0. 0;
#P newex 194 87 36 9109513 t 0;
#P message 244 65 30 9109513 Stop;
#P message 194 65 34 9109513 Start;
#N counter 383;
#X flags 0 0;
#P newobj 194 176 66 9109513 counter 383;
#P newex 194 121 34 9109513 mute~;
#P flonum 143 65 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 194 202 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#N vpatcher 25 70 625 470;
#P window setfont “Sans Serif” 9.;
#P newex 79 50 52 9109513 phasor~ 1.;
#P newex 79 180 19 9109513 t b;
#P newex 79 152 35 9109513 edge~;
#P newex 79 76 38 9109513 *~ 384.;
#P inlet 121 30 15 0;
#P inlet 79 30 15 0;
#P outlet 79 204 15 0;
#P newex 79 102 45 9109513 change~;
#P newex 79 126 44 9109513 ==~ -1.;
#P connect 3 0 8 0;
#P connect 8 0 5 0;
#P connect 5 0 1 0;
#P connect 1 0 0 0;
#P connect 0 0 6 0;
#P connect 6 0 7 0;
#P connect 7 0 2 0;
#P connect 4 0 8 1;
#P pop;
#P newobj 194 148 75 9109513 p phasor_tempo;
#P comment 85 65 53 9109513 tempo >>>;
#P connect 6 0 8 0;
#P fasten 9 0 4 0 249 113 199 113;
#P connect 8 0 4 0;
#P connect 4 0 1 0;
#P fasten 3 0 1 0 148 145 199 145;
#P connect 1 0 5 0;
#P connect 5 0 2 0;
#P fasten 9 2 5 2 279 114 312 114 312 171 227 171;
#P connect 7 0 9 0;
#P connect 9 1 1 1;
#P pop;

#24861
Mar 13, 2006 at 2:46pm

like this, maybe?

max v2;
#N vpatcher 20 74 420 573;
#P user ezdac~ 120 384 164 417 0;
#P user hslider 123 348 18 128 128 1 0 0;
#P window setfont “Sans Serif” 9.;
#P newex 123 317 40 196617 * 127.;
#P newex 123 292 63 196617 snapshot~ 1;
#P newex 123 262 45 196617 phasor~;
#P newex 140 169 27 196617 * 4.;
#P comment 90 222 30 196617 herz;
#P comment 63 134 25 196617 bars;
#P flonum 123 223 63 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 89 134 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P button 110 169 15 0;
#P newex 123 198 27 196617 / 1.;
#P newex 89 83 64 196617 * 0.016667;
#P flonum 89 108 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 65 108 27 196617 bps;
#P flonum 89 60 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P comment 65 60 24 196617 bpm;
#P connect 1 0 4 0;
#P connect 4 0 3 0;
#P fasten 7 0 6 0 94 159 115 159;
#P fasten 3 0 5 0 94 164 128 164;
#P connect 6 0 5 0;
#P connect 5 0 8 0;
#P connect 8 0 12 0;
#P connect 12 0 13 0;
#P connect 13 0 14 0;
#P connect 14 0 15 0;
#P fasten 7 0 11 0 94 155 145 155;
#P connect 11 0 5 1;
#P pop;

#72494
Mar 13, 2006 at 3:00pm

bpm / 60 = frequency to phasor~ (one beat long)
bpm / 240 = frequency to phasor~ (one bar long)

#72495
Mar 13, 2006 at 3:12pm

#72496
Mar 13, 2006 at 3:57pm

Thanks guys, it was exactly what I need.
so simple…

nico.

#72497

You must be logged in to reply to this topic.