(*********************************************************************** Mathematica-Compatible Notebook This notebook can be used on any computer system with Mathematica 4.0, MathReader 4.0, or any compatible application. The data for the notebook starts with the line containing stars above. To get the notebook into a Mathematica-compatible application, do one of the following: * Save the data starting with the line of stars above into a file with a name ending in .nb, then open the file inside the application; * Copy the data starting with the line of stars above to the clipboard, then use the Paste menu command inside the application. Data for notebooks contains only printable 7-bit ASCII and can be sent directly in email or through ftp in text mode. Newlines can be CR, LF or CRLF (Unix, Macintosh or MS-DOS style). NOTE: If you modify the data for this notebook not in a Mathematica- compatible application, you must delete the line below containing the word CacheID, otherwise Mathematica-compatible applications may try to use invalid cache data. For more information on notebooks and Mathematica-compatible applications, contact Wolfram Research: web: http://www.wolfram.com email: info@wolfram.com phone: +1-217-398-0700 (U.S.) Notebook reader applications are available free of charge from Wolfram Research. ***********************************************************************) (*CacheID: 232*) (*NotebookFileLineBreakTest NotebookFileLineBreakTest*) (*NotebookOptionsPosition[ 6620, 218]*) (*NotebookOutlinePosition[ 7393, 245]*) (* CellTagsIndexPosition[ 7349, 241]*) (*WindowFrame->Normal*) Notebook[{ Cell[TextData[{ "NERCOMP ", StyleBox["\[FilledSmallCircle]", FontSlant->"Plain"], " Amherst College ", StyleBox["\[FilledSmallCircle]", FontSlant->"Plain"], " 22 Feb 2000" }], "Subsubtitle", TextAlignment->Center, TextJustification->0], Cell["Middle A with harmonics: synthesizing periodic functions", "Subtitle"], Cell[CellGroupData[{ Cell["Middle A", "Section"], Cell[TextData[{ "The ", StyleBox["fundamental", FontWeight->"Bold"], " is ", StyleBox["Middle A\[LongDash]", FontWeight->"Bold"], " is a pure tone with a frequency of 440 Hz. The functions\n\t", Cell[BoxData[ \(TraditionalForm\`a\ \(cos(\(\(2 \[Pi]\)\/440\) t)\)\ + \ \(\(b\)\(\ \)\(sin(\(\(2 \[Pi]\)\/440\) t)\)\(\ \)\)\)]], "\nfor constants ", Cell[BoxData[ \(TraditionalForm\`a\)]], " and ", Cell[BoxData[ \(TraditionalForm\`b\)]], " all describe such a pure tone." }], "Text", ParagraphSpacing->{0, 8}], Cell[BoxData[ \(\(\[Lambda]\ = \ 1\/440;\)\)], "Input"], Cell[TextData[{ "Look at and listen to such a function.\nAdd ", StyleBox["harmonics", FontWeight->"Bold"], " with frequencies being integral multiples of the fundamental frequency \ 440 Hz." }], "Text"] }, Closed]], Cell[CellGroupData[{ Cell["Graphs", "Section"], Cell[CellGroupData[{ Cell["The fundamental", "Subsection"], Cell[BoxData[ \(\(Plot[ 3\ Sin[\(2 \[Pi]\)\/\[Lambda]\ t]\ + \ 4\ Cos[\(2 \[Pi]\)\/\[Lambda]\ t]\ \ \ , \ {t, \ 0, \ 5 \[Lambda]}, \ PlotRange\ \[Rule] \ {\(-7\), \ 7}];\)\)], "Input"] }, Closed]], Cell[CellGroupData[{ Cell["Fundamental plus harmonics", "Subsection"], Cell["Add harmonics of 880 Hz and 1760 Hz:", "Text"], Cell[BoxData[ \(\(Plot[ 3\ Sin[\(2 \[Pi]\)\/\[Lambda]\ t]\ + \ 4\ Cos[\(2 \[Pi]\)\/\[Lambda]\ t]\ \ + \ \ \ \[IndentingNewLine]\(-0.75\)\ Sin[\(4 \[Pi]\)\/\[Lambda]\ t]\ + \ 1.68\ Cos[\(4 \[Pi]\)\/\[Lambda]\ t]\ , \ {t, \ 0, \ 5 \[Lambda]}, \ PlotRange\ \[Rule] \ {\(-7\), \ 7}];\)\)], "Input"], Cell[BoxData[ \(\(Plot[ 3\ Sin[\(2 \[Pi]\)\/\[Lambda]\ t]\ + \ 4\ Cos[\(2 \[Pi]\)\/\[Lambda]\ t]\ \ + \ \ \ \[IndentingNewLine]\(-0.75\)\ Sin[\(4 \[Pi]\)\/\[Lambda]\ t]\ + \ 1.68\ Cos[\(4 \[Pi]\)\/\[Lambda]\ t]\ + \ \[IndentingNewLine]0.1\ \ Sin[\(6 \[Pi]\)\/\[Lambda]\ t]\ - \ 0.5\ Cos[\(6 \[Pi]\)\/\[Lambda]\ t]\ , \ {t, \ 0, \ 5\ \[Lambda]}, \ PlotRange\ \[Rule] \ {\(-7\), \ 7}];\)\)], "Input"] }, Closed]] }, Closed]], Cell[CellGroupData[{ Cell["Sounds", "Section"], Cell[CellGroupData[{ Cell["The fundamental", "Subsection"], Cell[BoxData[ \(\(Play[ 3\ Sin[\(2 \[Pi]\)\/\[Lambda]\ t]\ + \ 4\ Cos[\(2 \[Pi]\)\/\[Lambda]\ t]\ \ , \ {t, \ 0, \ 1}, \ PlayRange\ \[Rule] \ {\(-7\), \ 7}];\)\)], "Input"] }, Closed]], Cell[CellGroupData[{ Cell["Fundamental plus harmonics", "Subsection"], Cell[CellGroupData[{ Cell[BoxData[ \(\(Play[ 3\ Sin[\(2 \[Pi]\)\/\[Lambda]\ t]\ + \ 4\ Cos[\(2 \[Pi]\)\/\[Lambda]\ t]\ \ , \ {t, \ 0, \ 1}, \ PlayRange\ \[Rule] \ {\(-7\), \ 7}];\)\)], "Input"], Cell[BoxData[ \(\(Play[ 3\ Sin[\(2 \[Pi]\)\/\[Lambda]\ t]\ + \ 4\ Cos[\(2 \[Pi]\)\/\[Lambda]\ t]\ \ + \ \ \ \[IndentingNewLine]\(-0.75\)\ Sin[\(4 \[Pi]\)\/\[Lambda]\ t]\ + \ 1.68\ Cos[\(4 \[Pi]\)\/\[Lambda]\ t]\ \ , \ {t, \ 0, \ 1}, \ PlayRange\ \[Rule] \ {\(-7\), \ 7}];\)\)], "Input"], Cell[BoxData[ \(\(Play[ 3\ Sin[\(2 \[Pi]\)\/\[Lambda]\ t]\ + \ 4\ Cos[\(2 \[Pi]\)\/\[Lambda]\ t]\ \ + \ \ \ \[IndentingNewLine]\(-0.75\)\ Sin[\(4 \[Pi]\)\/\[Lambda]\ t]\ + \ 1.68\ Cos[\(4 \[Pi]\)\/\[Lambda]\ t]\ + \ \[IndentingNewLine]0.1\ \ Sin[\(6 \[Pi]\)\/\[Lambda]\ t]\ - \ 0.5\ Cos[\(6 \[Pi]\)\/\[Lambda]\ t]\ , \ {t, \ 0, \ 1}, \ PlayRange\ \[Rule] \ {\(-7\), \ 7}];\)\)], "Input"] }, Open ]] }, Closed]] }, Closed]], Cell[BoxData[ StyleBox[ ButtonBox[ RowBox[{" ", StyleBox[\(\(Main\)\(\ \)\(notebook\)\(\ \ \ \ \ \)\), FontVariations->{"Underline"->False}]}], ButtonData:>{ FrontEnd`FileName[ { Directory[ ]}, "NERCOMPISSIG.nb", CharacterEncoding -> "WindowsANSI"], None}, ButtonStyle->"Hyperlink", ButtonMargins->10, ButtonNote->"Open main notebook"], FontFamily->"Helvetica"]], "Subsubsection", TextAlignment->Center, TextJustification->0], Cell[TextData[{ "Copyright \[Copyright] 2000 by ", ButtonBox["Murray Eisenberg", ButtonData:>{ URL[ "mailto://murray@math.umass.edu"], None}, ButtonStyle->"Hyperlink"], ". All rights reserved." }], "Copyright", TextAlignment->Center, TextJustification->0] }, FrontEndVersion->"4.0 for Microsoft Windows", ScreenRectangle->{{0, 1024}, {0, 723}}, ScreenStyleEnvironment->"Presentation", WindowToolbars->{}, CellGrouping->Manual, WindowSize->{843, 634}, WindowMargins->{{Automatic, 58}, {Automatic, 31}}, StyleDefinitions -> "TalkStyle.nb" ] (*********************************************************************** Cached data follows. If you edit this Notebook file directly, not using Mathematica, you must remove the line containing CacheID at the top of the file. The cache data will then be recreated when you save this file from within Mathematica. ***********************************************************************) (*CellTagsOutline CellTagsIndex->{} *) (*CellTagsIndex CellTagsIndex->{} *) (*NotebookFileOutline Notebook[{ Cell[1717, 49, 257, 10, 88, "Subsubtitle"], Cell[1977, 61, 77, 0, 57, "Subtitle"], Cell[CellGroupData[{ Cell[2079, 65, 27, 0, 78, "Section"], Cell[2109, 67, 590, 20, 110, "Text"], Cell[2702, 89, 60, 1, 72, "Input"], Cell[2765, 92, 212, 6, 78, "Text"] }, Closed]], Cell[CellGroupData[{ Cell[3014, 103, 25, 0, 50, "Section"], Cell[CellGroupData[{ Cell[3064, 107, 37, 0, 66, "Subsection"], Cell[3104, 109, 223, 4, 72, "Input"] }, Closed]], Cell[CellGroupData[{ Cell[3364, 118, 48, 0, 38, "Subsection"], Cell[3415, 120, 52, 0, 41, "Text"], Cell[3470, 122, 348, 6, 113, "Input"], Cell[3821, 130, 466, 8, 154, "Input"] }, Closed]] }, Closed]], Cell[CellGroupData[{ Cell[4336, 144, 25, 0, 50, "Section"], Cell[CellGroupData[{ Cell[4386, 148, 37, 0, 46, "Subsection"], Cell[4426, 150, 208, 4, 62, "Input"] }, Closed]], Cell[CellGroupData[{ Cell[4671, 159, 48, 0, 30, "Subsection"], Cell[CellGroupData[{ Cell[4744, 163, 208, 4, 62, "Input"], Cell[4955, 169, 337, 6, 96, "Input"], Cell[5295, 177, 453, 8, 130, "Input"] }, Open ]] }, Closed]] }, Closed]], Cell[5787, 190, 547, 15, 53, "Subsubsection"], Cell[6337, 207, 279, 9, 73, "Copyright"] } ] *) (*********************************************************************** End of Mathematica Notebook file. ***********************************************************************)