exact trigger at zero signal

Mar 11, 2009 at 8:22pm

exact trigger at zero signal

Hi,

when looping my samples, I want to be able to rerecord what’s being played back right. As I am using phasor’s to drive my wave~, I’d like to start recording as exactly as possible as soon as the phasor passes 0 up until 1. Additional complexity is caused by potential reverse playing (phasor running from 0 to -1).

One way would be to use abs~ to convert to positive and then to test, e.g. < ~ 0.01.

But I am wondering whether there would be a more elegant way, or potentially any useful externals out there.

thx nick

#42805
Mar 11, 2009 at 8:40pm

take a look at this, maybe it can help you

max v2;
#N vpatcher 107 96 809 598;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P message 73 55 17 196617 1.;
#P newex 72 35 48 196617 loadbang;
#P newex 77 317 37 196617 click~;
#P button 183 211 20 0;
#P user number~ 157 161 196 176 9 3 3 2 0. 0. 0 0. 25 0. 0 0 0 221 221 221 222 222 222 0 0 0;
#P user multiSlider 154 210 26 82 0. 1. 1 2681 15 0 0 2 0 0 0;
#M frgb 0 0 0;
#M brgb 255 255 255;
#M rgb2 127 127 127;
#M rgb3 0 0 0;
#M rgb4 37 52 91;
#M rgb5 74 105 182;
#M rgb6 112 158 18;
#M rgb7 149 211 110;
#M rgb8 187 9 201;
#M rgb9 224 62 37;
#M rgb10 7 114 128;
#P message 142 76 14 196617 0;
#P user ezdac~ 77 352 121 385 0;
#P button 75 244 46 0;
#P newex 88 208 36 196617 edge~;
#P newex 81 164 33 196617 >~ 0.;
#P newex 77 135 38 196617 delta~;
#P flonum 75 76 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 78 96 46 196617 phasor~;
#P comment 175 195 38 196617 restart;
#P connect 13 0 14 0;
#P connect 14 0 2 0;
#P connect 5 0 6 0;
#P connect 1 0 3 0;
#P connect 6 0 12 0;
#P connect 12 0 7 0;
#P connect 2 0 1 0;
#P connect 3 0 4 0;
#P connect 4 0 5 0;
#P connect 12 0 7 1;
#P connect 8 0 1 1;
#P fasten 11 0 8 0 188 234 221 250 257 176 170 71;
#P connect 10 1 9 0;
#P connect 1 0 10 0;
#P pop;

#153238
Mar 11, 2009 at 8:51pm

thanks Michele

will try that, just need to add abs~ as otherwise it probably wouldn’t detect ramp starts for reverse phasors (going from 0 –> -1).

#153239

You must be logged in to reply to this topic.