How to Play (3 sec drum loop .wav loaded into PSRAM) using Granular instead of call play any Player??

charnjit

Well-known member
if we loaded a drum loop .wav to psram teensy 4.1 . Addres SMP_addr[0] size sizes[0].
can i play it in seamless loop by granular functions (not call any player , playMemory etc) ????
if yes (how to play it with specific Speed [Time stretching] without affect Pitch from begining of file.......with code example )
if no .... How to call it other way from begining of file.
i am complicated with use of granular.beginFreeze(); and its parameter according to my 3sec drum loop.
Please Reply..........................Thank you
 
after calling in void setup()
C++:
  granular1.begin(SMP_addr[0], sizes[0] / 2);
  granular1.setSpeed(1.0); // Normal speed
  granular1.beginPitchShift(1.0); // Normal pitch
  granular1.beginFreeze(200);
my drum loop not start playing . but it is started by caling by :
C++:
playArray[0]->playWav(SMP_addr[0]);
And after playing following code does not make changes in playback speed
C++:
   granular1.setSpeed(1.5);
   granular1.beginFreeze(200);
if Developer or expert of Granular teensy reading this post , please reply .. correct way to use of it to stretching time without pitch.
thank you..
 
@charnjit: Have you tried the granular example (Files > Examples > Audio > Effects > Granular) ?? Does it work for you, as expected ??

Mark J Culross
KD5RXT
yes ...Mark J Culross ..in example (Files > Examples > Audio > Effects > Granular) example only affect Pitch of running Audio file ,but not PLayback speed (time stretching).
above video you are seeing in post#4 by Nic N. this is what i am searching for. In video Playback speed being changed without affect pitch. i am curious to see code what is running on his teensy. it will help me a lot. but in description of video , there is no link openable for code. plaese help me to get running code in teensy ask him.
changing Playback Speed
thank you.....
 
Back
Top