Music signal modulation method and device, electronic equipment and storage medium
By combining the basic frequency and modulation frequency of the chord root tone of the target music signal, a harmonious and melodious modulated music signal is generated, and the problem of monotonous sound signal frequency and brain wave music frequency information loss in the prior art is solved. , improves the auditory experience and effect of brain regulation.
Patent Information
- Application Number
- CN202411435454.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-15
- Publication Date
- 2024-12-13
AI Technical Summary
When the prior art uses sound signals to regulate the brain, the frequency is monotonous and lacks melody and rhythm, making it difficult for users to persist for a long time, and brain wave music loses frequency information during the conversion process, which makes the regulation effect poor.
By obtaining the chord root tone of the target music signal, determining its basic frequency, and cyclically modulating the chord root tone according to the target modulation frequency for the control target, a modulated music signal with a regulation effect is generated to ensure that the music signal is both harmonious and melodious .
It realizes the melody and rhythmicity of the music signal while ensuring the regulation effect, making it easier to accept, and at the same time ensures the regulation effect of the modulated music signal.
Smart Images

Figure CN119132265A_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to the field of computer technology, and in particular to a music signal modulation method, device, electronic device, and storage medium. Background Art
[0002] In recent years, with the in-depth study of the working mechanism of the brain, people have found that external rhythmic stimulation can cause synchronized neural oscillation activities in the corresponding brain areas, so that the neural oscillation inside the brain is phase-locked with external rhythmic stimulation, thereby achieving synchronization of brain neural oscillation and external rhythmic stimulation. This effect can be called the "regulation" of the brain by rhythmic stimulation. Different rhythmic stimulations can produce different regulatory effects on the brain, such as promoting relaxation, improving attention, and enhancing memory.
[0003] At present, the sound signals produced using the regulation effect mainly rely on single frequency or narrow-band audio. Although this type of sound signal has certain advantages in achieving the regulation effect, it often cannot provide a good auditory experience due to its relatively monotonous frequency and lack of melody and rhythm, making it difficult for users to listen for a long time.
[0004] On the other hand, brainwave music, as a special audio product, aims to help users achieve the desired psychological state by simulating the brain's electrical wave activity in different states. Brainwave music in different frequency ranges has different uses and can be used to assist relaxation, learning, work or treatment. Common brainwave music production is to convert brainwave signals into musical elements. For example, brainwaves of different frequencies are mapped to notes of different pitches, or the amplitude changes of brainwaves are mapped to volume intensity, and then the generated musical elements are arranged into a complete musical work. In this way, although brainwave music can ensure the melody and rhythm of the music, it will lose the frequency information of the brainwaves themselves, resulting in poor regulation effect. Summary of the invention
[0005] The embodiments of the present disclosure propose a music signal modulation method, device, electronic device and storage medium, which can not only ensure the modulation effect, but also enhance the melody and rhythm of the music signal, making it easier for the audience to accept.
[0006] In a first aspect, the present disclosure provides a music signal modulation method, comprising:
[0007] Obtaining the chord root tone of the target music signal;
[0008] Determine the fundamental frequency of the chord root tone according to the chord root tone, wherein the fundamental frequency is the frequency that makes the melody of the chord root tone harmonious;
[0009] Acquire a target modulation frequency of the target measurement object with respect to the regulation target, wherein the target modulation frequency is a frequency that has a regulation effect on the target measurement object with respect to the regulation target;
[0010] The chord root tone is cyclically modulated according to the target modulation frequency and the basic frequency to generate a modulated music signal having a regulating effect on the target measurement object according to the regulation target.
[0011] In some optional implementations, the cyclically modulating the chord root tone according to the target modulation frequency and the basic frequency to generate a modulated music signal having a regulating effect on the target measurement object with respect to the regulation target includes:
[0012] determining the root tone and harmonic tones of the chord according to the fundamental frequency;
[0013] The target modulation frequency is used to cyclically modulate the harmonic sound to generate a modulated music signal having a control effect on the target measurement object with respect to the control target.
[0014] In some optional implementations, before obtaining the target modulation frequency of the target measurement object for the regulation target, the method further includes:
[0015] Acquire a modulation frequency band preset for the control target;
[0016] Obtaining fluctuation values of the brain wave frequency of the target measurement object for each modulation frequency in the preset modulation frequency band;
[0017] The target modulation frequency of the target object for the regulation target is determined according to the fluctuation value.
[0018] In some optional embodiments, the method further comprises:
[0019] Get the frequency response graph of the target player;
[0020] Establishing a frequency calibration template of the target player according to the frequency response diagram, wherein the frequency calibration template includes a gain compensation value of each frequency point of the output frequency of the target player;
[0021] Performing frequency calibration on the modulated music signal according to the frequency calibration template;
[0022] The modulated music signal after frequency calibration is outputted by the target player.
[0023] In some optional implementations, establishing a frequency calibration template for the target player according to the frequency response graph includes:
[0024] Analyze the frequency response diagram to determine the frequency band with abnormal frequency response;
[0025] Calculate the gain compensation value of each frequency point in the abnormal frequency band of the frequency response;
[0026] The frequency calibration template is established according to the gain compensation value at each frequency point.
[0027] In some optional implementations, before obtaining the chord root note of the target music signal, the method further includes:
[0028] Analyzing the target music signal;
[0029] The chord root note of the target music signal is determined according to the analysis result.
[0030] In a second aspect, the present disclosure provides a music signal modulation device, comprising:
[0031] A chord root tone acquisition unit, used to acquire the chord root tone of the target music signal;
[0032] a determination unit, configured to determine a fundamental frequency of the chord root tone according to the chord root tone, wherein the fundamental frequency is a frequency that makes the melody of the chord root tone harmonious;
[0033] A modulation frequency acquisition unit, used to acquire a target modulation frequency of the target measurement object with respect to the regulation target, wherein the target modulation frequency is a frequency that has a regulation effect on the target measurement object with respect to the regulation target;
[0034] A generating unit is used to cyclically modulate the root tone of the chord according to the target modulation frequency and the basic frequency to generate a modulated music signal having a regulating effect on the target measurement object according to the regulation target.
[0035] In a third aspect, the present disclosure provides an electronic device, including:
[0036] one or more processors;
[0037] a storage device having one or more programs stored thereon,
[0038] When the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any embodiment of the first aspect of the present disclosure.
[0039] In a fourth aspect, the present disclosure provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by one or more processors, implements the method described in any embodiment of the first aspect of the present disclosure.
[0040] In a fifth aspect, the present disclosure provides a computer program product, comprising a computer program / instructions, which, when executed by a processor, implement the method described in any embodiment of the first aspect of the present disclosure.
[0041] The music signal modulation method, device, electronic device and storage medium provided by the embodiments of the present disclosure first obtain the chord root tone of the target music signal, determine the basic frequency of the chord root tone according to the chord root tone, wherein the basic frequency is the frequency that makes the melody of the chord root tone harmonious, then obtain the target modulation frequency of the target measurement object for the control target, wherein the target modulation frequency is the frequency that has a control effect on the target measurement object for the control target, and finally, cyclically modulate the chord root tone according to the target modulation frequency and the basic frequency to generate a modulated music signal that has a control effect on the target measurement object for the control target. The present disclosure cyclically modulates the chord root tone by using the basic frequency that is harmonious with the melody of the chord root tone and the target modulation frequency that has a control effect on the target measurement object for the control target to generate a modulated music signal, so that the modulated music signal can be both harmonious in melody and in line with the basic laws of musicology, while ensuring the control effect of the modulated music signal. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] Other features, objects and advantages of the present disclosure will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings. The drawings are only for the purpose of illustrating specific embodiments and are not to be considered as limiting the present invention. In the drawings:
[0043] Figure 1 is a system architecture diagram in which an embodiment of the music signal modulation method disclosed herein can be applied;
[0044] Figure 2 is a flow chart of an embodiment of a music signal modulation method according to the present disclosure;
[0045] Figure 3 is a structural schematic diagram of an embodiment of a music signal modulation device according to the present disclosure;
[0046] Figure 4 It is a structural diagram of a computer system of an electronic device suitable for implementing an embodiment of the present disclosure. DETAILED DESCRIPTION
[0047] The present disclosure is further described in detail below in conjunction with the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the relevant invention are shown in the accompanying drawings.
[0048] It should be noted that, in the absence of conflict, the embodiments in the present disclosure and the features in the embodiments may be mutually disclosed.
[0049] Figure 1 An exemplary system architecture 100 is shown to which embodiments of the music signal modulation method, apparatus, terminal device, and storage medium of the present disclosure can be applied.
[0050] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a communication link between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various communication connection types, such as a wired communication link, a wireless communication link, and the like.
[0051] The user can use the terminal devices 101, 102, 103 to interact with the server 105 through the network 104 to receive or send messages, etc. Various communication client applications can be installed on the terminal devices 101, 102, 103, such as music signal modulation applications, neural regulation applications, voice interaction applications, video conferencing applications, short video social applications, web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0052] Terminal devices 101, 102, 103 can be hardware or software. When terminal devices 101, 102, 103 are hardware, they can be various electronic devices with microphones and speakers, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III, Moving Picture Experts Compression Standard Audio Layer 3), MP4 players (Moving Picture Experts Group Audio Layer IV, Moving Picture Experts Compression Standard Audio Layer 4), portable computers and desktop computers, etc. When terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. It can be implemented as multiple software or software modules (for example, obtaining the root note of the chord of the target music signal), or it can be implemented as a single software or software module. No specific limitation is made here.
[0053] The server 105 may be a server providing various services, such as a background server for processing the chord root tone of the target music signal obtained on the terminal devices 101, 102, 103. The background server may perform corresponding processing based on the chord root tone of the target music signal obtained by the terminal device.
[0054] In some cases, the music signal modulation method provided by the present disclosure can be jointly performed by the terminal devices 101, 102, 103 and the server 105. For example, the step of "obtaining the chord root tone of the target music signal" can be performed by the terminal devices 101, 102, 103, and the step of "determining the fundamental frequency of the chord root tone according to the chord root tone" can be performed by the server 105. The present disclosure does not limit this. Accordingly, the music signal modulation device can also be respectively set in the terminal devices 101, 102, 103 and the server 105.
[0055] In some cases, the music signal modulation method provided in the present disclosure may be executed by the server 105 , and accordingly, the music signal modulation device may also be arranged in the server 105 . In this case, the system architecture 100 may not include the terminal devices 101 , 102 , and 103 .
[0056] In some cases, the music signal modulation method provided in the present disclosure may be executed by the terminal devices 101 , 102 , 103 , and correspondingly, the music signal modulation device may also be arranged in the terminal devices 101 , 102 , 103 . In this case, the system architecture 100 may not include the server 105 .
[0057] It should be noted that the server 105 can be hardware or software. When the server 105 is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or it can be implemented as a single server. When the server 105 is software, it can be implemented as multiple software or software modules (for example, for providing distributed services), or it can be implemented as a single software or software module. No specific limitation is made here.
[0058] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.
[0059] Continue to refer Figure 2 , Figure 2 A flowchart 200 is shown of an embodiment of a music signal modulation method according to the present disclosure. Figure 2 The music signal modulation method shown can be applied to Figure 1 The process 200 at least includes the following steps 201-204.
[0060] Step 201, obtaining the root note of the chord of the target music signal.
[0061] In this embodiment, any piece of music can be randomly selected as the music to be modulated. The target music signal can refer to any measure of music signal in the music.
[0062] Generally, each measure of music signal corresponds to a chord root tone, which refers to the basic tone that constitutes a chord, that is, the lowest tone in the chord.
[0063] For example, in a C major triad, the notes included are C (root), E (third), and G (fifth).
[0064] Here, since the chord root note is the basis of the chord and determines the name of the chord and its interval structure, choosing the chord root note as the basic tone for subsequent music signal modulation can ensure that the target music signal still maintains the harmony of the chord during the modulation process and will not destroy the internal relationship of the chord, so that the modulated target music signal can sound more natural and pleasant.
[0065] Step 202: determining the fundamental frequency of the chord root note according to the chord root note.
[0066] In this embodiment, the fundamental frequency may be a frequency that harmonizes the melody of the chord root note.
[0067] Here, the selection of the basic frequency should make the chord root sound harmonious and melodious, and at the same time conform to the tonality and style of the target music signal itself, so that the modulated target music signal heard by the human ear can feel more comfortable.
[0068] Here, there are many methods for determining the fundamental frequency of the chord root note according to the chord root note. For example, the frequency of the chord root note can be used to determine the fundamental frequency corresponding to the chord root note. The chord root note can also be raised by N octaves or lowered by M octaves, and the frequency of the chord root note after being raised by N octaves or lowered by M octaves is determined as the fundamental frequency corresponding to the chord root note, wherein N and M are positive integers greater than or equal to 1. A fundamental frequency can also be pre-specified by a technician as the fundamental frequency of the chord root note, for example, 10000 Hz is used as the fundamental frequency of the chord root note.
[0069] Step 203: obtaining a target modulation frequency of the target measurement object for the control target.
[0070] In this embodiment, the target modulation frequency is a frequency that has a regulation effect on the target measurement object with respect to the regulation target, and the target modulation frequency can be determined according to the regulation target.
[0071] Regulation goals may include improving higher-level cognitive functions, learning, memory and clarity of consciousness, improving mental agility and creativity, relaxing, reducing anxiety, improving memory, promoting deep sleep, relieving insomnia symptoms, etc., without limitation here.
[0072] Different control targets can correspond to different target modulation frequencies, thereby achieving different control effects.
[0073] For example, when the regulation goal is to improve higher-level cognitive functions, learning, memory, and clarity of consciousness, and to improve thinking agility and creativity, the target modulation frequency can be selected as 40Hz, which belongs to the gamma frequency band. The gamma frequency band usually refers to the gamma waves in brain waves, and its frequency range is between 30Hz and 100Hz. The gamma frequency band can be used to improve higher-level cognitive functions, learning, memory, and clarity of consciousness, and to improve thinking agility and creativity.
[0074] Step 204: cyclically modulate the root tone of the chord according to the target modulation frequency and the basic frequency to generate a modulated music signal having a regulating effect on the target measurement object according to the regulation target.
[0075] Here, the target modulation frequency is a frequency that has a regulatory effect, the basic frequency can be a frequency that makes the melody of the chord root tone harmonious, and the modulated music signal generated by cyclically modulating the chord root tone according to the target modulation frequency and the basic frequency can be a music signal that has a regulatory effect corresponding to the regulatory target on the target measurement object.
[0076] For example, when the regulation target is to improve high-level cognitive functions, learning, memory and clarity of consciousness, and to enhance agility of thinking and creativity, the target modulation frequency corresponding to the regulation target is used to modulate the root tone of the chord adjusted by the basic frequency. The generated modulated music signal can improve the high-level cognitive functions, learning, memory and clarity of consciousness of the target measurement object, and enhance the agility of thinking and creativity of the target measurement object. The modulated music signal has both regulatory functions and the melody and rhythm of a music signal, and conforms to the basic laws of musicology.
[0077] In some optional embodiments, the root tone of the chord is cyclically modulated according to the target modulation frequency and the basic frequency to generate a modulated music signal that has a regulatory effect on the target measurement object with respect to the regulation target. First, the root tone of the chord and the harmonic tones can be determined according to the basic frequency, and then the harmonic tones are cyclically modulated by the target modulation frequency to generate a modulated music signal that has a regulatory effect on the target measurement object with respect to the regulation target.
[0078] Harmony refers to a harmonious and pleasant auditory effect produced when notes of different pitches are combined together in music. It plays a vital role in music. It not only enriches the timbre, but also makes the music more harmonious. Harmony is usually an integer multiple of the root note of the chord.
[0079] After the fundamental frequency of the root note of the chord is determined, the harmonics of the root note of the chord may be determined according to the fundamental frequency. Here, there may be multiple methods for determining the harmonics of the root note of the chord.
[0080] In some optional implementations, when the fundamental frequency of the chord root tone is the frequency of the chord root tone, the chord root tone may be determined as a harmonic tone of the chord root tone.
[0081] In some optional embodiments, when the fundamental frequency of the chord root tone is specified by a technician, for example, when the fundamental frequency is specified as 10000 Hz, the frequency of the chord root tone can be raised by one octave, two octaves, or more octaves, and the distances between the frequencies corresponding to the frequencies of the chord root tone raised by one octave, two octaves, or more octaves and the fundamental frequency 10000 Hz can be compared. If the frequency is closer to the fundamental frequency 10000 Hz, the tone corresponding to the frequency closest to the fundamental frequency 10000 Hz is determined as the harmonic tone of the chord root tone. When the frequency corresponding to the frequencies raised by one octave, two octaves, or more octaves is far from the fundamental frequency, other tones within the chord of the chord root tone can also be determined as the harmonic tones of the chord root tone.
[0082] In some optional embodiments, when the frequency of the chord root tone after N octaves raised or M octaves lowered is determined as the basic frequency, the sound corresponding to the frequency of the chord root tone after N octaves raised or M octaves lowered can also be determined as the harmonic sound of the chord root tone.
[0083] After the harmonic tones are determined, the harmonic tones can be cyclically modulated using the target modulation frequency to generate a modulated music signal that has a regulating effect on the target measurement object according to the regulation target.
[0084] Cyclic modulation is a modulation technique that periodically adjusts a certain aspect of a signal (such as frequency, amplitude, etc.) so that the signal exhibits a specific fluctuation pattern over a period of time.
[0085] For example, when the target modulation frequency is 40 Hz, it means that the modulation signal will be repeated 40 times per second, that is, the harmonic tone performs the same action 40 times in 1 second.
[0086] Here, various known modulation methods can be used to cyclically modulate the harmonic sound using the target modulation frequency. For example, a low-frequency oscillator can be used to cyclically modulate the harmonic sound to generate a modulated music signal that has a regulatory effect on the target measurement object according to the regulation target. The specific modulation method is not limited here.
[0087] The modulation waveform may include a sine wave, a square wave, a triangle wave, etc. Taking the modulation waveform as a square wave as an example, the square wave is at a high level (sound) for the first 1ms of each cycle, and at a low level (silent) for the rest of the time. Since the target modulation frequency is 40Hz, the time of each cycle is 1 / 40 seconds = 25ms. In the first 1ms of each cycle, the carrier signal sounds normally. In the rest of each cycle, i.e., 24ms, the carrier signal is turned off or muted.
[0088] Here, since the harmonic sound can produce a harmonious and pleasant auditory effect, the target modulation frequency has a regulatory effect. Therefore, after the harmonic sound is cyclically modulated using the target modulation frequency, the generated modulated music signal can ensure both harmony in melody and regulatory effect.
[0089] In some optional implementations, before obtaining the target modulation frequency of the target measurement object for the regulation target, the process 200 may further include steps 205-207.
[0090] Step 205: Obtain a modulation frequency band preset for the control target.
[0091] Different control targets can correspond to different target modulation frequencies, thereby achieving different control effects.
[0092] For example, when the regulation target is to improve high-level cognitive functions, learning, memory and clarity of consciousness, and to enhance thinking agility and creativity, the preset modulation frequency band of the regulation target may be a gamma frequency band, and the frequency range corresponding to the gamma frequency band is 30Hz-100Hz.
[0093] When the control target is relaxation, anxiety reduction, and memory improvement, the preset modulation frequency band of the control target may be the Theta frequency band, and the frequency range corresponding to the Theta frequency band is 4Hz-8Hz.
[0094] When the control target is to promote deep sleep, relieve insomnia symptoms, etc., the preset modulation frequency band of the control target can be the Delta band, and the frequency range corresponding to the Delta band is 0.5Hz-4Hz.
[0095] The control objectives may also include helping people enter a relaxed state, improving concentration when attention is distracted, enhancing attention, improving work efficiency, etc., all of which have corresponding modulation frequency bands and are not restricted here.
[0096] Step 206, obtaining the fluctuation value of the brain wave frequency of the target measurement object for each modulation frequency in a preset modulation frequency band.
[0097] Here, first, a brain wave measuring device can be used to capture the brain wave frequency of the target measurement object, and then a frequency scanning method can be used to obtain the fluctuation value of the brain wave frequency of the target measurement object for each modulation frequency within a preset modulation frequency band, that is, for each modulation frequency within the preset modulation frequency band, the fluctuation value of the brain wave frequency of the target measurement object for each modulation frequency is calculated.
[0098] Step 207: determining a target modulation frequency of the target object for the regulation target according to the fluctuation value.
[0099] Here, the fluctuation value can represent the control effect of the modulation frequency on the target measurement object. The larger the fluctuation value, the better the control effect of the modulation frequency on the target measurement object. The smaller the fluctuation value, the worse the control effect of the modulation frequency on the target measurement object.
[0100] In some optional implementations, the modulation frequency with the largest fluctuation value may be determined as the target modulation frequency of the target object for the regulation target.
[0101] For example, when the regulation target is to improve high-level cognitive functions, learning, memory and clarity of consciousness, and to enhance thinking agility and creativity, the modulation frequency band preset for the regulation target may be a gamma frequency band, and the frequency range corresponding to the gamma frequency band is 30Hz-100Hz.
[0102] For each frequency in the range of 30Hz-100Hz, the fluctuation value of each frequency with respect to the brain wave frequency of the target measurement object can be calculated in turn. For example, if 40Hz has the largest fluctuation value with respect to the brain wave frequency of the target measurement object, 40Hz is determined as the target modulation frequency.
[0103] In some optional implementations, before obtaining the target modulation frequency of the target measurement object for the regulation target, the process 200 may further include steps 208 - 211 .
[0104] Step 208: Obtain a frequency response diagram of the target player.
[0105] In order to ensure that the modulated music signal maintains its authenticity to the greatest extent after being parsed and played by a target player (such as headphones, speakers and other audio devices), it is necessary to measure the frequency response of the target player and calibrate the modulated music signal accordingly.
[0106] A frequency response graph is a graph used to represent the response characteristics of a device or system at different frequencies. It can be used to show the response of the target player to different frequencies.
[0107] As an example, the horizontal axis of the frequency response graph can represent frequency (in Hertz Hz), usually arranged continuously from the lowest frequency to the highest frequency, and the vertical axis represents sound intensity (usually in decibels dB SPL), reflecting the gain or attenuation of the target player at different frequencies, with positive values representing gain and negative values representing attenuation.
[0108] Ideally, the frequency response graph of the target player should be consistent with the theoretical analysis curve of the music signal, indicating that all frequencies of the music signal are evenly amplified or attenuated. In practice, the curve of the frequency response graph of the target player may have ups and downs, reflecting that the target player has gain or attenuation at certain frequencies of the music signal.
[0109] Here, a test signal containing a wide frequency band can be input to the target player, for example, a song with a frequency range of 10000Hz-100000Hz can be played through the target player, and the frequency response output by the target player can be recorded through the frequency response measurement device. The sound pressure level (SPL) of the target player at each frequency point, that is, the gain or attenuation of the target player at different frequencies, is recorded to obtain the frequency response graph of the target player.
[0110] Step 209: Create a frequency calibration template for the target player according to the frequency response graph.
[0111] The frequency calibration template includes the gain compensation value of each frequency point of the target player output frequency.
[0112] After the frequency response graph is obtained, a frequency calibration template of the target player may be established according to the frequency response graph.
[0113] In some optional implementations, first, the frequency response diagram can be analyzed to determine the abnormal frequency response band, then the gain compensation value of each frequency point in the abnormal frequency response band is calculated, and finally, a frequency calibration template can be established according to the gain compensation value of each frequency point.
[0114] Abnormal frequency bands are those frequency points that deviate from the ideal straight line, that is, find the frequency bands in the frequency response graph where the frequency response is too high (too much gain) or too low (insufficient gain). These frequency bands may cause distortion or imbalance in the final output of the target player.
[0115] Here, an automated tool can be used to analyze the frequency response graph to determine the frequency band with abnormal frequency response, or a technician can observe the frequency response graph, mark the frequency band with abnormal frequency response, and then calculate the gain compensation value of each frequency point, that is, how many decibels need to be increased or decreased at which frequency points. Specifically, if the frequency point in the frequency response graph shows gain, it is necessary to reduce the decibel value at this frequency. If the frequency point in the frequency response graph shows attenuation, it is necessary to increase the decibel value at this frequency point. Finally, a frequency calibration template is established through the gain compensation value of the target player at each frequency point.
[0116] Step 210: frequency calibrate the modulated music signal according to the frequency calibration template.
[0117] With the frequency calibration template of the target player, the frequency calibration template can be used to further calibrate the modulated music signal according to the corresponding gain compensation value in the frequency calibration template at the frequency points in the modulated music signal that need to be calibrated.
[0118] Step 211, outputting the frequency-calibrated modulated music signal through the target player.
[0119] In this way, it can be ensured that the authenticity of the modulated music signal is maintained to the greatest extent after being parsed and played by the target player.
[0120] In some optional implementations, before obtaining the chord root note of the target music signal, the process 200 may further include steps 212-213.
[0121] Step 212, analyzing the target music signal.
[0122] Here, various methods for analyzing the target music signal may be used to analyze the target music signal to obtain each note of the target music signal.
[0123] Step 213, determining the chord root note of the target music signal according to the analysis result.
[0124] Here, the target music signal can be auditioned by a technician with human ears to determine the chord root tone of the target music signal. Generally, the chord root tone of the target music signal can be the first note of the target music signal. A professional chord root tone determination method can also be used to determine the chord root tone of the target music signal, for example, using a pre-trained chord model. These models are usually trained based on a large number of audio samples and can identify different chord types. Then, each note of the target music signal obtained by analysis is input into the pre-trained chord model to identify the chord type of the target music signal, and further identify the chord root tone of the target music signal according to the chord type.
[0125] As mentioned above, the target music signal may refer to any measure of a music signal in a piece of music, and a piece of music signal may include multiple target music signals, that is, multiple measures. Each measure in a piece of music may be modulated using the method of steps 201 to 213 above. Finally, the modulated music signal corresponding to the piece of music may be obtained by arranging them in the order of each measure.
[0126] The music signal modulation method provided by the embodiment of the present disclosure first obtains the chord root tone of the target music signal, determines the basic frequency of the chord root tone according to the chord root tone, wherein the basic frequency is the frequency that makes the melody of the chord root tone harmonious, then obtains the target modulation frequency of the target measurement object for the control target, wherein the target modulation frequency is the frequency that has a control effect on the target measurement object for the control target, and finally, cyclically modulates the chord root tone according to the target modulation frequency and the basic frequency to generate a modulated music signal that has a control effect on the target measurement object for the control target. The present disclosure cyclically modulates the chord root tone by using the basic frequency that is harmonious with the melody of the chord root tone and the target modulation frequency that has a control effect on the target measurement object for the control target to generate a modulated music signal, so that the modulated music signal can be both harmonious in melody and in line with the basic laws of musicology, while ensuring the control effect of the modulated music signal.
[0127] Further references Figure 3 As an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a music signal modulation device, and the device embodiment is Figure 2 Corresponding to the method embodiment shown, the apparatus can be specifically applied to various terminal devices.
[0128] like Figure 3 As shown, the music signal modulation device of this embodiment, the device 300 includes: a chord root tone acquisition unit 301, a determination unit 302, a modulation frequency acquisition unit 303 and a generation unit 304. The chord root tone acquisition unit 301 is used to acquire the chord root tone of the target music signal; the determination unit 302 is used to determine the basic frequency of the chord root tone according to the chord root tone, wherein the basic frequency is the frequency that makes the melody of the chord root tone harmonious; the modulation frequency acquisition unit 303 is used to acquire the target modulation frequency of the target measurement object for the control target, wherein the target modulation frequency is the frequency that has a control effect on the target measurement object for the control target; the generation unit 304 is used to cyclically modulate the chord root tone according to the target modulation frequency and the basic frequency to generate a modulated music signal that has a control effect on the target measurement object for the control target.
[0129] In this embodiment, the specific processing of the chord root tone acquisition unit 301, the determination unit 302, the modulation frequency acquisition unit 303 and the generation unit 304 and the technical effects thereof can be referred to in Figure 2 The relevant descriptions of step 201 to step 204 in the corresponding embodiment are not repeated here.
[0130] In some optional implementations, the generating unit 304 may be further configured to:
[0131] Determine the harmonics of the chord root note based on the fundamental frequency;
[0132] The target modulation frequency is used to cyclically modulate the harmonic sound to generate a modulated music signal having a control effect on the target measurement object according to the control target.
[0133] In some optional implementations, the apparatus 300 may further include a modulation frequency determination unit ( Figure 3 ), is configured to: before acquiring the target modulation frequency of the target measurement object for the regulation target:
[0134] Obtaining a modulation frequency band preset for a control target;
[0135] Used to obtain the fluctuation value of the brain wave frequency of the target measurement object for each modulation frequency in a preset modulation frequency band;
[0136] It is used to determine the target modulation frequency of the target object for the regulation target according to the fluctuation value.
[0137] In some optional implementations, the apparatus 300 may further include a frequency calibration unit ( Figure 3 ), is configured as:
[0138] Get the frequency response graph of the target player;
[0139] Establishing a frequency calibration template of the target player according to the frequency response diagram, wherein the frequency calibration template includes gain compensation values of each frequency point of the output frequency of the target player;
[0140] Perform frequency calibration on the modulated music signal according to the frequency calibration template;
[0141] The frequency-calibrated modulated music signal is outputted through the target player.
[0142] In some optional implementations, the frequency calibration unit ( Figure 3 ), can be further configured as:
[0143] Analyze the frequency response diagram and determine the abnormal frequency band of the frequency response;
[0144] Calculate the gain compensation value of each frequency point in the abnormal frequency band of the frequency response;
[0145] Create a frequency calibration template based on the gain compensation value at each frequency point
[0146] In some optional implementations, the apparatus 300 may further include a chord root tone determination unit ( Figure 3 ), is configured as:
[0147] Analyze the target music signal;
[0148] The chord root note of the target music signal is determined according to the analysis result.
[0149] It should be noted that the implementation details and technical effects of each unit in the music signal modulation device provided in the embodiments of the present disclosure can be referred to the description of other embodiments in the present disclosure, and will not be repeated here.
[0150] Reference below Figure 4 , which shows a schematic diagram of the structure of a computer system 400 of a terminal device suitable for implementing the present disclosure. Figure 4 The computer system 400 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0151] like Figure 4 As shown, the computer system 400 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 401, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 402 or a program loaded from a storage device 408 to a random access memory (RAM) 403. Various programs and data required for the operation of the computer system 400 are also stored in the RAM 403. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0152] Typically, the following devices may be connected to the I / O interface 405: input devices 406 including, for example, a touch screen, a touch pad, a keypad, a mouse, a camera, a microphone, etc.; output devices 407 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 408 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 409. The communication devices 409 may allow the computer system 400 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 4 The computer system 400 of an electronic device having various devices is shown, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead.
[0153] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device 409, or installed from a storage device 408, or installed from a ROM 402. When the computer program is executed by the processing device 401, the above-mentioned functions defined in the method of the embodiment of the present disclosure are executed.
[0154] It should be noted that the computer-readable medium disclosed above may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device or device. In the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, in which a computer-readable program code is carried. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. The computer readable signal medium may also be any computer readable medium other than a computer readable storage medium, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer readable medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.
[0155] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0156] The computer readable medium carries one or more programs. When the one or more programs are executed by the electronic device, the electronic device implements the following Figure 2 The illustrated embodiment and its optional implementations illustrate a method for modulating a music signal.
[0157] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0158] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0159] The units involved in the embodiments described in the present disclosure may be implemented by software or hardware. The name of a unit does not limit the unit itself in some cases. For example, a chord root tone acquisition unit may also be described as a "unit for acquiring a chord root tone of a target music signal".
[0160] The above description is only a preferred embodiment of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in the present disclosure (but not limited to) by each other to form a technical solution.
Claims
1. A music signal modulation method, characterized in that: include: Obtaining the chord root tone of the target music signal; Determine the fundamental frequency of the chord root tone according to the chord root tone, wherein the fundamental frequency is the frequency that makes the melody of the chord root tone harmonious; Acquire a target modulation frequency of the target measurement object with respect to the regulation target, wherein the target modulation frequency is a frequency that has a regulation effect on the target measurement object with respect to the regulation target; The chord root tone is cyclically modulated according to the target modulation frequency and the basic frequency to generate a modulated music signal having a regulating effect on the target measurement object according to the regulation target.
2. The method according to claim 1, characterized in that The step of cyclically modulating the root tone of the chord according to the target modulation frequency and the basic frequency to generate a modulated music signal having a regulating effect on the target measurement object with respect to the regulation target includes: determining the root tone and harmonics of the chord according to the fundamental frequency; The target modulation frequency is used to cyclically modulate the harmonic sound to generate a modulated music signal having a control effect on the target measurement object according to the control target.
3. The method according to claim 1, characterized in that: Before obtaining the target modulation frequency of the target measurement object for the control target, the method further includes: Acquire a modulation frequency band preset for the control target; Obtaining fluctuation values of the brain wave frequency of the target measurement object for each modulation frequency in the preset modulation frequency band; The target modulation frequency of the target object for the regulation target is determined according to the fluctuation value.
4. The method according to claim 1, characterized in that: The method further comprises: Get the frequency response graph of the target player; Establishing a frequency calibration template of the target player according to the frequency response diagram, wherein the frequency calibration template includes a gain compensation value of each frequency point of the output frequency of the target player; Performing frequency calibration on the modulated music signal according to the frequency calibration template; The modulated music signal after frequency calibration is outputted by the target player.
5. The method according to claim 4, characterized in that The step of establishing a frequency calibration template for the target player according to the frequency response graph includes: Analyze the frequency response diagram to determine the frequency band with abnormal frequency response; Calculate the gain compensation value of each frequency point in the abnormal frequency band of the frequency response; The frequency calibration template is established according to the gain compensation value at each frequency point.
6. The method according to claim 1, characterized in that Before obtaining the chord root note of the target music signal, the method further includes: Analyzing the target music signal; The chord root note of the target music signal is determined according to the analysis result.
7. A music signal modulation device, characterized in that: include: A chord root tone acquisition unit, used to acquire the chord root tone of the target music signal; a determination unit, configured to determine a fundamental frequency of the chord root tone according to the chord root tone, wherein the fundamental frequency is a frequency that makes the melody of the chord root tone harmonious; A modulation frequency acquisition unit, used to acquire a target modulation frequency of the target measurement object with respect to the regulation target, wherein the target modulation frequency is a frequency that has a regulation effect on the target measurement object with respect to the regulation target; A generating unit is used to cyclically modulate the root tone of the chord according to the target modulation frequency and the basic frequency to generate a modulated music signal having a regulating effect on the target measurement object according to the regulation target.
8. An electronic device comprising: one or more processors; a storage device having one or more programs stored thereon, When one or more programs are executed by one or more processors, the one or more processors are caused to implement the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, wherein: When the computer program is executed by one or more processors, the method according to any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program / instruction, wherein when the computer program / instruction is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
