Tag Info

New answers tagged

3

To help you get started, here is a simple demonstration with Spectrogram. First I need a list of note names and frequencies: notes = Thread[{440.0*2^(Range[0, 12]/12), {"A", "A#", "B", "C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A"}}]; Now I choose a sample rate and generate a set of samples corresponding to playing each note in turn for ...


2

I suggest using the function MaxDetect. From the documentation you can directly see how it works. Here is a slightly modified example. data = Table[Sin[0.1 \[Pi] n + 1.] + Sin[0.5 \[Pi] n + 2.1] + RandomReal[{-1, 1}], {n, 0, 127}]; ListLinePlot[p = PeriodogramArray[data], PlotRange -> All] ListPlot[MaxDetect[p, 5]] With some ...



Top 50 recent answers are included