Author Topic: delicate bending  (Read 32469 times)

Offline dr bu

  • Gold Member
  • *****
  • Posts: 230
  • inconsistent soul
Re: delicate bending
« Reply #40 on: January 19, 2017, 04:19:50 PM »
That should have been a thread by its own. Solution could be of general interest.

Tried a small app called Save a BNDL. Nope.
This apps readme tells me to make desktop DB and desktop DF visible and trash these. Tried that.
djupsinnig

Offline IIO

  • Platinum Member
  • *****
  • Posts: 4439
  • just a number
Re: delicate bending
« Reply #41 on: January 20, 2017, 12:46:12 AM »
you were looking in the right direction, file icons indeed are coming out of the BNDL resource and are linked via desktio file.

but your solution was the wrong attempt. :)

you have max 3 icons most likely because there is a max 3 app somewhere on your harddisk - that includes apps made with max 3.

in casre there is a problem with the max 4 info on your disk, it should be enough to crreate afresh copy of you max 4 and max 4 runtime executables. copy, keep copy and delete original, empty trash, reboot.

insert arbitrary signature here

Offline dr bu

  • Gold Member
  • *****
  • Posts: 230
  • inconsistent soul
Re: delicate bending
« Reply #42 on: January 20, 2017, 05:15:57 AM »
right. i knew that! >:( forgot to empty trash. thanks.

this is fof~ co os9  :)

ive got 500 mb Ircam stuff. i think so big because of audio. i can upload somewhere.

p.s. are you on caffeine? your spelling is deteriorating.
djupsinnig

Offline IIO

  • Platinum Member
  • *****
  • Posts: 4439
  • just a number
Re: delicate bending
« Reply #43 on: January 20, 2017, 01:09:10 PM »
ok i will post you a link to my place later ;)
insert arbitrary signature here

Offline dr bu

  • Gold Member
  • *****
  • Posts: 230
  • inconsistent soul
Re: delicate bending
« Reply #44 on: March 07, 2017, 08:01:36 AM »
Att göra en fyrkantsvåg av en sinuston är en bit av en kaka.. [<~]
Tvärtom är ett helvete.  ???
djupsinnig

Offline IIO

  • Platinum Member
  • *****
  • Posts: 4439
  • just a number
Re: delicate bending
« Reply #45 on: March 07, 2017, 03:50:46 PM »
yes of course, because you dont know what the phase is.

in gen you can do it by finding zerocrossings, in max everything you do will only be a workaround.

p.s. are you aware of trunc~ ?
insert arbitrary signature here

Offline IIO

  • Platinum Member
  • *****
  • Posts: 4439
  • just a number
Re: delicate bending
« Reply #46 on: March 07, 2017, 04:02:13 PM »
on a PPC machine the most cpu friedly approach should be this:

bitor~ 0 1

:)
insert arbitrary signature here

Offline dr bu

  • Gold Member
  • *****
  • Posts: 230
  • inconsistent soul
Re: delicate bending
« Reply #47 on: March 07, 2017, 11:42:18 PM »
how? i dont get. my stupid math brain would check the amount of samples between the previous 2 zerocrossings in the squarewave and copy that to the sinewave, thus lagging 180°. of course this will create a slight interference between the two if the squarewave alters in frequency, but that would not be a problem for me at this point.
djupsinnig

Offline GaryN

  • Platinum Member
  • *****
  • Posts: 1566
  • active member
Re: delicate bending
« Reply #48 on: March 08, 2017, 12:04:32 AM »
You guys really need to get a room…

Offline dr bu

  • Gold Member
  • *****
  • Posts: 230
  • inconsistent soul
Re: delicate bending
« Reply #49 on: March 08, 2017, 10:39:27 PM »
No need to get jealous Gary. Obviously you got far more rooms to make out in - than me at least. :)
djupsinnig

Offline dr bu

  • Gold Member
  • *****
  • Posts: 230
  • inconsistent soul
Re: delicate bending
« Reply #50 on: March 08, 2017, 11:04:04 PM »
...simply put 110, i want to let the output of weave~ drive lookup~  ;)
djupsinnig

Offline GaryN

  • Platinum Member
  • *****
  • Posts: 1566
  • active member
Re: delicate bending
« Reply #51 on: March 09, 2017, 04:54:06 PM »
(Sigh) Just because I have room doesn't mean I'm getting any…

Offline IIO

  • Platinum Member
  • *****
  • Posts: 4439
  • just a number
Re: delicate bending
« Reply #52 on: March 11, 2017, 03:27:06 AM »
eventually i just lost you, but your idea of zerocrossings is probably a misconception. the exact point of a zerocrossing will not be exactly at the beginning one sample.

the first sample could have a value 0.70 and the second sample a value of -0.11 - now when does the crossing happen? right: it even depends on the waveform.

best practice when you need to snyc "oscillators": start from a master phasor~ and start to generate everything else right from this.

cycle, cos, and basic arithmic and maybe also obejcts like zigzag are your first starting point for useful transfer functions controlled by a master phasor.
insert arbitrary signature here

Offline IIO

  • Platinum Member
  • *****
  • Posts: 4439
  • just a number
Re: delicate bending
« Reply #53 on: March 11, 2017, 03:28:27 AM »
...simply put 110, i want to let the output of weave~ drive lookup~  ;)

uh oh. no percolate on windows. i am checking that tomorrow. :)
insert arbitrary signature here

Offline dr bu

  • Gold Member
  • *****
  • Posts: 230
  • inconsistent soul
Re: delicate bending
« Reply #54 on: March 12, 2017, 04:21:20 PM »
tricky?  ;D
djupsinnig

Offline IIO

  • Platinum Member
  • *****
  • Posts: 4439
  • just a number
Re: delicate bending
« Reply #55 on: March 13, 2017, 04:27:10 AM »
...i simply never used weave :)
insert arbitrary signature here

Offline dr bu

  • Gold Member
  • *****
  • Posts: 230
  • inconsistent soul
Re: delicate bending
« Reply #56 on: July 01, 2017, 06:36:43 AM »
whats wrong with my paf~ ?

max v2;
#N vpatcher 283 64 1110 966;
#P newex 455 601 45 196617 loadbang;
#P newex 459 376 44 196617 +~ 100.;
#P newex 455 647 42 196617 uzi 200;
#P newex 487 679 27 196617 - 1;
#P newex 487 801 51 196617 peek~ foo;
#P newex 487 772 49 196617 pack 0 0.;
#P newex 549 707 100 196617 expr ($f1-100) /25;
#P newex 549 730 100 196617 expr exp(-$f1*$f1);
#P newex 272 570 83 196617 clip~ -0.99 0.99;
#P comment 488 425 62 196617 waveshaper;
#P newex 547 801 105 196617 buffer~ foo 4.512472;
#P newex 459 403 110 196617 lookup~ foo;
#P comment 304 522 45 196617 ring mod;
#P comment 507 379 115 196617 offset to middle of table;
#P comment 593 318 75 196617 range for table;
#P comment 589 270 63 196617 divide by F0;
#P newex 550 280 27 196617 *~;
#P comment 306 249 82 196617 cf relative to F0;
#P newex 272 519 27 196617 *~;
#P newex 459 347 101 196617 *~;
#P newex 459 324 29 196617 cos~;
#P newex 459 301 43 196617 -~ 0.25;
#P newex 459 275 39 196617 *~ 0.5;
#P newex 290 287 29 196617 sah~;
#P newex 290 139 30 196617 line~;
#P newex 550 316 39 196617 *~ 25.;
#P newex 550 243 30 196617 line~;
#P comment 542 102 59 196617 bandwidth;
#P newex 550 170 52 196617 pack 0 50;
#P newex 550 147 29 196617 mtof;
#P number 550 126 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 290 116 52 196617 pack 0 50;
#P newex 290 94 29 196617 mtof;
#P number 290 73 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 311 206 60 196617 expr 1/$f1;
#P newex 180 143 29 196617 mtof;
#P number 180 122 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user meter~ 297 606 310 727 100 0 168 0 247 247 247 255 153 0 255 0 0;
#P user gain~ 272 606 24 100 158 0 1.071519 7.94321 10.;
#P toggle 255 803 15 0;
#P newex 272 803 50 196617 dac~;
#P comment 176 89 41 196617 freq F0;
#P comment 284 46 59 196617 center freq;
#P newex 289 406 29 196617 cos~;
#P newex 289 383 27 196617 +~;
#P newex 272 485 27 196617 +~;
#P newex 289 460 45 196617 *~;
#P newex 289 435 27 196617 -~;
#P newex 248 406 29 196617 cos~;
#P newex 248 382 27 196617 *~;
#P newex 290 348 27 196617 -~;
#P newex 290 228 31 196617 *~;
#P newex 180 233 44 196617 phasor~;
#P newex 324 326 65 196617 pong~ 1 0. 1.;
#P connect 17 0 18 0;
#P connect 18 0 1 0;
#P connect 1 0 4 0;
#P connect 4 0 5 0;
#P connect 3 0 4 1;
#P connect 5 0 8 0;
#P connect 8 0 35 0;
#P connect 35 0 45 0;
#P connect 45 0 15 0;
#P fasten 15 0 13 0 277 765 277 765;
#P hidden connect 14 0 13 0;
#P connect 4 0 9 0;
#P connect 9 0 10 0;
#P connect 10 0 6 0;
#P connect 6 0 7 0;
#P connect 7 0 8 1;
#P connect 42 0 35 1;
#P connect 20 0 21 0;
#P connect 21 0 22 0;
#P connect 22 0 29 0;
#P connect 29 0 2 0;
#P connect 2 0 30 0;
#P connect 30 0 3 0;
#P hidden connect 15 0 16 0;
#P connect 1 0 9 1;
#P connect 5 0 6 1;
#P connect 0 0 3 1;
#P connect 1 0 30 1;
#P connect 18 0 19 0;
#P connect 19 0 2 1;
#P fasten 15 0 13 1 277 765 317 765;
#P connect 30 0 0 0;
#P connect 0 0 7 1;
#P connect 53 0 51 0;
#P connect 1 0 31 0;
#P connect 31 0 32 0;
#P connect 32 0 33 0;
#P connect 33 0 34 0;
#P connect 34 0 52 0;
#P connect 52 0 42 0;
#P connect 51 2 50 0;
#P connect 50 0 48 0;
#P connect 48 0 49 0;
#P connect 46 0 48 1;
#P connect 50 0 47 0;
#P connect 47 0 46 0;
#P connect 23 0 24 0;
#P connect 24 0 25 0;
#P connect 25 0 27 0;
#P connect 27 0 37 0;
#P connect 37 0 28 0;
#P connect 28 0 34 1;
#P connect 19 0 37 1;
#P pop;
djupsinnig

Offline IIO

  • Platinum Member
  • *****
  • Posts: 4439
  • just a number
Re: delicate bending
« Reply #57 on: July 03, 2017, 07:11:35 AM »

all i see is that i dont hear anything.

you cant just replace samphold~ with sah~ i guess, samphold~ is more.

save this as 110.pd.samphold~

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 139 181 53 196617 >~ -1;
#P newex 217 199 53 196617 gate~;
#P outlet 343 217 15 0;
#P inlet 61 148 15 0;
#P inlet 139 73 15 0;
#P newex 260 164 53 196617 sah~;
#P newex 343 164 53 196617 gate~;
#P newex 428 146 53 196617 ==~ -1;
#P newex 139 128 53 196617 change~;
#P connect 0 0 8 0;
#P connect 0 0 1 0;
#P connect 5 0 3 0;
#P connect 5 0 2 1;
#P connect 7 0 6 0;
#P connect 2 0 6 0;
#P connect 1 0 2 0;
#P connect 1 0 3 1;
#P connect 3 0 7 1;
#P connect 8 0 7 0;
#P connect 4 0 0 0;
#P window clipboard copycount 9;

another trap to check for is floating point. in pd there is only float. so in max one have to add a 0. in some cases. except for mtof of course :)
« Last Edit: July 03, 2017, 07:27:30 AM by IIO »
insert arbitrary signature here

Offline IIO

  • Platinum Member
  • *****
  • Posts: 4439
  • just a number
Re: delicate bending
« Reply #58 on: July 03, 2017, 07:17:52 AM »
insert arbitrary signature here

Offline dr bu

  • Gold Member
  • *****
  • Posts: 230
  • inconsistent soul
Re: delicate bending
« Reply #59 on: July 04, 2017, 05:05:16 PM »
ok. done. still, does not seem right. preset 1 sounds ok, but changing values like the other presets does not. i suspect something is wrong with the lookup~/bufferwindow settings...

max v2;
#N vpatcher 166 61 1338 1000;
#P flonum 450 285 35 9 0. 100. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 364 387 35 9 0. 100. 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#N vpreset 8;
#X append 1 2 14 787 126 toggle int 1 \; 15 590 143 gain~ list 87 10. \; 17 106 51 number int 59 \; 20 57 161 number int 65 \; 23 110 421 number int 60 \; 55 387 364 flonum;
#X append 1 2 float 0. \; 56 285 450 flonum float 0.25 \;;
#X append 2 2 14 787 126 toggle int 1 \; 15 590 143 gain~ list 87 10. \; 17 106 51 number int 61 \; 20 57 161 number int 71 \; 23 110 421 number int 89 \; 55 387 364 flonum;
#X append 2 2 float 0. \; 56 285 450 flonum float 0.25 \;;
#X append 3 2 14 787 126 toggle int 1 \; 15 590 143 gain~ list 87 10. \; 17 106 51 number int 61 \; 20 57 161 number int 71 \; 23 110 421 number int 122 \; 55 387 364 flonum;
#X append 3 2 float 0. \; 56 285 450 flonum float 0.25 \;;
#X append 4 2 14 787 126 toggle int 1 \; 15 590 143 gain~ list 87 10. \; 17 106 51 number int 61 \; 20 57 161 number int 71 \; 23 110 421 number int 139 \; 55 387 364 flonum;
#X append 4 2 float 0. \; 56 285 450 flonum float 0.25 \;;
#X append 5 2 14 787 126 toggle int 1 \; 15 590 143 gain~ list 87 10. \; 17 106 51 number int 31 \; 20 57 161 number int 83 \; 23 110 421 number int 59 \; 55 387 364 flonum;
#X append 5 2 float 0. \; 56 285 450 flonum float 0.25 \;;
#X append 6 2 14 787 126 toggle int 1 \; 15 590 143 gain~ list 87 10. \; 17 106 51 number int 31 \; 20 57 161 number int 83 \; 23 110 421 number int 59 \; 55 387 364 flonum;
#X append 6 2 float 100. \; 56 285 450 flonum float 0.25 \;;
#X append 7 2 14 787 126 toggle int 1 \; 15 590 143 gain~ list 87 10. \; 17 106 51 number int 22 \; 20 57 161 number int 83 \; 23 110 421 number int 59 \; 55 387 364 flonum;
#X append 7 2 float 100. \; 56 285 450 flonum float 25. \;;
#X append 8 2 14 787 126 toggle int 1 \; 15 590 143 gain~ list 87 10. \; 17 106 51 number int 22 \; 20 57 161 number int 61 \; 23 110 421 number int 34 \; 55 387 364 flonum;
#X append 8 2 float 100. \; 56 285 450 flonum float 25. \;;
#P preset 540 192 47 27;
#P newex 596 81 45 196617 loadbang;
#P newex 330 409 44 196617 +~ 100.;
#P newex 596 129 42 196617 uzi 200;
#P newex 628 161 27 196617 - 1;
#P newex 628 283 51 196617 peek~ foo;
#P newex 628 254 49 196617 pack 0 0.;
#P newex 690 189 100 196617 expr ($f1-100) /25;
#P newex 690 212 100 196617 expr exp(-$f1*$f1);
#P newex 143 554 83 196617 clip~ -0.99 0.99;
#P comment 359 458 62 196617 waveshaper;
#P newex 688 283 105 196617 buffer~ foo 4.512472;
#P newex 330 436 110 196617 lookup~ foo;
#P comment 177 504 45 196617 ring mod;
#P comment 386 412 115 196617 offset to middle of table;
#P comment 464 309 75 196617 range for table;
#P comment 460 254 63 196617 divide by F0;
#P newex 421 264 27 196617 *~;
#P comment 177 233 82 196617 cf relative to F0;
#P newex 143 503 27 196617 *~;
#P newex 330 331 101 196617 *~;
#P newex 330 308 29 196617 cos~;
#P newex 330 285 43 196617 -~ 0.25;
#P newex 330 259 39 196617 *~ 0.5;
#P newex 161 271 89 196617 110.pd.samphold~;
#P newex 161 123 30 196617 line~;
#P newex 421 307 39 196617 *~ 25.;
#P newex 421 227 30 196617 line~;
#P comment 413 86 59 196617 bandwidth;
#P newex 421 154 52 196617 pack 0 50;
#P newex 421 131 29 196617 mtof;
#P number 421 110 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 161 100 52 196617 pack 0 50;
#P newex 161 78 29 196617 mtof;
#P number 161 57 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 182 190 60 196617 expr 1/$f1;
#P newex 51 127 29 196617 mtof;
#P number 51 106 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user meter~ 168 590 181 711 100 0 168 0 247 247 247 255 153 0 255 0 0;
#P user gain~ 143 590 24 100 158 0 1.071519 7.94321 10.;
#P toggle 126 787 15 0;
#P newex 143 787 50 196617 dac~;
#P comment 47 73 41 196617 freq F0;
#P comment 155 30 59 196617 center freq;
#P newex 160 390 29 196617 cos~;
#P newex 160 367 27 196617 +~;
#P newex 143 469 27 196617 +~;
#P newex 160 444 45 196617 *~;
#P newex 160 419 27 196617 -~;
#P newex 119 390 29 196617 cos~;
#P newex 119 366 27 196617 *~;
#P newex 161 332 27 196617 -~;
#P newex 161 212 31 196617 *~;
#P newex 51 217 44 196617 phasor~;
#P newex 195 310 65 196617 pong~ 1 0. 1.;
#P connect 17 0 18 0;
#P connect 18 0 1 0;
#P connect 1 0 4 0;
#P connect 4 0 5 0;
#P connect 3 0 4 1;
#P connect 5 0 8 0;
#P connect 8 0 35 0;
#P connect 35 0 45 0;
#P connect 45 0 15 0;
#P fasten 15 0 13 0 148 749 148 749;
#P hidden connect 14 0 13 0;
#P connect 4 0 9 0;
#P connect 9 0 10 0;
#P connect 10 0 6 0;
#P connect 6 0 7 0;
#P connect 7 0 8 1;
#P connect 42 0 35 1;
#P connect 20 0 21 0;
#P connect 21 0 22 0;
#P connect 22 0 29 0;
#P connect 29 0 2 0;
#P connect 2 0 30 0;
#P connect 30 0 3 0;
#P hidden connect 15 0 16 0;
#P connect 1 0 9 1;
#P connect 5 0 6 1;
#P connect 0 0 3 1;
#P connect 18 0 19 0;
#P connect 19 0 2 1;
#P fasten 15 0 13 1 148 749 188 749;
#P connect 30 0 0 0;
#P connect 0 0 7 1;
#P connect 1 0 30 1;
#P connect 1 0 31 0;
#P connect 31 0 32 0;
#P connect 32 0 33 0;
#P connect 33 0 34 0;
#P connect 34 0 52 0;
#P connect 52 0 42 0;
#P connect 55 0 52 1;
#P connect 23 0 24 0;
#P connect 24 0 25 0;
#P connect 25 0 27 0;
#P connect 27 0 37 0;
#P connect 37 0 28 0;
#P connect 28 0 34 1;
#P connect 19 0 37 1;
#P connect 56 0 28 1;
#P connect 53 0 51 0;
#P connect 51 2 50 0;
#P connect 50 0 48 0;
#P connect 48 0 49 0;
#P connect 46 0 48 1;
#P connect 50 0 47 0;
#P connect 47 0 46 0;
#P pop;
djupsinnig