Forums > MaxMSP

manipulating sample data within waveform~

December 8, 2006 | 2:09 am

hi there,

curious as to whether or not selected audio within the waveform~ can be manipulated

for ex.
- drums1.aiff is looping with groove~
- drums1.aiff loaded up in waveform~
- select portion of looping audio
- pitch down only selected audio, rest of drums1.aiff loops normally

is this feasible?

-caleb



jml
December 8, 2006 | 3:59 am

you can acheive this effect by utilizing [waveform~]‘s selection outputs. using these float values, try formatting a message for [line~] that will affect [play~]‘s speed.

hth,
jl


December 11, 2006 | 5:01 am

yea thanks im working with those commands as we speak. trouble im having is having the change in pitch only affect the selected audio ….ie unselected audio plays at normal pitch until it hits a selected area.

hopefully will have a breakthrough tonite but if anyone has any thoughts feel free to add!


December 11, 2006 | 5:02 am

yea thanks im working with those commands as we speak. trouble im having is having the change in pitch only affect the selected audio ….ie unselected audio plays at normal pitch until it hits a selected area.

hopefully will have a breakthrough tonite but if anyone has any thoughts feel free to add!


December 12, 2006 | 8:43 am

caleb wrote:
> yea thanks im working with those commands as we speak. trouble im
> having is having the change in pitch only affect the selected audio
> ….ie unselected audio plays at normal pitch until it hits a
> selected area.

hope it’s fun…

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#N vpatcher 30 89 630 489;
#P window setfont "Sans Serif" 9.;
#P newex 50 72 33 196617 – 60.;
#P newex 73 50 65 196617 patcherargs;
#P newex 68 120 33 196617 !/ 1.;
#P newex 50 93 150 196617 expr exp(0.057762265 * $f1);
#P inlet 50 52 15 0;
#P outlet 68 142 15 0;
#P outlet 50 115 15 0;
#P connect 2 0 6 0;
#P connect 6 0 3 0;
#P connect 3 0 0 0;
#P fasten 3 0 4 0 55 115 73 115;
#P connect 4 0 1 0;
#P connect 5 0 6 1;
#P pop;
#P newobj 445 91 60 196617 p mtor;
#P flonum 445 118 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user kslider 445 49 35 1 36 48 19 7 0 128 128 128 128 128 128 255 255
255 0 0 0 0 0 0;
#P flonum 195 150 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#N vpatcher 359 92 959 492;
#P window setfont "Sans Serif" 9.;
#P newex 197 45 29 196617 t b f;
#P newex 133 112 50 196617 b;
#P newex 93 78 50 196617 edge~;
#P newex 133 143 65 196617 zl reg;
#P newex 228 45 29 196617 t b f;
#P newex 228 68 29 196617 !- 0.;
#P newex 228 91 29 196617 * 1.;
#P newex 188 112 50 196617 pak;
#P newex 232 144 33 196617 float;
#P inlet 154 17 15 0;
#P newex 106 181 50 196617 line~;
#P newex 50 78 31 196617 +~ 1;
#P newex 83 51 31 196617 >~;
#P newex 50 51 31 196617 < ~;
#P newex 50 202 123 196617 selector~ 2;
#P inlet 50 17 15 0;
#P inlet 104 17 15 0;
#P inlet 71 17 15 0;
#P outlet 50 224 15 0;
#P connect 3 0 5 0;
#P connect 5 0 7 0;
#P fasten 6 0 7 0 88 72 55 72;
#P connect 7 0 4 0;
#P connect 4 0 0 0;
#P connect 1 0 5 1;
#P fasten 3 0 6 0 55 45 88 45;
#P fasten 5 0 16 0 55 72 98 72;
#P fasten 6 0 16 0 88 72 98 72;
#P connect 2 0 6 1;
#P connect 15 0 8 0;
#P fasten 10 0 8 0 237 169 111 169;
#P connect 8 0 4 1;
#P connect 16 1 17 0;
#P connect 17 0 15 0;
#P fasten 3 0 4 2 55 45 167 45;
#P fasten 2 0 11 0 109 36 193 36;
#P connect 11 0 15 1;
#P connect 9 0 18 0;
#P fasten 2 0 14 0 109 36 233 36;
#P connect 1 0 13 0;
#P connect 14 0 13 0;
#P connect 18 0 12 0;
#P connect 13 0 12 0;
#P connect 12 0 11 1;
#P fasten 17 1 10 0 178 135 237 135;
#P connect 14 1 13 1;
#P fasten 18 1 12 1 221 87 252 87;
#P fasten 1 0 10 1 76 40 260 40;
#P pop 1;
#P newobj 57 172 150 196617 p pitch selected;
#P message 28 66 35 196617 stop;
#P button 110 45 15 0;
#P newex 110 72 50 196617 float;
#P newex 110 115 50 196617 pack 0. 0.;
#P newex 110 92 91 196617 t f f 0;
#P message 57 122 40 196617 $1 50;
#P newex 57 147 50 196617 line~;
#P user pictslider 132 311 19 76 0 0 0 0 wfknob.pct 1 wfmodes.pct 1 2146
0 0 196608 1. 1.;
#P comment 593 260 47 196617 select all;
#P message 590 274 51 196617 0 -1 0 -1;
#N vpatcher 40 55 388 410;
#P toggle 49 134 15 0;
#P window setfont "Sans Serif" 9.;
#P newex 96 202 27 196617 int;
#N coll ;
#T flags 1 0;
#T 0 mode select;
#T 1 mode loop;
#T 2 mode move;
#T 3 mode draw;
#P newobj 131 255 53 196617 coll;
#P button 75 117 15 0;
#N comlet waveform~ mode messages;
#P inlet 74 164 15 0;
#P newex 113 88 27 196617 < < 1;
#P newex 96 140 40 196617 change;
#P newex 96 164 45 196617 select 0;
#P newex 96 117 27 196617 |;
#P outlet 131 284 15 0;
#P newex 45 62 78 196617 modifiers 100;
#P connect 4 0 10 0;
#P connect 5 0 7 0;
#P connect 7 0 2 0;
#P connect 0 3 2 0;
#P connect 2 0 4 0;
#P connect 4 0 3 0;
#P connect 6 0 9 0;
#P connect 3 0 9 0;
#P connect 0 4 5 0;
#P connect 5 0 2 1;
#P connect 3 1 8 0;
#P connect 9 0 8 0;
#P connect 8 0 1 0;
#P pop;
#P hidden newobj 151 253 50 196617 p wfkeys;
#P hidden message 439 419 35 196617 set $1;
#P hidden message 343 419 35 196617 set $1;
#P hidden message 247 408 35 196617 set $1;
#P hidden message 151 408 35 196617 set $1;
#P comment 502 277 68 196617 select end ms;
#P comment 380 277 75 196617 select start ms;
#P comment 258 277 83 196617 display length ms;
#P flonum 511 291 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 391 291 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 271 291 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 151 291 49 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user waveform~ 151 311 490 93 3 9;
#W mode move;
#W mouseoutput continuous;
#W clipdraw 1;
#W unit ms;
#W grid 500.;
#W ticks 8;
#W labels 1;
#W vlabels 1;
#W vticks 1;
#W bpm 120. 4.;
#W frgb 16 0 0;
#W brgb 94 166 169;
#W rgb2 63 112 185;
#W rgb3 0 0 0;
#W rgb4 0 0 0;
#W rgb5 169 165 207;
#W rgb6 108 108 108;
#W rgb7 78 74 220;
#P comment 138 277 83 196617 display start ms;
#P newex 222 34 52 196617 loadbang;
#P hidden newex 205 253 116 196617 loadmess set mysample;
#P user ezdac~ 57 276 101 309 0;
#P newex 306 113 87 196617 info~ mysample;
#P newex 57 250 86 196617 play~ mysample;
#P message 169 35 50 196617 replace;
#P message 205 60 82 196617 replace talk.aiff;
#P newex 205 91 111 196617 buffer~ mysample;
#P comment 68 28 69 196617 bang to play;
#P connect 32 0 26 0;
#P fasten 28 2 26 0 195 142 62 142;
#P fasten 29 0 26 0 115 142 62 142;
#P connect 27 0 26 0;
#P connect 26 0 33 0;
#P connect 33 0 4 0;
#P connect 4 0 6 0;
#P connect 4 0 6 1;
#P connect 10 2 33 1;
#P hidden connect 26 1 31 0;
#P connect 31 0 30 0;
#P connect 30 0 28 0;
#P connect 28 0 29 0;
#P connect 10 3 33 2;
#P hidden connect 5 6 30 1;
#P connect 28 1 29 1;
#P hidden connect 25 1 22 0;
#P hidden connect 18 0 11 0;
#P hidden connect 7 0 10 0;
#P connect 11 0 10 0;
#P hidden connect 22 0 10 0;
#P hidden connect 10 0 18 0;
#P fasten 37 1 34 0 500 138 200 138;
#P connect 34 0 33 3;
#P connect 8 0 2 0;
#P connect 2 0 1 0;
#P connect 3 0 1 0;
#P hidden connect 10 1 19 0;
#P hidden connect 19 0 12 0;
#P connect 12 0 10 1;
#P connect 1 1 5 0;
#P hidden connect 10 2 20 0;
#P hidden connect 20 0 13 0;
#P connect 13 0 10 2;
#P hidden connect 10 3 21 0;
#P connect 35 0 37 0;
#P connect 37 0 36 0;
#P hidden connect 21 0 14 0;
#P connect 14 0 10 3;
#P fasten 23 0 10 4 595 291 636 291;
#P window clipboard copycount 38;


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


December 12, 2006 | 9:55 am

i use the patch i posted at the end of this thread

http://www.cycling74.com/forums/index.php?t=msg&th=23320&start=0&rid=3781&S=ab2fb31070496c39c5db27733fe7bcda


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