sound player using groove oneshot or looped

frz01's icon

Hi there,

First time I post here.
I started this summer an educationnal project (for kids from 6 to 12).
One of the aspect of this project is creating a simple soundfile player, with waveform, loop on/off, select part of a waveform, play forward and reverse at various speed.
I am nearly ok with this, except one thing I do not succeed to fix :
To have oneshot AND select part of the waveform, I have to use edge~ and "less than" for the sample to stop at the end of the selection.
This works quite ok except when playing short selection of sample : the stop is not really precise, as if there was some delay.
If anybody has any idea why, or how to solve or any other method to do this, I would be very graceful.

Here is my patch (excuse the mess, this is my first attempt to use Max seriously. I tried to clean everything but I am a beginner).

tete-de-lecture2c1.maxpat
Max Patch
gwsounddsg's icon

Hey man, welcome to the forums. You'll get some great help on here from loads of experienced people.

I took a look at your patch and honestly/respectfully, couldn't discern how to use it. Try grouping some of the common tasks together using encapsulation, this will help tremendously.

Secondly, in order for me (or anyone) to help you with a bug/issue it's best to list the exact steps to recreate the problem. For me I, don't know where to add files (since your patch currently looks in a local drive for you), how to make a file play, how long/short the sound file needs to be to recreate your issue, and how to interact with your patch to recreate the issue. If you give a step by step list of instructions on how to recreate the issue, it makes it much easier for others to help you.

Sorry if this seems harsh, I honestly do not mean for it to be. I am just outlining how someone like myself who hasn't seen your patch can know how to use it. It's really easy to build a max patch that you know how it works, but someone else may not be able to. Also if you were to walk away from this patch and come back to it in a month, would you know how it works? Defensive programming (organizing, labeling, coloring, grouping, etc), is just as important as making a program do the thing you want it to do.

GW