# Represent sound for computation

For musicians and programmers exploring digital audio. Move between a continuous tone, samples and symbolic notes before choosing how to order records.

1. How can two different tones give the same digital samples?
   - [Demonstration 1: Sampling, Aliasing, and Frequency Response, Part 1](https://ocw.mit.edu/courses/res-6-008-digital-signal-processing-spring-2011/resources/demonstration-1-sampling-aliasing-and-frequency-response-part-1/)
   - [Demonstration 2: Sampling, Aliasing, and Frequency Response, Part 2](https://ocw.mit.edu/courses/res-6-008-digital-signal-processing-spring-2011/resources/demonstration-2-sampling-aliasing-and-frequency-response-part-2/)
   Mark equally spaced instants and draw two sinusoids passing through the same sample values. Change the spacing while keeping the original waves fixed. Predict whether the ambiguity survives.
2. What does a computer need to represent a melody?
   - [Class 1 Video: How Do Computers "Hear" Music?](https://ocw.mit.edu/courses/21m-383-computational-music-theory-and-analysis-spring-2023/resources/21m383-s23-lecture-1-feb-8-version3_mp4/)
   - [Class 2 Video: Representation of Notes, Pitches, and Durations](https://ocw.mit.edu/courses/21m-383-computational-music-theory-and-analysis-spring-2023/resources/21m383-s23-lecture-2-feb-10_mp4/)
   Encode a four-note phrase as pitches and durations. Perform it twice with different timbres and then transpose it. Identify which changes survive your encoding and which require a different representation.
3. Why does merge sort scale differently from insertion sort?
   - [Lecture 3: Insertion Sort, Merge Sort](https://ocw.mit.edu/courses/6-006-introduction-to-algorithms-fall-2011/resources/lecture-3-insertion-sort-merge-sort/)
   - [Lecture 4: Heaps and Heap Sort](https://ocw.mit.edu/courses/6-006-introduction-to-algorithms-fall-2011/resources/lecture-4-heaps-and-heap-sort/)
   Sort eight cards by merging pairs, then groups of four, then groups of eight. Record comparisons at each level. Predict how adding eight more cards changes the depth and the work per level.