This looks like a portion of an App Designer app, and if it is that is indeed a classdef file. Looking at the end keywords, the last one before the methods line ends the function. There is no end ending the previous methods block. You can't start a methods block inside another methods block.
end the methods block that contains PLAYNOTE before starting another one for your private methods.
Best Answer