Professional Documents
Culture Documents
• A = ∅ is a finite set of attributes, i.e. functions a : To construct action rules, first we need to extract clas-
U → Va , where Va is called the domain of a ∈ A. sification rules describing relationships between attributes
from A1 and the attribute d. By Dom(r) we mean all
We often write (a, v) instead of v, assuming that v ∈ Va . attributes listed in the IF part of a classification rule r,
Information systems can be seen as decision tables. In any the antecedent part of the classification rule. For exam-
decision table together with the set of attributes a partition ple, if r = [(a1 , 3) ∧ (a2 , 4) → (d, 3)] is a rule, then
Dom(r) = {a1 , a2 }. By d(r) we denote the decision value we only have 5 distinct notes.
of rule r. In our example d(r) = 3. If r1 , r2 are rules and
B ⊆ A1 ∪ A2 is a set of attributes, then r1 /B = r2 /B Iteration Root i ii iii iv
generated. The remaining rows in Table 2 are computed in X15 1 2 4 3 Pelog Western neutral neutral s
X16 2 2 3 2 Pentatonic Majeur Western neutral happy m
a similar way.
X17 2 3 2 3 Pentatonic 2 Western neutral neutral m
Basic score classification of music is represented as
X18 3 2 3 2 Pentatonic 3 Western neutral neutral m
an information system S = (X, A, V ), where A = X19 2 3 2 2 Pentatonic 4 Western neutral neutral m
{J I , J II , J III , J IV , J V , Scale, Region, Genre, Emotion, X20 2 2 3 3 Pentatonic Dominant Western neutral neutral m
sma} (see Table 3). System S is built by a music expert and X21 3 2 2 3 Pentatonic Minor Western neutral sonorous m
used by us to identify which jump sequence listed in Table X22 1 3 3 2 Altered Pentatonic Western neutral neutral m
2 is seen as the most probable representation of the melody X23 3 2 1 1 2 Blues Western Blues depressive m
presented by Figure 2. The values of attribute sma in Ta- X24 4 3 Major neutral neutral sonorous a
ble 3 listed as {a, s, m} should be read as arpeggio, mode, X25 3 4 Minor neutral neutral sonorous a
scale. Now, for each tuple in Table 2 we search for a sup- X26 4 3 4 Major 7th Major neutral neutral happy a
porting object in Table 3. It can be easily checked that ob- X27 4 3 3 Major 7th Minor neutral neutral not happy a
jects listed in {x1 , x3 , x8 , x9 , x14 , x16 , x17 , x18 , x19 , x21 } X28 3 4 4 Minor 7th Major neutral neutral happy a
are the only objects in Table 3 supporting minimum one of X29 3 4 3 Minor 7th Minor neutral neutral not happy a
X30 2 2 3 3 Major 9th neutral neutral happy a
tuples from Table 2. Because (A, G, A, F, D, G, C, C)
X31 2 1 4 3 Minor 9th neutral neutral not happy a
was the initial score sequence, then (A, G, C) are played
X32 2 2 1 2 3 Major 11th neutral neutral happy a
twice in the score and (F, D) only once. It means that A,
X33 2 1 2 2 3 Minor 11th neutral neutral not happy a
G, C are preferable roots. Now, because only the note C X34 4 4 Augmented neutral neutral happy a
is played twice one after the other, then C is chosen as the X35 3 3 3 Diminished neutral neutral not happy a
most probable root. It means, from Table 2, that [3, 2, 2, 3]
is the representative jump sequence for the initial score se-
Table 3. Basic Score Classification Database
quence which is represented in 2 instances; {x3 , x21 } both
being Pentatonic Minor (scale and mode respectively) Its
score is Pentatonic Minor, region is Western, the associated
J i+m (ji+m )] : min{ji , ji+1 , ji+m } = k}. For instance,
emotion is sonorous, and it was played in mode.
J [2,3] (2) is referring to objects which have 2 as the mini-
Instead of using Table 3 in our investigations, we can use mal value of attributes J 2 and J 3 in our S = (X, A, V ).
Table 4 which represents knowledge extracted from Table 3. Statement card(J [1,3] (2)) = 1 is extracting minimal de-
Table 4 is built from Table 3 by a strategy which resembles scriptions, of length 3, based on J 1 , J 2 , J 3 , and retrieving
LERS (see [5]). Now, we present a general schema of this only single objects from S under additional assumption that
strategy, called LM C (Learning Music Concepts). the minimal attribute value allowed for any of the attributes
Let us assume that S = (X, A, V ), where A = J 1 , J 2 , J 3 is equal to 2. In our case, card(J [1,3] (2)) = 1 is
{J I , J II , J III , J IV , J V , Scale, Region, Genre, Emotion, retrieving descriptions: [2, 2, 2], [3, 2, 3] which identify ob-
sma} (see Table 3), is an information system represent- jects x6 , x18 , correspondingly. Algorithm LM C applied to
ing basic score classification of music. We also as- Table 3 is generating Table 4. For instance, the third row in
sume that attributes Ad = {Scale, Region, Genre, Emo- Table 4 represents the rule:
tion, sma} jointly represent the decision attribute and
our goal is to learn definitions of its values in terms of J3I · J3II −→ Arpeggio ∧ (Scale, Diminished) ∧
AC = {J I , J II , J III , J IV , J V }. For simplicity reason (Region, neutral) ∧ (Genre, neutral) ∧
we write J [i,m] (k) instead of {[J i (ji ) ∩ J i+1 (ji+1 ) ∩ ... ∩ (Emotion, not happy)
Algorithm LMC(X, AC , Ad )
m:=0;
Rule Scale Region Genre Emotion sma
while m ≤ 4 do
(JIV 4 )∗ = {X10 } Iwato Iwato ethnic neutral s
begin
(JI 1 ·JII 3 )∗ = {X22 } Altered Pentatonic Western neutral neutral m
i:=1;
(JI 3 ·JII 3 )∗ = {X35 } Diminished neutral neutral not happy a
while (i + m) ≤ 5 do
(JI 4 ·JII 4 )∗ = {X34 } Augmented neutral neutral happy a
(JI 1 ·JIII 1 )∗ = {X10 } Iwato Iwato ethnic neutral s
begin
(JI 1 ·JIII 3 )∗ = {X22 } Altered Pentatonic Western neutral neutral m
k := 1;
(JI 2 ·JIII 1 )∗ = {X32 } Major 11th neutral neutral happy a while k ≤ 4 do
(JI 3 ·JIII 4 )∗ = {X28 } Minor 7th Major neutral neutral happy a begin
(JI 4 ·JIII 3 )∗ = {X27 } Major 7th Minor neutral neutral not happy a if card(J [i,i+m] (k)) = 1 then
(JI 4 ·JIII 4 )∗ = {X26 } Major 7th Major neutral neutral happy a begin
(JI 1 ·JIV 2 )∗ = {X22 } Altered Pentatonic Western neutral neutral m mark(J [i,i+m] (k)) and store
(JI 1 ·JIV 3 )∗ = {X15 } Pelog Western neutral neutral s [J [i,i+m] (k), d(x)], where x ∈ J [i,i+m] (k),
(JI 3 ·JIV 2 )∗ = {X18 } Pentatonic 3 Western neutral neutral m as new rows in Table 4;
(JII 1 ·JIII 2 )∗ = {X33 } Minor 11th neutral neutral not happy a end
(JII 1 ·JIII 3 )∗ = {X5 } Augmented Western Jazz feel-good s k := k + 1
(JII 3 ·JIII 4 )∗ = {X26 } Major 7th Major neutral neutral happy a
end
(JII 4 ·JIII 1 )∗ = {X10 } Iwato Iwato ethnic neutral s
i := i + 1
(JII 4 ·JIII 3 )∗ = {X29 } Minor 7th Minor neutral neutral not happy a
end
(JII 4 ·JIII 4 )∗ = {X28 } Minor 7th Major neutral neutral happy a
(JII 1 ·JIV 2 )∗ = {X33 } Minor 11th neutral neutral not happy a
m := m + 1
(JII 1 ·JIV 3 )∗ = {X31 } Minor 9th neutral neutral not happy a
end
(JI 2 ∗
(JII 3 ·JIV 2 )∗ ={X19 } Pentatonic 4 Western neutral neutral m
(JI 2 ∗ (JII 2 ·JIII 2 )∗ ={X6 } Whole Tone Western Jazz push-pull s
5. Action Rules to Song Manipulate Emotions
(JI 2 ∗
(JII 1 ·JIV 1 )∗ ={X12 } Hirajoshi Hirajoshi ethnic neutral s
(JI 3 ∗ (JIII 3 ·JIV 3 )∗ ={X18 } Pentatonic 3 Western neutral neutral m
(JI 3 ∗
(JII 2 ·JIV 2 )∗ ={X18 } Pentatonic 3 Western neutral neutral m In this section we give an example showing how action
(JI 3 ∗ (JII 2 ·JIII 3 )∗ ={X18 } Pentatonic 3 Western neutral neutral m rules can be used to manipulate the scalar components of a
(JII 1 ∗
(JI 2 ·JIV 3 )∗ ={X31 } Minor 9th neutral neutral not happy a retrieved segment of music or song to change its emotional
(JII 1 ∗ (JI 1 ·JIV 1 )∗ ={X12 } Hirajoshi Hirajoshi ethnic neutral s content and tone. To explain our approach, we expound
(JII 2 ∗
(JI 3 ·JIII 3 )∗ ={X18 } Pentatonic 3 Western neutral neutral m upon the 1st example and continue using the Pentatonic Mi-
(JII 2 ∗ (JI 1 ·JIV 1 )∗ ={X7 } Balinese Balinese ethnic neutral s
nor Scale played in the key of C as illustrated in Figure 4.
(JII 3 ∗ (JIII 2 ·JIV 2 )∗ ={X19 } Pentatonic 4 Western neutral neutral m
(JII 3 ∗
(JI 2 ·JIV 2 )∗ ={X19 } Pentatonic 4 Western neutral neutral m
(JIII 1 ∗
(JII 2 ·JIV 2 )∗ ={X32 } Major 11th neutral neutral happy a
(JIII 2 ∗
(JII 2 ·JIV 2 )∗ ={X6 } Whole Tone Western Jazz push-pull s
(JIII 3 ∗
(JII 3 ·JIV 2 )∗ ={X22 } Altered Pentatonic Western neutral neutral m
(JIII 3 ∗
(JI 3 ·JIV 1 )∗ ={X22 } Altered Pentatonic Western neutral neutral m
(JIII 4 ∗ (JII 2 ·JIV 3 )∗ ={X15 } Pelog Western neutral neutral s
(JIII 4 ∗
(JII 2 ·JIV 1 )∗ ={X7 } Balinese Balinese ethnic neutral s
III ∗
(J 4 (JII 1 ·JIV 1 )∗ ={X12 } Hirajoshi Hirajoshi ethnic neutral s
Figure 5. Example: Pentatonic Minor Scale
(JIII 4 ∗
(JI 2 ·JIV 1 )∗ ={X12 } Hirajoshi Hirajoshi ethnic neutral s
III ∗ I IV ∗
played in the key of C
(J 4 (J 1 ·J 1) ={X7 } Balinese Balinese ethnic neutral s
(JIV 1 ∗
(JII 2 ·JIII 4 )∗ ={X7 } Balinese Balinese ethnic neutral s
(JIV 1 ∗ (JII 1 ·JIII 4 )∗ ={X12 } Hirajoshi Hirajoshi ethnic neutral s
(JIV 1 ∗
(JI 3 ·JIII 1 )∗ ={X7 } Balinese Balinese ethnic neutral s
IV ∗
(J 1 (JI 2 ·JII 1 )∗ ={X12 } Hirajoshi Hirajoshi ethnic neutral s
(JIV 1 ∗
(JI 1 ·JII 2 )∗ ={X7 } Balinese Balinese ethnic neutral s
IV ∗
(J 2 (JII 3 ·JIII 2 )∗ ={X19 } Pentatonic 4 Western neutral neutral m
(JIV 2 ∗
(JII 2 ·JIII 1 )∗ ={X32 } Major 11th neutral neutral happy a
(JIV 3 ∗ (JI 2 ·JIII 4 )∗ ={X31 } Minor 9th neutral neutral not happy a