please help me with sound…

Mar 5, 2007 at 11:16am

please help me with sound…

Hi,

I am trying to create a patch which gets the output from a slider and controls a sound effect ny dragging it.

Can anyone help?

Many thanks

Jonathan.

#30632
Mar 5, 2007 at 12:19pm

Just to update my rather open ended problem…

I now have a patch which allows me to read a sound file into the buffer and scrub in the buffer window. All I need to do now is make it so I can scrub using a slider object rather than the buffer window. Can someone please help me with the last bit of this problem!!!

Here is the patch so far:

max v2;
#N vpatcher 273 155 873 555;
#P origin 0 -86;
#P window setfont “Sans Serif” 9.;
#P message 81 163 43 196617 $1 500;
#P newex 81 189 32 196617 line~;
#P flonum 81 136 90 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 81 115 76 196617 buffer~ Seagul;
#P message 81 93 116 196617 read Seagul.wav 0 -1 1;
#P newex 81 235 67 196617 play~ Seagul;
#P newex 81 305 30 196617 dac~;
#P message 16 258 65 196617 startwindow;
#P message 17 278 27 196617 stop;
#P connect 4 0 5 0;
#P connect 5 0 6 0;
#P connect 6 0 8 0;
#P connect 8 0 7 0;
#P connect 7 0 3 0;
#P connect 3 0 2 0;
#P connect 1 0 2 0;
#P connect 0 0 2 0;
#P pop;

#98184
Mar 5, 2007 at 2:58pm

i dont think you patch does exactly what you think. are you aware that
you also changing the pitch when moving through the buffer?

i think this one is closer to what you think (and just one of many ways
of doing “the scrub”)

p

max v2;
#N vpatcher 62 184 698 854;
#P origin 0 -86;
#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P comment 80 242 100 196617 play for ms;
#P newex 81 327 78 196617 pack 0. 0. 500.;
#P newex 120 265 27 196617 t f f;
#P flonum 120 241 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 109 298 27 196617 + 0.;
#P message 159 152 86 196617 setminmax 0. $1;
#P user multiSlider 81 171 230 15 0. 6494.98877 1 2680 47 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 newex 81 129 105 196617 info~ Seagul;
#P newex 81 79 72 196617 append 0 -1 1;
#P message 81 359 56 196617 $1 , $2 $3;
#P newex 81 385 32 196617 line~;
#P flonum 81 192 90 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 81 104 76 196617 buffer~ Seagul;
#P message 81 49 30 196617 read;
#P newex 81 411 67 196617 play~ Seagul;
#P newex 81 445 30 196617 dac~;
#P message 16 398 65 196617 startwindow;
#P message 17 418 27 196617 stop;
#P comment 317 171 100 196617 scroll;
#P connect 5 0 10 0;
#P connect 10 0 6 0;
#P connect 6 1 11 0;
#P connect 13 0 12 0;
#P connect 12 0 7 0;
#P connect 7 0 17 0;
#P connect 17 0 9 0;
#P connect 9 0 8 0;
#P connect 8 0 4 0;
#P connect 1 0 3 0;
#P connect 2 0 3 0;
#P connect 4 0 3 0;
#P connect 7 0 14 0;
#P connect 14 0 17 1;
#P connect 15 0 16 0;
#P connect 16 0 14 1;
#P connect 16 1 17 2;
#P connect 11 6 13 0;
#P pop;

Jonathan wrote:
> Just to update my rather open ended problem…
>
> I now have a patch which allows me to read a sound file into the buffer and scrub in the buffer window. All I need to do now is make it so I can scrub using a slider object rather than the buffer window. Can someone please help me with the last bit of this problem!!!
>
> Here is the patch so far:
>

http://pure.test.at

#98185
Mar 5, 2007 at 3:40pm

Thank you so much Pure. You are a life saver.

Works great.

Jonathan.

#98186
Mar 6, 2007 at 5:54am

Check out the waveform~ object if you want to get really into it… I wish I had a lot sooner. Your scrubber can be used to set the loop points, plus there’s a full-featured interface for mousing, selection choice, moving and stretching the selection, zooming, snapping to grid, etc. It rivals most audio apps in my opinion as far as getting around in a waveform window.

-CJ

#98187

You must be logged in to reply to this topic.