CN113077769A - Music control method, apparatus, readable storage medium, and program product - Google Patents

Music control method, apparatus, readable storage medium, and program product Download PDF

Info

Publication number
CN113077769A
CN113077769A CN202110257210.9A CN202110257210A CN113077769A CN 113077769 A CN113077769 A CN 113077769A CN 202110257210 A CN202110257210 A CN 202110257210A CN 113077769 A CN113077769 A CN 113077769A
Authority
CN
China
Prior art keywords
music
key
type information
control method
acquiring
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202110257210.9A
Other languages
Chinese (zh)
Inventor
唐文轩
李劲松
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Unknown Planet Technology Dongguan Co ltd
Original Assignee
Unknown Planet Technology Dongguan Co ltd
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 Unknown Planet Technology Dongguan Co ltd filed Critical Unknown Planet Technology Dongguan Co ltd
Priority to CN202110257210.9A priority Critical patent/CN113077769A/en
Publication of CN113077769A publication Critical patent/CN113077769A/en
Pending legal-status Critical Current

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
    • G10H1/0008Associated control or indicating means

Landscapes

  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Electrophonic Musical Instruments (AREA)

Abstract

The invention discloses a music control method, a device, a readable storage medium and a program product, wherein the method comprises the following steps: responding to a combined key response instruction, and acquiring first music type information corresponding to the combined key response instruction based on a preset mapping relation; the combined key response instruction is a response instruction corresponding to a plurality of keys; and acquiring a target music fragment corresponding to the first music type information. The invention realizes that the electronic musical instrument can provide comprehensive music type information, and does not need to arrange excessive keys on the electronic musical instrument, thereby reducing the limitation of the playable contents and the use difficulty of the electronic musical instrument.

Description

Music control method, apparatus, readable storage medium, and program product
Technical Field
The present invention relates to the field of music technology, and in particular, to a music control method, device, readable storage medium, and program product.
Background
With the development of electronic musical instruments, the electronic musical instruments are more convenient to use compared with the traditional musical instruments, and are more popular among people. However, in order to better restore the chord played by the conventional musical instrument and simplify the way in which the conventional musical instrument plays the chord so as to make the electronic musical instrument more convenient to use, the current electronic musical instrument is provided with keys corresponding to the chord, that is, pressing one key is equivalent to playing a chord.
However, the chords include a major chord, a seventh chord, a major chord, a fourth chord, a second chord, a major chord, and a second chord, so that the electronic musical instrument cannot fully play the chords that the user needs to play, but only provides a part of the chords (for example, a common major chord) on the electronic musical instrument, which causes the types of the chords that the electronic musical instrument can play to be incomplete, and in order to meet the use requirements of the user as much as possible, the electronic musical instrument is provided with a large number of keys, which increases the difficulty in using the electronic musical instrument.
Therefore, the existing electronic musical instrument has high limitation on the playable contents and high difficulty in use.
Disclosure of Invention
The invention mainly aims to provide a music control method, a music control device, a readable storage medium and a program product, and aims to solve the technical problems of high limitation of playable contents and high use difficulty of the existing electronic musical instrument.
To achieve the above object, the present invention provides a music control method applied to an electronic musical instrument, the music control method including the steps of:
responding to a combined key response instruction, and acquiring first music type information corresponding to the combined key response instruction based on a preset mapping relation; the combined key response instruction is a response instruction corresponding to a plurality of keys;
and acquiring a target music fragment corresponding to the first music type information.
Optionally, the obtaining of the target music piece corresponding to the first music type information includes:
and detecting a first playing triggering instruction, and acquiring a target music segment corresponding to the first music type information.
Optionally, before the responding to the combination key response instruction and obtaining the first music type information corresponding to the combination key response instruction based on the preset mapping relationship, the method includes:
and acquiring key operation, if the key operation accords with a preset combined key triggering rule, triggering a combined key response instruction generation condition, and generating a combined key response instruction.
Optionally, if the key operation meets a preset combination key triggering rule, triggering a combination key response instruction generation condition, including:
and if the key operation meets the preset time requirement, determining that the key operation meets the preset combined key triggering rule, and triggering a combined key response instruction generating condition.
Optionally, if the key operation meets the preset time requirement, determining that the key operation meets a preset combination key triggering rule includes:
and if the time for keeping the key operation in the trigger state is longer than or equal to the preset time, determining that the key operation conforms to the preset combined key trigger rule.
Optionally, the key operation includes a plurality of sub-key operations, and the key operation in the trigger-maintaining state includes not adding a new sub-key operation and not canceling an original sub-key operation.
Optionally, the obtaining of the target music piece corresponding to the first music type information includes:
acquiring an initial music piece corresponding to the first music type information;
and adjusting the initial music segment to obtain the target music segment.
Optionally, the adjusting the initial music piece to obtain the target music piece includes:
and acquiring performance parameters, and adjusting the initial music segment based on the performance parameters to obtain the target music segment.
Optionally, the performance parameters include a playing speed parameter, a volume size parameter and a pitch parameter.
Optionally, before the obtaining of the target music piece corresponding to the first music type information, the method includes:
acquiring a user playing mode, and acquiring a rhythm type to be played if the user playing mode is a rhythm type playing mode;
the acquiring the target music piece corresponding to the first music type information includes:
and acquiring the first music type information and a target music fragment corresponding to the rhythm type to be played.
Optionally, after the obtaining of the first music type information and the target music piece corresponding to the rhythm type to be played, the method includes:
detecting a user playing mode switching instruction, and switching the rhythm playing mode into a playing mode;
detecting a second playing trigger instruction, and acquiring second music type information corresponding to the second playing trigger instruction;
and matching a preset note set based on the second music type information to obtain a target note.
Optionally, after obtaining the target music piece corresponding to the first music type information, the method includes:
and outputting or playing the target music segment.
Further, to achieve the above object, the present invention also provides a music control apparatus comprising:
the first obtaining module is used for responding to a combined key response instruction and obtaining first music type information corresponding to the combined key response instruction based on a preset mapping relation;
and the second acquisition module is used for acquiring the target music fragment corresponding to the first music type information.
Further, to achieve the above object, the present invention also provides a music apparatus including a memory, a processor, and a music control program stored on the memory and executable on the processor, the music control program implementing the steps of the music control method as described above when executed by the processor.
Further, to achieve the above object, the present invention also provides a computer-readable storage medium having stored thereon a music control program that, when executed by a processor, implements the steps of the music control method as described above.
Furthermore, to achieve the above object, the present invention also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the music control method as described above.
The method comprises the steps of responding to a combined key response instruction, and acquiring first music type information corresponding to the combined key response instruction based on a preset mapping relation; the combined key response instruction is a response instruction corresponding to a plurality of keys; and acquiring a target music fragment corresponding to the first music type information. The invention realizes the mode of corresponding one piece of music type information through a plurality of keys, so that the corresponding relation between the keys and the music type information is not a one-to-one corresponding relation any more, and different corresponding relations between the keys and the music type information are realized through combining the plurality of keys, so that the electronic musical instrument can provide comprehensive music type information, and excessive keys do not need to be arranged on the electronic musical instrument, thereby reducing the limitation of the playable content and the use difficulty of the electronic musical instrument.
Drawings
FIG. 1 is a flow chart of a music control method according to a first embodiment of the present invention;
FIG. 2 is a flow chart of a music control method according to a second embodiment of the present invention;
FIG. 3 is a functional block diagram of a music control device according to a preferred embodiment of the present invention;
fig. 4 is a schematic structural diagram of a hardware operating environment according to an embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a flowchart illustrating a music control method according to a first embodiment of the present invention.
While a logical order is shown in the flow chart, in some cases, the steps shown or described may be performed in an order different than that shown or described herein. The music control method is applicable to electronic musical instruments including guitars. For convenience of description, the execution of the steps of the subject description music control method are omitted below. The music control method comprises the following steps:
step S110, responding to a combined key response instruction, and acquiring first music type information corresponding to the combined key response instruction based on a preset mapping relation; the combined key response instruction is a response instruction corresponding to the plurality of keys.
Specifically, in response to a combined key response instruction, first music type information corresponding to the combined key response instruction is acquired based on a preset mapping relation, wherein the combined key response instruction is a response instruction corresponding to a plurality of keys, and the response instruction is used for responding to a performance related instruction sent by a user.
It should be noted that the preset mapping relationship is a mapping relationship between a combination of the keys and the first music type information, where the first music type information is a chord. For example, the key includes a main key and an auxiliary key, wherein the main key is a commonly used key, the main key may correspond to a chord with high frequency of use, for example, the main key corresponds to a major chord, the auxiliary key is mainly used after being combined with the main key, and of course, the auxiliary key may also be used alone.
In one embodiment, the main key is a key "main", the auxiliary keys are "1" and "2", and the chord regions respectively correspond to a mutually different main key and two mutually different auxiliary keys. The main keys may have a front-back relationship, for example, the key "main" in the C region is the key "main" in the D region, and for the B region without the next region, an additional main key without an auxiliary key may be provided. Accordingly, the correspondence between the keys and the chord regions and the chords can be seen in the following table:
Figure BDA0002967877030000051
Figure BDA0002967877030000061
before the step of responding to the combination key response instruction and acquiring the first music type information corresponding to the combination key response instruction based on the preset mapping relationship, the method includes:
step a, obtaining key operation, if the key operation accords with a preset combined key triggering rule, triggering a combined key response instruction generating condition, and generating a combined key response instruction.
Specifically, key operation is obtained, and if the key operation meets a preset combination key triggering rule, a combination key response instruction generation condition is triggered, and a combination key response instruction is generated. The key operation is the operation made by the user based on the purpose of playing, namely, the key operation is the operation related to playing; the preset combination key triggering rule ensures that the key operation belongs to the operation corresponding to the combination key when the combination key response instruction is generated, namely the key operation accords with the preset combination key triggering rule only when the key operation corresponds to a plurality of keys, so that the key operation does not accord with the preset combination key triggering rule and cannot trigger the combination key response instruction generating condition when the key operation corresponds to one key; the combined key response instruction is used for responding to the key operation to trigger the operation of acquiring the first music type information corresponding to the combined key response instruction.
If the key operation meets the preset combined key triggering rule, triggering a combined key response instruction generation condition, including:
and b, if the key operation meets the preset time requirement, determining that the key operation meets the preset combined key triggering rule, and triggering a combined key response instruction generating condition.
Specifically, if the key operation meets the preset time requirement, determining that the key operation meets the preset combination key triggering rule, and triggering a combination key response instruction generation condition. The preset time requirement is a time-related requirement, that is, the time corresponding to the key operation needs to meet the time-related requirement, and the time corresponding to the key operation is a time relationship between operations corresponding to the keys when the key operation is an operation corresponding to a plurality of keys, for example, a time interval between operations corresponding to the keys, that is, when the key operation meets the preset time requirement, a preset combination key triggering rule is necessarily met.
If the key operation meets the preset time requirement, determining that the key operation meets the preset combination key triggering rule includes:
and c, if the time for keeping the key operation in the trigger state is greater than or equal to the preset time, determining that the key operation accords with the preset combined key trigger rule.
Specifically, if the time for the key operation to stay in the trigger state is greater than or equal to the preset time, it is determined that the key operation meets the preset combination key trigger rule. In the case where the time for holding the key operation in the trigger state is greater than or equal to the preset time, the reference object is not only the received key operation but also a predicted key operation that may be performed by the user.
For the predetermined key operation, it can be understood that the key operation may be an operation corresponding to two keys, or an operation corresponding to three keys, for example, after receiving the key operations corresponding to the key "main" and the key "1" pressed in the C region triggered by the user, the operation corresponding to the key "2" pressed by the user may be continuously received, or the operation corresponding to the key "2" pressed by the user may not be received any more, at this time, a determination mechanism for determining whether the time for which the key operation is in the trigger maintaining state is greater than or equal to the preset time needs to be set, when the time for which the key operation is in the trigger maintaining state is greater than or equal to the preset time, it is determined that the operation corresponding to the key "2" pressed by the user is not received any more, that is, it is determined that the key operation is composed of the key operations corresponding to the key "main" and the key, when the time for the key operation to stay in the trigger state is less than the preset time, it is determined that the operation corresponding to the user pressing the key "2" may be continuously received, and it is not determined which key operations specifically consist of the key operations corresponding to which keys.
The preset time may be specifically set according to needs, and is not specifically limited in this embodiment.
The key operation comprises a plurality of sub-key operations, and the key operation in the trigger maintaining state comprises the operation that a new sub-key is not added and the operation that the original sub-key is not cancelled.
Specifically, the key operation in the trigger-holding state includes not adding a new sub-key operation and not canceling an original sub-key operation. For the sub-key operation, a plurality of sub-key operations may form one key operation, for example, when the key operation is formed by key operations corresponding to the key "main" and the key "1" in the C region, both the key "main" and the key "1" are sub-key operations, that is, the key operation is formed by two sub-keys.
For the operation that a new sub-key is not added, that is, after the key operation is received, the new sub-key operation is not received within the preset time, for example, when the key operation consists of key operations corresponding to the key "main" and the key "1" in the C region, the operation corresponding to the key "2" pressed by the user is not continuously received within the preset time; for the operation that the original sub-key operation is not cancelled, that is, after the key operation is received, the operation corresponding to the cancellation of the original sub-key operation is not received within the preset time, for example, when the key operation is composed of key operations corresponding to the key "main" and the key "1" in the C region, the cancellation operation corresponding to the user's cancellation of pressing the key "1" is not received within the preset time.
It should be noted that, by determining whether a cancel operation corresponding to an original sub-key operation that is not canceled is received, it is possible to avoid a wrong response to a key operation made by a user due to a wrong touch.
Step S120, obtaining a target music piece corresponding to the first music type information.
Specifically, a target music piece corresponding to the first music type information is obtained, that is, a corresponding relationship exists between different chords and the target music piece. It can be understood that the combination key response instruction triggers both the operation of acquiring the first music type information corresponding to the combination key response instruction and the operation of acquiring the target music piece corresponding to the first music type information.
The obtaining of the target music piece corresponding to the first music type information includes:
and d, detecting a first playing triggering instruction, and acquiring a target music fragment corresponding to the first music type information.
Specifically, when the first performance triggering instruction is detected, the target music piece corresponding to the first music type information is acquired, that is, after the first music type information is acquired, the acquiring action of acquiring the target music piece corresponding to the first music type information needs to be triggered through the first performance triggering instruction.
On one hand, the target music piece is obtained by detecting the first performance triggering instruction corresponding to the operation of the user, and compared with the situation without the detection process, the influence of misoperation on the performance process, which is generated by responding to the combined key response instruction due to the mistaken touch of the user, is eliminated; on the other hand, the chord and the music segment are not in one-to-one relationship, and besides the chord and the music segment are bound before playing, so that extra playing triggering instructions are not needed during playing, a user needs to select the chord and also needs to select a rhythm type or press a string plucking key to complete playing during playing. Among them, in a musical piece, there is a rhythm having a characteristic feature and appearing repeatedly, which is called a rhythm type.
Before the obtaining of the target music piece corresponding to the first music type information, the method includes:
and e, acquiring a user playing mode, and acquiring a rhythm type to be played if the user playing mode is a rhythm type playing mode.
Specifically, a user performance mode is obtained, and if the user performance mode is a rhythm type performance mode, besides obtaining the first music type information, a rhythm type to be performed also needs to be obtained; if the user mode is not the rhythm type performance mode, there is no need to acquire the rhythm type to be performed, but other operations are performed. It is understood that the user performance mode of the electronic musical instrument may be various, i.e., there are other user performance modes in addition to the rhythm type performance mode.
The acquiring the target music piece corresponding to the first music type information includes:
and f, acquiring the first music type information and the target music fragment corresponding to the rhythm type to be played.
Specifically, the corresponding target music piece is obtained according to the rhythm type to be played and the first music type information. The rhythm type to be played is the rhythm type to be played, the rhythm type to be played determines the corresponding music segment, and one music segment consists of one or more notes with different durations. That is, the correspondence is the correspondence between the rhythm type to be performed and the target music piece of the first music type information, it can be understood that the music piece includes a plurality of music pieces, one of the target music pieces is, and a mapping relationship exists between the rhythm type and the music type information and the music piece, and in an embodiment, the mapping relationship can be obtained by the following table:
Figure BDA0002967877030000091
the obtaining of the target music piece corresponding to the first music type information includes:
step g, obtaining an initial music piece corresponding to the first music type information;
and h, adjusting the initial music segment to obtain the target music segment.
Specifically, an initial music piece corresponding to the first music type information is obtained; and adjusting the initial music segment to obtain a target music segment.
Specifically, matching a preset note set through the rhythm type to be played and the first music type information to obtain at least two notes, and combining the notes to obtain an initial music segment; and adjusting the initial music segment to obtain a target music segment. The number of the notes corresponds to the rhythm type to be played, for example, the rhythm type to be played is rhythm type a, the number of the corresponding notes is 5, the rhythm type to be played is rhythm type B, and the number of the corresponding notes is 6. Note that the notes may be the same or different.
It should be noted that the matching process is a process of selecting notes corresponding to the rhythm type to be played and the first music type information from a preset note set, and the process may be selecting at least two corresponding notes from a plurality of notes corresponding to the first music type information according to the rhythm type to be played, and then combining the notes according to the rhythm type to be played to obtain the initial music piece.
The adjusting the initial music piece to obtain the target music piece includes:
and i, acquiring performance parameters, and adjusting the initial music segment based on the performance parameters to obtain the target music segment.
Specifically, performance parameters are obtained, and the initial music segment is adjusted based on the performance parameters to obtain the target music segment. It can be understood that the note combination is not necessarily suitable for the playing process, and needs to be adaptively adjusted after the initial music piece is obtained.
The playing parameters comprise a playing speed parameter, a volume size parameter and a tone variation parameter.
Specifically, the performance parameters include a play speed parameter, a volume size parameter, and a pitch parameter. The playing speed parameter affects the total duration of the music segment, and the playing speed parameter can be embodied as a multiple of the duration of the music segment, for example, if the playing duration of the target music segment before adjustment is 5 seconds, and the playing speed parameter is 0.8, the adjusted target music segment is a product of 5 and 0.8, that is, the playing duration is 4 seconds; the volume parameter determines the volume of the target music piece when the target music piece is played through a player of the electronic musical instrument or a playing device externally connected with the electronic musical instrument; the key-transposition parameter may transpose the target piece of music, including rising and falling key.
After the obtaining of the target music piece corresponding to the first music type information, the method includes:
and j, outputting or playing the target music segment.
Specifically, when playing an electronic musical instrument, a user needs to transmit a performance result to a playing object thereof by means of sound, and the transmission means includes: outputting the target music segment to a playing device (such as a sound device) externally connected with the electronic musical instrument, so as to play the target music segment to the playing object through the playing device externally connected with the electronic musical instrument; or, the target music piece is directly played to the playing object through the playing device of the electronic musical instrument.
In the embodiment, by responding to a combined key response instruction, first music type information corresponding to the combined key response instruction is acquired based on a preset mapping relation; the combined key response instruction is a response instruction corresponding to a plurality of keys; and acquiring a target music fragment corresponding to the first music type information. The embodiment realizes the mode of corresponding to one piece of music type information through a plurality of keys, so that the corresponding relation between the keys and the music type information is not a one-to-one corresponding relation any more, the corresponding relation different from the music type information is realized through combining the keys, the electronic musical instrument can provide comprehensive music type information, excessive keys do not need to be arranged on the electronic musical instrument, and the limitation and the use difficulty of the playable content of the electronic musical instrument are reduced.
Further, referring to fig. 2, on the basis of the first embodiment of the music control method of the present invention, a second embodiment is proposed, where after acquiring the first music type information and the target music piece corresponding to the to-be-played rhythm type, the method includes:
in step S230, a user performance mode switching instruction is detected, and the rhythm performance mode is switched to a playing performance mode.
Specifically, a user performance mode switching instruction is detected, and the rhythm type performance mode is switched to a playing performance mode, for example, a six-string performance mode of a real guitar is simulated through the playing performance mode, and a user of the guitar can play through real six strings or keys simulating the six strings for the playing performance mode.
Step S240, detecting a second performance triggering instruction, and acquiring second music type information corresponding to the second performance triggering instruction.
Specifically, a second performance triggering instruction is detected, and second music type information corresponding to the second performance triggering instruction is acquired, where the second music type information may be the same as or different from the first music type information. For example, the second performance triggering instruction is triggered by the user through the real six strings or the keys simulating the six strings.
And step S250, matching a preset note set based on the second music type information to obtain a target note.
Specifically, the preset note set is matched based on the second music type information, and the target note is obtained. It can be understood that, taking a guitar as an example, each time one of the real six strings or one of the keys simulating the six strings is triggered, a second playing triggering instruction is sent out, and a corresponding note is obtained.
The present embodiment switches the rhythm type performance mode to the playing performance mode by detecting a user performance mode switching instruction; detecting a second playing trigger instruction, and acquiring second music type information corresponding to the second playing trigger instruction; and matching the preset note set based on the second music type information to obtain target notes and provide different user playing modes. The switching of the playing modes of the user is realized, the playing modes are provided for the user, so that the experience feeling of playing the traditional musical instrument is provided for the user when playing the electronic musical instrument, and the user experience is improved.
In addition, the present invention also provides a music control apparatus, as shown in fig. 3, comprising:
the first obtaining module 10 is configured to, in response to a combination key response instruction, obtain, based on a preset mapping relationship, first music type information corresponding to the combination key response instruction;
a second obtaining module 20, configured to obtain a target music piece corresponding to the first music type information.
Further, the second obtaining module 20 includes:
and the first acquisition unit is used for detecting a first performance trigger instruction and acquiring a target music segment corresponding to the first music type information.
Further, the music control apparatus further includes:
the third acquisition module is used for acquiring key operation;
the triggering module is used for triggering a combined key response instruction generating condition if the key operation accords with a preset combined key triggering rule;
and the generating module is used for generating a combined key response instruction.
Further, the triggering module includes:
the determining unit is used for determining that the key operation accords with a preset combined key triggering rule if the key operation accords with a preset time requirement;
and the triggering unit is used for triggering the generation condition of the response instruction of the combined key.
Further, the determining unit includes:
and the determining subunit is used for determining that the key operation conforms to a preset combined key triggering rule if the time for keeping the key operation in the triggering state is greater than or equal to the preset time.
Further, the second obtaining module 20 includes:
a second obtaining unit, configured to obtain an initial music piece corresponding to the first music type information;
and the adjusting unit is used for adjusting the initial music segment to obtain the target music segment.
Further, the adjusting unit includes:
an acquisition subunit configured to acquire performance parameters;
and the adjusting subunit is used for adjusting the initial music segment based on the performance parameters to obtain the target music segment.
Further, the music control apparatus further includes:
a fourth acquiring module for acquiring a user performance mode;
a fifth obtaining module, configured to obtain a rhythm type to be played if the user playing mode is a rhythm type playing mode;
the second obtaining module 20 includes:
and a third obtaining unit, configured to obtain the first music type information and a target music piece corresponding to the rhythm type to be performed.
Further, the music control apparatus further includes:
the switching module is used for detecting a playing mode switching instruction of a user and switching the rhythm playing mode into a playing mode;
the sixth acquisition module is used for detecting a second playing trigger instruction and acquiring second music type information corresponding to the second playing trigger instruction;
and the matching module is used for matching a preset note set based on the second music type information to obtain a target note.
Further, the music control apparatus further includes:
an output module for outputting the target music piece; or the like, or, alternatively,
and the playing module is used for playing the target music fragment.
The specific implementation of the music control apparatus of the present invention is substantially the same as that of the above-mentioned embodiments of the music control method, and will not be described herein again.
In addition, the invention also provides music equipment. As shown in fig. 4, fig. 4 is a schematic structural diagram of a hardware operating environment according to an embodiment of the present invention.
It should be noted that fig. 4 is a schematic structural diagram of a hardware operating environment of the music device.
As shown in fig. 4, the music apparatus may include: a processor 1001, such as a CPU, a memory 1005, a user interface 1003, a network interface 1004, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Optionally, the music device may further include RF (Radio Frequency) circuits, sensors, audio circuits, a WiFi module, and the like.
Those skilled in the art will appreciate that the musical instrument configuration shown in fig. 4 is not intended to be limiting of musical instruments and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 4, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a music control program. Among them, the operating system is a program that manages and controls hardware and software resources of the music apparatus, and supports the operation of the music control program and other software or programs.
In the music apparatus shown in fig. 4, the user interface 1003 is mainly used for connecting to a terminal, and performing data communication with the terminal, such as receiving a preset note set sent by the terminal; the network interface 1004 is mainly used for the background server and performs data communication with the background server; the processor 1001 may be configured to call the music control program stored in the memory 1005 and execute the steps of the music control method as described above.
The specific implementation of the music device of the present invention is substantially the same as the embodiments of the music control method described above, and will not be described herein again.
Furthermore, an embodiment of the present invention further provides a computer-readable storage medium, where a music control program is stored, and the music control program, when executed by a processor, implements the steps of the music control method as described above.
The specific implementation of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the music control method described above, and is not described herein again.
Furthermore, an embodiment of the present invention also proposes a computer program product, comprising a computer program, which when executed by a processor implements the steps of the music control method as described above.
The specific implementation of the computer program product of the present invention is substantially the same as the embodiments of the music control method, and will not be described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, a device, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (15)

1. A music control method applied to an electronic musical instrument, the music control method comprising the steps of:
responding to a combined key response instruction, and acquiring first music type information corresponding to the combined key response instruction based on a preset mapping relation; the combined key response instruction is a response instruction corresponding to a plurality of keys;
and acquiring a target music fragment corresponding to the first music type information.
2. The music control method according to claim 1, wherein said obtaining the target music piece corresponding to the first music type information includes:
and detecting a first playing triggering instruction, and acquiring a target music segment corresponding to the first music type information.
3. The music control method according to claim 1 or 2, wherein before the step of obtaining the first music type information corresponding to the combined key response instruction based on a preset mapping relationship in response to the combined key response instruction, the method comprises:
and acquiring key operation, if the key operation accords with a preset combined key triggering rule, triggering a combined key response instruction generation condition, and generating a combined key response instruction.
4. The music control method according to claim 3, wherein the triggering a combination key response instruction generation condition if the key operation meets a preset combination key triggering rule includes:
and if the key operation meets the preset time requirement, determining that the key operation meets the preset combined key triggering rule, and triggering a combined key response instruction generating condition.
5. The music control method of claim 4, wherein determining that the key operation meets a predetermined combination key triggering rule if the key operation meets a predetermined time requirement comprises:
and if the time for keeping the key operation in the trigger state is longer than or equal to the preset time, determining that the key operation conforms to the preset combined key trigger rule.
6. The music control method of claim 5, wherein the key operation comprises a plurality of sub-key operations, and the key operation in the hold-triggered state comprises not adding a new sub-key operation and not canceling an original sub-key operation.
7. The music control method according to claim 1 or 2, wherein said obtaining the target music piece corresponding to the first music type information includes:
acquiring an initial music piece corresponding to the first music type information;
and adjusting the initial music segment to obtain the target music segment.
8. The music control method of claim 7, wherein said adjusting the initial music piece to obtain the target music piece comprises:
and acquiring performance parameters, and adjusting the initial music segment based on the performance parameters to obtain the target music segment.
9. The music control method of claim 8, wherein the performance parameters include a play speed parameter, a volume level parameter, and a key change parameter.
10. The music control method according to claim 1 or 2, wherein before the obtaining of the target music piece corresponding to the first music type information, the method comprises:
acquiring a user playing mode, and acquiring a rhythm type to be played if the user playing mode is a rhythm type playing mode;
the acquiring the target music piece corresponding to the first music type information includes:
and acquiring the first music type information and a target music fragment corresponding to the rhythm type to be played.
11. The music control method according to claim 10, wherein said obtaining the first music type information and the target music piece corresponding to the rhythm type to be performed, comprises:
detecting a user playing mode switching instruction, and switching the rhythm playing mode into a playing mode;
detecting a second playing trigger instruction, and acquiring second music type information corresponding to the second playing trigger instruction;
and matching a preset note set based on the second music type information to obtain a target note.
12. The music control method according to claim 1 or 2, wherein after the obtaining of the target music piece corresponding to the first music type information, the method comprises:
and outputting or playing the target music segment.
13. A musical apparatus comprising a memory, a processor, and a music control program stored on the memory and executable on the processor, the music control program when executed by the processor implementing the steps of the music control method as claimed in any one of claims 1 to 12.
14. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon a music control program that, when executed by a processor, implements the steps of the music control method according to any one of claims 1 to 12.
15. A computer program product comprising a computer program, characterized in that the computer program realizes the steps of the music control method according to any one of claims 1 to 12 when executed by a processor.
CN202110257210.9A 2021-03-09 2021-03-09 Music control method, apparatus, readable storage medium, and program product Pending CN113077769A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110257210.9A CN113077769A (en) 2021-03-09 2021-03-09 Music control method, apparatus, readable storage medium, and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110257210.9A CN113077769A (en) 2021-03-09 2021-03-09 Music control method, apparatus, readable storage medium, and program product

Publications (1)

Publication Number Publication Date
CN113077769A true CN113077769A (en) 2021-07-06

Family

ID=76612217

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110257210.9A Pending CN113077769A (en) 2021-03-09 2021-03-09 Music control method, apparatus, readable storage medium, and program product

Country Status (1)

Country Link
CN (1) CN113077769A (en)

Similar Documents

Publication Publication Date Title
CA2434777C (en) Music data providing apparatus, music data reception apparatus and program
US20220375441A1 (en) Electronic musical instrument, electronic musical instrument controlling method and non-transitory computer-readable storage medium
KR101048021B1 (en) Apparatus and method for playing a portable wireless terminal
CN101673540A (en) Method and device for realizing playing music of mobile terminal
CN113077769A (en) Music control method, apparatus, readable storage medium, and program product
CN112420006B (en) Method and device for operating simulated musical instrument assembly, storage medium and computer equipment
JP4530001B2 (en) Parameter setting device for musical tone control device
US5430242A (en) Electronic musical instrument
CN111785270A (en) Control method of electronic organ, electronic organ and computer readable storage medium
JP3252177B2 (en) Electronic musical instrument
JP4211636B2 (en) Performance control data generation apparatus, music material data distribution server, and program
CN113066455A (en) Music control method, equipment and readable storage medium
US20190096377A1 (en) Conversion-to-note apparatus, electronic wind instrument and conversion-to-note method
JP4148355B2 (en) Mobile terminal device
JP2005196026A (en) Device and method for generating resonant sound of electronic musical instrument, and computer program and recording medium
WO2018159063A1 (en) Electronic acoustic device and tone setting method
CN216772801U (en) Electronic musical instrument
CN112435644A (en) Audio signal output method and device, storage medium and computer equipment
JP2006292954A (en) Electronic musical instrument
CN116343731A (en) Guitar pronunciation control method, guitar and storage medium
JP4093404B2 (en) Mobile communication terminal
KR20060032476A (en) Music performing method and apparatus using keypad
JPH10187156A (en) Electronic stringed instrument capable of tapping harmonics execution
JPH05273972A (en) Electronic musical instrument
CN116134511A (en) Selective tone transforming device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination