how to allow PSRAM to freeze long duration for granular Effect ???

charnjit

Well-known member
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:

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);
    
}
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 ?????
 
Thanks KurtE..
there is new topic for Psram method. i seemed Nobody asked or use before.
thank you.......
 
The issue with creating several new threads on related issues is that a lot of people may not see what has or has not been suggested on the previous threads and can lead to a lot of duplicated effort.

And it looks like the same starting example code.

looks like you also have another granular thread as well:

Note: looks like the main code here has in granular cpp has not changed in 8 years. Looks like the original developer may have made
minor changes in his copy maybe 6 years ago: did not look at details.

Good luck, I am not one who uses audio much. Like maybe a beep or two, so won't be much help
 
Back
Top