Ashish Arya Ludmila Botelho Fabiola Cañete Dhruvi Kapadia Özlem Salehi
"...might compose elaborate and scientific pieces of music of any degree of complexity or extent"
Proposition: Find the minimum energy in a landscape
$$ H(t) = \left(1-\frac{t}{T}\right)H_0+ \frac{t}{T}H_P $$
$$ H_P = - \sum_{i > j} J_{ij}s_i s_j - \sum _i h_is_i, $$
$$ H(t) = \left(1-\frac{t}{T}\right)H_0+ \frac{t}{T}H_P $$
- Can be encoded in Binary Values
\( s_i \in \{-1,+1\} \)
\( s_i \leftrightarrow x_i = \frac{1-s_i}{2} \)
\( x_i \in\{0,1\} \)
Minimizing quadratic functions
$$ y=x^TQx $$
Penalty Method
$$ \text{min } y=f(x) $$
$$ \text{subject to: } x_1 +x_2 + x_3= 1 $$
$$\text{min }y=f(x)+P\left(\sum_{i=1}^3 x_i -1\right)^2 $$
Binary variables
Constants
4
1
rest
measure
Durations
2
Pitches
C
D
A
E
G
F
B
C
$$\sum_{j \in P} x_{i,j} = 1$$
How to define the binary variables?
$$\left ( 1- \sum_{j \in P} x_{i,j} \right )^2$$
$$x_{i,C} + x_{i+1,D} \leq 1$$
$$x_{i,C} + x_{i+1,C} + x_{i+2,C} \leq 2 $$
$$P=\{p_1,p_2,\dots,p_k \}$$
\(x_{i,j}\) for \(i \in [n]\) and \(j \in P\)
$$P=\{\mathtt{C}, \mathtt{D}, \mathtt{E}, \mathtt{G}\}$$
Text
Optimization
$$ -\sum_{ \substack{i\in [n-1] \\ j,j' \in P}} W_{j,j'} x_{i,j} x_{i+1,j'} $$
weights
Example: Ode to Joy excerpt
$$W_{F\#4,E4} = 2, $$
$$W_{F\#4,F\#4} = 2,$$
$$W_{F\#4,G4} = 1$$
$$\sum_{\substack{i \in [n] \\ j \in D}} d(j)y_{i,j} = L$$
$$ \sum_{j \in D} y_{i,j} = 1$$
$$D = \{1,2,3,4\}$$
$$j \in D$$
G
E
G
B
Melody Harmonized melody
$$\sum_{j \in P} x_{i,j} = 3$$
$$(1-x_{i,p_{i_j}})$$
G
E
D
G
B
B
G