control with cycle~

Feb 6, 2007 at 9:59pm

control with cycle~

Hello,

I try to control a filtergraph with a sine wave
so I use a cycle~ of course.
But the result is not as smooth as I would like
here is my patch
I’m sure there is a smarter solution
but I don’t find it

thank’s for the help

best
Eryck

max v2;
#N vpatcher 437 173 1152 776;
#P user ezdac~ 63 127 107 160 0;
#P user rslider 244 50 18 130 1000 1 0 0 0;
#P window setfont “Sans Serif” 9.;
#P user number~ 185 226 224 241 9 3 3 2 0. 0. 0 0. 250 0. 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 214 258 104 196617 scale -1. 1. 30. 150.;
#P newex 185 196 64 196617 cycle~ 0.17;
#P user umenu 57 341 70 196647 1 64 357 0;
#X add display;
#X add lowpass;
#X add highpass;
#X add bandpass;
#X add bandstop;
#X add peaknotch;
#X add lowshelf;
#X add highshelf;
#X add resonant;
#X add allpass;
#P comment 314 334 35 196617 Q or S;
#P flonum 313 348 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 265 348 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 217 348 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user filtergraph~ 50 383 255 124 3 9 0. 22050. 0.0625 16. 1 1 1 0 0 1 1;
#X frgb 193 193 255;
#X brgb 233 233 255;
#X rgb2 0 0 0;
#X rgb3 130 130 130;
#X rgb4 0 0 0;
#X rgb5 118 121 166;
#X rgb6 210 74 54;
#X rgb7 255 22 22;
#X linmarkers 5512.5 11025. 16537.5;
#X logmarkers 10. 100. 1000. 10000.;
#X nfilters 1;
#X setfilter 0 1 0 0 0 483.335663 1. 2. 0.0001 22050. 0.0001 16. 0.5 25.;
#X done;
#P window linecount 3;
#P comment 217 311 46 196617 cutoff or center freq;
#P window linecount 2;
#P comment 267 322 39 196617 gain (linear);
#P outlet 50 512 15 0;
#P connect 8 1 3 0;
#P connect 3 0 0 0;
#P connect 9 0 11 0;
#P connect 11 1 10 0;
#P connect 10 0 4 0;
#P connect 4 0 3 5;
#P connect 5 0 3 6;
#P connect 12 0 10 3;
#P connect 12 1 10 4;
#P connect 6 0 3 7;
#P pop;

#30154
Feb 6, 2007 at 10:42pm

#95783
Feb 7, 2007 at 3:18am

Try using filtercoeff~ instead of filtergraph~. It’s for filter
coefficients updated at the signal rate.

Peter McCulloch

On Feb 6, 2007, at 4:59 PM, Eryck Abecassis wrote:

>
> Hello,
>
>
> I try to control a filtergraph with a sine wave
> so I use a cycle~ of course.
> But the result is not as smooth as I would like
> here is my patch
> I’m sure there is a smarter solution
> but I don’t find it
>
> thank’s for the help
>
> best
> Eryck
>
> max v2;
> #N vpatcher 437 173 1152 776;
> #P user ezdac~ 63 127 107 160 0;
> #P user rslider 244 50 18 130 1000 1 0 0 0;
> #P window setfont “Sans Serif” 9.;
> #P user number~ 185 226 224 241 9 3 3 2 0. 0. 0 0. 250 0. 0 0 0 221
> 221 221 222 222 222 0 0 0;
> #P window linecount 1;
> #P newex 214 258 104 196617 scale -1. 1. 30. 150.;
> #P newex 185 196 64 196617 cycle~ 0.17;
> #P user umenu 57 341 70 196647 1 64 357 0;
> #X add display;
> #X add lowpass;
> #X add highpass;
> #X add bandpass;
> #X add bandstop;
> #X add peaknotch;
> #X add lowshelf;
> #X add highshelf;
> #X add resonant;
> #X add allpass;
> #P comment 314 334 35 196617 Q or S;
> #P flonum 313 348 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 265 348 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P flonum 217 348 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
> #P user filtergraph~ 50 383 255 124 3 9 0. 22050. 0.0625 16. 1 1 1 0 0
> 1 1;
> #X frgb 193 193 255;
> #X brgb 233 233 255;
> #X rgb2 0 0 0;
> #X rgb3 130 130 130;
> #X rgb4 0 0 0;
> #X rgb5 118 121 166;
> #X rgb6 210 74 54;
> #X rgb7 255 22 22;
> #X linmarkers 5512.5 11025. 16537.5;
> #X logmarkers 10. 100. 1000. 10000.;
> #X nfilters 1;
> #X setfilter 0 1 0 0 0 483.335663 1. 2. 0.0001 22050. 0.0001 16. 0.5
> 25.;
> #X done;
> #P window linecount 3;
> #P comment 217 311 46 196617 cutoff or center freq;
> #P window linecount 2;
> #P comment 267 322 39 196617 gain (linear);
> #P outlet 50 512 15 0;
> #P connect 8 1 3 0;
> #P connect 3 0 0 0;
> #P connect 9 0 11 0;
> #P connect 11 1 10 0;
> #P connect 10 0 4 0;
> #P connect 4 0 3 5;
> #P connect 5 0 3 6;
> #P connect 12 0 10 3;
> #P connect 12 1 10 4;
> #P connect 6 0 3 7;
> #P pop;
>
>
>
> –
> http://www.eryckabecassis.com
>

#95784
Feb 7, 2007 at 8:48am

very nice !

thank’s both of you for the quick responses

(I know it’s was a basic question, but just no time
for the moment to read the reference guide…)

Cheers

Eryck

#95785
Feb 7, 2007 at 12:32pm

I just had my first day of classes after almost eight weeks so I am probably
super sensitive to dealing with people who are “too busy” to do what is
required of them. Two people on the list help you and you still tell them
that you were too busy to read the reference?

Nelson’s corollary to Murphy’s law: If you do something to save yourself
time you almost certainly cost someone else some of their time.

On 2/7/07 3:48 AM, “Eryck Abecassis” wrote:

>
> very nice !
>
> thank’s both of you for the quick responses
>
> (I know it’s was a basic question, but just no time
> for the moment to read the reference guide…)
>
> Cheers
>
> Eryck
> –
> http://www.eryckabecassis.com

#95786
Feb 7, 2007 at 1:25pm

You’re welcome, but this is why the “see also” section of the help
files is invaluable for this sort of thing. If you pull up the help
file on filtergraph~, you’ll find filtercoeff~ in the list. I would
also suggest that this is a perfect reason to print a copy of the
documentation. If you look up filtergraph~, you’ll run into
filtercoeff~ right next to it.

Peter McCulloch

> very nice !
>
> thank’s both of you for the quick responses
>
> (I know it’s was a basic question, but just no time
> for the moment to read the reference guide…)
>
> Cheers
>
> Eryck
> –
> http://www.eryckabecassis.com
>

#95787
Feb 7, 2007 at 1:39pm

If I may suggest a slight modification:
> Nelson’s corollary to Murphy’s law: If you do something to save
> yourself
> time you will cost someone else some of their time.

————– http://www.bek.no/~pcastine/Litter/ ————-
Peter Castine +–> Litter Power & Litter Bundle for Jitter
Universal Binaries on the way
iCE: Sequencing, Recording &
Interface Building for |home | chez nous|
Max/MSP Extremely cool |bei uns | i nostri|
http://www.dspaudio.com/ http://www.castine.de

#95788
Feb 7, 2007 at 2:23pm

On 7 Feb 2007, at 13:39, Peter Castine wrote:

> If I may suggest a slight modification:
>> Nelson’s corollary to Murphy’s law: If you do something to save
>> yourself
>> time you will cost someone else some of their time.

…where that someone else is quite possibly yourself.

#95789
Feb 7, 2007 at 7:40pm


oh, well, I posted because I was really in rush
not to save my time.
what is lightly different,
But ok I agree there the result is the same in view of
the Nelson’s corollary Murphy’s jaws.

peace

Eryck

#95790

You must be logged in to reply to this topic.