Thursday, June 23, 2011

June 23

Today I finished reading the new version of 5.2, and took notes in order to better evaluate it. I will hopefully get started on the evaluation (which will take a while, since I will need to sift through my notes) today. Erica and I are planning on tweaking "Reboot" so that we can hopefully have a semi-performable version at the beginning of next week to present. There are actually a lot of projects going now, and it would be nice to present them to each other at a set time during the week.... maybe we could do that ourselves? Just a thought.

June 23rd Not off a Good Start...

My day started with playing with MATLAB in hope of finishing up Experimenting with Quantization Error in MATLAB. I feel the language used in those programming exercises instructions is very different from other parts of the text. I've been having a hard time understanding what exactly the exercise is asking me to do. For example, I don't really understand what the average magnitude error is and the process of normalization. Even when I was checking the solution, I still don't quite understand what is going on. The information given in 5.3.2 is very limited for an exercise like this.

To make sure I can finish my work at least before the end of today and leave tomorrow more flexible, I'll first read 5.3.4 the Mathematics of Dithering and Noise Shaping, and then pick up from where I stopped on Tuesday, beginning of section 2. Hopefully by the end of the day I'll finish all the assessments for Learning Supplements on Sakai.

Wednesday, June 22, 2011

Chapter 5 Digitalization: 5.3 and Review on 5.1 Part I

5.1.2.2 Sampling and Aliasing

Mathematically, this part is very confusing to me, but with the help of the Flash Tutorial, I can visualize the phenomenon of aliasing better, but not sampling.

On page 4, under Figure 5.3, it stated “Figure 5.3 shows eight samples being taken for each cycle of the sound wave”, and then it talks about the frequency of the sound wave and sampling rate. And the next paragraph gave an example on aliasing. But I feel the process of sampling and phenomenon of aliasing could be explained better. I’d like to emphasize on the SAMPLING. If we want 8 samples in one cycle, we chose a sampling rate that is 8 times as high as the frequency of sound wave, thus given frequency of 440Hz, we need sampling rate of 8*440Hz, which is 3520Hz. We do NOT need to mention that the samples are stored as binary numbers right now since binary numbers will not be talked about until quantization, and it might cause confusion here. The reconstruction of sound wave is a process of the DAC fitting a sine wave on the sampled points (I’m not 100% sure on this part, but it must be some kind of fitting through some numerical methods, say, starting from fitting the sine wave of 20Hz, the lowest frequency human ears can hear, and increasing the frequency until all the samples can be fitted), which means, we need at least 2 samples per cycle to reconstruct the original sound wave; that is a sampling rate of at least twice as high as the frequency of the original sound wave; this is also the core meaning of the Nyquist Theorem. THEN we can say that IF the sampling rate is not high enough, aliasing will happen, followed by an example of aliasing.

In the figures, I hope the fact that the samples are measured at “equally-spaced moments in time“ will be emphasized. Figure 5.3 is definitely not only a graph of a 440Hz sound wave, it also shows the samples measured at every 1/(440*8) seconds.

At the end of 5.1.2.2 we can say refer to 5.3.1 for the algorithms for aliasing.

5.3.1 Mathematics and Algorithms for Aliasing

I have to admit that I see the algorithms, but the examples given are just NOT helpful since they only demonstrate how WE draw the graphs, but not how the graphs are actually generated in the process of sampling. The algorithm is NOT what causes the problem. It is the omission of necessary sampled points that lead to the error.

Figure 5.28 should be called 1760Hz wave aliased to a 240Hz wave due to being sampled at 1000Hz, because obviously there are two waves in it, and the 1760Hz one is not as important as the 240Hz one, plus there is a typo that it’s Hz not kHz.

5.1.2.3 Bit Depth and Quantization Error

At the beginning it says the bit depth determines the precision of sample, but HOW? It would be nice to mention that bit depth is actually the memory it takes to store this sample. It is like image resolution; the higher the bit depth is, the less quantization error is, the more accurate the sound is after ADC, meanwhile the more memory it takes to save this sample, giving the readers a general idea of what bit depth is. Also I believe most readers need to recognize the tradeoff between quality and audio file size, but not how bit depth actually works.

The example given on quantized wave explains itself pretty well if standing on itself, away from sampling; and the figures, as well as Max Demo: Bit Depth, also go along with the example (quantization by rounding down). The Flash Tutorial: Quantization, which is made from Audition, however, gives an example of rounding to the nearest integers (for a 4-bit one, it has 15 levels, 7 positive, 0, and 7 negative). I am not sure whether we should keep it consistent through all our examples, or at least mention it somewhere that the example given in the Flash Tutorial rounds to the nearest integers.

The description for Figure 5.7 is just WRONG! I do not see why we subtract the stair-step wave form the true sine wave, since we DO NOT hear the original sound wave, and the unwanted part should be the part which the stair-step wave has but the original wave does not; instead, we need to subtract the sine wave FROM the stair-step Wave, and we will get negative amplitude, which doesn’t matter as long as it is right. OR we can just say the green wave is the difference of those two waves, making it okay to be a positive amplitude.

(Part II coming up...)

June 22- REBOOT!

Today has been awesome.
We finished up most of the Chapter 5 things we need to finish. I need to look over the newest version of section 2 in order to complete my final assessment of the chapter, but other than that I've finished all the other assessments. I have also nearly completed my choral setting of "Day", which I will hopefully complete and perform in one manner or another. The team and I decided, after joking about our skills with reason and sonar, that we would write a pop song. Our song, entitled "REBOOT", is a neo classic dance groove that deals with the ever-present love/hate conflict between man and computer. The whole team contributed to the writing of the lyrics, I came up with the melody and notated it in finale, Erica has started the initial harmony analysis, and we've started a few loops in sonar to use as accompaniment.
Fun as this is, we realized when we started the song that this could be an EXCELLENT form of the final project for this class. If students were asked to create a simple song, create an accompaniment track in sonar or reason, then required to create a music video and mix it down in audition, it would be an all-encompassing project. The hope is that the team and I can get together to make a music video and use all of our knowledge to create a fun final result.

The Research Team presents "Reboot!"

Today we began work on a group song, titled "Reboot!" We came up with the lyrics this morning, and right now I'm working on a drum loop in Reason. We plan to rewire Reason into Sonar so we can combine our Reason tracks with recorded vocals (and possibly a killer saxophone solo via Beth!) After this, we will edit our track in Audition. Updates soon!

June 22nd

Yesterday I promised more comments but didn't follow through. I started to play with vocals on Sonar X1 and I tried harmonizing with myself and came up with a ditty that I liked. Today I worked on coming up with the lyrics for Reboot by the Research team aka the Digital Sound and Music team. I feel like we have some great melody ideas that are ready to be put to the lyrics. I also finished Chapter 5 and started on the evaluations on Sakai.

Feeling Challenged...June 22nd

I came in the lab and was about to start writing about my learning experience from yesterday. Then I just felt it is quite challenging to put my words together since I am not 100% confident that I have understood the material in this chapter. I am also kind of behind on blogging. Hope I can be more productive today. My goal today is to try out the exercises in section 3 while rereading section 1, and try to visualize the process of sampling, dithering and quantization better.