ModPlug Central

OpenMPT => Help and Questions => Topic started by: fizz on August 15, 2021, 09:06:39

Title: how do you stop samples with loop turned on from playing?
Post by: fizz on August 15, 2021, 09:06:39
i am a beginner at tracking and i have a square wave sample thats has loop turned on but when writing patterns i cant seem to be able to stop the sample from playing. initially i thought i needed to turn the note off by using "==" in the same channel right after but that doesnt seem to work. the sample still keeps playing and im not sure why. im guessing i need to do something with volume commands but i think im getting ahead of myself and i cant figure out how they work anyway. does anyone know how to write a pattern with looping samples better than i do?
Title: Re: how do you stop samples with loop turned on from playing?
Post by: LPChip on August 15, 2021, 10:13:31
The == is a note-off command. When it reaches, the instrument will receive a note-off, and then play the end of the tail of the sound until it stops. Although this is correct and if you alter the instrument, it can stop the note instantly, this is not what you're looking for.

There is also the note-cut, ^^ which simply stops the sound by cutting it. I am not familiar with the default config to know what the note-cut is, but in the IT compatible layout, it is ` or 4. Might be capslock, but not sure.
Title: Re: how do you stop samples with loop turned on from playing?
Post by: StarWolf3000 on August 15, 2021, 10:50:45
To extend LPChip's explanation:

When == Note Off works (I assume IT/MPTM format, XM is slightly different):
^^ Note Cut works with both instruments and samples and instantly stops playing it, disregarding any envelopes

See also https://wiki.openmpt.org/Manual:_Patterns#Note_Column
Title: Re: how do you stop samples with loop turned on from playing?
Post by: fizz on August 16, 2021, 07:49:29
thanks a lot i understand now