Drunken repeats

Mar 16, 2006 at 11:57am

Drunken repeats

Hi guys,

im trying to create a drunken walk through, however i don’t want the same
number outputted to repeat twice after itself…anyone know how to do this?

cheers,
dave

#24911
Mar 16, 2006 at 12:11pm

just put a change object after drunk…

#72686
Mar 16, 2006 at 12:21pm

if I remember well, negative steps size remove step size of 0. Is it
what you want ?

hth

Julien.

#72687
Mar 16, 2006 at 12:35pm

nice one,

-2 seems to do the trick.

cheers buddy.

#72688
Mar 16, 2006 at 5:52pm

A caveat…

Although I intended to make my Dronk object behave exactly like drunk, it
does not respond correctly to negative steps. I’ll try to fix this ASAP but
I can’t guarantee when I can get to it. I have a couple of ideas for a work
around that I’ll post in a sample patch soon.

Cheers,
Gary Lee Nelson
TIMARA Department
Oberlin College
http://www.timara.oberlin.edu/GaryLeeNelson

#72689
Mar 16, 2006 at 6:03pm

Dronk workaround to avoid immediate repetitions. The del 1 following an
interval of 0 is a “try again” kludge without producing an infinite loop.
BTW, I recommend a close look at del. It is an innocent-looking but powerful
little object. I use it a lot to tell me that nothing has happened – for
example when a markov chain has found a deadend and failed to produce an
output.

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 192 111 40 196617 change;
#P newex 192 237 43 196617 noteout;
#P newex 192 199 88 196617 makenote 96 125;
#P toggle 238 21 15 0;
#P newex 238 46 58 196617 metro 125;
#P number 145 149 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 252 162 32 196617 del 1;
#P newex 252 137 32 196617 sel 0;
#P newex 237 79 66 196617 Dronk 128 2;
#N vpatcher 20 74 620 474;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P comment 40 34 45 196617 Pitches;
#N comlet Input numbers;
#P inlet 52 53 15 0;
#P newex 52 138 30 196617 – 0;
#P newex 52 162 35 196617 + 12;
#P newex 52 186 38 196617 % 12;
#N comlet Output intervals;
#P outlet 52 213 15 0;
#P newex 72 112 44 196617 Bucket;
#P newex 52 85 38 196617 % 12;
#P window linecount 7;
#P comment 198 142 112 196617 Measure the interval between consecutive
incoming numbers as a positive value within specified modulus. Result is
always positive unlike %;
#P window setfont Times 24.;
#P window linecount 1;
#P comment 196 88 85 1310744 Interval;
#P window setfont “Sans Serif” 9.;
#P comment 197 118 119 196617 Author: Gary Lee Nelson;
#P newex 104 84 38 196617 % 12;
#P window linecount 3;
#P comment 198 40 69 196617 Modulus (optional , default is 12);
#N comlet Modulus (optional , default is 12);
#P inlet 163 52 15 0;
#N comlet Initial value;
#P inlet 104 52 15 0;
#P connect 13 0 7 0;
#P connect 7 0 12 0;
#P connect 12 0 11 0;
#P connect 11 0 10 0;
#P connect 10 0 9 0;
#P fasten 7 0 8 0 57 107 77 107;
#P connect 3 0 8 0;
#P connect 8 0 12 1;
#P fasten 1 0 11 1 168 156 82 156;
#P fasten 1 0 7 1 168 76 85 76;
#P fasten 1 0 10 1 168 181 85 181;
#P connect 0 0 3 0;
#P connect 1 0 3 1;
#P pop;
#P newobj 252 111 54 196617 p interval;
#P connect 1 0 9 0;
#P connect 1 0 0 0;
#P connect 9 0 4 0;
#P connect 9 0 7 0;
#P connect 7 0 8 0;
#P connect 7 1 8 1;
#P connect 6 0 5 0;
#P connect 5 0 1 0;
#P fasten 3 0 1 0 257 190 314 190 314 70 242 70;
#P connect 2 0 3 0;
#P connect 0 0 2 0;
#P window clipboard copycount 10;

Cheers,
Gary Lee Nelson
TIMARA Department
Oberlin College
http://www.timara.oberlin.edu/GaryLeeNelson

#72690
Mar 17, 2006 at 4:43pm

See my post on this. The issue is (or may be) that we may always want and
output. If drunk (or Dronk) is being used to generate notes and trigger
rhythms, change will introduce a gap in time. In my workaround, I
illustrated a “try again” method.

Cheers,
Gary Lee Nelson
TIMARA Department
Oberlin College
http://www.timara.oberlin.edu/GaryLeeNelson

#72691

You must be logged in to reply to this topic.