Buffer not loading 11GB wave file entirely

Alessio Mastrorillo's icon

Hello folks! Could anyone please help me with this?

I need to load a 11GB wave file in a buffer~ object.

When I send a replace command with the file path, buffer~ looks like it loads it, and the info~ correctly shows the file length (114.732.000 ms).

But buffer~ is actually loading (and displaying) only part of the file, while the rest is empty, as show in the picture.

It is not supposed to be a problem working at 64 bit, right? Or is it the size of the file too big?

Thanks


Jean-Francois Charles's icon

On this thread, you have an example of a 4GB buffer~. Add a waveform~ and the full buffer~ is shown.

Hmm, can you try with the "read" message and a pre-set size instead of the replace message? Any more success?

Alessio Mastrorillo's icon

Still the same error, checking the content with waveform~ and loading with "read".

Source Audio's icon

check the header of wave file.

Alessio Mastrorillo's icon

I've just tested the system with a mock noise file generated with Adobe Audition (22GB of just noise). The problem is still there... the buffer~ is still loading part of the file.

Alessio Mastrorillo's icon

May the problem be related to the W64 wave format? I have the same problem with FLAC files too. It looks like only a certain duration is really loaded, while the rest is lost.

Alessio Mastrorillo's icon

I might need to specify that I am working on M4 and M1 (Apple Silicon) and Max 9.

Source Audio's icon

again,

check header of wavefile.

if it is RIFF, then you have 4GB limit.

It should be broadcast wave BW64

or older RF64 ...

I never tried to load such large file in max buffer,

so can't tell what size limits are.

Alessio Mastrorillo's icon

it's a 64 bit format, W64

Source Audio's icon

Can sfplay~ play it ?

I mean to the end ?

you can use seek to go close to the end

Alessio Mastrorillo's icon

yes, sfplay~ correctly reads it all

Source Audio's icon

Maybe cycling developers can answer if buffer~ is

BW64 or RF64 compatible or not.

Alessio Mastrorillo's icon

I am in contact with Cycling74 assistance, waiting for support

Alessio Mastrorillo's icon

After mailing with Cycling74 assistance I know for sure that buffer~ is unable to manage 64-bit files, hance no 64-bit wave recordings.

But, the assistance told me it could be possible to use data in gen~ to workaround this.

But... any idea how could load a wave file in a data array?

Tnx