Created
January 6, 2013 14:17
-
-
Save matael/4467456 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| clear all; | |
| close all; | |
| % globales {{{1 | |
| bin_fn = 'conv_chanson_51k2.wav'; | |
| start_bin = 177058; | |
| mon_fn = 'conv_mono_chanson_51k2.wav'; | |
| start_mon = 107546; | |
| % nombre de points à afficher | |
| forward = 1000; | |
| Fe = 51200; | |
| % récup des sons {{{1 | |
| % mon | |
| mon = wavread(mon_fn); | |
| % bin | |
| bin = wavread(bin_fn); | |
| % Graphe 1 {{{1 | |
| plot(normalize(bin(start_bin:end,2)), 'r'); | |
| hold on; | |
| plot(normalize(mon(start_mon:end,2)), 'b'); | |
| print('temporel_cale.png', '-dpng'); | |
| % Graphe 2 {{{1 | |
| figure(2); | |
| mon = mon(start_mon:start_mon+forward,2); | |
| bin = bin(start_bin:start_bin+forward,2); | |
| temps = (0:forward)*(1/Fe); | |
| plot(temps, mon, 'b'); | |
| hold on; | |
| plot(temps, bin, 'r'); | |
| grid on; | |
| legend('monaural', 'binaural', 'location', 'southeast'); | |
| title("Tracé temporel des signaux pour l'oreille gauche"); | |
| xlabel('Temps (s)'); | |
| print(['temporel_' num2str(forward) '_points_cale.png'], '-dpng'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment