2
$\begingroup$

I want to make a brief Fourier transformation of the sound notes of the same pitch but played by different instruments to see the difference of their Fourier patterns. But I can't find any example of showing SoundNote in the function form or any similar operation in the Documentation Center.

So I hope someone could help me on this. Thank you in advance, sincerely.

$\endgroup$

1 Answer 1

5
$\begingroup$

I'm not entirely sure what you mean by "showing SoundNote in the function form", but if you want a list of audio samples corresponding to a SoundNote[], use AudioData[]:

dat = AudioData[SoundNote["C", 1, "Marimba"]];

Then you can e.g. plot the logarithmic spectrum per channel:

ListLinePlot[Log10[Abs[Fourier[#]]^2] & /@ dat]

logarithmic spectrum of 1s of middle C, marimba-style

$\endgroup$
1
  • $\begingroup$ Yeah, this is exactly what I mean, sir. I'm just a greenhorn, and I'm trying to writer a paper on music and Fourier transformation. Thank you very much!~~ $\endgroup$
    – Ruairi
    Sep 26, 2017 at 1:54

This site is temporarily in read-only mode and not accepting new answers.

Not the answer you're looking for? Browse other questions tagged .