Forums > MaxMSP

Removing Sample Clicks??

March 14, 2008 | 8:07 pm

I am trying to use sel to remove sample clicks by sending a bang to a line message to adjust the amplitude at the beginning and end of a sample. I am trying to use the Loop Sync Output given by groove~ to trigger the sel at .95, but for some reason sel isn’t sending a bang out its left outlet. I thought it might be because it was a float so I multiplied the loop sync output by 10 and set sel to 95. still no good. the thing is, the sel right outlet is sending out bangs, just not its left. This is incredibly frustrating. I see no explanation for why sel shouldn’t be working. Does anyone have any ideas?


March 14, 2008 | 9:19 pm

Quote: kyle.kaplan@mail.mcgill.ca wrote on Fri, 14 March 2008 13:07
—————————————————-
> I am trying to use sel to remove sample clicks by sending a bang to a line message to adjust the amplitude at the beginning and end of a sample. I am trying to use the Loop Sync Output given by groove~ to trigger the sel at .95, but for some reason sel isn’t sending a bang out its left outlet. I thought it might be because it was a float so I multiplied the loop sync output by 10 and set sel to 95. still no good. the thing is, the sel right outlet is sending out bangs, just not its left. This is incredibly frustrating. I see no explanation for why sel shouldn’t be working. Does anyone have any ideas?
—————————————————-

You’re sampling the right outlet of groove with snapshot or something, I assume. You’ll almost never get the exact value you are looking for this way.

You should use [> .95] and change.

mz


March 14, 2008 | 9:27 pm

For a different approach, have you considered using [trapezoid~]? Use
the sync out of [groove~] to drive [trapezoid~] and you’re in business!

On Mar 14, 2008, at 2:07 PM, Myrddin_Wyllt wrote:

>
> I am trying to use sel to remove sample clicks by sending a bang to
> a line message to adjust the amplitude at the beginning and end of
> a sample. I am trying to use the Loop Sync Output given by groove~
> to trigger the sel at .95, but for some reason sel isn’t sending a
> bang out its left outlet. I thought it might be because it was a
> float so I multiplied the loop sync output by 10 and set sel to 95.
> still no good. the thing is, the sel right outlet is sending out
> bangs, just not its left. This is incredibly frustrating. I see no
> explanation for why sel shouldn’t be working. Does anyone have any
> ideas?

—-
Steven M. Miller
Professor, Contemporary Music Program
College of Santa Fe

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>
CMP <
http://www.csf.edu/academics/contemporary_music/>


March 15, 2008 | 11:16 pm

Smill, would you be able to post a basic patch that utilizes this? I see how trapezoid could be used to shape the amplitude, but I am having trouble actually implementing it. I have sync output driving my trapezoid, with arguments .05 and .95, and am using snapshot~ to send its values to the right inlet of the stereoamp~ patch provided in the groove MSP tutorial. Doesn’t seem to be working tho. I’ll attempt to use > 95, but i think it would be better to use trapezoid~, since what it does seems clearer to someone looking at the patch.


March 16, 2008 | 12:14 am

There should be no need for snapshot~ if you’re using trapezoid~. It’s better to keep it all in the signal domain. Note: the stereoamp~ abstraction from the groove~ tutorial expects floats in the right input. To make stereoamp~ work with trapezoid you’ll need to change it to something like this:

#P window setfont Times 10.;
#P window linecount 1;
#P comment 15 153 47 1310730 Channel 1;
#P comment 63 153 47 1310730 Channel 2;
#P comment 114 27 47 1310730 Amplitude;
#P comment 61 27 47 1310730 Channel 2;
#N comlet (signal) Channel 2;
#P outlet 77 138 15 0;
#N comlet (signal) Channel 1;
#P outlet 29 138 15 0;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 77 113 39 1441802 *~;
#P newex 29 113 39 1441802 *~;
#N comlet (float) Amplitude;
#P inlet 129 41 15 0;
#N comlet (signal) Channel 2;
#P inlet 77 41 15 0;
#N comlet (signal) Channel 1;
#P inlet 29 41 15 0;
#P window setfont Times 10.;
#P comment 14 27 47 1310730 Channel 1;
#P connect 3 0 4 1;
#P connect 3 0 5 1;
#P connect 5 0 7 0;
#P connect 2 0 5 0;
#P connect 4 0 6 0;
#P connect 1 0 4 0;
#P window clipboard copycount 12;


March 16, 2008 | 1:09 am

Here’s a quick and dirty demo. Notice the mod to the ‘stereoamp’
subpatch to work with signal input for amplitude.

A much more functional method would be to use [adsr~], of course.

#P window setfont "Fixedwidth Serif" 10.;
#P window linecount 1;
#P newex 143 411 143 1441802 buffer~ igor sacre.aiff;
#P window setfont "Sans Serif" 9.;
#P hidden newex 199 24 60 196617 loadmess 1;
#P toggle 199 55 15 0;
#P message 199 75 41 196617 loop $1;
#P user meter~ 21 293 204 330 10 0 168 0 103 103 103 255 153 0 255 0
0 217 217 0 153 186 0 12 3 3 3 3;
#P user meter~ 20 335 203 372 10 0 168 0 103 103 103 255 153 0 255 0
0 217 217 0 153 186 0 12 3 3 3 3;
#P user meter~ 208 293 391 330 10 0 168 0 103 103 103 255 153 0 255 0
0 217 217 0 153 186 0 12 3 3 3 3;
#P toggle 103 216 15 0;
#P window setfont "Fixedwidth Serif" 10.;
#N vpatcher 312 179 515 388;
#P window setfont Times 10.;
#P comment 15 153 47 1310730 Channel 1;
#P comment 63 153 47 1310730 Channel 2;
#P comment 114 27 47 1310730 Amplitude;
#P comment 61 27 47 1310730 Channel 2;
#N comlet (signal) Channel 2;
#P outlet 77 138 15 0;
#N comlet (signal) Channel 1;
#P outlet 29 138 15 0;
#P window setfont "Fixedwidth Serif" 10.;
#P newex 77 113 39 1441802 *~;
#P newex 29 113 39 1441802 *~;
#N comlet (signal) Amplitude;
#P inlet 129 41 15 0;
#N comlet (signal) Channel 2;
#P inlet 77 41 15 0;
#N comlet (signal) Channel 1;
#P inlet 29 41 15 0;
#P window setfont Times 10.;
#P comment 14 27 47 1310730 Channel 1;
#P connect 1 0 4 0;
#P connect 4 0 6 0;
#P connect 3 0 4 1;
#P connect 2 0 5 0;
#P connect 5 0 7 0;
#P connect 3 0 5 1;
#P pop;
#P newobj 127 213 92 1441802 p stereoamp~;
#P newex 127 238 92 1441802 dac~;
#P window setfont "Sans Serif" 9.;
#P newex 257 156 82 196617 trapezoid~ 0.1 0.9;
#P newex 127 75 29 196617 sig~;
#P toggle 127 55 15 0;
#P newex 127 119 77 196617 groove~ igor 1;
#P connect 0 0 8 0;
#P connect 2 0 9 0;
#P connect 1 0 2 0;
#P connect 2 0 0 0;
#P connect 10 0 0 0;
#P connect 0 0 5 0;
#P fasten 6 0 4 0 108 234 132 234;
#P connect 5 0 4 0;
#P connect 0 0 5 1;
#P hidden connect 12 0 11 0;
#P connect 11 0 10 0;
#P connect 3 0 7 0;
#P connect 3 0 5 2;
#P connect 5 1 4 1;
#P connect 0 1 3 0;
#P window clipboard copycount 14;

On Mar 15, 2008, at 5:16 PM, Myrddin_Wyllt wrote:

>
> Smill, would you be able to post a basic patch that utilizes this?
> I see how trapezoid could be used to shape the amplitude, but I am
> having trouble actually implementing it. I have sync output driving
> my trapezoid, with arguments .05 and .95, and am using snapshot~ to
> send its values to the right inlet of the stereoamp~ patch provided
> in the groove MSP tutorial. Doesn’t seem to be working tho. I’ll
> attempt to use > 95, but i think it would be better to use
> trapezoid~, since what it does seems clearer to someone looking at
> the patch.

—-
Steven M. Miller
Professor, Contemporary Music Program
College of Santa Fe

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>
CMP <
http://www.csf.edu/academics/contemporary_music/>


March 16, 2008 | 8:11 pm

The "quick and dirty" demo is just what i was looking for, smill. much thanks.


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