Share your hobbies beyond being an audiophile: I am afraid I have to deviate a bit from the topic 😳. Besides sailing, mountaineering, snow shoeing, ski touring and all that, there are times when the weather does not permit any of the outside hobbies. Again, being a recently retired scientist, I cannot stop my mind not to think along science terms. During my professional life, I used to use a lot of scripting in R to statistically validate our data. The last few years I pondered if MatLab wouldn't be the more suitable software for our purpose, but I never had the time of getting to know it. Now that I have time, I am making my first steps into MatLab by analysing my precious audio files at hand.
The first file I had a look at is Bill Evans' 'You go to my Head', the legendary concert in the Black Forest recorded in 1968, but released only in 2016. A marvel of a concert! I first loaded the file, an AIFF file/96 kHz/24 bit into MatLab and tried to display the left and right channel waveforms separately. Voilà, after some trying, and with a lot of on-line forums, I managed to display the two channels separately (see screenshot).
It's fascinating playing with these audio files. I do not understand all the details behind it, but I'll go on with MatLab to do some further spectral analysis, etc. Real fun for rainy days!
The code, if someone is interested, is very simple:
>> [y,fs] = audioread('You_Go_to_My_Head.aiff'); % y = samples, fs = sampling frequency
>> l = y(:,1); % left channel
>> r = y(:,2); % right channel
>> t = linspace(0, length(y)/fs, length(y)); % linspace creates the time vector
>> subplot(2,1,1); plot(t,l, ‘b’); title('Bill Evans/You Go to my Head/Left Channel'); xlabel('time(s)'); ylabel('Amplitude'); % plots the left channel in blue to the top panel
>> subplot(2,1,2); plot(t,r,’r’); title('Bill Evans/You Go to my Head/Right Channel'); xlabel('time(s)'); ylabel('Amplitude') ;% plots the right channel in red to the bottom panel