[Paper Review] Text-based LSTM networks for Automatic Music Composition
This paper proposes text-based LSTM networks for automatic music composition, using character- and word-level RNNs to generate jazz chord progressions and rock drum tracks from textual representations of music. Word-RNNs successfully generated musically coherent sequences, while char-RNNs only succeeded with chord progressions, demonstrating the effectiveness of word-level modeling for complex rhythmic and harmonic structures with controllable diversity via a temperature parameter.
In this paper, we introduce new methods and discuss results of text-based LSTM (Long Short-Term Memory) networks for automatic music composition. The proposed network is designed to learn relationships within text documents that represent chord progressions and drum tracks in two case studies. In the experiments, word-RNNs (Recurrent Neural Networks) show good results for both cases, while character-based RNNs (char-RNNs) only succeed to learn chord progressions. The proposed system can be used for fully automatic composition or as semi-automatic systems that help humans to compose music by controlling a diversity parameter of the model.
Motivation & Objective
- To explore the feasibility of using text-based LSTM networks for automatic music composition without symbolic or numeric musical encoding.
- To compare character-based and word-based RNNs in learning musical sequences from raw text representations of chords and drum patterns.
- To evaluate whether LSTMs can model long-term dependencies in music sequences using only textual input.
- To develop a system that supports both fully automatic and semi-automatic music composition with adjustable output diversity.
Proposed method
- The model uses Long Short-Term Memory (LSTM) networks to process sequences of characters or words representing musical events in text form.
- For chord progressions, chords are represented as strings like 'C:maj' or 'G:7', and the network predicts the next token in the sequence.
- For drum tracks, a binary encoding of drum components (kick, snare, hi-hats, etc.) is used, with each 16th note represented as a 9-bit vector, and bars marked with '_BAR_' tokens.
- Word-level RNNs are used for both tasks, with a diversity control parameter α that adjusts the softmax temperature during sampling.
- The network is trained using back-propagation through time on large datasets of MIDI files converted into text sequences.
- The system generates music by autoregressively sampling from the learned probability distribution over the next token, conditioned on the previous sequence.
Experimental results
Research questions
- RQ1Can text-based LSTM networks effectively learn and generate musically coherent chord progressions from raw text representations of chords?
- RQ2Can character-level RNNs successfully model complex rhythmic patterns in drum tracks when encoding is minimal and binary?
- RQ3How does word-level modeling compare to character-level modeling in terms of musical coherence and structural learning for different music types?
- RQ4To what extent can the diversity of generated music be controlled via a temperature parameter in the sampling process?
- RQ5Can the model learn global structural patterns such as bar boundaries and rhythmic consistency from text-only input?
Key findings
- Word-level RNNs successfully generated musically coherent jazz chord progressions and rock drum tracks with recognizable harmonic and rhythmic structures.
- Character-level RNNs only succeeded in generating chord progressions, failing to learn the structural patterns in drum tracks, likely due to the extreme sparsity of binary 0/1 sequences and long temporal dependencies.
- The model learned to generate consistent 8-beat hi-hat patterns, snare/kick combinations on beats, and occasional crash cymbal or tom-tom fills, especially at higher diversity settings.
- The diversity parameter α effectively controlled the complexity of generated drum tracks: low α values produced simple, repetitive patterns, while high α values introduced more complex fills.
- The inclusion of '_BAR_' tokens helped the network learn bar-level structure, particularly in word-level RNNs, as evidenced by consistent bar segmentation in generated outputs.
- The system demonstrated potential as a semi-automatic composition tool, allowing users to guide the generation process by adjusting α to control the technical complexity of the output.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.