changing audio frequency to a constant
    3 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Mohamed Turkmani
 el 19 de Ag. de 2022
  
    
    
    
    
    Comentada: Chunru
      
      
 el 19 de Ag. de 2022
            lets say i have an audio that has so many different frequencies, can i modify its frequency to constant and run it at 2000 hz for example?
2 comentarios
Respuesta aceptada
  Chunru
      
      
 el 19 de Ag. de 2022
        load handel.mat
[p, q] = rat(2000/Fs)
y2000 = resample(y, p, q);
whos
2 comentarios
  Chunru
      
      
 el 19 de Ag. de 2022
				load handel.mat                 % load a sample data with Fs
[p, q] = rat(2000/Fs)           % find a rational fraction of desired Fs and orighinal Fs
% p, q are integers so that resample can be efficiently implemented
y2000 = resample(y, p, q);      % resample the data so that FsNew = p/q*Fs
Más respuestas (0)
Ver también
Categorías
				Más información sobre Multirate Signal Processing en Help Center y File Exchange.
			
	Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!