|
@@ -4,7 +4,6 @@
|
4
|
4
|
![main2.png](images/main2.png)
|
5
|
5
|
![main3.png](images/main3.png)
|
6
|
6
|
|
7
|
|
-[Verano 2016 - Ive - Coralys]
|
8
|
7
|
|
9
|
8
|
Arrays help us store and work with groups of data of the same type. The data is stored in consecutive memory spaces, which can be accessed by using the name of the array with indexes or subscripts that indicate the position where the data is stored. Repetition structures provide us a simple way of accessing the data within an array. In this laboratory experience, you will be exposed to simple sound processing algorithms in order to practice the use of loops to manipulate arrays.
|
10
|
9
|
|
|
@@ -46,7 +45,7 @@ Microphones turn sound waves into electrical signals. These electrical signals c
|
46
|
45
|
|
47
|
46
|
![image1.jpg](images/image1.jpg)
|
48
|
47
|
|
49
|
|
-**Figure 1**: Illustration of the steps involved in sound digitalization. The pressure wave is converted to a voltage signal by the microphone. The voltage signal is sampled and digitized by the analog to digital converter to obtain a number value for each sample. The stream of numbers constitutes the *digitized* sound. Taken from [3].
|
|
48
|
+**Figure 1**: Illustration of the steps involved in sound digitalization. The pressure wave is converted to a voltage signal by the microphone. The voltage signal is sampled and digitized by the analog to digital converter to obtain a number value for each sample. The stream of numbers constitutes the *digitized* sound. [3]
|
50
|
49
|
|
51
|
50
|
---
|
52
|
51
|
|
|
@@ -95,7 +94,7 @@ The `HalfVolume` function in the following example illustrates how to read and m
|
95
|
94
|
|
96
|
95
|
|
97
|
96
|
```cpp
|
98
|
|
-// Given frames (an array of AudioBuffers) y N (its size)
|
|
97
|
+// Given frames (an array of AudioBuffers) and N (its size)
|
99
|
98
|
// divide each sample by two (both the left and right channels).
|
100
|
99
|
|
101
|
100
|
void HalfVolume(AudioBuffer frames[], int N){
|