RenHao

multimedia_20150421_course

Apr 21st, 2015
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MatLab 0.39 KB | None | 0 0
  1. generate white noise
  2. --
  3. clear all
  4. close all
  5.  
  6. N=44100;    
  7. s=randn(N,1);
  8.  
  9. f=fft(s);
  10.  
  11. figure
  12. subplot(211)
  13. plot(s)
  14. subplot(212)
  15. plot(20*log10(abs(s)))
  16. --
  17.  
  18. [y,Fs,NBits] = wavread('name');
  19. %   Fs : sampling frequency
  20. audiowrite(filename,y,Fs)
  21. sound(y,Fs);
  22. size(y) ==> bits soundtunnel
  23.  
  24. --
  25.  
  26. C++ thread https://kheresy.wordpress.com/2012/07/06/multi-thread-programming-in-c-thread-p1/
Advertisement
Add Comment
Please, Sign In to add comment