Forums > MaxMSP

delay times

February 13, 2007 | 1:41 pm

I am trying to set up a delay unit with 12 preset delay times. The effect is working fine but I can’t get the times to send individually to tapout~. I want to be able to select one at a time with a switch from 1-12. 1 being used to trigger the lowest delay time, 2 for the second lowest and so on. I have tried using the switch object but can’t get it work.
Here is the patcher for anyone to have a look at. It has the delay times I want to use in it.
Thank you for any help.
Steven

max v2;
#N vpatcher 10 59 656 511;
#P window setfont "Sans Serif" 9.;
#P message 576 44 34 196617 1500;
#P message 547 60 34 196617 1375;
#P message 518 44 34 196617 1250;
#P message 489 60 34 196617 1125;
#P message 460 44 34 196617 1000;
#P message 431 60 26 196617 875;
#P message 402 44 26 196617 750;
#P message 373 60 26 196617 625;
#P message 344 44 26 196617 500;
#P newex 228 102 358 196617 switch 12;
#P message 315 60 25 196617 375;
#P message 286 44 26 196617 250;
#P message 257 60 26 196617 125;
#P newex 437 159 40 196617 / 128.;
#P number 27 99 35 9 0 1 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 95 60 99 196617 scale 0 127 0. 100.;
#P inlet 27 38 15 0;
#P inlet 437 129 15 0;
#P newex 420 191 27 196617 *~;
#P inlet 228 38 15 0;
#P window setfont Times 10.;
#P comment 183 213 55 1310730 Direct Level;
#P window setfont "Fixedwidth Serif" 10.;
#P flonum 194 231 35 10 0. 1. 3 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 386 231 35 10 0. 1. 3 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont Times 10.;
#P comment 366 213 55 1310730 Delay Level;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 95 115 68 1441802 expr 1-$f1;
#P newex 95 90 43 1441802 * 0.01;
#P newex 360 251 36 1441802 *~;
#P newex 172 251 32 1441802 *~ 1;
#P newex 197 341 27 1441802 *~;
#P newex 360 175 52 1441802 tapout~;
#B color 5;
#P newex 360 150 73 1441802 tapin~ 1000;
#B color 5;
#P outlet 197 391 15 0;
#P inlet 360 129 15 0;
#P inlet 172 129 15 0;
#P inlet 95 38 15 0;
#P connect 18 0 20 0;
#P connect 0 0 19 0;
#P connect 19 0 9 0;
#P connect 9 0 10 0;
#P connect 1 0 7 0;
#P fasten 10 0 13 0 100 228 199 228;
#P connect 13 0 7 1;
#P fasten 8 0 6 0 365 283 202 283;
#P fasten 7 0 6 0 177 283 202 283;
#P connect 6 0 3 0;
#P fasten 20 0 6 1 32 305 219 305;
#P connect 15 0 25 0;
#P connect 22 0 25 1;
#P connect 23 0 25 2;
#P connect 24 0 25 3;
#P connect 26 0 25 4;
#P connect 2 0 4 0;
#P connect 16 0 4 0;
#P fasten 25 0 5 0 233 171 365 171;
#P connect 4 0 5 0;
#P connect 5 0 8 0;
#P connect 27 0 25 5;
#P fasten 9 0 12 0 100 228 391 228;
#P connect 12 0 8 1;
#P connect 28 0 25 6;
#P fasten 5 0 16 0 365 169 425 169;
#P connect 29 0 25 7;
#P connect 17 0 21 0;
#P connect 21 0 16 1;
#P connect 30 0 25 8;
#P connect 31 0 25 9;
#P connect 32 0 25 10;
#P connect 33 0 25 11;
#P connect 34 0 25 12;
#P pop;



Anonymous
February 13, 2007 | 2:17 pm

Hi Steven,

Am 13.02.2007 um 13:41 schrieb Steven Holt:

>
> I am trying to set up a delay unit with 12 preset delay times. The
> effect is working fine but I can’t get the times to send
> individually to tapout~. I want to be able to select one at a time
> with a switch from 1-12. 1 being used to trigger the lowest delay
> time, 2 for the second lowest and so on. I have tried using the
> switch object but can’t get it work.

The number 1-12 in left inlet of switch only selects the alternative
input without sending the value for the delay time.
Give it an additional bang and it will do what you want.

But in this case you should better use the table object.

Best,

Juergen

***********************************
Juergen Lange
Studio fuer Elektronische Musik
Hochschule fuer Musik Dresden
http://www.hfmdd.de
***********************************


February 13, 2007 | 2:47 pm


February 13, 2007 | 3:47 pm

If your delay times stay the same as in your example all the time (I think that’s what you said), I’d just ‘* 125′ to the number going into the left inlet of your switch now, and get rid of the entire switch.


February 13, 2007 | 6:28 pm

Hi Steven,

Here’s a modified version of your patch using your same basic
methodology, just tweaking a few things to make it work right (and
better). Have a look! As a few folks pointed out, there are some more
streamlined ways of doing the delay-time selection – I just modified
yours.

Best,

Steven

On Feb 13, 2007, at 1:41 PM, Steven Holt wrote:

>
> I am trying to set up a delay unit with 12 preset delay times. The
> effect is working fine but I can’t get the times to send
> individually to tapout~. I want to be able to select one at a time
> with a switch from 1-12. 1 being used to trigger the lowest delay
> time, 2 for the second lowest and so on. I have tried using the
> switch object but can’t get it work.
> Here is the patcher for anyone to have a look at. It has the delay
> times I want to use in it.
> Thank you for any help.

Modified version:

max v2;
#N vpatcher 0 44 1440 896;
#P window setfont Times 10.;
#P comment 734 379 69 1310730 Feedback Amt.;
#P window setfont "Sans Serif" 9.;
#P flonum 697 379 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 889 234 35 9 1 12 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 1191 290 34 196617 1500;
#P message 1162 309 34 196617 1375;
#P message 1133 290 34 196617 1250;
#P message 1104 309 34 196617 1125;
#P message 1075 290 34 196617 1000;
#P message 1046 309 26 196617 875;
#P message 1017 290 26 196617 750;
#P message 988 309 26 196617 625;
#P message 959 290 26 196617 500;
#P message 930 309 25 196617 375;
#P message 901 290 26 196617 250;
#P message 872 309 26 196617 125;
#P window setfont Times 10.;
#P comment 558 540 61 1310730 Output Level;
#P window setfont "Sans Serif" 9.;
#P number 715 234 35 9 0 127 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 293 234 35 9 0 127 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 187 234 35 9 0 127 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 170 265 87 196617 scale 0 127 0. 1.;
#P newex 872 265 369 196617 sel 1 2 3 4 5 6 7 8 9 10 11 12;
#P newex 697 265 87 196617 scale 0 127 0. 1.;
#P flonum 521 540 35 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 274 265 87 196617 scale 0 127 0. 1.;
#N comlet (int) output level 0-127;
#P inlet 170 234 15 0;
#N comlet (int) delay level 0-127;
#P inlet 697 234 15 0;
#P newex 680 403 27 196617 *~;
#N comlet (int) delay time select;
#P inlet 872 234 15 0;
#P window setfont Times 10.;
#P comment 537 470 55 1310730 Direct Level;
#P window setfont "Fixedwidth Serif" 10.;
#P flonum 501 470 35 10 0. 1. 3 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 633 470 35 10 0. 1. 3 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont Times 10.;
#P comment 670 470 55 1310730 Delay Level;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 274 431 68 1441802 expr 1-$f1;
#P newex 607 490 36 1441802 *~;
#P newex 479 490 32 1441802 *~ 1;
#P newex 504 574 27 1441802 *~;
#P newex 607 372 52 1441802 tapout~;
#B color 5;
#P newex 607 342 76 1441802 tapin~ 1500;
#B color 5;
#N comlet (signal) audio output;
#P outlet 504 624 15 0;
#N comlet (signal) audio input;
#P inlet 479 234 15 0;
#N comlet (int) direct/delay crossfade 0-127;
#P inlet 274 234 15 0;
#P connect 22 0 21 0;
#P connect 16 0 21 0;
#P connect 23 0 17 0;
#P connect 0 0 17 0;
#P connect 17 0 8 0;
#P fasten 1 0 6 0 484 369 484 369;
#P fasten 8 0 11 0 279 465 506 465;
#P connect 11 0 6 1;
#P fasten 6 0 5 0 484 516 509 516;
#P fasten 7 0 5 0 612 516 509 516;
#P connect 5 0 2 0;
#P fasten 21 0 18 0 175 533 526 533;
#P fasten 18 0 5 1 526 564 526 564;
#P fasten 1 0 3 0 484 295 612 295;
#P fasten 14 0 3 0 685 421 812 421 812 324 612 324;
#P connect 3 0 4 0;
#P fasten 37 0 4 0 1196 366 612 366;
#P fasten 36 0 4 0 1167 366 612 366;
#P fasten 35 0 4 0 1138 366 612 366;
#P fasten 34 0 4 0 1109 366 612 366;
#P fasten 33 0 4 0 1080 366 612 366;
#P fasten 32 0 4 0 1051 366 612 366;
#P fasten 31 0 4 0 1022 366 612 366;
#P fasten 30 0 4 0 993 366 612 366;
#P fasten 29 0 4 0 964 366 612 366;
#P fasten 28 0 4 0 935 366 612 366;
#P fasten 27 0 4 0 906 366 612 366;
#P fasten 26 0 4 0 877 366 612 366;
#P connect 4 0 7 0;
#P fasten 17 0 10 0 279 420 638 420;
#P connect 10 0 7 1;
#P fasten 4 0 14 0 612 397 685 397;
#P connect 24 0 19 0;
#P connect 15 0 19 0;
#P connect 19 0 39 0;
#P connect 39 0 14 1;
#P connect 38 0 20 0;
#P connect 13 0 20 0;
#P connect 20 0 26 0;
#P connect 20 1 27 0;
#P connect 20 2 28 0;
#P connect 20 3 29 0;
#P connect 20 4 30 0;
#P connect 20 5 31 0;
#P connect 20 6 32 0;
#P connect 20 7 33 0;
#P connect 20 8 34 0;
#P connect 20 9 35 0;
#P connect 20 10 36 0;
#P connect 20 11 37 0;
#P pop;

—-
Steven M. Miller

Home < http://pubweb.csf.edu/~smill>
SFIFEM <
http://sfifem.csf.edu>
Atrium Sound Space <
http://atrium.csf.edu>
OVOS <
http://pubweb.csf.edu/~smill/ovos.html>


February 14, 2007 | 9:58 am

Steven Holt wrote:
> I am trying to set up a delay unit with 12 preset delay times. The effect is working fine but I can’t get the times to send individually to tapout~. I want to be able to select one at a time with a switch from 1-12. 1 being used to trigger the lowest delay time, 2 for the second lowest and so on. I have tried using the switch object but can’t get it work.
> Here is the patcher for anyone to have a look at. It has the delay times I want to use in it.
> Thank you for any help.

You’re not banging the values. But a switch isn’t a good idea for that,
I’d either use * as you are using equal distances (rythmic music? ;-),
with the benefit that you can easily change the tempo, or a coll with
individual values.

Stefan

max v2;
#N vpatcher 0 44 1440 896;
#P window setfont Times 10.;
#P comment 734 379 69 1310730 Feedback Amt.;
#P window setfont "Sans Serif" 9.;
#P flonum 697 379 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 889 234 35 9 1 12 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 1191 290 34 196617 1500;
#P message 1162 309 34 196617 1375;
#P message 1133 290 34 196617 1250;
#P message 1104 309 34 196617 1125;
#P message 1075 290 34 196617 1000;
#P message 1046 309 26 196617 875;
#P message 1017 290 26 196617 750;
#P message 988 309 26 196617 625;
#P message 959 290 26 196617 500;
#P message 930 309 25 196617 375;
#P message 901 290 26 196617 250;
#P message 872 309 26 196617 125;
#P window setfont Times 10.;
#P comment 558 540 61 1310730 Output Level;
#P window setfont "Sans Serif" 9.;
#P number 715 234 35 9 0 127 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 293 234 35 9 0 127 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 187 234 35 9 0 127 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 170 265 87 196617 scale 0 127 0. 1.;
#P newex 872 265 369 196617 sel 1 2 3 4 5 6 7 8 9 10 11 12;
#P newex 697 265 87 196617 scale 0 127 0. 1.;
#P flonum 521 540 35 9 0. 1. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 274 265 87 196617 scale 0 127 0. 1.;
#N comlet (int) output level 0-127;
#P inlet 170 234 15 0;
#N comlet (int) delay level 0-127;
#P inlet 697 234 15 0;
#P newex 680 403 27 196617 *~;
#N comlet (int) delay time select;
#P inlet 872 234 15 0;
#P window setfont Times 10.;
#P comment 537 470 55 1310730 Direct Level;
#P window setfont "Fixedwidth Serif" 10.;
#P flonum 501 470 35 10 0. 1. 3 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 633 470 35 10 0. 1. 3 22 0 0 0 221 221 221 222 222 222 0 0 0;
#P window setfont Times 10.;
#P comment 670 470 55 1310730 Delay Level;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 274 431 68 1441802 expr 1-$f1;
#P newex 607 490 36 1441802 *~;
#P newex 479 490 32 1441802 *~ 1;
#P newex 504 574 27 1441802 *~;
#P newex 607 372 52 1441802 tapout~;
#B color 5;
#P newex 607 342 76 1441802 tapin~ 1500;
#B color 5;
#N comlet (signal) audio output;
#P outlet 504 624 15 0;
#N comlet (signal) audio input;
#P inlet 479 234 15 0;
#N comlet (int) direct/delay crossfade 0-127;
#P inlet 274 234 15 0;
#P connect 22 0 21 0;
#P connect 16 0 21 0;
#P connect 23 0 17 0;
#P connect 0 0 17 0;
#P connect 17 0 8 0;
#P fasten 1 0 6 0 484 369 484 369;
#P fasten 8 0 11 0 279 465 506 465;
#P connect 11 0 6 1;
#P fasten 6 0 5 0 484 516 509 516;
#P fasten 7 0 5 0 612 516 509 516;
#P connect 5 0 2 0;
#P fasten 21 0 18 0 175 533 526 533;
#P fasten 18 0 5 1 526 564 526 564;
#P fasten 1 0 3 0 484 295 612 295;
#P fasten 14 0 3 0 685 421 812 421 812 324 612 324;
#P connect 3 0 4 0;
#P fasten 37 0 4 0 1196 366 612 366;
#P fasten 36 0 4 0 1167 366 612 366;
#P fasten 35 0 4 0 1138 366 612 366;
#P fasten 34 0 4 0 1109 366 612 366;
#P fasten 33 0 4 0 1080 366 612 366;
#P fasten 32 0 4 0 1051 366 612 366;
#P fasten 31 0 4 0 1022 366 612 366;
#P fasten 30 0 4 0 993 366 612 366;
#P fasten 29 0 4 0 964 366 612 366;
#P fasten 28 0 4 0 935 366 612 366;
#P fasten 27 0 4 0 906 366 612 366;
#P fasten 26 0 4 0 877 366 612 366;
#P connect 4 0 7 0;
#P fasten 17 0 10 0 279 420 638 420;
#P connect 10 0 7 1;
#P fasten 4 0 14 0 612 397 685 397;
#P connect 24 0 19 0;
#P connect 15 0 19 0;
#P connect 19 0 39 0;
#P connect 39 0 14 1;
#P connect 38 0 20 0;
#P connect 13 0 20 0;
#P connect 20 0 26 0;
#P connect 20 1 27 0;
#P connect 20 2 28 0;
#P connect 20 3 29 0;
#P connect 20 4 30 0;
#P connect 20 5 31 0;
#P connect 20 6 32 0;
#P connect 20 7 33 0;
#P connect 20 8 34 0;
#P connect 20 9 35 0;
#P connect 20 10 36 0;
#P connect 20 11 37 0;
#P pop;


Stefan Tiedje————x——-
–_____———–|————–
–(_|_ —-|—–|—–()——-
– _|_)—-|—–()————–
———-()——–www.ccmix.com


February 14, 2007 | 5:08 pm

To get synchronized delays at a new tempo, one would have to use
scaling factors (e.g. 50%, 70%, etc.) applied to the current bpm
converted to ms., rather than specific delay times. Either way, a
table or coll would be useful, indeed.

On Feb 14, 2007, at 2:58 AM, Stefan Tiedje wrote:

>
> You’re not banging the values. But a switch isn’t a good idea for
> that, I’d either use * as you are using equal distances (rythmic
> music? ;-),
> with the benefit that you can easily change the tempo, or a coll
> with individual values.
>

—-
Steven M. Miller

Home < http://pubweb.csf.edu/~smill>
SFIFEM <
http://sfifem.csf.edu>
Atrium Sound Space <
http://atrium.csf.edu>
OVOS <
http://pubweb.csf.edu/~smill/ovos.html>


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