- Download the MATLAB codec in "main" along with the files in the following link:
- Paste the Code in a MATLAB file and the audio files within the same folder as the MATLAB file.
- Declare the path to the said folder.
- Run.
MATLAB's program is capable of sorting music files between two genres (in this case between Japanoise and Japanese Free Jazz) using the K-nearest neighbor algorithm.
Three parameters were found to give meaningful and distinguished information between the genres, namely:
- Roughness Mean: Mean of perceptual dissonance, related to the closeness of frequency peaks around frequency bands found in the human auditory system.
- Skewness: Simmetry of Distribution, roughly detecting repetition.
- Root Mean Square: Global energy of the data.