Escolar Documentos
Profissional Documentos
Cultura Documentos
Algo-rhythm
Aashish Jain1, a)
The Harker School
(Dated: 31 October 2016)
Algo-rhythm is a recurrent neural network written using the DL4J framework aimed at creating new jazz
improvised melodies.
Algo-rhythm started as a personal project to see
how well I could mimic jazz improvisation. Being
a jazz guitarist, I recognized how difficult improvisation actually was, but I could never pin point
what made the task so hard.
After reading about artificial intelligence in a
science fiction novel, I tried creating my own,
simple artificial intelligence systems. Finally, I
decided to try to adapt a character modelling,
recurrent neural network example to fit music Algo-rhthym was born.
I.
A.
The hidden state at time t1 is a function of the current input, modified by a weight matrix, then added to
the previous hidden state, which is multiplied by its own
weight matrix. The weight matrices are determined by a
method called back propagation through time (BPTT).
BPTT is essentially the same back propagation of a
feed-forward recurrent neural network, but modified so
that it takes into account the previous time steps. For
example, if a feedforward network is the simple function
f (g(x)), then the BPTT method would just include a
time function as well. Then, the derivatives (for the error
calculation) is calculated through the chain-rule.
Truncated BPTT (TBPTT) is a variation on BPTT
which only flows a certain distance backwards through
time. This is useful for large sequences, and is used in the
a) Electronic
mail: 17AashishJ@students.harker.org
src/java/DeepLearning/GravesLSTMNoteCreation
file. However, because the sequence of notes is not very
large, TBPTT is not very useful for algo-rhythm.
II.
MIDI COMPOSITION
III.
AUDIO FEATURES
Aashish Jain
window chunk after performing the fast-fourier transform on this chunk. This calculation is written in:
src/main/java/timbre/Frequency.java.
Spectral Centroid - The spectral centroid is a calculation that indicates where the center of mass of a wave
is. It is calculated via the following:
IV.
CONCLUSION