Forums > MaxMSP

waveform~ display crashing every time


December 10, 2007 | 7:02 am

hi all

I’ve managed to isolate a section of a patch that makes max crashes on my computer every time.
I know I’ve written not long ago, of pattrstorage making max crash but this time it concerns the waveform display object.

I have no idea why it crashes. Maybe it would obvious to any of you?

Here is the isolated section.

#P window setfont "Sans Serif" 18.;
#P window linecount 5;
#P comment 679 287 280 196626 Is this crashing normal? Can you not do this ? Does it have anything to do with the way max functions from up down /right left?;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 39 204 43 196617 replace;
#P message 39 72 43 196617 replace;
#P newex 48 137 64 196617 groove~ cat;
#P newex 39 268 65 196617 groove~ dog;
#P newex 38 228 62 196617 buffer~ dog;
#P newex 43 104 61 196617 buffer~ cat;
#P user waveform~ 412 364 230 52 3 9;
#W mode loop;
#W mouseoutput continuous;
#W unit ms;
#W grid 1000.;
#W ticks 0;
#W labels 1;
#W vlabels 0;
#W vticks 1;
#W bpm 120. 4.;
#W frgb 33 0 0;
#W brgb 60 178 173;
#W rgb2 0 95 255;
#W rgb3 0 0 0;
#W rgb4 0 0 0;
#W rgb5 190 137 255;
#W rgb6 100 100 100;
#W rgb7 100 100 100;
#P message 413 324 42 196617 set dog;
#P message 412 190 41 196617 set cat;
#P user waveform~ 427 217 230 52 3 9;
#W mode loop;
#W mouseoutput continuous;
#W unit ms;
#W grid 1000.;
#W ticks 0;
#W labels 1;
#W vlabels 0;
#W vticks 1;
#W bpm 120. 4.;
#W frgb 33 0 0;
#W brgb 60 178 173;
#W rgb2 0 95 255;
#W rgb3 0 0 0;
#W rgb4 0 0 0;
#W rgb5 190 137 255;
#W rgb6 100 100 100;
#W rgb7 100 100 100;
#P window setfont "Sans Serif" 12.;
#P comment 412 35 100 196620 Crashing patch;
#P window setfont "Sans Serif" 18.;
#P window linecount 5;
#P comment 680 132 316 196626 This patch section crashes every time when the dog’s waveform selection start (output) is plugged in the cat waveform selection end (input). As I plug it , it crashes.;
#P connect 11 0 7 0;
#P connect 10 0 6 0;
#P connect 4 0 5 0;
#P connect 3 0 2 0;
#P connect 2 3 5 2;
#P connect 5 2 2 3;
#P window clipboard copycount 13;

Thanks to all

phil

December 10, 2007 | 7:22 am

Most likely some kind of feedback loop problem. I’ve no clear answer, but the basic process of your patch is

Bang
(Cat end) sent to (Dog start)
(Dog start) sent to (Cat end)

Max is trying to set an end value for cat with itself, over and over again. I don’t think you can do it this way, whatever it is you want, and I don’t believe it’s anything to do with message order.

If I’m way off I blame lack of sleep, please don’t tell my lecturers.

December 10, 2007 | 11:33 am

Try putting a ‘change 0.1′ object before the inlets you’re connecting. This should break up the infinate loop you have going on.

December 10, 2007 | 3:08 pm

Hi ssam.

Wow your change 0.1 suggestion seems to have fixed it! For now anyways.

The point of my patch is to have 4 or 5 waveform filled with the same sample, displaying different parts of the same sample being read by a multislider.
So my goal is to load a Drum beat sample, and have the multislider randomly read different parts of the sample , constantly altering it’s playback result.

Maybe , there ‘s a better to do this with using say 4 or 5 buffer~ groove~ objects . But that ‘s the way I figured it out for now .

thanks

phil

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

Forums > MaxMSP