how to find the number of points in audio?
    5 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    john
 el 14 de Abr. de 2019
  
    
    
    
    
    Comentada: Walter Roberson
      
      
 el 15 de Abr. de 2019
            point=200;
 %Calculate the number of frames  
n=floor(length(x)/point);  %n takes the closest largest integer  
enframe=zeros(point,n);%Initialize, one frame per column
how to find number of points in audio?
0 comentarios
Respuesta aceptada
  Walter Roberson
      
      
 el 14 de Abr. de 2019
        Audio files do not inherently have "points". 
The code you are using appears to be part of dividing a single channel of audio into a number of fixed-sized windows, and you are asking how to determine the window size. The appropriate size for a window depends upon the sampling frequency and upon what kind of operations you are doing with the windows.
Also, for audio, it is common to use overlapping windows in order to better match phases.
I recommend that you look at https://www.mathworks.com/help/signal/ref/buffer.html buffer() to do the work of creating windows from your signal, once you have figured out how big the window should be.
2 comentarios
  Walter Roberson
      
      
 el 15 de Abr. de 2019
				The 200 (400 in the comments) and 0.2 cutoff are arbitrary, especially since you commented out the normalization. To get something that was not arbitrary you would need to have a calibrated system that you could calculate SPL (sound pressure level) from and you would combine that with information on studies on audibility in humans.
Más respuestas (0)
Ver también
Categorías
				Más información sobre Audio Processing Algorithm Design en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

