IP Library Granted Patent US 12,272,341
Granted Patent B2
US 12,272,341 · App. 17/521,435 · Granted Apr 8, 2025

Controllable music generation

Inventors: Zhihao Ouyang (Los Angeles, CA); Keunwoo Choi (Los Angeles, CA)
Assignee: LEMON INC.
G10H1/0025G06N20/00G10H2210/036G10H2210/115G10H2210/571G10H2250/005
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,272,341
App. No.
17/521,435
Granted
Apr 8, 2025
Kind
B2
Abstract

The present disclosure describes techniques for controllable music generation. The techniques comprise extracting latent vectors from unlabelled data, the unlabelled data comprising a plurality of music note sequences, the plurality of music note sequences indicating a plurality of pieces of music; clustering the latent vectors into a plurality of classes corresponding to a plurality of music styles; generating a plurality of labelled latent vectors corresponding to the plurality of music styles, each of the plurality labelled latent vectors comprising information indicating features of a corresponding music style; and generating a first music note sequence indicating a first piece of music in a particular music style among the plurality of music styles based at least in part on a particular labelled latent vector among the plurality of labelled latent vectors, the particular labelled latent vector corresponding to the particular music style.

Claims (47)

1. A method, comprising:

extracting latent vectors from unlabelled data by an encoder, the unlabelled data comprising a plurality of music note sequences, the plurality of music note sequences indicating a plurality of pieces of music;

clustering the latent vectors into a plurality of classes corresponding to a plurality of music styles by a machine learning model;

generating a plurality of labelled latent vectors corresponding to the plurality of music styles by the machine learning model, each of the plurality of labelled latent vectors comprising information indicating features of a corresponding music style among the plurality of music styles; and

generating, by a decoder, a first music note sequence indicating a first piece of music in a particular music style among the plurality of music styles based at least in part on a particular labelled latent vector among the plurality of labelled latent vectors, the particular labelled latent vector corresponding to the particular music style.

2. The method of claim 1 , wherein the encoder comprises an encoder of a variational autoencoder (VAE), wherein the decoder comprises a decoder of the VAE, and wherein the method further comprises:

inputting the particular labelled latent vector to the decoder of the VAE.

3. The method of claim 2 , wherein the VAE is trained using unlabelled music training data, the encoder of the VAE learns to encode the unlabelled music training data into Gaussian distributions, and the decoder of the VAE learns to decode latent vectors sampled from the Gaussian distributions into pieces of music.

4. The method of claim 1 , wherein the machine learning model comprises a Gaussian Mixture Model (GMM).

5. The method of claim 4 , wherein the GMM is trained using unlabelled latent vectors extracted by an encoder of a VAE from unlabelled music training data.

6. The method of claim 1 , further comprising:

interpolating, by a controllable music generation model, a specific latent vector corresponding to a type of chord sequence with another latent vector corresponding to a random music sequence to generate a mixed latent vector corresponding to a new music sequence, wherein the specific latent vector is among the plurality of labelled latent vectors, and wherein the new music sequence is harmonic with both the chord sequence and the random music sequence.

7. The method of claim 6 , further comprising:

inputting the mixed latent vector to a VAE comprising the decoder; and

generating, by the decoder, a second music note sequence indicating a second piece of music in a customized style based on the mixed latent vector.

8. A system, comprising:

at least one processor; and

at least one memory communicatively coupled to the at least one processor and storing instructions that upon execution by the at least one processor cause the system to perform operations, the operations comprising:

extracting latent vectors from unlabelled data by an encoder, the unlabelled data comprising a plurality of music note sequences, the plurality of music note sequences indicating a plurality of pieces of music;

clustering the latent vectors into a plurality of classes corresponding to a plurality of music styles by a machine learning model;

generating a plurality of labelled latent vectors corresponding to the plurality of music styles by the machine learning model, each of the plurality of labelled latent vectors comprising information indicating features of a corresponding music style among the plurality of music styles; and

generating, by a decoder, a first music note sequence indicating a first piece of music in a particular music style among the plurality of music styles based at least in part on a particular labelled latent vector among the plurality of labelled latent vectors, the particular labelled latent vector corresponding to the particular music style.

9. The system of claim 8 , wherein the encoder comprises an encoder of a variational autoencoder (VAE), wherein the decoder comprises a decoder of the VAE, and wherein the operations further comprising comprise:

inputting the particular labelled latent vector to the decoder of the VAE.

10. The system of claim 9 , wherein the VAE is trained using unlabelled music training data, the encoder of the VAE learns to encode the unlabelled music training data into Gaussian distributions, and the decoder of the VAE learns to decode latent vectors sampled from the Gaussian distributions into pieces of music.

11. The system of claim 8 , wherein the machine learning model comprises a Gaussian Mixture Model (GMM).

12. The system of claim 11 , wherein the GMM is trained using unlabelled latent vectors extracted by an encoder of a VAE from unlabelled music training data.

13. The system of claim 8 , the operations further comprising:

interpolating, by a controllable music generation model, a specific latent vector corresponding to a type of chord sequence with another latent vector corresponding to a random music sequence to generate a mixed latent vector corresponding to a new music sequence, wherein the specific latent vector is among the plurality of labelled latent vectors, and wherein the new music sequence is harmonic with both the chord sequence and the random music sequence.

14. The system of claim 13 , the operations further comprising:

inputting the mixed latent vector to the VAE comprising the decoder; and

generating, by the decoder, a second music note sequence indicating a second piece of music in a customized style based on the mixed latent vector.

15. A non-transitory computer-readable storage medium, storing computer-readable instructions that upon execution by a processor cause the processor to implement operations, the operation comprising:

extracting latent vectors from unlabelled data by an encoder, the unlabelled data comprising a plurality of music note sequences, the plurality of music note sequences indicating a plurality of pieces of music;

clustering the latent vectors into a plurality of classes corresponding to a plurality of music styles by a machine learning model;

generating a plurality of labelled latent vectors corresponding to the plurality of music styles by the machine learning model, each of the plurality of labelled latent vectors comprising information indicating features of a corresponding music style among the plurality of music styles; and

generating, by a decoder, a first music note sequence indicating a first piece of music in a particular music style among the plurality of music styles based at least in part on a particular labelled latent vector among the plurality of labelled latent vectors, the particular labelled latent vector corresponding to the particular music style.

16. The non-transitory computer-readable storage medium of claim 15 , wherein the encoder comprises an encoder of a variational autoencoder (VAE), wherein the decoder comprises a decoder of the VAE, and wherein the operations further comprise:

inputting the particular labelled latent vector to the decoder of the VAE; and

wherein the VAE is trained using unlabelled music training data, the encoder of the VAE learns to encode the unlabelled music training data into Gaussian distributions, and the decoder of the VAE learns to decode latent vectors sampled from the Gaussian distributions into pieces of music.

17. The non-transitory computer-readable storage medium of claim 15 , wherein the machine learning model comprises a Gaussian Mixture Model (GMM).

18. The non-transitory computer-readable storage medium of claim 17 , wherein the GMM is trained using unlabelled latent vectors extracted by an encoder of a VAE from unlabelled music training data.

19. The non-transitory computer-readable storage medium of claim 15 , the operations further comprising:

interpolating, by a controllable music generation model, a specific latent vector corresponding to a type of chord sequence with another latent vector corresponding to a random music sequence to generate a mixed latent vector corresponding to a new music sequence, wherein the specific latent vector is among the plurality of labelled latent vectors, and wherein the new music sequence is harmonic with both the chord sequence and the random music sequence.

20. The non-transitory computer-readable storage medium of claim 19 , the operations further comprising:

inputting the mixed latent vector to a VAE comprising the decoder; and

generating, by the decoder, a second music note sequence indicating a second piece of music in a customized style based on the mixed latent vector.

Assignments (2)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 28, 2024
From: OUYANG, ZHIHAO; CHOI, KEUNWOO
To: BYTEDANCE INC.
Reel/Frame 066941/0082 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 28, 2024
From: BYTEDANCE INC.
To: LEMON INC.
Reel/Frame 066941/0103 →
Continuity (1)
Related Publication 20230147185A1 · May 11, 2023
References Cited (26)
US 20090069914A1 · Kemp · 2009 [cited by examiner]
US 20200342646A1 · Wang · 2020 [cited by examiner]
US 20210125593A1 · Pachet · 2021 [cited by examiner]
US 20210158790A1 · Huang · 2021 [cited by examiner]
US 20230147185A1 · Ouyang · 2023 [cited by examiner]
US 20230153683A1 · Akama · 2023 [cited by examiner]
US 20240071342A1 · Kant · 2024 [cited by examiner]
US 20240160772A1 · Weggenmann · 2024 [cited by examiner]
CN 110853604A · 2020 [cited by examiner]
CN 112102801A · 2020 [cited by examiner]
WO WO2010003521A1 · 2010 [cited by examiner]
WO WO2021225741A1 · 2021 [cited by examiner]
WO WO2023080847A2 · 2023 [cited by examiner]
International Patent Application No. PCT/SG2022/050808; Int'l Search Report; dated Jun. 1, 2023; 4 pages. [cited by applicant]
Lim et al.; “ClaviNet: Generate Music With Different Musical Styles”; IEEE Multimedia; vol. 28; Jan.-Mar. 2021; p. 83-93 ( [cited by applicant]
“Controlled Music Generation from Unlabeled Data”; https://github.com/oyzh888/GMM_MusicVAE/blob/aa7f4a23b50d62b9a85526e1f17dd32569c44a79/index.md; accessed May 18, 2023; 2 pages. [cited by applicant]
Tan et al.; “Music Fadernets: Controllable Music Generation Based on High-Level Features Via Low-Level Feature Modelling”; 21 [cited by applicant]
Roberts et al.; “A Hierarchical Latent Vector Model for Learning Long-Term Structure in Music”; Proceedings of the 35 [cited by applicant]
Hadjeres et al.; “GLSR-VAE: Geodesic latent space regularization for variational autoencoder architectures”; IEEE Symposium Series on Computational Intelligence; 2017; 11 pages. [cited by applicant]
Brunner et al.; “MIDI-VAE: Modeling Dynamics and Instrumentation of Music with Applications to Style Transfer”; 19 [cited by applicant]
Kingma et al.; “Auto-encoding variational bayes”; Machine Learning; 2013; 14 pages. [cited by applicant]
Sohn et al.; “Learning structured output representation using deep conditional generative models”; Advances in Neural Information Processing Systems; 2015; p. 3483-3491. [cited by applicant]
Chen et al.; “Isolating Sources of Disentanglement in Variational Autoencoders”; Advances in Neural Information Processing Systems; 2018; p. 2610-2620 (Abstract only). [cited by applicant]
Higgins et al.; “beta-VAE: Learning Basic Visual Concepts with a Constrained Variational Framework”; Int'l Conf. on Learning Representations; vol. 2; 2017; 22 pages. [cited by applicant]
Dinculescu et al.; “MidiMe: Personalizing a MusicVAE model with user data”; 33 [cited by applicant]
Carl Doersch; “Tutorial on Variational Autoencoders”; arXiv:1606.05908; 2016; 23 pages. [cited by applicant]