US 12,112,731 B2
Method and apparatus for generating music file, and electronic device and storage medium
Yufan Xue, Beijing (CN); Guanjun Guo, Beijing (CN); Xin Yuan, Beijing (CN); Yuezhao Chen, Beijing (CN); Hao Huang, Beijing (CN); Na Li, Beijing (CN); and Xubin Zhou, Beijing (CN)
Assigned to BEIJING ZITIAO NETWORK TECHNOLOGY CO., LTD., Beijing (CN)
Filed by Beijing Zitiao Network Technology Co., Ltd., Beijing (CN)
Filed on Dec. 19, 2023, as Appl. No. 18/545,825.
Application 18/545,825 is a continuation of application No. PCT/CN2022/100969, filed on Jun. 24, 2022.
Claims priority of application No. 202110839656.2 (CN), filed on Jul. 23, 2021.
Prior Publication US 2024/0127777 A1, Apr. 18, 2024
Int. Cl. G10H 1/00 (2006.01)
CPC G10H 1/0066 (2013.01) [G10H 1/0008 (2013.01)] 19 Claims
OG exemplary drawing
 
1. A method for generating a music file, comprising:
obtaining a first image;
performing feature extraction on the first image to obtain a salient feature of the first image;
mapping the salient feature into a musical instrument digital interface (MIDI) information coordinate system based on a position of the salient feature in the first image, so as to determine MIDI information corresponding to the salient feature, the MIDI information coordinate system being used for indicating correspondence between the MIDI information and time; and
generating a music file based on the correspondence between the MIDI information and time;
generating a second image corresponding to the music file;
wherein generating a second image corresponding to the music comprises:
receiving a second input, wherein the second input is an input for selecting a preset video template;
determining an object video template in response to the second input; and
generating the second image according to the object video template and a salient object texture map.