Need help to understand an issue with Wave/play object


#21

Ahh, that is what you meant. Sorry, hehe :slight_smile:

I think Ill just get a new one like this one. Is less than 10 euro, in danish kroner 59 kr.

http://www.pc-lager.dk/vare-oversigt.php?varenummer=989943585


#22

I just made a Mellotron-style patch with a sample per key and I am getting clicks like you described. Did a faster card fix it for you?


#23

...and to answer my own question, no that didn’t fix things. I just got the fastest card I could find. It might have helped a bit, I’m not sure, but the clicks are still there.


#24

@Abhoth

I am wondering which type of files you are using? .wav or .raw?


#25

I’m using .raw files. It is not the new file that starts playing that creates the click, btw. (I thought so at first). The click is in the audio stream that is already playing. I’m guessing what is happening is the streaming gets temporarily interrupted for a short while whenever a new wave/play starts playing.


#26

Cool just wanted to rule out the fileheader issue, cause it wasnt mentioned.

But sorry, I havent dug more into this, I use these object very rarely.


#27

After quite a bit of digging I now have a click-free 8 voice Mellotron. Yay! In the end, lowering the thread priority was all that was needed.


#28

Hey @Abhoth, I'm also trying to make a mellotron like instrument. Would you mind sharing your patch? Thanks!


#29

The finished version is in the community library. The tough part was the pitch control. I don't remember the details, but I used two sets of buffers, one that reads from the SD card, and one where the stream is "resampled" at the new pitch. A very fast SD Card is required to make it work reliably.

If you don't want the pitch control, you could just use the Wave/play object and edit the thread priority. From memory, what cause a click is that the seek time when finding the start of a file on the sd card is too long, thus creating an audible click in the audio stream. When I reduced the thread priority, starting playing might take slightly longer, but it doesn't disrupt the audio anymore.