# US 2025/0174214 A1 · Media data generation

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0174214 A1
- Document ID: US20250174214A1
- Status: Published application
- Kind: A1
- Application number: 18/927,733
- Filed: 2024-10-25
- Published: 2025-05-29
- Earliest claimed: 2023-11-29
- Assignees: Lemon Inc.; Beijing Zitiao Network Technology Co., Ltd.
- Applicants: Lemon Inc.; Beijing Zitiao Network Technology Co., Ltd.
- Inventors: Yilin ZHANG; Lingxuan SHEN
- Web page: https://patentgrep.com/patent/US20250174214A1

## CPC

- G10H 1/0025: {Automatic or semi-automatic music composition, e.g. producing random music, applying rules from music theory or modifying a musical piece (automatically producing a series of tones G10H1/26)}
- G10H 1/368: {displaying animated or moving pictures synchronized with the music or audio part}
- G10H 1/36: Accompaniment arrangements
- G10H 2210/005: Musical accompaniment, i.e. complete instrumental rhythm synthesis added to a performed melody, e.g. as output by drum machines
- G10H 2210/066: for pitch analysis as part of wider processing for musical purposes, e.g. transcription, musical performance evaluation; Pitch recognition, e.g. in polyphonic sounds; Estimation or use of missing fundamental
- G10H 2210/111: Automatic composing, i.e. using predefined musical rules
- G10H 2210/125: Medley, i.e. linking parts of different musical pieces in one single piece, e.g. sound collage, DJ mix
- G10H 2210/145: Composing rules, e.g. harmonic or musical rules, for use in automatic composition; Rule generation algorithms therefor
- G10H 2210/151: using templates, i.e. incomplete musical sections, as a basis for composing
- G10H 2210/325: Musical pitch modification
- G10H 2240/081: Genre classification, i.e. descriptive metadata for classification or selection of musical pieces according to style
- G10H: ELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE

## Abstract

A method, an apparatus, a device, and a medium for generating media data are provided. In the method, the first media data is obtained in response to receiving a creation request for creating music. A music template is obtained, and the music template includes melody data for specifying a music melody. A second media data including a music melody is generated based on the first media data. According to the exemplary implementation of the present disclosure, a music creation tool may be provided for an ordinary user that does not have professional music knowledge, thereby meeting a simple music creation requirement of the ordinary user.

## Claims

### Claim 1

A method for generating media data, comprising:
in response to receiving a creation request for creating music, obtaining first media data;
obtaining a music template, the music template comprising melody data for specifying a music melody; and
generating second media data comprising the music melody based on the first media data.

### Claim 2 (depends on 1)

The method of claim 1, wherein the second media data and the first media data have a same timbre and the timbre is specified by the first media data.

### Claim 3 (depends on 1)

The method of claim 1, wherein the music template further comprises accompaniment data and the second media data further comprises the accompaniment data.

### Claim 4 (depends on 1)

The method of claim 1, wherein the music template further comprises style data for specifying a music style, and the second media data further has the music style.

### Claim 5 (depends on 1)

The method of claim 1, wherein the melody data comprises a set of notes, each note in the set of notes corresponds to a respective time length, and the second media data is generated by the following:
dividing the first media data into a plurality of audio segments based on pitch information in the first media data; and
generating the second media data using the plurality of audio segments.

### Claim 6 (depends on 5)

The method of claim 5, wherein a target audio segment in the plurality of audio segments satisfies the following conditions:
a time length of the target audio segment satisfying a predetermined length condition;
energy of the target audio segment satisfying a predetermined energy condition; and
a pitch difference of the target audio segment satisfying a predetermined pitch condition.

### Claim 7 (depends on 5)

The method of claim 5, wherein the second media data is generated based on the following:
selecting, from the plurality of audio segments, a set of audio segments corresponding to the set of notes, a target note in the set of notes corresponding to a target audio segment in the set of audio segments; and
creating the second media data using the set of audio segments.

### Claim 8 (depends on 7)

The method of claim 7, wherein the target audio segment is selected based on at least one of the following:
a random selection mode;
a poll selection mode;
comparison of a time length corresponding to the target note with a time length of the target audio segment; and
comparison of a pitch corresponding to the target note with a pitch of the target audio segment.

### Claim 9 (depends on 7)

The method of claim 7, wherein the second media data is created based on the following:
adjusting pitches and time lengths of the set of audio segments respectively to match the set of notes; and
combining the adjusted set of audio segments to generate the second media data.

### Claim 10 (depends on 9)

The method of claim 9, wherein a pitch of the target audio segment in the set of audio segments is adjusted based on at least one of: performing resampling on the target audio segment, and scaling a time length of the target audio segment.

### Claim 11 (depends on 7)

The method of claim 7, wherein the first media data and the second media data comprise video data, and a video portion in the second media data is generated based on the following:
obtaining a set of video segments respectively corresponding to the set of audio segments; and
generating the video portion in the second media data using the set of video segments.

### Claim 12 (depends on 1)

The method of claim 1, wherein the melody data is represented using at least one of: audio data and note data.

### Claim 13 (depends on 1)

The method of claim 1, wherein the creation request further specifies a musical instrument for creating the music, and the first media data and the second media data are played by using the musical instrument.

### Claim 14

An electronic device, comprising:
at least one processing unit; and
at least one memory coupled to the at least one processing unit and storing instructions for execution by the at least one processing unit, wherein the instructions, when executed by the at least one processing unit, cause the electronic device to perform at least:
in response to receiving a creation request for creating music, obtaining first media data;
obtaining a music template, the music template comprising melody data for specifying a music melody; and
generating second media data comprising the music melody based on the first media data.

### Claim 15 (depends on 14)

The electronic device of claim 14, wherein the second media data and the first media data have a same timbre and the timbre is specified by the first media data.

### Claim 16 (depends on 14)

The electronic device of claim 14, wherein the music template further comprises accompaniment data and the second media data further comprises the accompaniment data.

### Claim 17 (depends on 14)

The electronic device of claim 14, wherein the music template further comprises style data for specifying a music style, and the second media data further has the music style.

### Claim 18 (depends on 14)

The electronic device of claim 14, wherein the melody data comprises a set of notes, each note in the set of notes corresponds to a respective time length, and the second media data is generated by the following:
dividing the first media data into a plurality of audio segments based on pitch information in the first media data; and
generating the second media data using the plurality of audio segments.

### Claim 19 (depends on 18)

The electronic device of claim 18, wherein a target audio segment in the plurality of audio segments satisfies the following conditions:
a time length of the target audio segment satisfying a predetermined length condition;
energy of the target audio segment satisfying a predetermined energy condition; and
a pitch difference of the target audio segment satisfying a predetermined pitch condition.

### Claim 20

A non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, causes the processor to perform at least:
in response to receiving a creation request for creating music, obtaining first media data;
obtaining a music template, the music template comprising melody data for specifying a music melody; and
generating second media data comprising the music melody based on the first media data.
