
118
Human–ComPuter InteraCtIon
7.3 Example of MVC Implementation 2: No Sheets
As a second example, we will illustrate parts of the implementation
code for the No Sheets application introduced in Chapter 4, as shown
in Figure7.5. e core of the model is music information, a list-based
data structure that contains the chord information for a piece of music
that is read from a user-selected file. Aside from the music informa-
tion itself, there may be other model variables such as the music file
name, tempo value, etc. us, the model information is updated by
and read from the view/controller objects.
e view/controller is composed of several Activity ...