Which object to store window function ?

    Jan 11 2019 | 3:44 pm
    Hi, I generate a Hanning function, thanks to fredrikolofsson.com/, and I would like to know which object is suitable for storing the data generated ? My goal is to use it as an envelope for granular synthesis. So, I need interpolation for the reading. record~ with buffer~ seems not suitable since I cannot specify an index : it record at the sample rate ... is table the more convenient ? if so, how to interpolate while reading ?

    • Jan 11 2019 | 5:06 pm
      I made this, I am pretty sure there is a simple way. (Why it did not start and end with a zero value ?)
    • Jan 11 2019 | 11:47 pm
      take a look at peek~ and poke~ https://docs.cycling74.com/max7/maxobject/peek~ https://docs.cycling74.com/max7/maxobject/poke~
      i store all my windows as .aif files and have my "windows" folder in the max search paths for easy loading
    • Jan 15 2019 | 12:18 pm
      perfect thanks. And what do you use to read the buffer ? peek~ read at the data rate ... index~ does not have interpolation I use play~ but I have to convert sample size to milliseconds ...
    • Jan 15 2019 | 4:13 pm
      depending on the context you will read it out with any of the possible objects.
      but for windowing jobs, cycle~ is your first choice.