Is there any way to make a sound which is multiple layered on top of each other?

I have tried out multiple channels, but the sample rate breaks whenever I add a new channel. Does anyone know how to stack them?

You just need to first make sure the sounds are the same length (add a bunch of 0s at the end to make it the same length) and then add the samples together. That’s basically how mixing works.