WO2023124472A1 - Midi音乐文件的生成方法、存储介质和终端 - Google Patents

Midi音乐文件的生成方法、存储介质和终端 Download PDF

Info

Publication number
WO2023124472A1
WO2023124472A1 PCT/CN2022/127590 CN2022127590W WO2023124472A1 WO 2023124472 A1 WO2023124472 A1 WO 2023124472A1 CN 2022127590 W CN2022127590 W CN 2022127590W WO 2023124472 A1 WO2023124472 A1 WO 2023124472A1
Authority
WO
WIPO (PCT)
Prior art keywords
playing
beat
strength
music file
chord
Prior art date
Application number
PCT/CN2022/127590
Other languages
English (en)
French (fr)
Inventor
蒋义勇
Original Assignee
腾讯音乐娱乐科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 腾讯音乐娱乐科技(深圳)有限公司 filed Critical 腾讯音乐娱乐科技(深圳)有限公司
Publication of WO2023124472A1 publication Critical patent/WO2023124472A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC 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
    • G10H1/00Details of electrophonic musical instruments
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC 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
    • G10H1/00Details of electrophonic musical instruments
    • G10H1/02Means for controlling the tone frequencies, e.g. attack or decay; Means for producing special musical effects, e.g. vibratos or glissandos

Definitions

  • the present application relates to the field of computer technology, in particular to a method for generating a Midi music file, a storage medium and a terminal.
  • the purpose of this application is to provide a method for generating a Midi music file, a storage medium and a terminal, capable of generating a Midi music file corresponding to score data, and assisting users in practicing musical instruments.
  • the application provides a kind of generation method of Midi music file, and concrete technical scheme is as follows:
  • chord fingering data table to query the fingering corresponding to the played string number
  • determining how to play each beat in the scale sequence includes:
  • the playing strength of each beat in the scale sequence is determined according to the law of playing strength and the number of times of playing corresponding to each beat.
  • the playing rhythm pattern is a fingerstyle rhythm pattern
  • determining the playing strength of each beat in the scale sequence according to the law of playing strength and the number of times of playing corresponding to each beat includes:
  • the playing rhythm pattern is a strumming rhythm pattern
  • determining the playing strength of each beat in the scale sequence according to the law of playing strength and the number of times of playing corresponding to each beat includes :
  • determining the playing strength of each beat in the scale sequence according to the law of playing strength and the number of times of playing corresponding to each beat includes:
  • a mapping relationship between the playing strength value and the number of times the beat is played is established to obtain the playing strength of each beat in the scale sequence.
  • rhythm data table before calling the rhythm data table to determine the playing number of the chord corresponding to the playing instrument, it also includes:
  • rhythm pattern data table corresponding to each said musical instrument is established.
  • searching the chord fingering data table according to the played string number, before determining the fingering corresponding to the chord it also includes:
  • the Midi music file after obtaining the Midi music file, it also includes:
  • the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the steps of the above method are realized.
  • the present application also provides a terminal, including a memory and a processor, wherein a computer program is stored in the memory, and the steps of the above method are implemented when the processor invokes the computer program in the memory.
  • the present application provides a method for generating a Midi music file, comprising: obtaining score data of the music to be configured, and determining the corresponding playing instrument of the music to be configured; determining the Midi music file according to the number of strings of the playing instrument The number of tracks in the music score data; read the chords in the score data, call the rhythm data table to determine the playing string number corresponding to the chord of the playing instrument; call the chord fingering data table to query the fingering corresponding to the playing string number ; Determine the scale corresponding to the chord according to the fingering, and determine the scale sequence formed by the scale according to the chord sequence; determine the playing mode of each beat in the scale sequence, and the scale sequence and the corresponding playing The method writes each audio track, obtains described Midi music file.
  • This application generates a Midi music file, which contains the corresponding fingering, playing method, scale and corresponding playing strength of the instrument, so that the player can know the playing method of each chord, thereby stabilizing the playing speed according to the Midi music file. Accelerate the switching speed of chords, quickly master various playing skills, and combine playing and singing, effectively helping instrument players to practice.
  • the present application also provides a computer-readable storage medium and a terminal, which have the above-mentioned beneficial effects, and will not be repeated here.
  • Fig. 1 is the flow chart of the generation method of a kind of Midi music file provided by the embodiment of the application;
  • Fig. 2 is a schematic diagram of some chords and corresponding fingerings provided by the embodiment of the present application;
  • Fig. 3 is the schematic diagram of the guitar fretboard scale data table that the embodiment of the present application provides:
  • FIG. 4 is a schematic structural diagram of a terminal provided by an embodiment of the present application.
  • Fig. 1 is the flowchart of the generation method of a kind of Midi music file provided by the embodiment of the application, and this method comprises:
  • S101 Obtain score data of the music to be configured, and determine the musical instrument corresponding to the music to be configured;
  • the purpose of this step is to obtain the score data of the music to be configured, as well as the musical instruments that the user needs to play.
  • Music score data refers to the regular combination of various written symbols for recording music pitch or rhythm. Common numbered musical notation, stave and guitar notation etc. can be used as music score data in the present embodiment, and this music score data mainly comprises the chord of each music score, also It may include the number of beats per minute (beat(ing) per minute, English abbreviation BPM) and the like.
  • the music to be configured may be music to be played by the user, or music specified by the user. In addition, when the musical instrument is determined, the playing rhythm pattern of the musical instrument can also be determined, which is used to determine the playing strength later.
  • the playing instruments in this step mainly refer to stringed instruments, including but not limited to ukulele, guitar and so on.
  • the chord fingering data table contains data such as chords and corresponding fingerings used for playing, as well as strings not played when playing.
  • Fig. 2 is the partial chord and corresponding fingering schematic diagram provided by the embodiment of the present application, which contains three chords of Em, G and C, then you can directly look up the chord playing data table, so as to determine the fingering of the chord.
  • chord fingering data table already exists by default before executing this step, and it can be generated during the execution of the foregoing steps of this embodiment, or obtained during the execution of the foregoing steps of this embodiment, or can be Before executing this embodiment, the process of generating or acquiring the chord fingering data table has been completed.
  • chord fingering data table which mainly includes three parts: chord name, fingering and unstruck strings.
  • the following table 1 is the chord fingering data table corresponding to three kinds of chords in Fig. 2:
  • Table 1 is only a table of chord fingering data corresponding to some chords, and those skilled in the art are capable of confirming the fingering operations corresponding to various chords under different playing rhythm patterns of different musical instruments. In other words, those skilled in the art are capable of consulting the chord fingering data table to determine the fingering of any chord when performing this step.
  • the user may input the score data of the music to be configured and play the musical instrument, or analyze the content input by the user to obtain or determine the above content. For example, the user enters the title of the song to be played, and can obtain the corresponding music score data according to the song name, and provide recommended musical instruments for the user to choose, and can also provide the corresponding playing rhythm pattern of the music score data or provide playable musical instruments for the user to choose. The user chooses. It is easy to understand that there may be differences in playing rhythm patterns corresponding to different musical instruments, which are not limited here by examples.
  • S102 Determine the number of tracks in the Midi music file according to the number of strings of the musical instrument played
  • This step is intended to determine the number of tracks, usually the number of strings on the instrument being played is the same as the number of tracks required, for example six tracks for a guitar and four for a ukulele.
  • a certain number of audio tracks can be configured, and when this step is performed, the number of audio tracks to be occupied is determined according to the number of strings of the instrument played, and the audio track is configured as the corresponding instrument played.
  • the same number of audio tracks as the number of strings may be configured.
  • the purpose of this step is to determine the strummed numbers of the chords in the score data.
  • the Rhythm Data Table contains chords and corresponding fret numbers, as well as how long each fret is played. It should be noted that the same chord adopts different playing types, and the corresponding playing methods are different. See Table 2 and Table 3, Table 2 is the rhythm data table of some chords and corresponding playing methods in the fingerstyle rhythm type, and Table 3 is the rhythm data table of some chords and corresponding playing methods in the strumming rhythm type:
  • this step needs to read a chord in the music score data.
  • the rhythm data table according to its playing method There is no way to find the string number corresponding to this beat chord. For example, if the first beat in the music score data is a C chord, in Table 3, it is found that the corresponding string numbers are strummed strings 5, 4, and 3, and the duration is one beat.
  • the first beat of the C chord needs to play 5 strings, 4 strings and 3 strings. If there are two consecutive C chords, it needs to be played three times, which are 4 strings, 3 strings, 2 strings, 1 string and 0.5 beats. , 4 strings 3 strings 2 strings 1 string 0.25 beats, 1 string 2 strings 3 strings 4 strings 0.25 beats, together constitute the C chord of the second beat.
  • S104 Search the chord fingering data table according to the played string number, and determine the fingering corresponding to the chord;
  • This step needs to search the chord fingering data table according to the played string number determined in the previous step, so as to determine the fingering corresponding to the chord.
  • chord fingering data table contains the mapping relationship between chords and corresponding fingerings, which means that all mapping relationships including chords and corresponding fingerings can be used as the chord fingering data table in this step, and its existence form does not Stick to the tabular form, it can exist in a database or other data formats that are easy to retrieve.
  • S105 Determine the scale corresponding to the chord according to the fingering, and determine a scale sequence composed of scales according to the order of the chords;
  • This step is to determine the scale sequence corresponding to the fingering. Specifically, it is necessary to determine the fingering corresponding to each chord according to the process described above, and then determine the scale corresponding to the fingering. After determining the scales corresponding to all chords in this way, follow the chord sequence in the score data The scale sequence can be obtained. It should be noted that each chord can obtain the corresponding scale according to the above process, and the scale sequence corresponds to all chords in the score data, that is, the chord corresponds to the scale, and the score data corresponds to the scale sequence, and each chord is a shoot.
  • Fig. 3 is a schematic diagram of the guitar fretboard scale data table provided by the embodiment of the present application, which includes the relationship between the string number, the product number and the corresponding scale, for example, in Fig. 3, 1 string and 0 product correspond to The treble is 3, and the 1st string and 1st fret correspond to the treble 4th, and the 2nd string 0th fret corresponds to the middle pitch 7th. Since the fingering includes the number of strings and frets, this step can determine the scale of each chord according to the scale data table, and further follow the playing of the chord The order determines that the musical score data contains the scale sequences corresponding to all chords.
  • S106 Determine the playing manner of each beat in the scale sequence, write the scale sequence and the corresponding playing manner into each audio track, and obtain the Midi music file.
  • the purpose of this step is to determine how each beat is played, mainly referring to the strength of the playing and the number of times each beat is played.
  • the strength of the playing can be determined according to the number of beats per minute of the score data.
  • the first beat of each measure in the score data is called a strong beat, and the remaining unit beats with forte are called subbeats. Strong beats, unit beats without forte are called weak beats, and strong and weak same time segments are called beats in a certain order, and the unit of beats is called beats.
  • the same time segment that makes up the beat is called a unit beat.
  • the unit beat is marked with a quarter note, which can be called a four-two beat.
  • the number of beats of each type of common music score data and the corresponding rules of playing strength are as follows:
  • the number of times of playing varies depending on the type of rhythm played, for example, the downbeat may need to be played once, twice or four times.
  • Playing rhythm pattern refers to the playing method or technique when playing a musical instrument, including but not limited to strumming rhythm pattern, fingerpicking rhythm pattern, etc.
  • the playing strength of each beat in the scale sequence can be determined according to the law of playing strength and the corresponding number of times of playing each beat. The following explains how to determine how to play each beat in a scale sequence, using two different playing rhythm patterns:
  • the playing rhythm pattern is a fingerstyle rhythm pattern, it includes the following steps:
  • the first step determine the playing strength of each beat for the first time
  • the second step is to set the remaining playing times of each beat as the playing strength corresponding to the upbeat.
  • each beat may need to be played multiple times, in the fingerstyle rhythm pattern, no matter how many times the beat rhythm needs to be played, the first time corresponds to the law of playing strength, and the remaining number of subsequent playing times is set to The playing strength of the upbeat. For example, if the downbeat needs to be played 2 times, the downbeat is played according to strong ⁇ weak, and if it needs to be played 4 times, the downbeat is played according to strong ⁇ weak ⁇ weak ⁇ weak.
  • the method for determining the playing strength is different from that of the fingerstyle rhythm. At this time, perform the following process:
  • the first step is to determine the initial playing strength according to the law of playing strength
  • the second step taking the preset number of beats as a cycle, starting from the initial playing strength in each said cycle, the playing strength of each scale in the said scale sequence is decreasing, and the beginning of each said scale playing Time increments.
  • the strength of the first beat is determined by the strength of the initial playing strength. Since multiple strings are played at the same time during the strumming process, the playing strength of each subsequent beat decreases gradually, which is less than the playing strength of the first beat, and the start time of the scale playing increases progressively.
  • the playing strength value is introduced below as a reference, and you can first obtain the beat strength value table.
  • different playing velocities such as downbeat, sub-downbeat and downbeat, all include corresponding playing velocity ranges.
  • the 8 velocity levels correspond to a total of 128 playing velocity values from 0 to 127. The larger the value, the greater the playing velocity.
  • those skilled in the art can also use other ways to represent the playing strength, which are not limited here by examples.
  • the beat strength value table After obtaining the beat strength value table, determine the beat strength when the beat is played each time according to the law of playing strength, determine the playing strength value corresponding to the beat strength value table according to the beat strength value table, and finally establish the playing strength value and the rhythm of the beat. According to the mapping relationship of playing times, the playing strength of each beat in the scale sequence is obtained. After determining the playing strength value of each beat one by one, the playing strength of the beat can be obtained, and the playing strength of the scale including the beat can be further determined, and finally the playing strength of the scale sequence including all scales can be obtained.
  • the change law of the strength level is strong ⁇ weak ⁇ second strong ⁇ weak
  • the playing strength can be 80 ⁇
  • the cycle of 40 ⁇ 60 ⁇ 40 shows that the strength value corresponding to the strong beat is 80, the strength value corresponding to the weak beat is 40, and the strength value corresponding to the second strong beat is 60. If it is a 3/4 beat rhythm, its changing law is strong ⁇ weak ⁇ weak. Correspondingly, the playing strength can be cycled according to 80 ⁇ 40 ⁇ 40.
  • the strumming rhythm type If you choose the strumming rhythm type, set the first scale as downbeat, and the same velocity value is 80, assuming that each beat adopts the same decrement, and the velocity value decreases by 10 each time, then the velocity value changes when playing is 80 ⁇ 70 ⁇ 60 ⁇ 50.
  • scale 1 corresponds to track 5
  • scale 3 corresponds to track 4
  • the velocity is 70
  • the time is 1 millisecond
  • Scale 5 corresponds to track 3
  • the velocity is 60
  • the time is 2 seconds
  • the velocity of other tracks is set to 0.
  • the difference in velocity between each cycle is not fixed, but in order to output the sound closer to the original sound, the difference in velocity between adjacent scales in each cycle can be set to a fixed value.
  • the velocity difference between adjacent scales in each period is 10.
  • each chord in the score data its scale and playing method can be determined according to the above-mentioned process. After performing the above steps for all chords in the score data, the corresponding chord of the score data can be obtained The complete scale sequence of .
  • parallel threads can be used to perform the above-mentioned process on each chord in the music score data respectively, and it is also possible to process all the chords in the music score data in each step before entering the next step. Sectional processing of music score data, etc., under the premise that all chords in the music score data are executed according to the above-mentioned process and the scale sequence and playing method are obtained, any parallel processing method or serial processing method shall fall within the scope of protection of this application Inside.
  • the Midi music file should at least include scale sequences and corresponding playing strengths.
  • multiple Midi files can be configured, and options for playing musical instruments can also be configured in the display interface of the Midi file for users to choose.
  • options can also be configured for different playing rhythms, modes of score data and other parameters for users to choose.
  • the Midi file can include scale sequences and playing strengths when playing different rhythms.
  • relevant parameters such as the number of beats per minute, the time signature of the score data, and the playing rhythm type can also be added to the Midi music file.
  • the embodiment of the present application generates the Midi music file, which includes the corresponding fingering, playing method, scale and corresponding playing strength of the playing instrument, so that the player can know the playing method of each chord, so as to play stably according to the Midi music file Accelerate the speed of chord switching, quickly master various playing skills, and combine playing and singing, effectively helping instrument players to practice.
  • the beats per minute corresponding to the score data can be directly determined, then at the end When the Midi music file is obtained, the beats per minute can also be written into the Midi music file, thereby perfecting the song information contained in the Midi music file, which is convenient for instrument players to practice.
  • rhythm data table before calling the rhythm data table to determine the playing number of the corresponding chord of the playing instrument, it is possible to establish the corresponding The rhythmic data table for .
  • This embodiment aims to establish a rhythm data table. It should be noted that this embodiment only requires that the establishment of the rhythm data table be completed before calling the rhythm data table to determine the string numbers corresponding to the chords played by the instrument. , and there is no specific limitation on the sequence relationship between this establishment process and the foregoing steps in the previous embodiment. When constructing the rhythm pattern data table, corresponding rhythm pattern data tables are established for different playing instruments.
  • the chord fingering data table is searched according to the played string number, and before the fingering corresponding to the chord is determined, the fingering when the musical instrument plays the chord can be integrated to generate the chord fingering data table.
  • this embodiment is to set up the chord fingering data table. It should also be noted that this embodiment only requires that the generation process of the chord fingering data table be completed before the table look-up of the chord fingering data table is performed. The sequence relationship between the aforementioned steps in the previous embodiment is not specifically limited.
  • the present application also provides a computer-readable storage medium on which a computer program is stored.
  • the storage medium may include: U disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk or optical disk and other media that can store program codes.
  • the present application also provides a terminal, which may include a memory and a processor, where a computer program is stored in the memory, and when the processor invokes the computer program in the memory, the steps provided in the above embodiments can be implemented.
  • the terminal may also include various network interfaces, power supplies and other components. Please refer to FIG. 4 .
  • FIG. 4 is a schematic structural diagram of a terminal provided by an embodiment of the present application.
  • the terminal in this embodiment may include: a processor 2101 and a memory 2102 .
  • the terminal may further include a communication interface 2103 , an input unit 2104 , a display 2105 and a communication bus 2106 .
  • the processor 2101 , the memory 2102 , the communication interface 2103 , the input unit 2104 , and the display 2105 all communicate with each other through the communication bus 2106 .
  • the processor 2101 may be a central processing unit (Central Processing Unit, CPU), a specific application integrated circuit, a digital signal processor, an off-the-shelf programmable gate array or other programmable logic devices, etc.
  • CPU Central Processing Unit
  • the processor can call programs stored in the memory 2102 .
  • the processor may perform the operations performed by the terminal in the foregoing embodiments.
  • the memory 2102 is used to store one or more programs.
  • the programs may include program codes, and the program codes include computer operation instructions.
  • at least programs for realizing the following functions are stored in the memory:
  • chord fingering data table to query the fingering corresponding to the played string number
  • the memory 2102 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and at least one application program required by a function; the data storage area may store data created during use of the computer.
  • the memory 2102 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device or other volatile solid-state storage devices.
  • the communication interface 2103 may be an interface of a communication module, such as an interface of a GSM module.
  • the present application may also include a display 2105, an input unit 2104, and the like.
  • the structure of the terminal shown in FIG. 4 does not constitute a limitation on the terminal in the embodiment of the present application. In practical applications, the terminal may include more or less components than those shown in FIG. 4 , or combine certain components.

Abstract

一种Midi音乐文件的生成方法、计算机可读存储介质和终端,该方法包括:获取待配置音乐的曲谱数据、弹奏乐器及和弦指法数据表(S101);根据弹奏乐器的弦数确定Midi音乐文件中的音轨数量(S102);读取曲谱数据中的和弦,调用节奏型数据表确定弹奏乐器对应和弦的弹奏弦号(S103);调用和弦指法数据表查询弹奏弦号对应的指法(S104);确定指法对应的音阶序列(S105);确定音阶序列中各节拍的弹奏方式,将音阶序列及对应的弹奏方式写入各个音轨,得到Midi音乐文件(S105)。该方法便于弹奏者知晓各和弦的弹奏方式,按照Midi音乐文件稳定弹奏速度。

Description

Midi音乐文件的生成方法、存储介质和终端
本申请要求于2021年12月31日提交中国专利局、申请号为202111676119.7、发明名称为“Midi音乐文件的生成方法、存储介质和终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及计算机技术领域,特别涉及一种Midi音乐文件的生成方法、存储介质和终端。
背景技术
当前,弹奏者在弹奏音乐时,常常针对曲谱进行弹奏,但无法知晓在何时使用何种音符、何种音调等等,给弹奏者造成不小的困扰。
因此,如何辅助用户练习乐器是本领域技术人员亟需解决的技术问题。
发明内容
本申请的目的是提供一种Midi音乐文件的生成方法、存储介质和终端,能够生成曲谱数据对应的Midi音乐文件,辅助用户练习乐器弹奏。
为解决上述技术问题,本申请提供一种Midi音乐文件的生成方法,具体技术方案如下:
获取待配置音乐的曲谱数据,并确定所述待配置音乐相应的弹奏乐器;
根据所述弹奏乐器的弦数确定所述Midi音乐文件中的音轨数量;
读取所述曲谱数据中的和弦,调用节奏型数据表确定所述弹奏乐器对应和弦的弹奏弦号;
调用和弦指法数据表查询所述弹奏弦号对应的指法;
根据所述指法确定所述和弦对应的音阶,并按照和弦顺序确定由音阶构成的音阶序列;
确定所述音阶序列中各节拍的弹奏方式,将所述音阶序列及对应的所述弹奏方式写入各个音轨,得到所述Midi音乐文件。
可选的,确定所述音阶序列中各节拍的弹奏方式包括:
确定所述弹奏乐器的弹奏节奏型和所述曲谱数据对应的每分钟节拍数;
根据所述每分钟节拍数确定弹奏强弱规律;
根据所述弹奏节奏型确定每个拍子对应的弹奏次数;
根据所述弹奏强弱规律和所述每个拍子对应的弹奏次数确定所述音阶序列中各节拍的弹奏力度。
可选的,所述弹奏节奏型为指弹节奏型,根据所述弹奏强弱规律和所述每个拍子对应的弹奏次数确定所述音阶序列中各节拍的弹奏力度包括:
根据所述弹奏强弱规律确定每个拍子第一次弹奏的弹奏力度;
将每个拍子的剩余弹奏次数均设为弱拍对应的弹奏力度。
可选的,所述弹奏节奏型为扫弦节奏型,所述根据所述弹奏强弱规律和所述每个拍子对应的弹奏次数确定所述音阶序列中各节拍的弹奏力度包括:
根据所述弹奏强弱规律确定初始弹奏力度;
以预设节拍数为周期,在每个所述周期内从所述初始弹奏力度开始,所述音阶序列每次弹奏时各音阶的弹奏力度递减,且各所述音阶弹奏的开始时间递增。
可选的,根据所述弹奏强弱规律和所述每个拍子对应的弹奏次数确定所述音阶序列中各节拍的弹奏力度包括:
获取节拍力度值表;
根据所述弹奏强弱规律确定所述拍子每次弹奏时的节拍强度;
根据所述节拍力度值表确定所述节拍强度对应的弹奏力度值;
建立所述弹奏力度值与所述拍子的弹奏次数的映射关系,得到所述音阶序列中各节拍的弹奏力度。
可选的,调用节奏型数据表确定所述弹奏乐器对应和弦的弹奏弦号之前,还包括:
根据弹奏乐器弹奏时的节奏型,建立各所述弹奏乐器对应的节奏型数据表。
可选的,根据所述弹奏弦号查找和弦指法数据表,确定所述和弦对应的指法之前,还包括:
整合所述弹奏乐器弹奏和弦时的指法,生成所述和弦指法数据表。
可选的,得到所述Midi音乐文件之后,还包括:
将所述每分钟节拍数、所述曲谱数据的拍号和所述弹奏节奏型添加至所述Midi音乐文件。
本申请还提供一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上所述的方法的步骤。
本申请还提供一种终端,包括存储器和处理器,所述存储器中存有计算机程序,所述处理器调用所述存储器中的计算机程序时实现如上所述的方法的步骤。
本申请提供一种Midi音乐文件的生成方法,包括:获取待配置音乐的曲谱数据,并确定所述待配置音乐相应的弹奏乐器;根据所述弹奏乐器的弦数确定所述Midi音乐文件中的音轨数量;读取所述曲谱数据中的和弦,调用节奏型数据表确定所述弹奏乐器对应和弦的弹奏弦号;调用和弦指法数据表查询所述弹奏弦号对应的指法;根据所述指法确定所述和弦对应的音阶,并按照和弦顺序确定由音阶构成的音阶序列;确定所述音阶序列中各节拍的弹奏方式,将所述音阶序列及对应的所述弹奏方式写入各个音轨,得到所述Midi音乐文件。
本申请通过生成Midi音乐文件,包含了弹奏乐器对应的指法、弹法、音阶和相应的弹奏力度,便于弹奏者知晓各和弦的弹奏方式,从而按照Midi音乐文件稳定弹奏速度,加快和弦切换速度,快速掌握各种弹奏技巧,以及弹唱结合,有效帮助乐器演奏者练习。
本申请还提供一种计算机可读存储介质和终端,具有上述有益效果,此处不再赘述。
附图说明
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对 实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附图获得其他的附图。
图1为本申请实施例所提供的一种Midi音乐文件的生成方法的流程图;
图2为本申请实施例所提供的部分和弦及对应指法示意图;
图3为本申请实施例提供的吉他指板音阶数据表示意图:
图4为本申请实施例所提供的一种终端的结构示意图。
具体实施方式
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
参见图1,图1为本申请实施例所提供的一种Midi音乐文件的生成方法的流程图,该方法包括:
S101:获取待配置音乐的曲谱数据,并确定所述待配置音乐相应的弹奏乐器;
本步骤旨在获取待配置音乐的曲谱数据,以及用户所需要弹奏的弹奏乐器。曲谱数据指记录音乐音高或者节奏的各种书面符号的有规律组合,常见的简谱、五线谱和吉他谱等均可以作为本实施例中的曲谱数据,该曲谱数据主要包括各曲谱的和弦,还可以包括每分钟的节拍数(beat(ing)per minute,英文缩写BPM)等。待配置音乐可以为用户准备弹奏的音乐,或者由用户指定的音乐等。此外,在确定弹奏乐器时,还可以确定该弹奏乐器的弹奏节奏型,用于后文确定弹奏力度。本步骤的弹奏乐器主要指弦乐器,包括但不限于尤克里里、吉他等等。
和弦指法数据表包含和弦与对应弹奏所使用的指法,以及弹奏时不弹的弦等数据。参见图2,图2为本申请实施例所提供的部分和弦及对应指法示意图,其中包含了Em、G和C三个和弦,则可以直接查找和弦弹法 数据表,从而确定和弦的指法。
容易理解的是,本实施例默认在执行本步骤前该和弦指法数据表已经存在,可以在执行本实施例的前述步骤中生成,也可以在执行本实施例的前述步骤中获取得到,还可以在执行本实施例前已经完成和弦指法数据表的生成或者获取过程。在此对于如何生成或者获取该和弦指法数据表不作具体限定,其主要包括和弦名、指法和不弹的弦三部分内容构成。下表1为图2对应三种和弦的和弦指法数据表:
表1和弦指法数据表
Figure PCTCN2022127590-appb-000001
当然,表1仅为部分和弦对应的和弦指法数据表,本领域技术人员有能力根据确认不同弹奏乐器在不同弹奏节奏型下,各种和弦对应的指法操作。换言之,本领域技术人员有能力在执行本步骤时查询和弦指法数据表确定任一种和弦的指法。
在本步骤的一种具体实施过程中,可以由用户输入待配置音乐的曲谱数据和弹奏乐器,或者根据用户输入内容解析以得到或者确定上述内容。例如用户输入待弹奏的歌曲名称,可以自行根据歌曲名称获取相应的曲谱数据,并提供推荐弹奏乐器供用户选择,也可以提供该曲谱数据相应的弹奏节奏型或者提供可弹奏乐器供用户选择。容易理解的是,不同乐器对应的弹奏节奏型可能存在差异,在此不一一举例限定。
S102:根据所述弹奏乐器的弦数确定所述Midi音乐文件中的音轨数量;
本步骤旨在确定音轨数量,通常弹奏乐器的弦数与所需音轨数量相同, 例如吉他对应六条音轨,而尤克里里对应四条音轨。
可以实现配置一定数量的音轨,则在执行本步骤时根据弹奏乐器的弦数确定所需要占用的音轨数量,并配置该音轨为相应的弹奏乐器。
在本步骤的另一种执行方式中,也可以在确定弹奏乐器的弦数后,配置与弦数相同数量的音轨。
S103:读取所述曲谱数据中的和弦,调用节奏型数据表确定所述弹奏乐器对应和弦的弹奏弦号;
本步骤旨在确定曲谱数据中和弦的弹奏弦号。节奏型数据表包含了和弦和对应的弹奏弦号,以及每个弦号的弹奏时长。需要说明的是,同一和弦采用不同的弹奏类型,其对应的弹法存在差异。参见表2和表3,表2为指弹节奏型中部分和弦与相应弹法的节奏型数据表,而表3则是扫弦节奏型中部分和弦与相应弹法的节奏型数据表:
表2指弹节奏型中部分和弦与相应弹法
Figure PCTCN2022127590-appb-000002
表3扫弦节奏型中部分和弦与相应弹法
Figure PCTCN2022127590-appb-000003
Figure PCTCN2022127590-appb-000004
由表2和表3可以看出,C和弦在不同的弹法节奏型中的弹法存在差异,因此,本步骤需要读取曲谱数据中的一个和弦,在节奏型数据表中,根据其弹法找到这一拍和弦对应的弹奏弦号。例如,若曲谱数据中的第一拍,和弦为C和弦,在表3中,查找到对应的弹奏弦号为扫5、4、3弦,持续时间为一拍。此外,以表3中C和弦为例,第一拍C和弦需要弹5弦4弦3弦,若连续两个C和弦,则后续需要弹三次,分别为4弦3弦2弦1弦0.5拍,4弦3弦2弦1弦0.25拍,1弦2弦3弦4弦0.25拍,共同构成第二拍的C和弦。
S104:根据所述弹奏弦号查找所述和弦指法数据表,确定所述和弦对应的指法;
本步骤需要根据上一步骤中确定的弹奏弦号查找和弦指法数据表,从而确定该和弦对应的指法。
此外,还需要注意的是,和弦指法数据表包含了和弦和对应指法的映射关系,意即所有包含和弦和对应指法的映射关系均可作为本步骤中的和弦指法数据表,其存在形式并不拘泥于表格形式,可以以数据库或者其他便于检索的数据格式存在。
S105:根据所述指法确定所述和弦对应的音阶,并按照和弦顺序确定由音阶构成的音阶序列;
本步骤旨在确定指法对应的音阶序列,具体需按照上文所述过程确定每个和弦对应的指法,进而确定该指法对应的音阶,如此确定所有和弦对应的音阶后,按照曲谱数据中和弦顺序即可得到音阶序列。需要说明的是,每个和弦按照上述过程可得到对应的音阶,而音阶序列对应曲谱数据中的所有和弦,即和弦与音阶相对应,而曲谱数据与音阶序列相对应,且每个和弦为一拍。
在执行本步骤时,可以根据弹奏乐器的音阶数据表确定相应的音阶数据表,且不同弹奏乐器的音阶数据表存在较大差异。以吉他为例,参见图3,图3为本申请实施例提供的吉他指板音阶数据表示意图,其中包含了弦号、品号和对应音阶的关系,例如图3中,1弦0品对应高音3,而1弦1品对应高音4,2弦0品对应中音7,由于指法包含了弦数和品数,则本步骤可以对照音阶数据表确定各和弦的音阶,进一步按照和弦的弹奏顺序确定曲谱数据包含所有和弦对应的音阶序列。
S106:确定所述音阶序列中各节拍的弹奏方式,将所述音阶序列及对应的所述弹奏方式写入各个音轨,得到所述Midi音乐文件。
本步骤旨在确定各节拍的弹奏方式,主要指弹奏力度以及每个节拍的弹奏次数。首选需要确定各节拍的弹奏方式,可以根据曲谱数据的每分钟节拍数确定弹奏强弱规律,曲谱数据中每小节的第一拍称为强拍,其余带强音的单位拍称为次强拍,不带强音的单位拍称为弱拍,而有强有弱的相同的时间片断按照一定的次序循环重复叫做节拍,节拍的单位称为拍子。而构成节拍的相同时间片段称为单位拍。如两拍的节拍,单位拍用四分音符标识,可称为四二拍子。常见的几种曲谱数据的每种节拍数和对应的弹奏强弱规律如下:
2/4拍——每小节只有两拍,弹奏强弱规律为:强、弱。
3/4拍——每小节只有三拍,弹奏强弱规律为:强、弱、弱。
4/4拍——每小节只有四拍(但可以被二整除),弹奏强弱规律为:强、弱、次强、弱。
6/8拍——每小节只有六拍(但可以被二整除),弹奏强弱规律为:强、弱、弱、次强、弱、弱。
而弹奏次数因弹奏节奏型的不同而异,例如强拍可能需要弹一次、两次或者四次等。弹奏节奏型指弹奏乐器时的弹法或者手法,包括但不限于扫弦节奏型、指弹节奏型等等。此后即可根据弹奏强弱规律和每个拍子对应的弹奏次数确定音阶序列中各节拍的弹奏力度。下文以两种不同的弹奏节奏型对如何确定音阶序列中各节拍的弹奏方式进行说明:
若弹奏节奏型为指弹节奏型,其包括如下步骤:
第一步、根据所述弹奏强弱规律确定每个拍子第一次弹奏的弹奏力度;
第二步、将每个拍子的剩余弹奏次数均设为弱拍对应的弹奏力度。
由于每个拍子可能需要弹奏多次,而在指弹节奏型中,无论该拍节奏需要弹奏多少次,其第一次与弹奏强弱规律相对应,后续剩余弹奏次数均设为弱拍的弹奏力度。例如若强拍需要弹奏2次,则按照强→弱弹奏该强拍,而若需要弹奏4次,则按照强→弱→弱→弱弹奏该强拍。
又例如,若弹奏节奏型为扫弦节奏型,其弹奏力度的确定方式与指弹节奏型并不相同。此时按照如下过程执行:
第一步、根据所述弹奏强弱规律确定初始弹奏力度;
第二步、以预设节拍数为周期,在每个所述周期内从所述初始弹奏力度开始,所述音阶序列中各音阶的弹奏力度递减,且各所述音阶弹奏的开始时间递增。
对于扫弦节奏型而言,其初始弹奏力度有强弱规律的第一拍的强弱决定。由于扫弦过程多根弦同时弹奏,则后续每个节拍的弹奏力度递减,均小于第一拍的弹奏力度,且音阶弹奏的开始时间递增。
为了更清楚的描述两种不同弹奏节奏型确定弹奏力度时的区别,下文引入弹奏力度值作为参考,可以先获取节拍力度值表。在节拍力度值表中,不同的弹奏力度,例如强拍、次强拍和弱拍,均包含相应的弹奏力度区间。一般来说,8个力度强度对应0-127共计128个弹奏力度值,数值越大,弹奏力度越大。当然,本领域技术人员还可以采用其他方式表示弹奏力度,在此不一一举例限定。
在获取节拍力度值表后,根据弹奏强弱规律确定拍子每次弹奏时的节拍强度,根据节拍力度值表确定节拍强度对应的弹奏力度值,最后建立弹奏力度值与拍子的弹奏次数的映射关系,得到音阶序列中各节拍的弹奏力度。逐一确定每个拍子的弹奏力度值后,即可得到该节拍的弹奏力度,进一步确定包含节拍的音阶的弹奏力度,最后即可得到包含所有音阶的音阶序列的弹奏力度。
若选择指弹节奏型,为了使得Midi音乐文件更符合实际弹奏规律,对于4/4拍节奏,其力度程度的变化规律为强→弱→次强→弱,则弹奏力度 可以按照80→40→60→40的循环行进,表明强拍对应的力度值为80,弱拍对应的力度值为40,而次强拍对应的力度值为60。若为3/4拍节奏,其变化规律为强→弱→弱,相应的可以按照80→40→40的弹奏力度循环进行。
若选择扫弦节奏型,设第一音阶为强拍,且同样力度值为80,假设各节拍采用相同递减,且力度值每次递减10,则弹奏时的力度值变化为80→70→60→50。
以音阶序列为<1,3,5>为例,音阶1,对应音轨5,可以设初始弹奏力度是80,时间0毫秒;音阶3,对应音轨4,力度70,时间1毫秒;音阶5对应音轨3,力度60,时间2秒,其余音轨的力度设置为0。还需要说明的是,每个周期内力度之间的差值不固定,但为了输出的声音更接近弹奏原声,每个周期内相邻音阶的力度差值可以设为固定值,如上述设定,在每个周期内相邻音阶的力度差值即为10。
可以看出,本实施例需要针对曲谱数据中的每个和弦,均可以按照上文所述过程确定其音阶和弹奏方式,则针对曲谱数据中所有和弦执行上述步骤后,可以得到曲谱数据对应的完整音阶序列。在具体的实施过程中,可以采用并行线程对曲谱数据中的各和弦分别执行上述过程,也可以在每个步骤中,对曲谱数据中的所有和弦均处理后再进入下一步骤,还可以对曲谱数据分段处理等,在曲谱数据中所有和弦均按上文所述过程执行并得到音阶序列及弹奏方式的前提下,任何并行处理方式或者串行处理方式均应在本申请的保护范围内。
最后,将音阶序列号和相应的弹奏力度写入各音轨,即可得到Midi音乐文件。可以看出,该Midi音乐文件至少应当包含音阶序列和对应的弹奏力度。此外,针对同一曲谱数据,若采用不同的弹奏乐器,可以配置多个Midi文件,也可以在该Midi文件的显示界面中配置弹奏乐器的选项,供用户选择。相类似的,针对不同的弹奏节奏型、曲谱数据的调式等参数亦可配置选项,供用户选择,则此时该Midi文件可以包含不同弹奏节奏型时的音阶序列及弹奏力度等。为了便于用户快速了解该曲谱数据,还可以将每分钟节拍数、曲谱数据的拍号和弹奏节奏型等相关参数添加至Midi 音乐文件。
本申请实施例通过生成Midi音乐文件,包含了弹奏乐器对应的指法、弹法、音阶和相应的弹奏力度,便于弹奏者知晓各和弦的弹奏方式,从而按照Midi音乐文件稳定弹奏速度,加快和弦切换速度,快速掌握各种弹奏技巧,以及弹唱结合,有效帮助乐器演奏者练习。
在上述实施例的基础上,作为优选的实施例,在获取待配置音乐的曲谱数据,并确定待配置音乐相应的弹奏乐器时,可以直接确定曲谱数据对应的每分钟节拍数,则在最后得到Midi音乐文件时,也可以将每分钟节拍数写入Midi音乐文件,从而完善Midi音乐文件包含的歌曲信息,便于乐器演奏者练习。
在上述实施例的基础上,作为优选的实施例,调用节奏型数据表确定弹奏乐器对应和弦的弹奏弦号之前,可以根据弹奏乐器弹奏时的节奏型,建立各弹奏乐器对应的节奏型数据表。
本实施例旨在建立节奏型数据表,需要注意的是,本实施例仅要求该节奏型数据表的建立在调用节奏型数据表确定弹奏乐器对应和弦的弹奏弦号执行前完成即可,而对于该建立过程与上一实施例中前述步骤之间的顺序关系不作具体限定。在构建节奏型数数据表时,针对不同弹奏乐器建立相应的节奏型数据表。
在上述实施例的基础上,作为优选的实施例,根据弹奏弦号查找和弦指法数据表,确定和弦对应的指法之前,可以整合弹奏乐器弹奏和弦时的指法,生成和弦指法数据表。
本实施例旨在建立和弦指法数据表,同样需要注意的是,本实施例仅要求该和弦指法数据表的生成过程在对和弦指法数据表查表执行前完成即可,而对于该建立过程与上一实施例中前述步骤之间的顺序关系不作具体限定。
特别的,可以实现构建节奏型数据表和和弦指法数据表,作为Midi音乐文件生成的基础数据库存于Midi音乐文件的生成设备或者云端数据库,从而能够在生成Midi音乐文件时快速调用,提高Midi音乐文件的生成效率。
本申请还提供了一种计算机可读存储介质,其上存有计算机程序,该计算机程序被执行时可以实现上述实施例所提供的步骤。该存储介质可以包括:U盘、移动硬盘、只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
本申请还提供了一种终端,可以包括存储器和处理器,所述存储器中存有计算机程序,所述处理器调用所述存储器中的计算机程序时,可以实现上述实施例所提供的步骤。当然所述终端还可以包括各种网络接口,电源等组件。请参见图4,图4为本申请实施例所提供的一种终端的结构示意图,本实施例的终端可以包括:处理器2101和存储器2102。
可选的,该终端还可以包括通信接口2103、输入单元2104和显示器2105和通信总线2106。
处理器2101、存储器2102、通信接口2103、输入单元2104、显示器2105、均通过通信总线2106完成相互间的通信。
在本申请实施例中,该处理器2101,可以为中央处理器(Central Processing Unit,CPU),特定应用集成电路,数字信号处理器、现成可编程门阵列或者其他可编程逻辑器件等。
该处理器可以调用存储器2102中存储的程序。具体的,处理器可以执行上文的实施例中终端所执行的操作。
存储器2102中用于存放一个或者一个以上程序,程序可以包括程序代码,所述程序代码包括计算机操作指令,在本申请实施例中,该存储器中至少存储有用于实现以下功能的程序:
获取待配置音乐的曲谱数据,并确定所述待配置音乐相应的弹奏乐器;
根据所述弹奏乐器的弦数确定所述Midi音乐文件中的音轨数量;
读取所述曲谱数据中的和弦,调用节奏型数据表确定所述弹奏乐器对应和弦的弹奏弦号;
调用和弦指法数据表查询所述弹奏弦号对应的指法;
根据所述指法确定所述和弦对应的音阶,并按照和弦顺序确定由音阶构成的音阶序列;
确定所述音阶序列中各节拍的弹奏方式,将所述音阶序列及对应的所述弹奏方式写入各个音轨,得到所述Midi音乐文件在一种可能的实现方式中,该存储器2102可包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、以及至少一个功能所需的应用程序等;存储数据区可存储根据计算机的使用过程中所创建的数据。
此外,存储器2102可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件或其他易失性固态存储器件。
该通信接口2103可以为通信模块的接口,如GSM模块的接口。
本申请还可以包括显示器2105和输入单元2104等等。
图4所示的终端的结构并不构成对本申请实施例中终端的限定,在实际应用中终端可以包括比图4所示的更多或更少的部件,或者组合某些部件。
本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以对本申请进行若干改进和修饰,这些改进和修饰也落入本申请权利要求的保护范围内。
还需要说明的是,在本说明书中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。

Claims (10)

  1. 一种Midi音乐文件的生成方法,其特征在于,包括:
    获取待配置音乐的曲谱数据,并确定所述待配置音乐相应的弹奏乐器;
    根据所述弹奏乐器的弦数确定所述Midi音乐文件中的音轨数量;
    读取所述曲谱数据中的和弦,调用节奏型数据表确定所述弹奏乐器对应和弦的弹奏弦号;
    调用和弦指法数据表查询所述弹奏弦号对应的指法;
    根据所述指法确定所述和弦对应的音阶,并按照和弦顺序确定由音阶构成的音阶序列;
    确定所述音阶序列中各节拍的弹奏方式,将所述音阶序列及对应的所述弹奏方式写入各个音轨,得到所述Midi音乐文件。
  2. 根据权利要求1所述的Midi音乐文件的生成方法,其特征在于,所述弹奏方式包括弹奏次数和弹奏力度,所述确定所述音阶序列中各节拍的弹奏方式包括:
    确定所述弹奏乐器的弹奏节奏型和所述曲谱数据对应的每分钟节拍数;
    根据所述每分钟节拍数确定弹奏强弱规律;
    根据所述弹奏节奏型确定每个拍子对应的弹奏次数;
    根据所述弹奏强弱规律和所述每个拍子对应的弹奏次数确定所述音阶序列中各节拍的弹奏力度。
  3. 根据权利要求2所述的Midi音乐文件的生成方法,其特征在于,所述弹奏节奏型为指弹节奏型,所述根据所述弹奏强弱规律和所述每个拍子对应的弹奏次数确定所述音阶序列中各节拍的弹奏力度包括:
    根据所述弹奏强弱规律确定每个拍子第一次弹奏的弹奏力度;
    将每个拍子的剩余弹奏次数均设为弱拍对应的弹奏力度。
  4. 根据权利要求2所述的Midi音乐文件的生成方法,其特征在于,所述弹奏节奏型为扫弦节奏型,所述根据所述弹奏强弱规律和所述每个拍子对应的弹奏次数确定所述音阶序列中各节拍的弹奏力度包括:
    根据所述弹奏强弱规律确定初始弹奏力度;
    以预设节拍数为周期,在每个所述周期内从所述初始弹奏力度开始,所述音阶序列每次弹奏时各音阶的弹奏力度递减,且各所述音阶弹奏的开始时间递增。
  5. 根据权利要求1所述的Midi音乐文件的生成方法,其特征在于,所述根据所述弹奏强弱规律和所述每个拍子对应的弹奏次数确定所述音阶序列中各节拍的弹奏力度包括:
    获取节拍力度值表;
    根据所述弹奏强弱规律确定所述拍子每次弹奏时的节拍强度;
    根据所述节拍力度值表确定所述节拍强度对应的弹奏力度值;
    建立所述弹奏力度值与所述拍子的弹奏次数的映射关系,得到所述音阶序列中各节拍的弹奏力度。
  6. 根据权利要求1所述的Midi音乐文件的生成方法,其特征在于,所述调用节奏型数据表确定所述弹奏乐器对应和弦的弹奏弦号之前,还包括:
    根据弹奏乐器弹奏时的节奏型,建立各所述弹奏乐器对应的节奏型数据表。
  7. 根据权利要求1所述的Midi音乐文件的生成方法,其特征在于,所述根据所述弹奏弦号查找和弦指法数据表,确定所述和弦对应的指法之前,还包括:
    整合所述弹奏乐器弹奏和弦时的指法,生成所述和弦指法数据表。
  8. 根据权利要求2所述的Midi音乐文件的生成方法,其特征在于,得到所述Midi音乐文件之后,还包括:
    将所述每分钟节拍数、所述曲谱数据的拍号和所述弹奏节奏型添加至所述Midi音乐文件。
  9. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1-8任一项所述的Midi音乐文件的生成方法的步骤。
  10. 一种终端,其特征在于,包括存储器和处理器,所述存储器中存有计算机程序,所述处理器调用所述存储器中的计算机程序时实现如权利 要求1-8任一项所述的Midi音乐文件的生成方法的步骤。
PCT/CN2022/127590 2021-12-31 2022-10-26 Midi音乐文件的生成方法、存储介质和终端 WO2023124472A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202111676119.7A CN114267318A (zh) 2021-12-31 2021-12-31 Midi音乐文件的生成方法、存储介质和终端
CN202111676119.7 2021-12-31

Publications (1)

Publication Number Publication Date
WO2023124472A1 true WO2023124472A1 (zh) 2023-07-06

Family

ID=80832404

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/127590 WO2023124472A1 (zh) 2021-12-31 2022-10-26 Midi音乐文件的生成方法、存储介质和终端

Country Status (2)

Country Link
CN (1) CN114267318A (zh)
WO (1) WO2023124472A1 (zh)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114267318A (zh) * 2021-12-31 2022-04-01 腾讯音乐娱乐科技(深圳)有限公司 Midi音乐文件的生成方法、存储介质和终端

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0997060A (ja) * 1995-09-29 1997-04-08 Kawai Musical Instr Mfg Co Ltd 楽譜認識装置
CN103729141A (zh) * 2013-12-26 2014-04-16 安徽科大讯飞信息科技股份有限公司 实现输入法键盘音乐发声的方法及系统
CN109844859A (zh) * 2016-10-03 2019-06-04 诺基亚技术有限公司 使用所分离的对象编辑音频信号的方法和相关联的装置
CN111512359A (zh) * 2017-12-18 2020-08-07 字节跳动有限公司 模块化自动音乐制作服务器
CN112669796A (zh) * 2020-12-29 2021-04-16 西交利物浦大学 基于人工智能的音乐转乐谱的方法及装置
CN113539215A (zh) * 2020-12-29 2021-10-22 腾讯科技(深圳)有限公司 音乐风格转换方法、装置、设备及存储介质
CN114267318A (zh) * 2021-12-31 2022-04-01 腾讯音乐娱乐科技(深圳)有限公司 Midi音乐文件的生成方法、存储介质和终端

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0997060A (ja) * 1995-09-29 1997-04-08 Kawai Musical Instr Mfg Co Ltd 楽譜認識装置
CN103729141A (zh) * 2013-12-26 2014-04-16 安徽科大讯飞信息科技股份有限公司 实现输入法键盘音乐发声的方法及系统
CN109844859A (zh) * 2016-10-03 2019-06-04 诺基亚技术有限公司 使用所分离的对象编辑音频信号的方法和相关联的装置
CN111512359A (zh) * 2017-12-18 2020-08-07 字节跳动有限公司 模块化自动音乐制作服务器
CN112669796A (zh) * 2020-12-29 2021-04-16 西交利物浦大学 基于人工智能的音乐转乐谱的方法及装置
CN113539215A (zh) * 2020-12-29 2021-10-22 腾讯科技(深圳)有限公司 音乐风格转换方法、装置、设备及存储介质
CN114267318A (zh) * 2021-12-31 2022-04-01 腾讯音乐娱乐科技(深圳)有限公司 Midi音乐文件的生成方法、存储介质和终端

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
HONG, CHIYANG ET AL.: "Building AR Virtual String Quartet for Live Concert", 2021 IEEE INTERNATIONAL CONFERENCE ON ARTIFICIAL INTELLIGENCE AND VIRTUAL REALITY (AIVR), 22 December 2021 (2021-12-22), XP034056213 *

Also Published As

Publication number Publication date
CN114267318A (zh) 2022-04-01

Similar Documents

Publication Publication Date Title
US6225546B1 (en) Method and apparatus for music summarization and creation of audio summaries
JP3541689B2 (ja) 和音表示装置および記憶媒体
WO2023124472A1 (zh) Midi音乐文件的生成方法、存储介质和终端
Carpentier et al. Automatic orchestration in practice
US10083622B1 (en) Music notation and charting method
JPS59197090A (ja) 電子楽器
US6984781B2 (en) Music formulation
WO2021166745A1 (ja) アレンジ生成方法、アレンジ生成装置、及び生成プログラム
Hewitt Composition for computer musicians
Loth et al. Proggp: From guitarpro tablature neural generation to progressive metal production
US20180268731A1 (en) Musical Modification Method
JP3832463B2 (ja) 和音表示装置
Jones The Complete Guide to Music Technology
JP4595852B2 (ja) 演奏データ処理装置及びプログラム
JP3692954B2 (ja) 楽曲データ編集プログラム、楽曲データ編集方法および装置
Durkin et al. On Organology: Taxonomy and Transdisciplinarity
JP2000163064A (ja) 楽曲生成装置および楽曲生成プログラムを記録した記録媒体
Durkin et al. Taxonomy and Transdisciplinarity
Sankarana Salient Features of Melody, Rhythm and Lyrics in Carnatic Music
Muller MICHAEL BLAKE'S STRING QUARTETS AND THE IDEA OF AFRICAN ART MUSIC
Brinberg Eight sounds, two continents: A conductor's analysis of Ba Yin by Chen Yi
JPH03282592A (ja) 自動演奏装置
Guevara-Gutierrez “Folklore Imaginaire” in Latin America: Arrangements for Cello and Guitar of Three Works Written by Alberto Ginastera and an Original Composition Based on His Compositional Techniques
CN114299899A (zh) 目标音乐的生成方法、装置、终端及存储介质
Jones Music Technology A Level

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22913735

Country of ref document: EP

Kind code of ref document: A1