The internal RAM of the teensy4.1 is not enough to freeze long duration. if there are files (more than 2 sec duration) to be use in granular effect, How to allow PSRAM memory to handle large buffer. i tried many google suggestion something like this:
all of them Not works. above code make no sound if .wav file is played.
Allocate PSRAM for granular is different thing than load .wav to PSRAM.
what is correct method to use PSRAM Memory to Freeze long Duration in Granular ?????
C++:
EXTMEM int16_t granularBuffer[5292000];
const uint32_t bufferSize = sizeof(granularBuffer) / sizeof(int16_t);
void setup() {
// Ensure the buffer is initialized (EXTMEM is not zeroed by default)
memset(granularBuffer, 0, sizeof(granularBuffer));
// Set up the granular effect to use this buffer
granular1.begin(granularBuffer, bufferSize);
}
Allocate PSRAM for granular is different thing than load .wav to PSRAM.
what is correct method to use PSRAM Memory to Freeze long Duration in Granular ?????