How to calculate proper data size for oopsy data load from SD card

Hello all,

This may sound like a very basic question but I am wondering how I calculate the proper number to put in the data _wav NUMBER portion for the loading from an SD card.

Currently I have a number of 44.1, mono files that I would like to load from an SD card and I am not quite sure how to calculate the proper number.

Any help would be greatly appreciated.

Thanks!

Two ways:

  1. create it first as a [buffer] in gen~, using the same name as the [buffer~] in Max, then route the [buffer]'s 1st outlet to a [out 10], route the gen~'s 10th outlet to a [number~] in Max, and turn on audio to see the number.

  2. Use an [info~] object in Max, witth a bit of patching to derive the sample length. See the “sdcard-minimal.maxpat” example, or the picture below:

Screen Shot 2021-07-05 at 11.42.11 AM

@grrrwaaa,

Thank you as it is much appreciated!

All up, I look forward to when all of this is in the SD load by default.

Thank you for your continued time, help, and support on all of this. It is very cool stuff!

Brett