|
@@ -1,15 +1,17 @@
|
1
|
|
-#Arrays - Sound Processing
|
|
1
|
+# Arrays - Sound Processing
|
2
|
2
|
|
3
|
3
|
![main1.png](images/main1.png)
|
4
|
4
|
![main2.png](images/main2.png)
|
5
|
5
|
![main3.png](images/main3.png)
|
6
|
6
|
|
|
7
|
+[Verano 2016 - Ive]
|
|
8
|
+
|
7
|
9
|
Arrays help us to 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 and 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 using nested loops to process bi-dimensional arrays and implement the functionality of a green-screen.
|
8
|
10
|
|
9
|
11
|
This laboratory experience is an adaptation of the nifty assignment presented by Daniel Zingaro in [1].
|
10
|
12
|
|
11
|
13
|
|
12
|
|
-##Objectives
|
|
14
|
+## Objectives
|
13
|
15
|
|
14
|
16
|
1. Practice the use of loops to manipulate arrays.
|
15
|
17
|
|
|
@@ -18,7 +20,7 @@ This laboratory experience is an adaptation of the nifty assignment presented by
|
18
|
20
|
3. Practice modular programming.
|
19
|
21
|
|
20
|
22
|
|
21
|
|
-##Pre-Lab:
|
|
23
|
+## Pre-Lab:
|
22
|
24
|
|
23
|
25
|
Before coming to the laboratory you should have:
|
24
|
26
|
|
|
@@ -34,7 +36,7 @@ Before coming to the laboratory you should have:
|
34
|
36
|
|
35
|
37
|
---
|
36
|
38
|
|
37
|
|
-##Digital Sound Processing
|
|
39
|
+## Digital Sound Processing
|
38
|
40
|
|
39
|
41
|
|
40
|
42
|
Sounds are vibrations that propagate through elastic media such as air, water, and solids. The sound waves are generated by a sound source, such as the vibrating diaphragm of a stereo speaker [2]. Sound waves consist of areas of high and low pressure called compressions and rarefractions, respectively.
|
|
@@ -108,13 +110,13 @@ void HalfVolume(AudioBuffer frames[], int N){
|
108
|
110
|
|
109
|
111
|
---
|
110
|
112
|
|
111
|
|
-!INCLUDE "../../eip-diagnostic/sound-processing/en/diag-sound-processing-01.html"
|
|
113
|
+!INCLUDE "../../eip-diagnostic/sound-processing/en/diag-sound-processing-01.html"
|
112
|
114
|
<br>
|
113
|
115
|
|
114
|
|
-!INCLUDE "../../eip-diagnostic/sound-processing/en/diag-sound-processing-02.html"
|
|
116
|
+!INCLUDE "../../eip-diagnostic/sound-processing/en/diag-sound-processing-02.html"
|
115
|
117
|
<br>
|
116
|
118
|
|
117
|
|
-!INCLUDE "../../eip-diagnostic/sound-processing/en/diag-sound-processing-03.html"
|
|
119
|
+!INCLUDE "../../eip-diagnostic/sound-processing/en/diag-sound-processing-03.html"
|
118
|
120
|
<br>
|
119
|
121
|
|
120
|
122
|
---
|
|
@@ -123,18 +125,21 @@ void HalfVolume(AudioBuffer frames[], int N){
|
123
|
125
|
|
124
|
126
|
|
125
|
127
|
|
126
|
|
-##Laboratory Session:
|
|
128
|
+## Laboratory Session:
|
127
|
129
|
|
128
|
130
|
The `SoundProcessing` project contains the skeleton of an application to process stereo sound. The application you will complete will allow the user to apply four different algorithms to process sound. The sub-directory called `WaveSamples` contains sound files for you to test your implementation.
|
129
|
131
|
|
130
|
|
-###Exercise 1: Remove vocals on a recording
|
|
132
|
+### Exercise 1 - Remove vocals on a recording
|
131
|
133
|
|
132
|
134
|
A cheap (but many times ineffective) way to remove the vocals from a recording is by taking advantage of the fact that voice is commonly recorded in both left and right channels, while the rest of the instruments may not. If this is the case, then we can remove vocals from a recording by subtracting the left and right channels.
|
133
|
135
|
|
134
|
136
|
|
135
|
|
-####Instructions
|
|
137
|
+#### Instructions:
|
|
138
|
+
|
|
139
|
+1. Load the project `SoundProcessing` into `QtCreator`. There are two ways to do this:
|
136
|
140
|
|
137
|
|
-1. Load the project `SoundProcessing` onto `QtCreator` by double clicking on the `Sounds.pro` file in the `Documents/eip/Arrays-SoundProcessing` directory on your computer. You may also go to `http://bitbucket.org/eip-uprrp/arrays-soundprocessing` to download the `Arrays-SoundProcessing` folder to your computer.
|
|
141
|
+ * Using the virtual machine: Double click the file `SoundProcessing.pro` located in the folder `/home/eip/labs/arrays-soundprocessing` of your virtual machine.
|
|
142
|
+ * Downloading the project’s folder from `Bitbucket`: Use a terminal and write the command `git clone http:/bitbucket.org/eip-uprrp/arrays-soundprocessing` to download the folder `arrays-soundprocessing` from `Bitbucket`. Double click the file `SoundProcessing.pro` located in the folder that you downloaded to your computer.
|
138
|
143
|
|
139
|
144
|
2. Compile and run the program. You will see a graphical interface to process sound and recordings.
|
140
|
145
|
|