[sharing] evaluate/store peaks and their frequency


    Jan 29 2011 | 12:31 pm
    "My First Share", or something
    As the average Max user, I find this utility of mine invaluable, particularly when assessing sensor data. It reports data peaks and the time between those peaks.
    (must.....learn.......to...build........externals)
    Brendan

    • Jan 30 2011 | 8:10 pm
      Hi Brendan,
      I made a couple of changes to your patch. Hope you don't mind. I eliminated the if statements in your subpatch... I have been taught that they are evil and I generally stay away from them ;)
      I also got rid of the sprintf object. sprintf creates a new entry into the symbol table each time it is used. If you are running the patch for a while (albeit a long while), you will fill up the table... again, I was taught to stay away from it unless absolutely necessary or there is a small amount of strings to be created. so I just store the numbers and then connect it up to a jit.cellblock for a quick readout...
    • Jan 30 2011 | 9:04 pm
      Nice one MIB - I should be well aware that both [if] and [sprintf] can be 'clunky', or at least improved upon using other objects/processes (I've been lurking here long enough!), so thanks for the heads-up, and for taking the time to chip away at my relative noob-osity....lessness.
      Best
      Brendan
      ps "hope you don't mind".....the raison d'etre for posting/sharing is to seek improvements, so thanks again; the use of jit.cellblock blew me away!