Method, device, equipment and medium for generating slapping timbre based on smart guitar

The smart guitar sensor obtains the slap parameters and adjusts the tone, which solves the problem that the smart guitar cannot simulate the slap sound of the traditional acoustic guitar, achieves a more realistic and personalized performance experience, and enhances the expressiveness and appeal of the music.

CN118609528BActive Publication Date: 2024-12-24SHENZHEN ZOUXIN TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410632879.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-21
Publication Date
2024-12-24
Estimated Expiration
2044-05-21

AI Technical Summary

Technical Problem

The existing smart guitars cannot accurately simulate the delicate effect of the right-hand slap of traditional acoustic guitars, and it is difficult for beginners to control the slap tone, which limits the richness and variability of music expression.

Method used

Obtain the user's slap parameters through the sensor on the smart guitar, select the slap sound that matches the slap parameters, and adjust the slap sound according to the style of the current performance to ensure that the slap sound is unified with the overall music style, so as to mix it with other notes to generate Complete performance effect.

Benefits of technology

It realizes the real simulation of the traditional acoustic guitar slap tone, reduces the difficulty of operation for beginners, enhances the expressiveness and appeal of the music, and provides a more personalized and rich performance experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118609528B_ABST
    Figure CN118609528B_ABST
Patent Text Reader

Abstract

The present application discloses a method, device, equipment and medium for generating a slapping tone based on a smart guitar, and the method includes: obtaining the user's slapping parameters based on sensors on the body of the smart guitar; selecting a slapping tone corresponding to the slapping parameters from a preset tone library based on the size of the slapping parameters; obtaining the current playing track, and judging whether the slapping tone matches the style of the current playing track; if the slapping tone does not match the style of the current playing track, adjusting the slapping tone according to the style of the current playing track and generating a slapping tone that matches the style of the current playing track; mixing the generated slapping tone with other notes played by the smart guitar to generate a complete playing effect. The present application can effectively solve the problem that the current smart guitar cannot simulate the slapping sound effect of the traditional wooden guitar, fully considers the user's playing behavior and music style requirements, and provides users with a more realistic and personalized playing experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of smart guitars, and in particular to a method, device, equipment and medium for generating a slapping tone based on a smart guitar. Background Art

[0002] The traditional acoustic guitar is an ancient and classic instrument with beautiful timbre and diverse playing techniques, and has always been loved by music lovers. In the performance of the traditional acoustic guitar, in addition to the normal plucking of the strings, the right hand can also produce a variety of different clapping sounds by slapping different parts of the guitar body, thus enriching the expressiveness of the performance and the layering of the music. This clapping technique allows the performer to be more flexible and diverse in musical expression, creating richer musical effects.

[0003] With the development of science and technology and the continuous innovation of the music industry, the emergence of smart guitars such as electric guitars has brought new possibilities to music performance. Electric guitars have achieved diversified timbre and personalized effects through technologies such as electromagnetic induction and digital signal processing, allowing performers to have more room to play in music creation and performance. However, existing electric guitar products have certain limitations in simulating the sound of slapping. They cannot simulate the delicate effect of the right hand slapping of traditional wooden guitars, resulting in the inability to meet the needs of performers in certain music styles or performance scenarios, limiting the richness and variability of music expression, and lacking intelligent adjustment and optimization functions for different music styles, resulting in the limitations and monotony of the performance effect. In addition, performers need to have a high level of skills to accurately control the strength and position of the slapping, which may be difficult for beginners.

[0004] Therefore, a new method is urgently needed to solve the above problems. Summary of the invention

[0005] The main purpose of this application is to provide a method, device, equipment and medium for generating slapping timbre based on a smart guitar, aiming to solve the defects that the existing smart guitar cannot accurately simulate the delicate effect of the right-hand slapping of the traditional wooden guitar and that it is difficult for beginners to control the slapping timbre.

[0006] In order to achieve the above-mentioned invention object, the present application proposes a method for generating a slapping tone based on a smart guitar, the method comprising:

[0007] Acquire the user's hitting parameters based on the sensor on the smart guitar body;

[0008] Based on the size of the slapping parameter, selecting a slapping timbre corresponding to the slapping parameter from a preset timbre library;

[0009] Obtaining a currently played piece of music, and determining whether the slapping timbre matches the style of the currently played piece of music;

[0010] If the slapping timbre does not match the style of the current music being played, adjusting the slapping timbre according to the style of the current music being played and generating a slapping timbre that matches the style of the current music being played;

[0011] Mix the generated slap sound with other notes played by the Smart Guitar to create a complete performance.

[0012] Furthermore, the step of obtaining the user's hitting parameters based on the sensor on the body of the smart guitar includes:

[0013] Acquire an acceleration signal when the user hits the smart guitar, and filter the acceleration signal to obtain a filtered acceleration signal;

[0014] Determining whether the filtered acceleration signal exceeds a preset threshold;

[0015] If the filtered acceleration signal exceeds a preset threshold, it is determined that the user has performed a tapping operation, and the filtered acceleration signal is digitized and converted into tapping parameters, wherein the tapping parameters include at least the tapping force and the tapping position.

[0016] Furthermore, the step of selecting a slapping timbre corresponding to the slapping parameter from a preset timbre library based on the size of the slapping parameter comprises:

[0017] According to the magnitude of the slapping force, the slapping force is divided into a plurality of force levels, wherein the volume corresponding to each force level is set in the preset timbre library;

[0018] According to the different tapping positions, the tapping positions are divided into a plurality of position areas, wherein the preset timbre library is set with timbre characteristics corresponding to each position area;

[0019] Based on the combination of the volume corresponding to the slapping force and the slapping position, a slapping timbre corresponding to the slapping parameters is selected from the preset timbre library, wherein, if there is no slapping timbre matching the slapping parameters in the preset timbre library, the existing slapping timbre is interpolated according to a preset timbre interpolation algorithm to generate a slapping timbre that best matches the slapping parameters.

[0020] Furthermore, the step of obtaining the currently played music and determining whether the slapping timbre matches the style of the currently played music includes:

[0021] Obtaining style information of the currently played piece;

[0022] According to the style information, a reference piece of music having a style similar to that of the currently played piece of music is selected from a preset style database;

[0023] Extracting the timbre characteristics of the reference music piece and generating a timbre feature vector;

[0024] Calculating the similarity between the slapping timbre and the timbre feature vector;

[0025] If the similarity is higher than a preset threshold, it is determined that the slapping timbre matches the style of the current performance piece; if the similarity is lower than the preset threshold, it is determined that the slapping timbre does not match the style of the current performance piece.

[0026] Furthermore, if the slapping timbre does not match the style of the current performance piece, the step of adjusting the slapping timbre according to the style of the current performance piece and generating a slapping timbre matching the style of the current performance piece comprises:

[0027] Based on the style information of the currently played music piece, obtaining the music genre and style characteristics to which the currently played music piece belongs;

[0028] According to the music genre and style characteristics, selecting corresponding timbre adjustment parameters from a preset timbre adjustment rule library;

[0029] Based on the timbre adjustment parameters, the slap timbre is adjusted to generate a slap timbre that matches the style of the current performance piece;

[0030] During the adjustment process, the matching degree between the slapping timbre and the style of the currently played music is monitored in real time. If the matching degree does not meet the preset requirement, the adjustment is continued until the matching degree meets the preset requirement.

[0031] Furthermore, the step of mixing the generated slapping timbre with other notes played by the smart guitar to generate a complete performance effect includes:

[0032] aligning the generated slap timbre with other notes played in the current performance piece;

[0033] According to the volume and timbre characteristics of the slap timbre and other notes, the slap timbre and other notes are mixed, and the mixing process at least includes volume balance and timbre fusion processing;

[0034] The mixed slap timbre and other notes are output to generate a complete performance effect.

[0035] Furthermore, the step of outputting the mixed slapping timbre and other notes further includes:

[0036] Obtain the output device and output format set by the user, and select an output method corresponding to the output device and output format; wherein,

[0037] If the user sets the output to be performed through the speaker of the smart guitar, the mixed performance effect is converted into an audio signal, and the speaker is controlled to play the audio signal;

[0038] If the user sets the output to be through an external audio device, the mixed performance effect is converted into an audio signal that meets the interface requirements of the external audio device and output to the external audio device;

[0039] If the user sets the output to be performed through an audio output port, the mixed performance effect is converted into digital audio data and output to an audio processing device corresponding to the audio output port.

[0040] The present application also proposes a slapping tone generation device based on a smart guitar, comprising:

[0041] A first acquisition module is used to acquire the user's hitting parameters based on the sensor on the body of the smart guitar;

[0042] A selection module, configured to select a slapping timbre corresponding to the slapping parameter from a preset timbre library based on the size of the slapping parameter;

[0043] The second acquisition module is used to acquire the current playing piece and determine whether the slapping timbre matches the style of the current playing piece;

[0044] An adjustment module, for adjusting the slapping timbre and generating a slapping timbre matching the style of the current performance piece according to the style of the current performance piece if the slapping timbre does not match the style of the current performance piece;

[0045] The generation module is used to mix the generated slapping sound with other notes played by the smart guitar to generate a complete performance effect.

[0046] The present application also proposes a computer device, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, and the processor implements the above method when executing the computer program.

[0047] The present application also proposes a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the above method is implemented.

[0048] Beneficial effects:

[0049] This application obtains the user's slapping parameters through sensors on the body of the smart guitar, thereby fully capturing the user's playing movements and ensuring accurate perception of the user's behavior. According to the size of the acquired slapping parameters, the slapping timbre corresponding to the slapping parameters is selected from the preset timbre library, making the playing effect more realistic and rich, and then obtaining the current playing track, and judging whether the selected slapping timbre matches the style of the current playing track. If the slapping timbre does not match the style of the current track, the slapping timbre will be adjusted according to the style of the current track and a slapping timbre matching the style of the current playing track will be generated, ensuring the unity of the slapping timbre and the overall musical style, making the playing effect more complete and coherent, and mixing the generated slapping timbre with other notes played by the smart guitar to generate a complete playing effect. By mixing the slapping timbre with other notes, a richer and more varied playing effect can be achieved, thereby enhancing the expressiveness and appeal of the music.

[0050] To sum up, the method for generating slapping timbre based on smart guitar proposed in this application can effectively solve the problems that current smart guitars cannot accurately simulate the delicate effect of right-hand slapping on traditional wooden guitars and that it is difficult for beginners to control the slapping timbre. It fully considers the user's playing behavior and music style requirements, and provides users with a more realistic and personalized playing experience through intelligent timbre selection and adjustment. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 This is a schematic diagram of the steps of a method for generating a slapping tone based on a smart guitar in one embodiment of the present application;

[0052] Figure 2 It is a schematic block diagram of the structure of a slapping tone generating device based on a smart guitar according to an embodiment of the present application;

[0053] Figure 3 is a schematic block diagram of the structure of a computer device according to an embodiment of the present application;

[0054] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0056] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "above", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of features, integers, steps, operations, elements, modules, and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, modules, components, and / or groups thereof. It should be understood that when an element is said to be "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any module and all combinations of one or more associated listed items.

[0057] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as generally understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as herein.

[0058] Reference Figure 1 The present application provides a method for generating a slapping tone based on an intelligent guitar, comprising:

[0059] S1: Obtain the user's hitting parameters based on the sensor on the smart guitar body;

[0060] In step S1, the smart guitar body refers to the hardware part of the smart guitar, including but not limited to its appearance, structure, buttons, knobs, etc. Sensors refer to various sensing devices installed on the smart guitar body, which are used to sense and record the user's operating behavior, so as to obtain the user's slapping parameters. These sensors can be pressure sensors, acceleration sensors, sound sensors, etc., which can detect the user's slapping force, speed, position and other parameters in real time, or deformation sensors, which can sense the slight deformation of the guitar strings or the guitar body, thereby inferring the strength and frequency of the slapping, and transmitting these parameters to the subsequent processing module. In another embodiment, the sensors on the smart guitar body can also include optical sensors, which can accurately capture the slapping parameters by capturing the user's hand movements and positions. When the user is playing the guitar, the optical sensor can capture the movement trajectory, contact position and movement speed of the fingers on the guitar strings.

[0061] S2: based on the magnitude of the slapping parameter, selecting a slapping timbre corresponding to the slapping parameter from a preset timbre library;

[0062] In step S2, the slapping timbre data under different scenes and styles are collected to build a preset timbre library. The slapping timbre data under different scenes and styles can refer to a series of pre-recorded or generated slapping timbre samples, or can be slapping timbre samples directly obtained through networking. These timbre samples can include audio data of various guitar slapping timbres, for example, timbre changes produced by different forces, speeds and positions, etc. After obtaining the user's slapping parameters, according to the size of these parameters, matching and searching are performed in the preset timbre library, and the slapping timbre closest to or most consistent with the current slapping parameters is selected. In the present embodiment, the slapping timbre refers to the timbre effect produced by the action of the user slapping the smart guitar body during guitar playing, which is related to the factors such as the force, speed and position of the slapping. The matching process can be based on machine learning algorithms or other related technologies to achieve accurate selection and matching of the slapping timbre, and can generate corresponding timbre effects according to the user's slapping operation in real time, bringing a more real and rich performance experience to the user.

[0063] S3: obtaining a currently played piece of music, and determining whether the slapping timbre matches the style of the currently played piece of music;

[0064] In step S3, the current playing track refers to the music piece that the user is currently playing, which can be selected from the music library of local storage, or it can be created by the user in real time. In order to judge whether the slapping timbre matches the style of the current playing track, it can be realized by using a music style recognition algorithm or model, which can analyze and judge the style of the current playing track based on technologies such as music theory and audio feature extraction. For example, the rhythm, melody, harmony and other features of the track can be extracted, and compared with the preset music style template, so as to determine the style type of the track, and judge whether the slapping timbre currently selected matches the style of the track. In another embodiment, the user can also manually select or adjust the slapping timbre to meet the needs of the current playing track. At the same time, the generation and matching algorithm of the slapping timbre can also be continuously optimized and improved according to the feedback and evaluation of the user, to improve the user experience and the performance effect.

[0065] S4: If the slapping timbre does not match the style of the current performance piece, adjusting the slapping timbre according to the style of the current performance piece and generating a slapping timbre that matches the style of the current performance piece;

[0066] In step S4, if the slap timbre does not match the style of the current performance, the timbre will be adjusted. First, the style characteristics of the current performance are analyzed, including the rhythm, melody, harmony, instrument type and other aspects of the performance. For example, if the performance is classical music, the rhythm may be more regular, the melody may be beautiful and emotional, and the harmony may be harmonious. Then, the slap timbre is adjusted according to the analyzed performance style characteristics. If the original slap timbre is too intense or noisy, it can be made more in line with the soft and elegant temperament of classical music by lowering the volume, adjusting the pitch, changing the timbre characteristics, etc. If the original slap timbre is too soft, it may be made more powerful and dynamic by increasing the volume, raising the pitch, adding some sound effects, etc., to adapt to the more intense or cheerful performance style. Finally, a slap timbre matching the style of the current performance is generated. This new slap timbre will be better integrated into the performance and enhance the overall listening experience. At the same time, since the adjustment process is based on an in-depth understanding and analysis of the style of the music, the generated slap timbre will also be highly personalized and innovative, providing performers with a richer and more unique means of musical expression. Throughout the process, user feedback and data can also be continuously collected to optimize and adjust the generation and adjustment strategy of the slap timbre, thereby improving user satisfaction and experience and meeting various complex and diverse music creation and performance requirements. In another embodiment, if the slap timbre matches the style of the current performance music, the current slap timbre can be directly applied to the current performance music to enhance the expressiveness and appeal of the music, and the slap timbre is adjusted to be mixed and synchronously processed with other audio signals of the performance music to ensure that the timbre is coordinated with the rhythm, melody, style and other elements of the music.

[0067] S5: Mix the generated slap sound with other notes played by the smart guitar to produce a complete performance effect.

[0068] In step S5, after the slap timbre matches and adjusts the style of the current performance, it is mixed with other notes played by the smart guitar, wherein other notes refer to the notes produced by the user through the strings, picks or other means of the smart guitar during the performance, which may include chords, melody lines, solos, etc., and are important components of the complete performance effect. In the mixing process, the fusion of the slap timbre and other notes includes factors such as volume balance, timbre coordination and time synchronization. For example, the volume of the slap timbre can be adjusted to achieve an auditory balance with other notes; or the slap timbre can be made more harmonious and unified with other notes in timbre by adding corresponding sound effects or processing methods. Through precise mixing processing, the slap timbre can be seamlessly integrated with other notes to form a complete and expressive musical work. Users can adjust mixing parameters such as volume, timbre, reverberation, etc. as needed to achieve the best performance effect. In addition, the smart guitar can also provide real-time preview and editing functions, allowing users to adjust and optimize the mixing effect at any time during the performance until they are satisfied.

[0069] In steps S1-S5, the user's slapping parameters are obtained through sensors on the body of the smart guitar, so as to fully capture the user's playing actions, ensure accurate perception of the user's behavior, and select the slapping timbre corresponding to the slapping parameters from the preset timbre library according to the size of the acquired slapping parameters, so that the playing effect is more real and rich; the slapping timbre data under different scenes and styles are collected to build a preset timbre library, thereby ensuring the diversity and flexibility of timbre selection, and then the current playing track is obtained, and it is determined whether the selected slapping timbre matches the style of the current playing track. If the slapping timbre does not match the style of the current track, the slapping timbre will be adjusted according to the style of the current track and a slapping timbre matching the style of the current playing track will be generated, ensuring the unity of the slapping timbre and the overall music style, making the playing effect more complete and coherent, and the generated slapping timbre is mixed with other notes played by the smart guitar to generate a complete playing effect. By mixing the slapping timbre with other notes, a richer and more varied playing effect can be achieved, thereby enhancing the expressiveness and appeal of the music.

[0070] In summary, the method for generating slap timbre based on smart guitar provided in this application realizes accurate generation and personalized adjustment of slap timbre of smart guitar by obtaining the slap parameters of the user, selecting and matching slap timbre, judging and adjusting timbre style, and mixing and generating complete performance effects. This method not only improves the user's performance experience, but also brings more possibilities and innovation space for music creation and performance.

[0071] In one embodiment, the step of obtaining the user's hitting parameters based on the sensor on the body of the smart guitar includes:

[0072] Acquire an acceleration signal when the user hits the smart guitar, and filter the acceleration signal to obtain a filtered acceleration signal;

[0073] Determining whether the filtered acceleration signal exceeds a preset threshold;

[0074] If the filtered acceleration signal exceeds a preset threshold, it is determined that the user has performed a tapping operation, and the filtered acceleration signal is digitized and converted into tapping parameters, wherein the tapping parameters include at least the tapping force and the tapping position.

[0075] In this embodiment, the acceleration signal of the user's clapping is obtained in real time through the sensor on the body of the intelligent guitar, and the user's clapping action is converted into a measurable acceleration signal. Then, the obtained acceleration signal is filtered to eliminate noise and interference in the signal, so that the signal is purer and can truly reflect the user's clapping action. The method of filtering can be selected according to the actual situation, such as using a low-pass filter or a high-pass filter to remove high-frequency or low-frequency noise components. The acceleration signal after filtering is judged whether it exceeds a preset threshold value, and the user's clapping action and other possible non-clapping actions are distinguished. Only when the acceleration signal exceeds a certain threshold value, it is considered that the user has performed an effective clapping operation. The setting of the preset threshold value can be adjusted according to the characteristics of the intelligent guitar and the user's habits to achieve the best recognition effect. If the acceleration signal after filtering exceeds the preset threshold value, it is determined that the user has performed a clapping operation. At this time, digital processing will be performed to convert the acceleration signal into clapping parameters. The clapping parameters at least include clapping intensity and clapping position. These parameters can fully reflect the characteristics of the user's clapping action. The digital processing can use integration, differentiation and other methods to convert the acceleration signal into specific numerical parameters.

[0076] In another embodiment, in order to further improve the accuracy and stability of the recognition of the slap parameters, a machine learning algorithm is introduced to train and optimize the slap parameters. By learning a large amount of slap parameter data, the machine learning algorithm can automatically find out the rules and characteristics therein, and then optimize the recognition algorithm of the slap parameters to improve the accuracy and stability of the recognition. The trained and optimized slap parameters can more accurately reflect the user's slapping action, providing a better data basis for the subsequent generation of audio signals. According to the trained and optimized slap parameters, a corresponding audio signal is generated to simulate the sound effect produced when the user slaps the smart guitar. The implementation of this step can rely on audio synthesis technology. By converting the slap parameters into audio signals, the user can hear more real and realistic sound effects when using the smart guitar, thereby improving the user's experience and immersion.

[0077] In one embodiment, the step of selecting a slapping timbre corresponding to the slapping parameter from a preset timbre library based on the size of the slapping parameter comprises:

[0078] According to the magnitude of the slapping force, the slapping force is divided into a plurality of force levels, wherein the volume corresponding to each force level is set in the preset timbre library;

[0079] According to the different tapping positions, the tapping positions are divided into a plurality of position areas, wherein the preset timbre library is set with timbre characteristics corresponding to each position area;

[0080] Based on the combination of the volume corresponding to the slapping force and the slapping position, a slapping timbre corresponding to the slapping parameters is selected from the preset timbre library, wherein, if there is no slapping timbre matching the slapping parameters in the preset timbre library, the existing slapping timbre is interpolated according to a preset timbre interpolation algorithm to generate a slapping timbre that best matches the slapping parameters.

[0081] In this embodiment, according to the size of the slapping force, the slapping force is divided into different force levels, such as light, medium and heavy beats. Each force level has a corresponding volume setting in the preset timbre library, ensuring that the difference in slapping force can be truly reflected when simulating the slapping sound. The setting of this volume can be adjusted according to actual needs to meet the auditory experience needs of different users. According to the difference in the slapping position, the slapping position is divided into a plurality of position areas, which can be different parts of the electronic guitar body. Each position area has a corresponding timbre feature in the preset timbre library. When simulating the slapping sound, different timbre features can be presented according to different slapping positions, making the slapping sound more realistic. Based on the volume size corresponding to the slapping force and the timbre features corresponding to the slapping position, the slapping timbre that best matches the slapping parameters is selected from the preset timbre library, and the timbre closest to the actual slapping sound is selected to enhance the user experience. However, in actual applications, there may be a situation where there is no slapping timbre that fully matches the slapping parameters in the preset timbre library. In order to solve this problem, a preset timbre interpolation algorithm is introduced in the present embodiment. When there is no slapping timbre matching the slapping parameters in the preset timbre library, an interpolation process can be performed according to the existing slapping timbre to generate a slapping timbre that best matches the slapping parameters. This interpolation process can make up for the deficiencies in the preset timbre library, can cope with more complex combinations of slapping parameters, and provide a more flexible slapping sound simulation function. In the present embodiment, firstly, by dividing the slapping force and the slapping position, the slapping parameters are concretized into different force levels and position areas. Then, based on these specific parameters, a slapping timbre matching therewith is selected from the preset timbre library. Finally, by processing with the timbre interpolation algorithm, the system can cope with more complex combinations of slapping parameters and provide a more accurate slapping sound simulation. This processing method not only ensures the fidelity of the slapping sound, but also improves the flexibility and applicability of the system.

[0082] In one embodiment, the step of obtaining the currently played music and determining whether the slapping timbre matches the style of the currently played music includes:

[0083] Obtaining style information of the currently played piece;

[0084] According to the style information, a reference piece of music having a style similar to that of the currently played piece of music is selected from a preset style database;

[0085] Extracting the timbre characteristics of the reference music piece and generating a timbre feature vector;

[0086] Calculating the similarity between the slapping timbre and the timbre feature vector;

[0087] If the similarity is higher than a preset threshold, it is determined that the slapping timbre matches the style of the current performance piece; if the similarity is lower than the preset threshold, it is determined that the slapping timbre does not match the style of the current performance piece.

[0088] In this embodiment, the style information of the current playing piece is obtained to determine whether the slap timbre matches. The style information includes the rhythm, melody, harmony and other aspects of the piece. According to the obtained style information, a reference piece with a style similar to the current playing piece is selected from the preset style database. The preset style database is pre-constructed, which contains a large number of pieces and their respective style features. Then the timbre features of the reference piece are extracted and a timbre feature vector is generated. The timbre features can include the brightness, warmth, clarity and other aspects of the timbre. These features can be extracted by audio analysis technology, and the slap timbre and the timbre feature vector are similarly calculated. The similarity calculation can adopt various algorithms, such as cosine similarity, Euclidean distance, etc., and the appropriate algorithm is selected according to specific needs. Finally, a judgment is made based on the similarity calculation result. If the similarity is higher than the preset threshold, it is determined that the slap timbre matches the style of the current playing piece; if the similarity is lower than the preset threshold, it is determined that the slap timbre does not match the style of the current playing piece. According to the style information of the piece, a suitable slap timbre is selected to improve the overall effect of the performance.

[0089] In another embodiment, the user's feedback is captured in real time during the performance. These feedbacks may include the user's adjustment of the slapping timbre through a specific slapping operation, or the user's direct evaluation of the performance effect through voice, text, etc. These feedbacks will be analyzed and processed to extract the user's specific opinions on the matching degree of the slapping timbre and the performance style. The natural language processing (NLP) technology is used to perform semantic analysis and sentiment analysis on the voice or text input by the user, wherein the user's adjustment of the slapping timbre through a specific slapping operation can be a predetermined frequency, such as the user's continuous rapid slapping twice to indicate the desire to improve the brightness of the timbre, or the user's long-term slapping indicates satisfaction with the current timbre. For these specific slapping operations, the system will respond immediately and adjust the parameters of the slapping timbre to make it closer to the user's expectations. For the feedback provided by the user through voice or text, it is first identified and converted into user intent. For example, a user may say, "This timbre is too sharp, can it be softer?" or "I don't think the current timbre matches the style of the song, can you help me adjust it?" We analyze these voices or texts, understand the user's needs for timbre adjustment, and find timbre features that meet the user's requirements within the style database. At the same time, we can also record and analyze the user's feedback history to better understand the user's preferences and habits. Through continuous learning and optimization, we can gradually improve the accuracy of identifying user intentions and the accuracy of adjusting timbre. In addition, we can provide a variety of preset timbre adjustment options for users to choose according to their preferences. The preset options can be based on a large amount of user feedback and data analysis, or they can be recommended by professional musicians, aiming to provide users with a more convenient and personalized performance experience.

[0090] In one embodiment, if the slapping timbre does not match the style of the current performance piece, the step of adjusting the slapping timbre according to the style of the current performance piece and generating a slapping timbre matching the style of the current performance piece comprises:

[0091] Based on the style information of the currently played music piece, obtaining the music genre and style characteristics to which the currently played music piece belongs;

[0092] According to the music genre and style characteristics, selecting corresponding timbre adjustment parameters from a preset timbre adjustment rule library;

[0093] Based on the timbre adjustment parameters, the slap timbre is adjusted to generate a slap timbre that matches the style of the current performance piece;

[0094] During the adjustment process, the matching degree between the slapping timbre and the style of the currently played music is monitored in real time. If the matching degree does not meet the preset requirement, the adjustment is continued until the matching degree meets the preset requirement.

[0095] In the present embodiment, according to the style information of the current playing track, the music genre and style characteristics contained in the track can be deeply understood. Whether it is classical elegance, rock passion, or jazz improvisation, each style has its unique musical elements and expressions. By analyzing this information, the most suitable adjustment direction can be found for the slap timbre, wherein the analysis step can be to collect and analyze the style information of the current playing track, the information includes the melody, rhythm, harmony, instrument use, etc. of the track, and extract these key information through music analysis tools or software to form an analysis of the track style. According to the determined music genre and style characteristics, the corresponding timbre adjustment parameters are selected from the preset timbre adjustment rule library, and these parameters can include the height of the timbre, the size of the volume, the brightness of the timbre, and other aspects. By accurately selecting and adjusting these parameters, the slap timbre can be better integrated into the style of the current playing track. Then, based on the selected timbre adjustment parameters, the slap timbre is finely adjusted. In this process, audio processing technology is used to polish and optimize each detail of the timbre so that it is more in line with the style characteristics of the current playing track. At the same time, the clarity and recognition of the timbre will be maintained to ensure that the original characteristics of the slap timbre will not be lost during the adjustment process. During the adjustment process, the style matching degree of the slap timbre and the current performance track will also be monitored in real time, which can be achieved through audio analysis tools, which can accurately analyze the style differences between the timbre and the track, and give corresponding matching scores. If the matching degree does not meet the preset requirements, the timbre parameters will continue to be adjusted until the matching degree reaches the preset requirements. Through such steps, it can be ensured that the style of the slap timbre and the current performance track is perfectly matched, providing the performer with an accompaniment effect that is more in line with the track style, which can not only improve the overall quality of the performance, but also bring a more immersive music experience to the audience. In another embodiment, monitoring the style matching degree of the slap timbre and the current performance track can also be achieved by user feedback. During the performance, the user can evaluate the matching degree of the slap timbre in real time through interface operation or voice instructions, and fine-tune the slap timbre according to the user's feedback to better meet the user's personalized needs. In addition, the timbre adjustment rule library and timbre adjustment parameters can be continuously optimized according to the user's feedback data to improve the intelligence level of the system. Through continuous learning and improvement, the system can more accurately understand the user's preferences and needs, and provide users with a more intimate and professional music performance experience. It is worth noting that in this embodiment, the adjustment of the slapping timbre is not limited to the change of a single timbre attribute, but can comprehensively consider the comprehensive adjustment of multiple timbre attributes. For example, while adjusting the slapping timbre, it is also possible to consider adjusting factors such as the rhythm and strength of the slapping to achieve a better music performance effect.To sum up, this embodiment deeply understands the style characteristics of the current performance piece, selects appropriate timbre adjustment parameters from the preset timbre adjustment rule library, fine-tunes the slap timbre, and ensures that the slap timbre perfectly matches the style of the current performance piece through real-time monitoring and user feedback. This not only improves the flexibility and personalization of the performance, but also brings users a better music experience.

[0096] In one embodiment, the step of mixing the generated slapping timbre with other notes played by the smart guitar to generate a complete performance effect includes:

[0097] aligning the generated slap timbre with other notes played in the current performance piece;

[0098] According to the volume and timbre characteristics of the slap timbre and other notes, the slap timbre and other notes are mixed, and the mixing process at least includes volume balance and timbre fusion processing;

[0099] The mixed slap timbre and other notes are output to generate a complete performance effect.

[0100] In this embodiment, the generated slap timbre is time-aligned with other notes played in the current performance track, because the slap timbre is usually generated at a specific rhythm point, so it is necessary to ensure that it coincides with the performance time of other notes to ensure the overall performance effect is coordinated and consistent. This step can be achieved by accurately positioning and synchronizing the slap timbre in time to ensure that the slap timbre can be accurately inserted into the corresponding position in the performance track. Volume balance is the key to ensure that each note remains balanced in the overall effect after mixing. By adjusting the volume of the slap timbre and other notes, they can be set off against each other in the overall performance, neither appearing abrupt nor being covered by other notes. The timbre fusion processing is to make the slap timbre and other notes more harmonious and unified in timbre. By adopting a suitable timbre processing algorithm, the slap timbre and other notes can be fused in timbre to produce a more natural and smooth performance effect. Finally, the mixed slap timbre and other notes are output to generate a complete performance effect, and the mixed audio signal is transmitted to a speaker or other output device to achieve the complete performance effect that allows the audience to hear the fusion of the slap timbre. In this way, not only can the layering and expressiveness of the performance be enhanced, but it can also bring a richer and more vivid musical experience to the audience.

[0101] In another embodiment, the step of mixing the generated slap timbre with other notes played by the smart guitar can be further optimized to enhance the delicacy and authenticity of the performance effect. Specifically, in terms of volume balance, in addition to simple volume adjustment, dynamic compression technology can be used to control the dynamic range of the volume between different notes to avoid excessive volume differences, making the overall performance more balanced and harmonious. In addition, equal loudness curve correction can be used to consider the difference in the human ear's perception of the volume of different frequencies, so that each note is more balanced in hearing. Secondly, in terms of timbre fusion processing, the high frequency of the slap timbre can be enhanced or the low frequency can be reduced based on the filter inside the smart guitar to enhance its clarity and layering; the effect of different performance environments can also be simulated based on the reverberation algorithm, so that the slap timbre and other notes are more integrated in timbre. Finally, in the output stage, the export of multiple audio formats can be supported to meet the playback requirements of different platforms and devices. At the same time, audio quality adjustment options can also be provided to allow users to choose the appropriate sound quality settings according to their needs.

[0102] In one embodiment, the step of outputting the mixed slap timbre and other notes further includes:

[0103] Obtain the output device and output format set by the user, and select an output method corresponding to the output device and output format; wherein,

[0104] If the user sets the output to be performed through the speaker of the smart guitar, the mixed performance effect is converted into an audio signal, and the speaker is controlled to play the audio signal;

[0105] If the user sets the output to be through an external audio device, the mixed performance effect is converted into an audio signal that meets the interface requirements of the external audio device and output to the external audio device;

[0106] If the user sets the output to be performed through an audio output port, the mixed performance effect is converted into digital audio data and output to an audio processing device corresponding to the audio output port.

[0107] In this embodiment, the output device and output format set by the user determine the conversion mode and output path of the audio signal. This flexible setting method allows users to choose the output mode that best suits them in different scenarios and environments according to their actual needs, so as to obtain the best performance experience. For the case of output through the speaker of the smart guitar, an audio conversion technology is used to accurately convert the mixed performance effect into an audio signal, and the built-in control system of the smart guitar accurately controls the playback effect of the speaker. In a specific embodiment, the mixed performance effect data is decoded and formatted and converted into a recognizable audio signal. During the conversion process, the sampling rate, bit rate and channel configuration parameters of the audio signal are obtained. According to the user's settings and the current environmental conditions, these parameters are automatically adjusted to achieve the best playback effect. When the audio signal is successfully converted, the speaker is controlled to play. In this way, the user can enjoy high-quality performance effects directly through the smart guitar itself without the need for additional audio equipment. If the user chooses to output through an external audio device, the mixed performance effect is converted into a corresponding audio signal according to the interface requirements of the external audio device, ensuring that the audio signal can be smoothly transmitted to the external audio device and achieve high-quality playback effects on the device. At the same time, this also provides users with more choices, and they can choose suitable external audio devices according to their preferences and needs. In the case of output through the audio output port, the mixed performance effect will be converted into digital audio data and directly output to the audio processing device corresponding to the audio output port. This output method has higher flexibility and scalability. Users can import digital audio data into various audio processing software for further editing and processing, thereby creating more diverse performance effects. In summary, this embodiment achieves flexible output of mixed slap timbre and other notes by obtaining the output device and output format set by the user and selecting the corresponding output method, which not only meets the actual needs of users in different scenarios and environments, but also enhances the user's performance experience.

[0108] In another specific embodiment, the diversity of the sounding mode further enhances the user's experience. According to different usage scenarios and personal preferences, users can choose to use the built-in speakers of the smart guitar to make sounds, or they can choose to make sounds through the audio output port, or transmit the playing instructions to external devices such as mobile devices or sound cards through Bluetooth MIDI or private protocols. If the user chooses to make sounds through the built-in speakers of the smart guitar, the performance effect will be played directly through the speakers, bringing instant auditory enjoyment to the user. This sounding mode is suitable for use in occasions such as practice, performance or small gatherings, which is convenient and easy to operate. For users who want to play without disturbing others, they can choose to make sounds through the audio output port, such as using a silent guitar. This sounding mode converts the performance effect into digital audio data and transmits it to external devices such as headphones or speakers through the audio output port. In this way, users can enjoy the performance without affecting the quietness of the surrounding environment. In addition, the way of transmitting the playing instructions to external devices such as mobile devices or sound cards through Bluetooth MIDI or private protocols provides users with a broader creative space. Users can connect the smart guitar to mobile devices or professional audio equipment and use the powerful functions of these devices to perform audio processing, recording or mixing, thereby creating more personalized music works.

[0109] Reference Figure 2 , a slapping tone generating device based on smart guitar, comprising:

[0110] The first acquisition module 100 is used to acquire the user's hitting parameters based on the sensor on the body of the smart guitar;

[0111] A selection module 200, configured to select a slapping timbre corresponding to the slapping parameter from a preset timbre library based on the magnitude of the slapping parameter;

[0112] The second acquisition module 300 is used to acquire the current playing piece and determine whether the slapping timbre matches the style of the current playing piece;

[0113] The adjustment module 400 is used to adjust the slapping timbre and generate a slapping timbre matching the style of the current music piece according to the style of the current music piece if the slapping timbre does not match the style of the current music piece;

[0114] The generation module 500 is used to mix the generated slapping timbre with other notes played by the smart guitar to generate a complete performance effect.

[0115] In this embodiment, the user's slapping parameters are obtained through the sensor on the body of the smart guitar, so as to fully capture the user's playing actions, ensure accurate perception of the user's behavior, and select the slapping timbre corresponding to the slapping parameters from the preset timbre library according to the size of the acquired slapping parameters, so that the playing effect is more realistic and rich; the slapping timbre data under different scenes and styles are collected to build a preset timbre library, thereby ensuring the diversity and flexibility of timbre selection, and then the current playing track is obtained, and it is determined whether the selected slapping timbre matches the style of the current playing track. If the slapping timbre does not match the style of the current track, the slapping timbre will be adjusted according to the style of the current track and a slapping timbre matching the style of the current playing track will be generated, ensuring the unity of the slapping timbre and the overall music style, making the playing effect more complete and coherent, and the generated slapping timbre is mixed with other notes played by the smart guitar to generate a complete playing effect. By mixing the slapping timbre with other notes, a richer and more varied playing effect can be achieved, thereby enhancing the expressiveness and appeal of the music.

[0116] Furthermore, the acquisition module 100 includes:

[0117] A first acquisition unit is used to acquire an acceleration signal when a user hits the smart guitar, and filter the acceleration signal to obtain a filtered acceleration signal;

[0118] A first judging unit, used to judge whether the acceleration signal after filtering exceeds a preset threshold;

[0119] The first determination unit is used to determine that the user has performed a tapping operation if the filtered acceleration signal exceeds a preset threshold, and to digitize the filtered acceleration signal and convert it into tapping parameters, wherein the tapping parameters at least include tapping force and tapping position.

[0120] Further, the selection module 200 includes:

[0121] A first division unit, configured to divide the tapping force into a plurality of force levels according to the magnitude of the tapping force, wherein the volume corresponding to each force level is set in the preset timbre library;

[0122] A second division unit is used to divide the tapping position into a plurality of position areas according to the different tapping positions, wherein the preset timbre library is set with timbre characteristics corresponding to each of the position areas;

[0123] The first processing unit is used to select a slapping timbre corresponding to the slapping parameters from the preset timbre library based on a combination of the volume corresponding to the slapping force and the slapping position, wherein if there is no slapping timbre matching the slapping parameters in the preset timbre library, the existing slapping timbre is interpolated according to a preset timbre interpolation algorithm to generate a slapping timbre that best matches the slapping parameters.

[0124] Furthermore, the second acquisition module 300 includes:

[0125] A second acquisition unit, used to acquire style information of the currently played music piece;

[0126] A first selection unit, configured to select, according to the style information, a reference piece of music having a style similar to that of the currently played piece of music from a preset style database;

[0127] A first extraction unit, used to extract the timbre characteristics of the reference music and generate a timbre feature vector;

[0128] A calculation unit, used for calculating the similarity between the slapping timbre and the timbre feature vector;

[0129] The second processing unit is used to determine that the slapping timbre matches the style of the current performance if the similarity is higher than a preset threshold, and to determine that the slapping timbre does not match the style of the current performance if the similarity is lower than the preset threshold.

[0130] Furthermore, the adjustment module 400 includes:

[0131] A third acquisition unit, configured to acquire the music genre and style characteristics of the currently played music based on the style information of the currently played music;

[0132] A second selection unit is used to select corresponding timbre adjustment parameters from a preset timbre adjustment rule library according to the music genre and style characteristics;

[0133] A third processing unit, configured to adjust the slap timbre based on the timbre adjustment parameter to generate a slap timbre that matches the style of the current performance piece;

[0134] The fourth processing unit is used to monitor the style matching degree between the slapping timbre and the current playing piece in real time during the adjustment process. If the matching degree does not meet the preset requirement, the adjustment is continued until the matching degree meets the preset requirement.

[0135] Furthermore, the generating module 500 includes:

[0136] A fifth processing unit, configured to time-align the generated slapping timbre with other notes played in the current music piece;

[0137] a sixth processing unit, configured to perform a mixing process on the slap timbre and other notes according to the volume and timbre characteristics of the slap timbre and other notes, wherein the mixing process at least includes volume balancing and timbre fusion processing;

[0138] The output unit is used to output the mixed slap timbre and other notes to generate a complete performance effect.

[0139] Furthermore, the smart guitar-based slapping tone generation device further includes:

[0140] The fourth acquisition unit is used to acquire the output device and output format set by the user, and select an output mode corresponding to the output device and output format; wherein,

[0141] A first control unit, for converting the mixed performance effect into an audio signal and controlling the speaker to play the audio signal if the user sets the output to be performed through the speaker of the smart guitar;

[0142] A second control unit is used for converting the mixed performance effect into an audio signal that meets the interface requirements of the external audio device and outputting it to the external audio device if the user sets it to be output through the external audio device;

[0143] The third control unit is used to convert the mixed performance effect into digital audio data and output it to the audio processing device corresponding to the audio output port if the user sets it to output through the audio output port.

[0144] Reference Figure 3 The present application also provides a computer device, the internal structure of which can be as follows: Figure 3As shown. The computer device includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor designed for the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating device, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data based on the slapping tone generation method of the smart guitar, etc. The network interface of the computer device is used to communicate with an external terminal through a network connection. Furthermore, the above-mentioned computer device can also be provided with an input device and a display screen, etc. When the above computer program is executed by the processor, a method for generating a slapping tone based on a smart guitar is implemented, including the following steps: obtaining the user's slapping parameters based on the sensor on the body of the smart guitar; based on the size of the slapping parameters, selecting a slapping tone corresponding to the slapping parameters from a preset tone library; obtaining the current playing piece, and determining whether the slapping tone matches the style of the current playing piece; if the slapping tone does not match the style of the current playing piece, adjusting the slapping tone according to the style of the current playing piece and generating a slapping tone that matches the style of the current playing piece; mixing the generated slapping tone with other notes played by the smart guitar to generate a complete playing effect. Those skilled in the art will understand that Figure 3 The structure shown in is merely a block diagram of a portion of the structure related to the present application solution and does not constitute a limitation on the computer device to which the present application solution is applied.

[0145] An embodiment of the present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, a method for generating a slapping tone based on a smart guitar is implemented, including the following steps: obtaining the user's slapping parameters based on a sensor on the body of the smart guitar; based on the size of the slapping parameters, selecting a slapping tone corresponding to the slapping parameters from a preset tone library; obtaining the current playing track, and determining whether the slapping tone matches the style of the current playing track; if the slapping tone does not match the style of the current playing track, adjusting the slapping tone according to the style of the current playing track and generating a slapping tone that matches the style of the current playing track; mixing the generated slapping tone with other notes played by the smart guitar to generate a complete playing effect. It can be understood that the computer-readable storage medium in this embodiment can be a volatile readable storage medium or a non-volatile readable storage medium.

[0146] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media provided in this application and used in the embodiments may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0147] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, device, article or method including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, device, article or method. In the absence of further restrictions, an element defined by the sentence "includes a ..." does not exclude the presence of other identical elements in the process, device, article or method including the element.

[0148] The above description is only a preferred embodiment of the present application, and does not limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A method for generating a slapping tone based on an intelligent guitar, characterized in that: The method comprises: The user's hitting parameters are obtained based on the sensor on the body of the smart guitar; Based on the size of the slapping parameter, selecting a slapping timbre corresponding to the slapping parameter from a preset timbre library; Obtaining a currently played piece of music, and determining whether the slapping timbre matches the style of the currently played piece of music; If the slapping timbre does not match the style of the current music being played, adjusting the slapping timbre according to the style of the current music being played and generating a slapping timbre that matches the style of the current music being played; Mix the generated slap sound with other notes played by the Smart Guitar to create a complete performance.

2. The method for generating timbre of a slapping sound based on an intelligent guitar according to claim 1, characterized in that: The step of obtaining the user's hitting parameters based on the sensor on the body of the smart guitar includes: Acquire an acceleration signal when the user hits the smart guitar, and filter the acceleration signal to obtain a filtered acceleration signal; Determining whether the filtered acceleration signal exceeds a preset threshold; If the filtered acceleration signal exceeds a preset threshold, it is determined that the user has performed a tapping operation, and the filtered acceleration signal is digitized and converted into tapping parameters, wherein the tapping parameters include at least the tapping force and the tapping position.

3. The method for generating timbre of a slapping sound based on an intelligent guitar according to claim 2, characterized in that: The step of selecting a slapping timbre corresponding to the slapping parameter from a preset timbre library based on the size of the slapping parameter comprises: According to the magnitude of the slapping force, the slapping force is divided into a plurality of force levels, wherein the volume corresponding to each force level is set in the preset timbre library; According to the different tapping positions, the tapping positions are divided into a plurality of position areas, wherein the preset timbre library is set with timbre characteristics corresponding to each position area; Based on the combination of the volume corresponding to the slapping force and the slapping position, a slapping timbre corresponding to the slapping parameters is selected from the preset timbre library, wherein, if there is no slapping timbre matching the slapping parameters in the preset timbre library, the existing slapping timbre is interpolated according to a preset timbre interpolation algorithm to generate a slapping timbre that best matches the slapping parameters.

4. The method for generating timbre of a slapping sound based on an intelligent guitar according to claim 1, characterized in that: The step of obtaining the current playing piece and judging whether the slapping timbre matches the style of the current playing piece includes: Obtaining style information of the currently played piece; According to the style information, a reference piece of music having a style similar to that of the currently played piece of music is selected from a preset style database; Extracting the timbre characteristics of the reference music piece and generating a timbre feature vector; Calculate the similarity between the slapping timbre and the timbre feature vector; If the similarity is higher than a preset threshold, it is determined that the slapping timbre matches the style of the current performance piece; if the similarity is lower than the preset threshold, it is determined that the slapping timbre does not match the style of the current performance piece.

5. The method for generating timbre of a slapping sound based on an intelligent guitar according to claim 1, characterized in that: If the slapping timbre does not match the style of the current performance piece, the step of adjusting the slapping timbre according to the style of the current performance piece and generating a slapping timbre matching the style of the current performance piece comprises: Based on the style information of the currently played music piece, obtaining the music genre and style characteristics to which the currently played music piece belongs; According to the music genre and style characteristics, selecting corresponding timbre adjustment parameters from a preset timbre adjustment rule library; Based on the timbre adjustment parameters, the slap timbre is adjusted to generate a slap timbre that matches the style of the current performance piece; During the adjustment process, the matching degree between the slapping timbre and the style of the currently played music is monitored in real time. If the matching degree does not meet the preset requirement, the adjustment is continued until the matching degree meets the preset requirement.

6. The method for generating timbre of a slapping sound based on an intelligent guitar according to claim 1, characterized in that: The step of mixing the generated slapping timbre with other notes played by the smart guitar to generate a complete performance effect includes: Time-aligning the generated slap timbre with other notes played in the current performance piece; According to the volume and timbre characteristics of the slap timbre and other notes, the slap timbre and other notes are mixed, and the mixing process at least includes volume balance and timbre fusion processing; The mixed slap timbre and other notes are output to generate a complete performance effect.

7. The method for generating timbre of a slapping sound based on an intelligent guitar according to claim 6, characterized in that: The step of outputting the mixed slapping timbre and other notes also includes: Obtain the output device and output format set by the user, and select an output method corresponding to the output device and output format; wherein, If the user sets the output to be performed through the speaker of the smart guitar, the mixed performance effect is converted into an audio signal, and the speaker is controlled to play the audio signal; If the user sets the output to be through an external audio device, the mixed performance effect is converted into an audio signal that meets the interface requirements of the external audio device and output to the external audio device; If the user sets it to output through the audio output port, the mixed performance effect is converted into digital audio data and output to the audio processing device corresponding to the audio output port.

8. A slapping tone generating device based on an intelligent guitar, characterized in that: include: A first acquisition module is used to acquire the user's hitting parameters based on the sensor on the body of the smart guitar; A selection module, configured to select a slapping timbre corresponding to the slapping parameter from a preset timbre library based on the size of the slapping parameter; The second acquisition module is used to acquire the current playing piece and determine whether the slapping timbre matches the style of the current playing piece; An adjustment module, for adjusting the slapping timbre and generating a slapping timbre matching the style of the current performance piece according to the style of the current performance piece if the slapping timbre does not match the style of the current performance piece; The generation module is used to mix the generated slapping sound with other notes played by the smart guitar to generate a complete performance effect.

9. A computer device, characterized in that: The method comprises a processor, a memory and a computer program stored in the memory and executable on the processor, wherein the processor implements the method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Timbre interaction method, device and equipment based on intelligent guitar and medium

    CN118314857A