CN117351914A - Music synthesis method, device, equipment, medium and vehicle - Google Patents

Music synthesis method, device, equipment, medium and vehicle Download PDF

Info

Publication number
CN117351914A
CN117351914A CN202210753016.4A CN202210753016A CN117351914A CN 117351914 A CN117351914 A CN 117351914A CN 202210753016 A CN202210753016 A CN 202210753016A CN 117351914 A CN117351914 A CN 117351914A
Authority
CN
China
Prior art keywords
sound source
source information
music
pressure signal
user
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210753016.4A
Other languages
Chinese (zh)
Inventor
杨永博
纪洪洲
尹俊学
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Great Wall Motor Co Ltd
Original Assignee
Great Wall Motor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Great Wall Motor Co Ltd filed Critical Great Wall Motor Co Ltd
Priority to CN202210753016.4A priority Critical patent/CN117351914A/en
Publication of CN117351914A publication Critical patent/CN117351914A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
    • G10H1/00Details of electrophonic musical instruments
    • G10H1/0008Associated control or indicating means
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60RVEHICLES, VEHICLE FITTINGS, OR VEHICLE PARTS, NOT OTHERWISE PROVIDED FOR
    • B60R16/00Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for
    • B60R16/02Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements
    • B60R16/037Electric or fluid circuits specially adapted for vehicles and not otherwise provided for; Arrangement of elements of electric or fluid circuits specially adapted for vehicles and not otherwise provided for electric constitutive elements for occupant comfort, e.g. for automatic adjustment of appliances according to personal settings, e.g. seats, mirrors, steering wheel
    • GPHYSICS
    • G10MUSICAL INSTRUMENTS; ACOUSTICS
    • G10HELECTROPHONIC MUSICAL INSTRUMENTS; INSTRUMENTS IN WHICH THE TONES ARE GENERATED BY ELECTROMECHANICAL MEANS OR ELECTRONIC GENERATORS, OR IN WHICH THE TONES ARE SYNTHESISED FROM A DATA STORE
    • G10H1/00Details of electrophonic musical instruments
    • G10H1/0008Associated control or indicating means
    • G10H1/0025Automatic or semi-automatic music composition, e.g. producing random music, applying rules from music theory or modifying a musical piece

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Mechanical Engineering (AREA)
  • Reverberation, Karaoke And Other Acoustics (AREA)

Abstract

The application provides a music synthesizing method, a device, equipment, a medium and a vehicle, wherein analysis music is obtained by analyzing music to be analyzed, target sound source information corresponding to a pressure signal input by a user is determined according to a corresponding relation between a preset pressure signal and the sound source information, and then the target sound source information is inserted into the analysis music to synthesize and obtain target music. Therefore, the music to be analyzed can be edited through the pressure input by the user on the basis of the music to be analyzed, and the target sound source information corresponding to the pressure signal is inserted into the music to be analyzed, so that the target music is obtained. The user can increase the sound source information in the analyzed music through the corresponding relation between the preset pressure signal and the sound source information and through the input pressure signal, so that the editing creation of the user on the music is realized, the interactivity of the user and the music playing is improved, and the use experience of the user is improved.

Description

Music synthesis method, device, equipment, medium and vehicle
Technical Field
The present application relates to the field of vehicle technologies, and in particular, to a music synthesis method, a device, equipment, a computer readable storage medium, and a vehicle.
Background
With the continuous maturity of in-car music playing technology, the technology of playing music in the process of driving by users has been gradually widespread. In the driving process, the user can select the content to be played, and play the content by calling a cache or network connection.
However, in the related art, the user can only passively accept the music playing in the driving technology, that is, the playing content is a downloaded or cached song, and the active creation and editing cannot be performed by the user, so that the music created and edited by the user can be played. Therefore, interaction of playing music in the driving process is weaker, and the use experience of a user is affected.
Therefore, a music synthesizing method with high interactivity is needed.
Disclosure of Invention
The method can edit the existing music and improve the use experience of the user. The application also provides a device, equipment, a computer readable storage medium and a vehicle corresponding to the method.
In a first aspect, the present application provides a music synthesis method, the method comprising:
analyzing the music to be analyzed to obtain analyzed music, and determining a target note corresponding to the pressure signal input by the user according to the corresponding relation between the preset pressure signal and the note;
And inserting the target notes into the analysis music to synthesize target music.
In some possible implementations, the method includes:
and acquiring the pressure signal input by a user through a pressure sensor.
In some possible implementations, the pressure sensor includes a plurality of pressure sensors located at least 2 positions among the front passenger door, the rear left side door, and the rear right side door, the pressure signals including a plurality of pressure signals.
In some possible implementations, the correspondence between the preset pressure signal and the sound source information includes:
the method comprises the steps of acquiring corresponding relations between first pressure signals and first sound source information and corresponding relations between second pressure signals and second sound source information, wherein the first pressure signals and the second pressure signals are pressure signals acquired by pressure sensors at different positions, and the first sound source information and the second sound source information are sound source information with different tone colors.
In some possible implementations, the correspondence between the preset pressure signal and the sound source information includes:
the method comprises the steps of acquiring a third pressure signal and third sound source information, and acquiring a fourth pressure signal and fourth sound source information, wherein the third pressure signal and the fourth pressure signal are pressure signals acquired by pressure sensors at different positions, and the third sound source information and the fourth sound source information are sound source information with different tones.
In some possible implementations, the correspondence between the preset pressure signal and the sound source information includes:
the method comprises the steps of providing a fifth pressure signal and fifth sound source information, and providing a sixth pressure signal and sixth sound source information, wherein the fifth pressure signal and the sixth pressure signal are pressure signals with different time lengths, and the fifth sound source information and the sixth sound source information are sound source information with different tone colors.
In some possible implementations, the correspondence between the preset pressure signal and the sound source information includes:
the method comprises the steps of providing a corresponding relation between a seventh pressure signal and seventh sound source information and a corresponding relation between an eighth pressure signal and eighth sound source information, wherein the seventh pressure signal and the eighth pressure signal are pressure signals with different input sequences, and the seventh sound source information and the eighth sound source information are sound source information of different notes.
In some possible implementations, the method further includes:
and playing the target music through sound equipment.
In some possible implementations, the method further includes:
determining an atmosphere lamp color based on the target music;
The playing of the target music through sound equipment comprises the following steps:
playing the target music through sound equipment and displaying the color of the atmosphere lamp through the atmosphere lamp.
In some possible implementations, the method further includes:
collecting user sound through a microphone;
the inserting the target sound source information into the analysis music to synthesize target music includes:
and inserting the target sound source information into the analysis music, and combining the user sound to synthesize target music.
In a second aspect, the present application provides a music generating apparatus, comprising:
the analysis module is used for analyzing the music to be analyzed to obtain analysis music;
the determining module is used for determining target sound source information corresponding to the pressure signal input by the user according to the corresponding relation between the preset pressure signal and the sound source information;
and the synthesis module is used for inserting the target sound source information into the analysis music to synthesize target music.
In some possible implementations, the apparatus further includes an acquisition module configured to:
and acquiring the pressure signal input by a user through a pressure sensor.
In some possible implementations, the pressure sensor includes a plurality of pressure sensors located at least 2 positions among the front passenger door, the rear left side door, and the rear right side door, the pressure signals including a plurality of pressure signals.
In some possible implementations, the correspondence between the preset pressure signal and the sound source information includes:
the method comprises the steps of acquiring corresponding relations between first pressure signals and first sound source information and corresponding relations between second pressure signals and second sound source information, wherein the first pressure signals and the second pressure signals are pressure signals acquired by pressure sensors at different positions, and the first sound source information and the second sound source information are sound source information with different tone colors.
In some possible implementations, the correspondence between the preset pressure signal and the sound source information includes:
the method comprises the steps of acquiring a third pressure signal and third sound source information, and acquiring a fourth pressure signal and fourth sound source information, wherein the third pressure signal and the fourth pressure signal are pressure signals acquired by pressure sensors at different positions, and the third sound source information and the fourth sound source information are sound source information with different tones.
In some possible implementations, the correspondence between the preset pressure signal and the sound source information includes:
the method comprises the steps of providing a fifth pressure signal and fifth sound source information, and providing a sixth pressure signal and sixth sound source information, wherein the fifth pressure signal and the sixth pressure signal are pressure signals with different time lengths, and the fifth sound source information and the sixth sound source information are sound source information with different tone colors.
In some possible implementations, the correspondence between the preset pressure signal and the sound source information includes:
the method comprises the steps of providing a corresponding relation between a seventh pressure signal and seventh sound source information and a corresponding relation between an eighth pressure signal and eighth sound source information, wherein the seventh pressure signal and the eighth pressure signal are pressure signals with different input sequences, and the seventh sound source information and the eighth sound source information are sound source information of different notes.
In some possible implementations, the apparatus further includes a play module configured to:
and playing the target music through sound equipment.
In some possible implementations, the apparatus further includes a color module to:
determining an atmosphere lamp color based on the target music;
the playing module is specifically configured to:
playing the target music through sound equipment and displaying the color of the atmosphere lamp through the atmosphere lamp.
In some possible implementations, the apparatus further includes an acquisition module configured to:
collecting user sound through a microphone;
the synthesis module is specifically used for:
and inserting the target sound source information into the analysis music, and combining the user sound to synthesize target music.
In a third aspect, the present application provides an apparatus comprising a processor and a memory. The processor and the memory communicate with each other. The processor is configured to execute instructions stored in the memory to cause the apparatus to perform a music composing method as in the first aspect or any implementation of the first aspect.
In a fourth aspect, the present application provides a computer readable storage medium having stored therein instructions for instructing a device to perform the music composing method according to the first aspect or any implementation manner of the first aspect.
In a fifth aspect, the present application provides a vehicle comprising a music composing device according to the second aspect.
Further combinations of the present application may be made to provide further implementations based on the implementations provided in the above aspects.
From the above technical solutions, the embodiments of the present application have the following advantages:
the embodiment of the application provides a music synthesis method, which is characterized in that analysis music is obtained by analyzing music to be analyzed, target sound source information corresponding to a pressure signal input by a user is determined according to a corresponding relation between a preset pressure signal and the sound source information, and then the target sound source information is inserted into the analysis music to synthesize the target music. Therefore, the music to be analyzed can be edited through the pressure input by the user on the basis of the music to be analyzed, and the target sound source information corresponding to the pressure signal is inserted into the music to be analyzed, so that the target music is obtained. The user can increase the sound source information in the analyzed music through the corresponding relation between the preset pressure signal and the sound source information and through the input pressure signal, so that the editing creation of the user on the music is realized, the interactivity of the user and the music playing is improved, and the use experience of the user is improved.
When the music synthesizing method is applied to a vehicle, a user can actively edit and create music through pressure signals in the driving process and play the music in real time, so that the burnout feeling of the user in the driving process is relieved, and the interestingness of the user in the driving process is enhanced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive faculty for a person skilled in the art.
Fig. 1 is a schematic flow chart of a music synthesizing method according to an embodiment of the present application;
fig. 2 is a schematic diagram of an in-vehicle music synthesis method according to an embodiment of the present application;
fig. 3 is a flow chart of another music synthesizing method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a music synthesizing apparatus according to an embodiment of the present application.
Detailed Description
The embodiments of the present application will be described below with reference to the drawings in the present application.
The terms first, second and the like in the description and in the claims of the present application and in the above-described figures, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the terms so used are interchangeable under appropriate circumstances and are merely illustrative of the manner in which the embodiments of the application described herein have been described for objects of the same nature.
Music is often played inside the vehicle to relieve the user's fatigue during driving. In the related art, a user can only passively accept music content, specifically, the user can select the music content to play, but the played content is the content downloaded in advance or uploaded to the platform in advance, namely, the fixed content, which is less interesting.
In view of this, the present application provides a music composing method that can be executed by an electronic apparatus. The electronic device refers to a device having data processing capability, and may be, for example, a terminal device such as a smart phone, or a server. In this embodiment, the electronic device may be an electronic control unit (Electronic Control Unit, ECU) of the vehicle, or may be another device.
Specifically, the electronic device analyzes the music to be analyzed to obtain analyzed music, determines target sound source information corresponding to the pressure signal input by the user according to the corresponding relation between the preset pressure signal and the sound source information, and then inserts the target sound source information into the analyzed music to synthesize and obtain the target music. Therefore, the music to be analyzed can be edited through the pressure input by the user on the basis of the music to be analyzed, and the target sound source information corresponding to the pressure signal is inserted into the music to be analyzed, so that the target music is obtained. The user can increase the sound source information in the analyzed music through the corresponding relation between the preset pressure signal and the sound source information and through the input pressure signal, so that the editing creation of the user on the music is realized, the interactivity of the user and the music playing is improved, and the use experience of the user is improved. When the music synthesizing method is applied to a vehicle, a user can actively edit and create music through pressure signals in the driving process and play the music in real time, so that the burnout feeling of the user in the driving process is relieved, and the interestingness of the user in the driving process is enhanced.
Next, a music composing method provided in the embodiment of the present application will be described with reference to the accompanying drawings.
Referring to the flow chart of the music composing method shown in fig. 1, the method comprises the steps of:
s102: the electronic equipment analyzes the music to be analyzed to obtain analyzed music.
The music to be analyzed can be downloaded music or music which is instantly collected by the electronic equipment through the microphone. When the music to be analyzed is downloaded music, the electronic equipment responds to the selection of the user to be analyzed, and determines the music to be analyzed as the music to be analyzed, so that the analysis is performed to obtain the analyzed music. When the music to be parsed is a user sound collected by the microphone in real time, the music may be determined as the music to be parsed in response to a determination operation of the user, thereby performing the parsing. Or the music to be analyzed can comprise downloaded music or the sound of the user acquired in real time, and the electronic equipment acquires two types of music to be analyzed for analysis.
The electronic device parses notes and rhythms in the musical sound source information to be parsed to obtain parsed music including the notes and rhythms.
In some possible implementation manners, the music synthesizing method provided by the scheme can be started by triggering a specific music creation switch by a user, or can be started by capturing specific voice input by the user through a microphone, or can be started by determining music to be analyzed by the user selection.
S104: and the electronic equipment determines target sound source information corresponding to the pressure signal input by the user according to the corresponding relation between the preset pressure signal and the sound source information.
The sound source information is information including the content of music in the sound source, and may include, for example, information of tone, pitch, rhythm, timbre, tone zone, musical note, and the like.
Specifically, the electronic device acquires a pressure signal input by a user through the pressure sensor, and then determines target sound source information corresponding to the pressure signal input by the user according to a corresponding relation between a preset pressure signal and the sound source information. Wherein the pressure sensors may include a plurality of pressure sensors located at least 2 positions among the front passenger door, the rear left side door, and the rear right side door. For example, there may be 3 pressure sensors located at the passenger door, at the rear left side door, and at the rear right side door, respectively. For example, the pressure sensor is located at the left door of the rear row of the vehicle, specifically at the lower part of the window, at the upper part of the door handle, where the user can put his hand at leisure to trigger the pressure sensor. Thus, the user can input 3 pressure signals through the 3 pressures. Furthermore, the pressure sensors can also be positioned at the steering wheel horn and the rear emptying air outlet, so that new functions are given to the existing keys, and the utilization rate of automobile parts is improved.
The pressure sensor can be a piezoresistive pressure sensor, and the working principle of the piezoresistive pressure sensor is that the pressure signal is obtained according to the resistance change generated by the strain resistance adsorbed on the matrix material along with the mechanical deformation. Specifically, due to the pressure of the user, the strain resistor is deformed, and the resistor is changed, so that a pressure signal is obtained.
The pressure signal includes not only the pressure intensity but also the pressing time, the corresponding pressure sensor position, and in some possible implementations the pressure signal also includes the order in which the pressure signals are sent out. The corresponding relation between the preset pressure signal and the sound source information can be set by a user in a self-defining way, for example, different pressure intensities of the user can correspond to different sound source information, different pressing times can also correspond to different sound source information, different sound source information can be generated when the pressure sensors at different positions are pressed, and different sound source information can also be corresponding to different orders when the pressure sensors at the same position, the same pressure intensity and the pressing times are pressed.
The pressure signal may also include one of pressure intensity, pressing time, and sensor position. For example, when the electronic device detects that the pressure of the user exceeds the preset threshold value by pressing the corresponding key to input the pressure signal, the pressure signal of the position sensor is determined to be input by the user. The signal may be an electrical signal, indicating that the signal is valid when the magnitude of the signal (the user is pressure) exceeds a threshold value (a preset pressure threshold).
Illustratively, the pressure sensors at different locations may correspond to different interesting sounds, where interesting sounds may include flatus, tractors, trolleys, trains, bees, high heels, running water, cups, and the like. Different press times may correspond to different instrument timbres, where the instrument may include guitar, bass, violin, cello, piano, flute, panpipe, electric guitar, suona, and the like. Different pressure strengths may be for different notes, such as do, re, mi, fa, so, la, si, etc.
Alternatively, pressure sensors in different locations may correspond to different musical instrument timbres, different pressing times to different notes, different pressure intensities to different interesting tones, and so forth.
The corresponding relation between the preset pressure signal and the sound source information may be: the method comprises the steps of acquiring a first pressure signal and first sound source information, and acquiring a second pressure signal and second sound source information, wherein the first pressure signal and the second pressure signal are pressure signals acquired by pressure sensors at different positions, and the first sound source information and the second sound source information are sound source information with different tone colors. For example, the pressure signal collected by the pressure sensor at the front passenger door corresponds to the tone source signal of the guitar tone, and the pressure signal collected by the pressure sensor at the rear left door corresponds to the tone source signal of the piano tone.
The corresponding relation between the preset pressure signal and the sound source information may also be: the corresponding relation between the third pressure signal and the third sound source information and the corresponding relation between the fourth pressure signal and the fourth sound source information, wherein the third pressure signal and the fourth pressure signal are pressure signals acquired by pressure sensors at different positions, and the third sound source information and the fourth sound source information are sound source information with different tones. For example, the pressure signal collected by the pressure sensor at the passenger door corresponds to the sound source signal with the note do, and the pressure signal collected by the pressure sensor at the rear left door corresponds to the sound source signal with the note re.
The corresponding relation between the preset pressure signal and the sound source information further comprises: the method comprises the steps of providing a fifth pressure signal and fifth sound source information, and providing a sixth pressure signal and sixth sound source information, wherein the fifth pressure signal and the sixth pressure signal are pressure signals with different time lengths, and the fifth sound source information and the sixth sound source information are sound source information with different tone colors. For example, a pressure signal with a pressing time of less than 1s corresponds to a sound source signal of a guitar tone, and a pressure signal with a pressing time of greater than or equal to 1s corresponds to a sound source signal of a piano tone.
For example, the user may set in advance that the tone corresponding to the pressure signal at the front passenger door is a piano, the tone corresponding to the rear left door is a guitar, and the tone corresponding to the pressure signal at the rear right door is a bass. The signal is invalid when the pressing pressure is less than 1N, the note corresponding to the pressing pressure being greater than or equal to 1N and less than 2N is do, the tone corresponding to the pressing pressure being greater than or equal to 2N and less than 3N is re, and the tone corresponding to the pressing pressure being greater than or equal to 4N is mi. The pressing time is smaller than 1s corresponding to the bass region, the pressing time is larger than or equal to 1s and smaller than 2s corresponding to the midrange region, and the pressing time is larger than or equal to 2s corresponding to the treble region. When the user presses the pressure sensor 3s at the rear left door by the pressure of 2N, the corresponding sound source information is determined as: the treble region re of guitar tone.
When the corresponding relation between the preset pressure signal and the sound source information cannot determine the specific sound source information, the corresponding notes can be determined according to the input time of the pressure signal. The corresponding relation between the preset pressure signal and the sound source information comprises the following steps: and the seventh pressure signal and the eighth pressure signal are pressure signals with different input time, and the seventh sound source information and the eighth sound source information are sound source information of different notes.
For example, the correspondence between the preset pressure signal and the sound source information includes only that the tone corresponding to the pressure signal at the front passenger door is a piano, the tone corresponding to the rear left door is a guitar, and the tone corresponding to the pressure signal at the rear right door is a bass. The notes input by the preset user according to time are do, re, mi, fa respectively. When the user presses the sensor at the rear left door, the front passenger door, and the rear right door in this order, the do of the guitar tone, the re of the piano tone, the mi of the piano tone, and the fa of the guitar tone are respectively corresponding. The notes corresponding to the input time may be notes in preset music.
Further, the user may set the corresponding relationship between the preset pressure signal and the sound source information to be a fixed relationship or a random matching relationship. The fixed relation means that a user always sends out only one sound type when pressing the pressure sensor at the same position according to the same pressure intensity and the same pressing time, and the random relation means that the user sends out one sound type every time when pressing the pressure sensor at the same position according to the same pressure intensity and the same pressing time, and the other sound type is sent out randomly when pressing for the second time. The user can obtain the music in the expectation under the fixed relation, and the random relation can be synthesized to obtain the unexpected music, so that the interest of synthesis is improved.
In the process that the electronic equipment acquires the pressure signal input by the user through the pressure sensor under the driving side door module (Driver Door Control Module, DDCM) or the back door module (Rear Door Control Module, DCM), the key position, the pressure magnitude and the duration signal of the user are identified. The HUT identifies the pressure sensor for which key position is triggered by the user. When the pressure is less than 0.1N, the pressure can be identified as an invalid signal, and a signal which is greater than or equal to 0.1N is identified as an effective signal, so that misoperation of a user is avoided.
For example, the correspondence between the preset pressure signal and the sound source information may be: when the pressing time is less than or equal to 3 seconds, the pressing time is in direct proportion to the volume, the longer the pressing time is, the larger the sound is, the maximum volume is kept at 3 seconds, the maximum volume is kept unchanged until the sound is canceled when the pressing time is more than 3 seconds, and the pitch can be: maximum volume (duration/3), processing to 3 when the duration is greater than 3 seconds, so that the corresponding relation between the preset pressure signal and the pitch can be determined.
It should be noted that, in this embodiment, the execution order of S102 and S104 is not limited, and the electronic device may firstly parse the music to be parsed to obtain parsed music, and then determine the target audio information corresponding to the pressure signal input by the user according to the corresponding relationship between the preset pressure information and the audio information. For example, the user may first select music to be parsed in the electronic device, and the electronic device starts parsing in response to the user's selection of the music to be parsed, to obtain parsed music. Then the user can trigger the pressure sensor, the electronic equipment obtains the pressure signal input by the user through the pressure sensor, and then the target sound source information corresponding to the pressure signal input by the user is determined according to the corresponding relation between the pressure signal and the sound source information. Before the user triggers the pressure sensor, the electronic device can respond to the selection of the user to-be-analyzed music to play the to-be-analyzed music, so that the user can insert target sound source information into the to-be-analyzed music through the pressure sensor in the process of listening to the to-be-analyzed music.
The electronic device may also determine target sound source information corresponding to the pressure signal input by the user according to the corresponding relationship between the preset pressure signal and the sound source information, and then parse the music to be parsed to obtain parsed music in response to the selection of the user on the music to be parsed. For example, a user may input a pressure signal through a pressure sensor, then determine music to be analyzed according to the pressure signal input by the user, the electronic device determines target sound source information corresponding to the pressure signal according to a corresponding relation between a preset pressure signal and the sound source information in response to the pressure signal input by the user, and then analyze the music to be analyzed to obtain analyzed music in response to a selection of the user on the music to be analyzed.
The electronic device may also analyze the music to be analyzed to obtain the analyzed music, and determine the target sound source information corresponding to the pressure signal input by the user according to the corresponding relation between the preset pressure signal and the sound source information.
S106: the electronic device inserts the target sound source information into the analysis music to synthesize the target music.
When the 3 pressure sensors are respectively positioned at the front passenger door, the rear left side door and the rear right side door, a host computer (Head Unit, HUT) of the electronic equipment synthesizes sound sources from the analysis module, the front passenger door, the rear left side door and the rear right side door to synthesize and obtain target music.
In some possible implementations, the electronic device may obtain notes and rhythms of the music to be parsed from the parsed music, and then alter the timbre of the music to be parsed, giving the music to be parsed a new representation.
When the music to be analyzed is downloaded music, the electronic equipment can collect the voice of the user through the microphone, and then obtain the target music together according to the collected user voice, the target sound source information and the analyzed music.
When the electronic device acquires the sound of the user through the microphone, the sound of the user can be directly added to the target sound source information and the analysis music, or the sound of the user can be processed and then added to the target sound source information and the analysis music. For example, the electronic device may identify a tone in the collected user sound and then represent the identified tone through the instrument, i.e., may alter the timbre of the user sound, e.g., extract the tone from the user sound and then represent the tone through the piano timbre.
The electronic device may also alter the pitch of the user's voice, i.e. the collected user's voice is represented by a high or low pitch, e.g. the user's voice is high octave or low octave. The electronic device may also change both the pitch and the timbre of the user's voice. The processing of the user sound may also be represented by a gesture, for example, a corresponding relationship between the gesture of the user and the processing of the user sound is set, and the gesture of the user is collected by the camera to determine what processing (whether to change the tone, what tone is changed, whether to change the tone, rising or falling tone, etc.) is performed on the user sound.
After the electronic equipment collects the user sound through the microphone of the DMS or the OMS, the noise can be filtered through the filter, and the filtered user sound, the analyzed music and the target sound source information are combined together to perform music synthesis. The Host (HUT) synthesizes the sound sources from the analysis module, the front passenger car door, the rear left car door, the rear right car door and the microphone to obtain the target music.
Taking sound source information as a note, specifically, the electronic device may convert a pressure signal collected by a pressure sensor into a note signal through a host (Head Unit, HUT), synthesize the note signal with an analysis music obtained by analysis, and a note signal collected by a microphone and filtered, and then adjust the volume of the synthesized target music with the volume of the microphone as a standard volume, and transmit the synthesized target music to a power Amplifier (AMP) for playing. In the process of signal transmission in the vehicle, the signal is transmitted through digital signals, for example, the pressure signal is converted into the digital signal, and the note signal is converted into the digital signal lamp.
In some possible implementations, after the electronic device inserts the target sound source information into the parsed music and synthesizes the obtained target music, the method further includes playing the target music through sound. Specifically, the electronic device may play the synthesized target music through a power Amplifier (AMP).
The sound may be a car sound. Specifically, the electronic equipment inserts target sound source information into the analysis music, and plays the target music through sound after synthesizing the target music so as to play the music edited and created by the user in real time, so that the interaction between the user and the vehicle is improved, and the use experience of the user is improved.
Further, the electronic device may also determine the color of the atmosphere lamp according to the target music, and display the corresponding color through the atmosphere lamp while playing the target music through the sound. The atmosphere lamp may be a lamp light in the vehicle. The mood light may flash according to the tempo of the target music or change different colors according to the pitch of the target music. In some possible implementations, the mood light may change color according to the pitch of the target music, flashing according to the tempo of the target music.
The color of the atmosphere lamp can also be determined according to the sound source information of the target music. Taking the sound source information as an example of the notes, the correspondence between the colors of the atmosphere lamp and the notes can be established in advance, and then the colors of the atmosphere lamp can be determined according to the notes of the target music. For example, do corresponds to a red atmosphere lamp; re corresponds to an orange atmosphere lamp; mi corresponds to a yellow atmosphere lamp; fa corresponds to a green atmosphere lamp; so corresponds to a cyan atmosphere lamp; la corresponds to a blue atmosphere lamp; si corresponds to a violet atmosphere lamp. The central electronic control module (Central Electronic Module, CEM) receives the digital signal sent by the HUT and controls the atmosphere lamp to flash to the corresponding color lamp light.
Or, the color of the atmosphere lamp can be determined according to the pressure signal input by the user, namely, the pressure signal corresponds to the sound source information and corresponds to the color of the atmosphere lamp, and the atmosphere lamp only displays the music content added by the user.
The volume at which the target music is played may be determined based on the pressure signal input by the user. Illustratively, when the pressing time is 3 seconds or less, the pressing time is proportional to the volume level, the longer the pressing time, the louder the sound, the maximum volume at 3 seconds, and the maximum volume is kept unchanged until cancellation more than 3 seconds.
In some possible implementations, after the target music is generated, the electronic device may further send the target music to a vehicle-mounted wireless Terminal (TBOX), forward the target music to a Telematics service providing module (Telematics Service Provider, TSP) through the TBOX, and forward the target music to a mobile phone Application (APP) through the TSP, so as to upload and download the target music in the mobile phone Application.
When the electronic device uploads the target music to the public platform, music of other users can be exchanged in the platform, and even transactions can be performed. The public platform can be a vehicle-mounted music public platform, an automobile communication platform or a music communication platform and the like, and the application is not limited. It should be noted that, in the process of trading or even rendering the music synthesized by the application in the public platform, it is necessary to obtain the relevant copyright information of the parsed music.
Specifically, the user can listen to the music uploaded by other users in the public platform or exchange the music uploaded by the user with the music uploaded by the user, and the user can acquire inspiration or thinking collision from the music uploaded by other users. In some possible implementations, the user may issue a profile of his own data on the public platform, and the user public platform may have a nickname, where the user protects the privacy security of the user, and the nickname is a final name synthesized by using the system recommended name and the user self-naming, and the system recommends the names of various parts/systems on the automobile as recommended names. For example, the name of the final composition may be: back door 537, meter rotation, BCM kola, turbo-charged kk7. When the user A is interested in the music released by the user B, the user B can be privately sent with the webpage data link where the music is located, after the communication is completed, the user A and the user B conduct transaction (for example, the transaction can be conducted through transfer), the file can be decrypted after the transaction is successful, the user A can open the music through a music player after clicking the link, and the music supports downloading and listening. Further, the transacted user or the user passed by the ditch may also be added to the buddy list for subsequent communication.
Based on the description above, the present application provides a music synthesis method, which obtains analysis music by analyzing music to be analyzed, determines target sound source information corresponding to a pressure signal input by a user according to a corresponding relation between a preset pressure signal and the sound source information, and then inserts the target sound source information into the analysis music to synthesize and obtain the target music. Therefore, the music to be analyzed can be edited through the pressure input by the user on the basis of the music to be analyzed, and the target sound source information corresponding to the pressure signal is inserted into the music to be analyzed, so that the target music is obtained. The user can increase the sound source information in the analyzed music through the corresponding relation between the preset pressure signal and the sound source information and through the input pressure signal, so that the editing creation of the user on the music is realized, the interactivity of the user and the music playing is improved, and the use experience of the user is improved.
When the music synthesizing method is applied to a vehicle, a user can actively edit and create music through pressure signals in the driving process and play the music in real time, so that the burnout feeling of the user in the driving process is relieved, and the interestingness of the user in the driving process is enhanced.
It should be noted that, the music composing method in the present application may be applied to a vehicle, where the electronic device may be a Host Unit (HUT), and a method for applying the solution in the present application to the vehicle and calling a plurality of components in the vehicle is provided as shown in fig. 2.
The user starts music creation by triggering the music creation switch, and sets the sound source information sound type, the use mode and the atmosphere lamp color of the sound source in advance. HUT receives user's start creation instruction and preset function, gathers through driving side door module (Driver Door Control Module, DDCM), back door module (Rear Door Control Module, DCM) and Multi-functional steering wheel (Multi-Function Steeringwheel, MFSW) and obtains the sound source action of three door outputs in the car, gathers the singing voice that the passenger sent in the car through the microphone, gathers the sound source of middle customization in the back row through CEM. The HUT judges whether the acquired sound source information is effective sound source information or not, converts a pressure signal acquired by the pressure sensor into a digital sound source signal, converts a sound source signal acquired by the microphone into the digital sound source signal, synthesizes the converted digital sound source signal with analysis music to obtain target music, and then adjusts the playing volume by taking the current volume of the microphone as a standard, and sends the target music to the AMP for playing. Further, the HUT can also call CEM to perform linkage flashing through the whole car atmosphere lamp, and music value-increasing through APP and HUT.
In some possible implementations, the default music composition is turned off when the AMP starts playing the synthesized music, or the synthesized music starts playing through the AMP when the music composition is turned off.
Fig. 3 is a schematic flow chart of another music synthesizing method. The user first turns on the music synthesizing function through voice or a soft switch and then determines the music to be parsed. The electronic equipment responds to the selection of a user to analyze music to be analyzed to obtain notes and rhythms, then judges whether the speed of the vehicle is 0 and whether the engine of the vehicle is stopped, and when the vehicle is stopped, the user performs custom key record to set the corresponding relation between the notes and the pressure signals. When the vehicle speed is not 0 and the engine is not stopped, the electronic equipment acquires a pressure signal of a user, then detects whether the pressure signal is effective, and when the pressure signal is effective, the electronic equipment synthesizes target music to obtain target music, and then plays the target music through the in-vehicle sound equipment. After the electronic equipment performs music synthesis to obtain target music, the in-vehicle atmosphere lamp can flash according to the target music, so that the in-vehicle atmosphere is enhanced. The electronic device may also store the target music and raise the value of the music for subsequent playback again.
The music composing method provided in the embodiment of the present application is described in detail above with reference to fig. 1 to 3, and the music composing device provided in the embodiment of the present application will be described next with reference to fig. 4.
Referring to a schematic structural diagram of a music composing apparatus shown in fig. 4, the apparatus 400 includes: a parsing module 402, a determining module 404, and a synthesizing module 406.
The parsing module 402 is configured to parse the music to be parsed to obtain parsed music;
a determining module 404, configured to determine target sound source information corresponding to the pressure signal input by the user according to a correspondence between the preset pressure signal and the sound source information;
and a synthesizing module 406, configured to insert the target sound source information into the parsed music to synthesize target music.
In some possible implementations, the apparatus further includes an acquisition module configured to:
and acquiring the pressure signal input by a user through a pressure sensor.
In some possible implementations, the pressure sensor includes a plurality of pressure sensors located at least 2 positions among the front passenger door, the rear left side door, and the rear right side door, the pressure signals including a plurality of pressure signals.
In some possible implementations, the correspondence between the preset pressure signal and the sound source information includes:
the method comprises the steps of acquiring corresponding relations between first pressure signals and first sound source information and corresponding relations between second pressure signals and second sound source information, wherein the first pressure signals and the second pressure signals are pressure signals acquired by pressure sensors at different positions, and the first sound source information and the second sound source information are sound source information with different tone colors.
In some possible implementations, the correspondence between the preset pressure signal and the sound source information includes:
the method comprises the steps of acquiring a third pressure signal and third sound source information, and acquiring a fourth pressure signal and fourth sound source information, wherein the third pressure signal and the fourth pressure signal are pressure signals acquired by pressure sensors at different positions, and the third sound source information and the fourth sound source information are sound source information with different tones.
In some possible implementations, the correspondence between the preset pressure signal and the sound source information includes:
the method comprises the steps of providing a fifth pressure signal and fifth sound source information, and providing a sixth pressure signal and sixth sound source information, wherein the fifth pressure signal and the sixth pressure signal are pressure signals with different time lengths, and the fifth sound source information and the sixth sound source information are sound source information with different tone colors.
In some possible implementations, the correspondence between the preset pressure signal and the sound source information includes:
the method comprises the steps of providing a corresponding relation between a seventh pressure signal and seventh sound source information and a corresponding relation between an eighth pressure signal and eighth sound source information, wherein the seventh pressure signal and the eighth pressure signal are pressure signals with different input sequences, and the seventh sound source information and the eighth sound source information are sound source information of different notes.
In some possible implementations, the apparatus further includes a play module configured to:
and playing the target music through sound equipment.
In some possible implementations, the apparatus further includes a color module to:
determining an atmosphere lamp color based on the target music;
the playing module is specifically configured to:
playing the target music through sound equipment and displaying the color of the atmosphere lamp through the atmosphere lamp.
In some possible implementations, the apparatus further includes an acquisition module configured to:
collecting user sound through a microphone;
the synthesis module 406 is specifically configured to:
and inserting the target sound source information into the analysis music, and combining the user sound to synthesize target music.
The music composing device 400 according to the embodiment of the present application may correspond to performing the method described in the embodiment of the present application, and the above and other operations and/or functions of each module of the music composing device 400 are respectively for implementing the corresponding flow of each method in fig. 1, and are not described herein for brevity.
Based on the music synthesis method provided by the above method embodiment, the embodiment of the present application further provides an apparatus, including: a processor, memory, system bus;
the processor and the memory are connected through the system bus;
the memory is configured to store one or more programs, the one or more programs comprising instructions, which when executed by the processor, cause the processor to perform the music composing method according to any one of the embodiments above.
Based on the music synthesis method provided by the above method embodiments, the present application provides a computer readable storage medium, where instructions are stored, when the instructions are executed on a terminal device, to cause the terminal device to execute the music generation method described in any one of the above embodiments.
Based on the music synthesis method provided by the embodiment of the method, the application provides a vehicle, and the vehicle comprises the device provided by the embodiment.
It should be further noted that the above-described apparatus embodiments are merely illustrative, and that the units described as separate units may or may not be physically separate, and that units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the drawings of the embodiment of the device provided by the application, the connection relation between the modules represents that the modules have communication connection therebetween, and can be specifically implemented as one or more communication buses or signal lines.
From the above description of the embodiments, it will be apparent to those skilled in the art that the present application may be implemented by means of software plus necessary general purpose hardware, or of course may be implemented by dedicated hardware including application specific integrated circuits, dedicated CPUs, dedicated memories, dedicated components and the like. Generally, functions performed by computer programs can be easily implemented by corresponding hardware, and specific hardware structures for implementing the same functions can be varied, such as analog circuits, digital circuits, or dedicated circuits. However, a software program implementation is a preferred embodiment in many cases for the present application. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a readable storage medium, such as a floppy disk, a usb disk, a removable hard disk, a ROM, a RAM, a magnetic disk or an optical disk of a computer, etc., including several instructions for causing a computer device (which may be a personal computer, a training device, or a network device, etc.) to perform the method described in the embodiments of the present application.
In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product.
The computer program product includes one or more computer instructions. When loaded and executed on a computer, produces a flow or function in accordance with embodiments of the present application, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from one website, computer, training device, or data center to another website, computer, training device, or data center via a wired (e.g., coaxial cable, optical fiber, digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer readable storage medium may be any available medium that can be stored by a computer or a data storage device such as a training device, a data center, or the like that contains an integration of one or more available media. The usable medium may be a magnetic medium (e.g., a floppy Disk, a hard Disk, a magnetic tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a Solid State Disk (SSD)), or the like.

Claims (14)

1. A music composing method, the method comprising:
analyzing the music to be analyzed to obtain analyzed music, and determining target sound source information corresponding to the pressure signal input by the user according to the corresponding relation between the preset pressure signal and the sound source information;
and inserting the target sound source information into the analysis music to synthesize target music.
2. The method according to claim 1, characterized in that the method comprises:
and acquiring the pressure signal input by a user through a pressure sensor.
3. The method of claim 2, wherein the pressure sensor comprises a plurality of pressure sensors located at least 2 of a front passenger door, a rear left side door, and a rear right side door, the pressure signals comprising a plurality of pressure signals.
4. A method according to claim 3, wherein the correspondence between the preset pressure signal and the sound source information comprises:
the method comprises the steps of acquiring corresponding relations between first pressure signals and first sound source information and corresponding relations between second pressure signals and second sound source information, wherein the first pressure signals and the second pressure signals are pressure signals acquired by pressure sensors at different positions, and the first sound source information and the second sound source information are sound source information with different tone colors.
5. A method according to claim 3, wherein the correspondence between the preset pressure signal and the sound source information comprises:
the method comprises the steps of acquiring a third pressure signal and third sound source information, and acquiring a fourth pressure signal and fourth sound source information, wherein the third pressure signal and the fourth pressure signal are pressure signals acquired by pressure sensors at different positions, and the third sound source information and the fourth sound source information are sound source information with different tones.
6. The method of claim 1, wherein the correspondence between the preset pressure signal and the sound source information comprises:
the method comprises the steps of providing a fifth pressure signal and fifth sound source information, and providing a sixth pressure signal and sixth sound source information, wherein the fifth pressure signal and the sixth pressure signal are pressure signals with different time lengths, and the fifth sound source information and the sixth sound source information are sound source information with different tone colors.
7. The method of claim 1, wherein the correspondence between the preset pressure signal and the sound source information comprises:
the method comprises the steps of providing a corresponding relation between a seventh pressure signal and seventh sound source information and a corresponding relation between an eighth pressure signal and eighth sound source information, wherein the seventh pressure signal and the eighth pressure signal are pressure signals with different input sequences, and the seventh sound source information and the eighth sound source information are sound source information of different notes.
8. The method according to claim 1, wherein the method further comprises:
and playing the target music through sound equipment.
9. The method of claim 8, wherein the method further comprises:
determining an atmosphere lamp color based on the target music;
the playing of the target music through sound equipment comprises the following steps:
playing the target music through sound equipment and displaying the color of the atmosphere lamp through the atmosphere lamp.
10. The method according to claim 1, wherein the method further comprises:
collecting user sound through a microphone;
the inserting the target sound source information into the analysis music to synthesize target music includes:
and inserting the target sound source information into the analysis music, and combining the user sound to synthesize target music.
11. A music composing apparatus, said apparatus comprising:
the analysis module is used for analyzing the music to be analyzed to obtain analysis music;
the determining module is used for determining target sound source information corresponding to the pressure signal input by the user according to the corresponding relation between the preset pressure signal and the sound source information;
and the synthesis module is used for inserting the target sound source information into the analysis music to synthesize target music.
12. An apparatus comprising a processor and a memory;
the processor is configured to execute instructions stored in the memory to cause the apparatus to perform the method of any one of claims 1 to 10.
13. A computer readable storage medium comprising instructions that instruct a device to perform the method of any one of claims 1 to 10.
14. A vehicle comprising a music composing device as claimed in claim 3.
CN202210753016.4A 2022-06-29 2022-06-29 Music synthesis method, device, equipment, medium and vehicle Pending CN117351914A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210753016.4A CN117351914A (en) 2022-06-29 2022-06-29 Music synthesis method, device, equipment, medium and vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210753016.4A CN117351914A (en) 2022-06-29 2022-06-29 Music synthesis method, device, equipment, medium and vehicle

Publications (1)

Publication Number Publication Date
CN117351914A true CN117351914A (en) 2024-01-05

Family

ID=89360053

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210753016.4A Pending CN117351914A (en) 2022-06-29 2022-06-29 Music synthesis method, device, equipment, medium and vehicle

Country Status (1)

Country Link
CN (1) CN117351914A (en)

Similar Documents

Publication Publication Date Title
US6191349B1 (en) Musical instrument digital interface with speech capability
US6859539B1 (en) Vehicle sound synthesizer
CA2434777C (en) Music data providing apparatus, music data reception apparatus and program
CN103021390B (en) By the content that reproducing music is shown independently of the information processor of music rendition apparatus
EP1439650B1 (en) Musical Effects and Recording System
US7589274B2 (en) Electronic musical instrument and tone generator apparatus connectable thereto
CN106409282B (en) Audio synthesis system and method, electronic equipment and cloud server thereof
JP2000512400A (en) Sound pickup switching device for stringed musical instrument and stringed musical instrument
CN114103850B (en) System for realizing active sound enhancement of automobile
US20090292535A1 (en) System and method for synthesizing music and voice, and service system and method thereof
JP4305084B2 (en) Music player
CN117351914A (en) Music synthesis method, device, equipment, medium and vehicle
US7834261B2 (en) Music composition reproducing device and music composition reproducing method
CN117351912A (en) Music generation method, device, equipment, medium and vehicle
CN117373407A (en) Music generation method, device, equipment, medium and vehicle
JP2005037846A (en) Information setting device and method for music reproducing device
JP6686756B2 (en) Electronic musical instrument
JP3637196B2 (en) Music player
JP2931762B2 (en) Electronic keyboard instrument
CN113335064B (en) Automobile instrument panel and electronic organ control method and system
US8914475B2 (en) Method, device and terminal for editing and playing music according to data download speed
WO2024034116A1 (en) Audio data processing device, audio data processing method, and program
JP6810773B2 (en) Playback device, playback method, and program
WO2022121617A1 (en) Karaoke method, vehicle-mounted terminal, and vehicle
EP1017039B1 (en) Musical instrument digital interface with speech capability

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication