Skip to content

Commit

Permalink
Update chap02
Browse files Browse the repository at this point in the history
The first line edited is self explanatory, that is a typo. If we create a sawtooth signal, we should say "sawtooth" instead of "triangle"

The second edit is needed, since the spectrum that we are modifying is from line 440, which is before creating the new sawtooth signal. 
I discovered it by making changes to duration and framerate of the sawtooth signal, and when playing the two comparative audios (with just different phases) the lenghts of the audios were completely different.
  • Loading branch information
struck89 authored May 16, 2017
1 parent 4aef771 commit a301ad5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion code/chap02.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@
"source": [
"## Amplitude and phase\n",
"\n",
"Make a triangle wave."
"Make a sawtooth wave."
]
},
{
Expand Down Expand Up @@ -691,6 +691,7 @@
"outputs": [],
"source": [
"i = complex(0, 1)\n",
"spectrum = wave.make_spectrum()\n",
"spectrum.hs = magnitude * np.exp(i * angle)"
]
},
Expand Down

0 comments on commit a301ad5

Please sign in to comment.