You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/projects/music_maker.md
+16-15Lines changed: 16 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,31 +2,30 @@
2
2
3
3
## Problem Statement
4
4
5
-
Recordings of audio predate the invention of the modern computer.
6
-
7
-
The first of recording was done [in 1860 in Paris by Édouard-Léon Scott de Martinville](https://www.firstsounds.org/sounds/scott.php). He would later have his glory stolen by Thomas Edison; a common occurrence for the time.
8
-
9
-
But just as black and white movies don't mean that the past lacked color, people
10
-
have been making sounds and composing those sounds into music [probably the entire history of our species](https://www.youtube.com/watch?v=KElPnD-dbkk).
11
-
12
-
Computers are generally more convenient for sharing music and recordings than other
13
-
methods we have tried in the past, such as paper and stone tablets, if sometimes
14
-
of lower quality than something like a [vinyl record](https://victrola.com/blogs/articles/does-music-really-sound-better-on-vinyl)[^debate].
15
-
16
5
Sounds are formed by waves propagating through the air
17
6
at various frequencies. When sound enters your ear [it vibrates your eardrum](https://www.nidcd.nih.gov/health/how-do-we-hear) which in turn vibrates other parts of your ear ultimately culminating
18
7
in your brain perceiving a sound. The frequencies
19
8
of sound determine in what way your eardrum will vibrate and therefore are what determine how you
20
9
will percieve any given sound.
21
10
11
+
If you want to recreate a sound you need to in some way record what that sound was.
12
+
The oldest example we have of someone doing this dates back [to a thousands of years old stone tablet.](https://www.youtube.com/watch?v=KElPnD-dbkk) The idea being that if someone could read that tablet
13
+
and knew what the symbols on it meant, they could use an instrument of some kind to reproduce the song.
14
+
15
+
While stone tablets were awesome and paper acceptable for the task, writing down what someone else
16
+
should play only lets you record music. Writing down words similarly doesn't help record
17
+
the sound of someone's voice.[^lincoln]
18
+
19
+
The first of recording of someone's voice was done [in 1860 in Paris by Édouard-Léon Scott de Martinville](https://www.firstsounds.org/sounds/scott.php). He would later have his glory stolen by Thomas Edison; a common occurrence for the time.
20
+
21
+
Nowadays computers are generally more convenient for sharing music and recordings than other
22
+
methods, if sometimes of lower quality than something like a [vinyl record](https://victrola.com/blogs/articles/does-music-really-sound-better-on-vinyl)[^debate].
23
+
22
24
Storing audio on a computer requires translating audio information into a form
23
25
that a computer can store. We call this translation step "digitization."
24
26
It requires in some manner storing what frequencies of sounds
25
27
and in what proportion need to be produced to "play back" a sound.
26
28
27
-
One of the file formats used to store such audio is a "[WAV](https://en.wikipedia.org/wiki/WAV)"
28
-
file.
29
-
30
29
31
30
## Your Goal
32
31
@@ -35,7 +34,7 @@ will sound like an instrumental version of [Three Blind Mice](https://en.wikiped
35
34
36
35
As a hint: `byte` and `short` can be helpful when representing "binary formats" like WAV.
37
36
Reading comprehension as well as reading stamina will also be useful for figuring out
38
-
how a WAV file works.
37
+
how a WAV file works. You will need to learn a lot about audio.
39
38
40
39
## Future Goals
41
40
@@ -48,6 +47,8 @@ in turn.
48
47
be "exported" as a WAV file.
49
48
* Support a file format other than WAV as the output.
50
49
50
+
[^lincoln]: Abraham Lincoln had a really high pitched trill voice apparently. It is a real bummer we don't have recordings.
51
+
51
52
[^debate]: This is a subject of much debate.
52
53
53
54
[^haloreach]: When Halo Reach came out there was a lot of internet fighting about the "reticle bloom"
0 commit comments