WO2021226800A1 - Melody playing method, and client and storage medium - Google Patents

Melody playing method, and client and storage medium Download PDF

Info

Publication number
WO2021226800A1
WO2021226800A1 PCT/CN2020/089653 CN2020089653W WO2021226800A1 WO 2021226800 A1 WO2021226800 A1 WO 2021226800A1 CN 2020089653 W CN2020089653 W CN 2020089653W WO 2021226800 A1 WO2021226800 A1 WO 2021226800A1
Authority
WO
WIPO (PCT)
Prior art keywords
heart rate
target
fetal heart
file
melody
Prior art date
Application number
PCT/CN2020/089653
Other languages
French (fr)
Chinese (zh)
Inventor
杜佳利
施沈阳
周营
马骥良
Original Assignee
传世未来(北京)信息科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 传世未来(北京)信息科技有限公司 filed Critical 传世未来(北京)信息科技有限公司
Priority to PCT/CN2020/089653 priority Critical patent/WO2021226800A1/en
Priority to CN202080100694.XA priority patent/CN115515482A/en
Publication of WO2021226800A1 publication Critical patent/WO2021226800A1/en

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/02Detecting, measuring or recording pulse, heart rate, blood pressure or blood flow; Combined pulse/heart-rate/blood pressure determination; Evaluating a cardiovascular condition not otherwise provided for, e.g. using combinations of techniques provided for in this group with electrocardiography or electroauscultation; Heart catheters for measuring blood pressure
    • A61B5/024Detecting, measuring or recording pulse rate or heart rate
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/24Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
    • A61B5/316Modalities, i.e. specific diagnostic methods
    • A61B5/318Heart-related electrical modalities, e.g. electrocardiography [ECG]
    • A61B5/344Foetal cardiography
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B19/00Teaching not covered by other main groups of this subclass

Definitions

  • This application relates to the field of network technology, and in particular, to a music playing method, a user terminal, and a storage medium.
  • some wearable smart devices can be used to collect fetal heart rate data and fetal movement data, and then use the collected fetal heart rate data and fetal movement data to perform interactive operations such as drawing, so that Users can not only use the interactive results to reflect the fetal heart rate data and fetal movement data, but also enhance the interest of interaction with the fetus and enhance the user experience.
  • the current interaction scheme only establishes the interaction between the user and the fetus at a static level, and cannot dynamically establish the interaction between the user and the fetus, and the interaction effect is poor.
  • the purpose of this application includes providing a rhythm playing method, a user terminal, and a storage medium, which can convert fetal heart rate data into a rhythm that the user can perceive, thereby enhancing the user's perception and enhancing the interactive effect.
  • the present application provides a method for playing music.
  • the method includes:
  • rhythm configuration rule Obtain a target rhythm file corresponding to the target fetal heart rate data according to the rhythm configuration rule; wherein the rhythm configuration rule records the correspondence between multiple fetal heart rate data and multiple rhythm files;
  • the target fetal heart rate data includes multiple fetal heart rate values;
  • the rhythm configuration rule records the correspondence between multiple fetal heart rate ranges and multiple melody files;
  • the step of obtaining the target rhythm file corresponding to the target fetal heart rate data includes:
  • the target fetal heart rate range is where the average fetal heart rate value is located in the plurality of fetal heart rate ranges Fetal heart rate range.
  • each melody file includes a first copy file and a second copy file
  • the step of determining the melody file corresponding to the target fetal heart rate range in the melody configuration rule as the target melody file includes:
  • the target fetal heart rate data does not include a fetal movement identifier, determining the first copy file included in the melody file corresponding to the target fetal heart rate range as the target melody file;
  • the target fetal heart rate data includes a fetal movement identifier
  • the second copy file included in the melody file corresponding to the target fetal heart rate range is determined as the target melody file.
  • each melody file includes multiple sub-melody files
  • the step of determining the melody file corresponding to the target fetal heart rate range in the melody configuration rule as the target melody file includes:
  • the target melody file is determined among multiple sub-melody files included in the melody file corresponding to the target fetal heart rate range.
  • the target fetal heart rate data includes multiple fetal heart rate values;
  • the rhythm configuration rule records the correspondence between multiple fetal heart rate ranges and multiple note files;
  • the step of obtaining the target rhythm file corresponding to the target fetal heart rate data includes:
  • the note file corresponding to the target fetal heart rate range is determined as the target rhythm file; wherein, the target fetal heart rate range is where the average fetal heart rate value is located in the multiple fetal heart rate ranges Fetal heart rate range.
  • each note file includes multiple sub-note files
  • the step of determining the note file corresponding to the target fetal heart rate range in the rhythm configuration rule as the target rhythm file includes:
  • the target melody file is determined among the multiple sub-note files included in the note file corresponding to the target fetal heart rate range.
  • each sub-note file corresponds to configuration parameters
  • the step of determining the target rhythm file includes:
  • the target sub-note file whose difference between the corresponding configuration parameter and the set configuration parameter is within the set range is determined as the target sub-note file Describe the target melody file.
  • the method further includes:
  • the method before the step of playing the target melody file, the method further includes:
  • the target fetal heart rate data contains a fetal movement identifier, adjusting the scale of the target rhythm file
  • the step of playing the target melody file includes:
  • the step of adjusting the scale of the target melody file includes:
  • the step of adjusting the scale of the target melody file includes:
  • the fetal movement identification sound is added to the last sound of the target melody file.
  • the method before the step of obtaining the target rhythm file corresponding to the target fetal heart rate data according to the rhythm configuration rule, the method further includes:
  • the timbre configuration rule is determined in the timbre type strategy; wherein, the timbre type strategy includes multiple configuration rules.
  • the method before the step of obtaining target fetal heart rate data, the method further includes:
  • the steps to obtain target fetal heart rate data include:
  • the first queue is read in chronological order to obtain the target fetal heart rate data.
  • the method before the step of saving the received fetal heart rate data to the first queue, the method further includes:
  • the method before the step of obtaining target fetal heart rate data, the method further includes:
  • the step of obtaining target fetal heart rate data includes:
  • the method further includes:
  • This application also provides a user terminal, including:
  • the memory is configured to store one or more programs
  • the present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned melody playback method is realized.
  • FIG. 1 shows a schematic application scenario diagram of the music playing method provided by the present application
  • FIG. 2 shows a schematic structural block diagram of the user terminal provided by the present application
  • FIG. 3 shows a schematic flow chart of the method for playing music provided by the present application
  • FIG. 4 shows a schematic flowchart of the sub-steps of step 204 in FIG. 3;
  • FIG. 5 shows a schematic flowchart of the sub-steps of step 204-2 in FIG. 4;
  • FIG. 6 shows another schematic flowchart of the sub-steps of step 204 in FIG. 3;
  • FIG. 7 shows still another schematic flowchart of the sub-steps of step 204 in FIG. 3;
  • FIG. 8 shows another schematic flow chart of the music playing method provided by the present application.
  • FIG. 9 shows still another schematic flow chart of the music playing method provided by the present application.
  • FIG. 10 shows still another schematic flow chart of the music playing method provided by the present application.
  • FIG. 11 shows still another schematic flowchart of the music playing method provided by the present application.
  • FIG. 12 shows still another schematic flow chart of the music playing method provided by the present application.
  • Fig. 13 shows still another schematic flow chart of the music playing method provided by the present application.
  • 100-user terminal 101-memory; 102-processor; 103-storage controller; 104-peripheral interface; 105-radio frequency unit; 106-communication bus/signal line; 107-playing unit.
  • the current solution is generally based on the fetal heart rate data and fetal movement data for drawing operations; based on the fetal heart rate data and fetal movement data, the user It can establish an emotional connection with the fetus and realize interesting interactions, which can increase the emotion between the user and the fetus.
  • a possible implementation manner provided by this application is to obtain target fetal heart rate data, and obtain the target fetal heart rate data according to the rhythm configuration rule that records the correspondence between multiple fetal heart rate data and multiple rhythm files.
  • Corresponding target melody file thereby playing the target melody file, converting the target fetal heart rate data into a melody that the user can perceive, thereby enhancing the user’s perception and enhancing the interactive effect.
  • FIG. 1 shows a schematic application scenario diagram of the melody playback method provided by the present application
  • the front-end device establishes communication with the user end to realize data between the front-end device and the user end Interactive.
  • the front-end device and the user terminal may be located in a wireless network or a wired network, and the front-end device and the user terminal perform data interaction through the wireless network or the wired network.
  • the front-end device and the user terminal may establish communication by using, for example, Bluetooth (bluetooth) or a local area network, so as to realize the data interaction between the front-end device and the user terminal.
  • Bluetooth bluetooth
  • a local area network so as to realize the data interaction between the front-end device and the user terminal.
  • the user terminal may use a mobile terminal device, such as a smart phone, a personal computer (PC), a tablet computer, a personal digital assistant (PDA), and a wearable mobile device. Terminal and so on.
  • a mobile terminal device such as a smart phone, a personal computer (PC), a tablet computer, a personal digital assistant (PDA), and a wearable mobile device. Terminal and so on.
  • the music playing method provided in this application can be applied to the client as shown in FIG. It can be implemented by an application installed in the client.
  • FIG. 2 shows a schematic structural block diagram of the client 100 provided by the present application; the client 100 may include a memory 101, one or more (only one is shown in the figure) processing The device 102, the storage controller 103, the peripheral interface 104, the radio frequency unit 105, the playback unit 107, and so on. These components can communicate with each other through one or more communication buses/signal lines 106.
  • the memory 101 may be configured to store software programs and modules, such as program instructions/modules corresponding to the melody playback method provided in this application.
  • the processor 102 executes the software programs and modules stored in the memory 101 by running the software programs and modules. Various functional applications and image processing, etc., to implement the melody playback method provided in this application.
  • the memory 101 can be, but is not limited to, random access memory (Random Access Memory, RAM), read only memory (Read Only Memory, ROM), programmable read-only memory (Programmable Read-Only Memory, PROM), which can be Erasable Programmable Read-Only Memory (EPROM), Electric Erasable Programmable Read-Only Memory (EEPROM), etc.
  • RAM Random Access Memory
  • ROM read only memory
  • PROM Programmable Read-Only Memory
  • EPROM Erasable Programmable Read-Only Memory
  • EEPROM Electric Erasable Programmable Read-Only Memory
  • the processor 102 may be an integrated circuit chip with signal processing capabilities.
  • the aforementioned processor 102 may be a general-purpose processor, including a central processing unit (CPU), a network processor (Network Processor, NP), a voice processor, a video processor, etc.; it may also be a digital signal processor ( Digital Signal Processing, DSP), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components Wait.
  • the methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed.
  • the general-purpose processor may be a microprocessor or the processor 102 may also be any conventional processor or the like.
  • the peripheral interface 104 couples various input/input devices to the processor 102 and the memory 101.
  • the peripheral interface 104, the processor 102, and the storage controller 103 may be implemented in a single chip. In some other embodiments of this application, they can also be implemented by independent chips.
  • the radio frequency unit 105 is configured to receive and send electromagnetic waves, realize mutual conversion between electromagnetic waves and electrical signals, and communicate with a communication network or other devices.
  • the playing unit 107 is configured to play a melody file or an audio file, etc., to output melody information or audio information and the like.
  • FIG. 2 is only for illustration, and the user terminal 100 may also include more or fewer components than those shown in FIG. 2, or have a configuration different from that shown in FIG. 2.
  • the components shown in FIG. 2 can be implemented by hardware, software, or a combination thereof.
  • the user terminal 100 shown in FIG. 2 is used as an exemplary execution subject to exemplarily describe the melody playback method provided in the present application.
  • FIG. 3 shows a schematic flow chart of the music playing method provided by the present application, which may include the following steps:
  • Step 202 Obtain target fetal heart rate data
  • Step 204 Obtain a target rhythm file corresponding to the target fetal heart rate data according to the rhythm configuration rule;
  • Step 206 Play the target melody file.
  • the user terminal when the user terminal executes the rhythm playback method provided in this application, it can first obtain target fetal heart rate data; then use the target fetal heart rate data to compose music, thereby obtaining the target rhythm file corresponding to the target fetal heart rate data, so that The client can play the target melody file.
  • the user side when the user side obtains the target fetal heart rate data, it can use the received fetal heart rate data sent by other devices such as front-end equipment as the target fetal heart rate data as shown in the scenario shown in Figure 1;
  • the downloaded fetal heart rate data is used as the target fetal heart rate data; or, the user terminal can use the stored fetal heart rate data as the target fetal heart rate data.
  • the user terminal can store a rhythm configuration rule, which records the correspondence between multiple fetal heart data and multiple rhythm files; when the user terminal obtains the target rhythm file, it can configure the rhythm configuration according to the rhythm configuration rule
  • the melody file corresponding to the target fetal heart rate data in the rule is determined to be the target melody file.
  • the user terminal can play the target rhythm file, that is, convert the target fetal heart rate data into a rhythm that the user can perceive, thereby enhancing the user's perception and enhancing the interactive effect.
  • the target rhythm file corresponding to the target fetal heart rate data may be obtained in various ways.
  • the fetal heart rate of the fetus is generally between 110 beats/minute and 160 beats/minute; for this reason, in one embodiment, the user terminal can set the complete fetal heart rate range
  • the range is divided into multiple different fetal heart rate ranges, and different rhythm files are pre-stored for different fetal heart rate ranges, that is: different rhythm files can be configured for different fetal heart rate ranges in advance, and the rhythm configuration rules saved on the user terminal can be used. Correspondences between multiple fetal heart rate ranges and multiple melody files are recorded.
  • FIG. 4 shows a schematic flowchart of the sub-steps of step 204 in FIG. 3.
  • step 204 may include the following sub-steps:
  • Step 204-1 Obtain an average fetal heart rate value of multiple fetal heart rate values included in the target fetal heart rate data
  • Step 204-2 Determine the melody file corresponding to the target fetal heart rate range in the melody configuration rule as the target melody file.
  • the obtained multiple fetal heart rate values may be used as target fetal heart rate data, for example, a period of time All fetal heart rate values in a range (for example, every 5 seconds) are used as target fetal heart rate data.
  • step 204 the average fetal heart rate value of the multiple fetal heart rate values included in the target fetal heart rate data may be obtained first.
  • the user terminal can combine the saved rhythm configuration rules to determine the fetal heart rate range where the average fetal heart rate value is located among the multiple fetal heart rate ranges recorded by the rhythm configuration rule as the target fetal heart rate range.
  • the user terminal can determine the melody file corresponding to the target fetal heart rate range in the rhythm configuration rule as the target rhythm file according to the calculated average fetal heart rate value.
  • tone configuration rules saved on the client side can be as shown in Table 1 below:
  • the user terminal can select the melody file with the theme name "Story" as the target melody file.
  • the fetal heart rate data measured by the front-end equipment may be accompanied by fetal movement data.
  • each melody file may include a first copy file and a second copy file.
  • the theme is "story”.
  • the file includes two duplicate files, one of which indicates that there is no fetal movement identifier in the corresponding fetal heart rate data, and the other indicates that the corresponding fetal heart rate data contains a fetal movement identifier.
  • the first copy file of each rhythm file indicates that the corresponding fetal heart rate data does not contain a fetal movement identifier
  • the second copy file indicates that the corresponding fetal heart rate data contains a fetal movement identifier
  • FIG. 5 shows a schematic flowchart of the sub-steps of step 204-2 in FIG. 4.
  • step 204-2 may include the following sub-steps step:
  • Step 204-2a judge whether the target fetal heart rate data contains a fetal movement identifier; if it is no, execute step 204-2b; if it is yes, execute step 204-2c;
  • Step 204-2b Determine the first copy file included in the melody file corresponding to the target fetal heart rate range as the target melody file;
  • Step 204-2c Determine the second copy file included in the melody file corresponding to the target fetal heart rate range as the target melody file.
  • the user terminal when the user terminal performs step 204-2, it can determine whether the target fetal heart rate data contains a fetal movement identifier; when the user terminal determines that the target fetal heart rate data does not contain a fetal movement identifier, the user terminal can choose to The first copy file included in the melody file corresponding to the target fetal heart rate range is determined to be the target melody file. For example, the first copy file included in the melody file with the subject name "Story" in the above example is determined to be the target melody file; When the terminal determines that the target fetal heart rate data contains the fetal movement identifier, the user terminal can choose to determine the second copy file contained in the melody file corresponding to the target fetal heart rate range as the target melody file. For example, the subject name in the above example is "Story" The second copy file included in the melody file is determined to be the target melody file.
  • the fetal movement identifier contained in the target fetal heart rate data can be, for example, when the front-end equipment in the scene shown in Figure 1 collects fetal heart rate data, whenever a piece of fetal movement data is collected, it is the corresponding time point.
  • the fetal heart rate data records a fetal movement flag to indicate that a fetal movement occurred at the time point corresponding to the fetal heart rate data.
  • different time series can be used to record the fetal heart rate data and fetal movement data respectively.
  • the fetal heart rate data is recorded once every second, and the fetal movement data is recorded once every time it occurs; the user terminal can read the fetal heart rate data at the same time when performing step 202
  • the time series of the fetal movement data and the time series of the fetal movement data, and when the target fetal heart rate data is obtained, the fetal movement variable is used to record the number of fetal movements read, so that when step 204-2a is executed, the user terminal can use the value of the fetal movement variable to determine the target fetal movement.
  • the fetal movement identifier is included in the heart data; for example, if the value of the fetal movement variable read by the user terminal is 0, it means that the target fetal heart data does not contain the fetal movement identifier; if the value of the fetal movement variable read by the user terminal is greater than 0, it means that the target fetal heart rate data contains a fetal movement indicator.
  • the user terminal uses different duplicate files to distinguish between the fetal movement identification and the absence of the fetal movement identification in the fetal heart rate data, so that the user can distinguish whether the fetus has the fetus when the corresponding fetal heart rate data is collected through different duplicate files. Fetal movement occurs, which in turn enhances user perception and enhances interactive effects.
  • each melody file saved on the user terminal may include multiple sub-melody files.
  • the user terminal may determine the target melody file among the multiple sub-melody files included in the melody file corresponding to the target fetal heart rate range.
  • three sub-melody files can be saved for each melody file in advance; in the above example of the melody file corresponding to the target fetal heart data with the theme named "story", when step 204-2 is executed, the user terminal
  • a random algorithm can be used to randomly select one of the three sub-melody files included in the "story" as the target melody file.
  • the user terminal can perform step 204-2 with the accuracy to
  • the current timestamp of the system in milliseconds is currentTsInMillSecond, and the calculation formula for the number of the target melody file can satisfy the following:
  • the product of currentTsInMillSecond multiplied by 31 is divided by total and the remainder is taken, and then the sub-melody file with the corresponding number is selected as the target melody file according to the result of taking the remainder.
  • the user terminal can play different melody in different playback periods, even if different target fetal heart rate data correspond to the same fetal heart rate range, and can avoid a single melody when the music is played continuously.
  • the above-mentioned implementation provided by this application is based on pre-arranging different melody files for different fetal heart rate ranges to perform melody playback.
  • the user terminal may also pre-store different note files for different fetal heart rate ranges, that is: the way of configuring notes may also be used to play the rhythm, and the rhythm configuration saved by the user terminal at this time
  • the rule can record the correspondence between multiple fetal heart rate ranges and multiple note files.
  • FIG. 6 shows another schematic flowchart of the sub-steps of step 204 in FIG. 3.
  • step 204 may also include the following sub-steps: step:
  • Step 204-6 obtaining an average fetal heart rate value of multiple fetal heart rate values included in the target fetal heart rate data
  • Step 204-7 Determine the note file corresponding to the target fetal heart rate range in the rhythm configuration rule as the target rhythm file;
  • the user terminal may use the obtained multiple fetal heart rate values as the target fetal heart rate data, and calculate the target fetal heart rate data.
  • the user terminal may determine the fetal heart rate range where the average fetal heart rate value is located as the target fetal heart rate range, and determine the note file corresponding to the target fetal heart rate range in the rhythm configuration rule as the target musical scale file.
  • the solutions provided in step 204-1 to step 204-2 are played in a complete melody, that is, the complete melody is pre-stored; and the step The solutions provided in 204-6 to step 204-7 are played based on notes, that is, the notes are stored in advance, and the music is arranged through continuous playing of the notes instead of playing the complete melody.
  • each note file saved on the user terminal may include multiple sub-note files.
  • the target melody file can be determined from among the multiple sub-note files included in the note file corresponding to the target fetal heart rate range; for example, the random algorithm described above can be used to determine the target melody file .
  • corresponding configuration parameters can be set for each sub-note file. , So that when the user terminal is continuously playing, it can make the configuration parameters of two consecutive note files differ within the set range according to the set configuration parameters.
  • Each sub-note file is a note in the note, such as 1 (do) for the bass, 3 (mi) for the midrange, and 5 (so) for the treble; each note can contain multiple different sub-note files.
  • the difference lies in the duration of time, for example, ranging from 2 seconds to 6 seconds; assuming that every 0.5 second is a sound speed unit, then: the speed of sound with a duration of 2 seconds is 4, and the speed of sound with a duration of 4 seconds is 8.
  • each sub-note file can be named in the format of pitch (lastScale)-sound intensity (lastVolume)-speed of sound (lastSpeed); for example, for midrange 1 with a pitch of 3 and a speed of 8, its corresponding sub-note file can be named It is (midrange 1+3+8), that is, the configuration parameters corresponding to the sub-note file are pitch 3 and speed 8.
  • the user terminal when it performs step 204-7, it can set the difference between the corresponding configuration parameter and the set configuration parameter among the multiple sub-note files included in the note file corresponding to the target fetal heart rate range.
  • the target sub-note file within the range is determined as the target temperament file.
  • the user terminal can be based on the above-mentioned rhythm configuration rules, according to the target fetal heart rate range where the target fetal heart rate data is located, and the configuration parameters of the pitch, intensity, and speed of each sub-note file, combined with the set configuration parameters,
  • the sub-note file whose difference between the corresponding configuration parameter and the set configuration parameter is within the set range is used as the target melody file.
  • the set configuration parameter can be a fixed parameter value set by the user, or it can be the user side when the user terminal is continuously arranging music.
  • the user side can choose The configuration parameter of the last sub-note file determined as the target temperament file is used as the configuration parameter of the setting.
  • FIG. 7 shows still another schematic flowchart of the sub-steps of step 204 in FIG. step:
  • Step 204-8 update the set configuration parameters according to the configuration parameters of the target melody file.
  • the user terminal determines the target melody file in step 204-7, it can update the set configuration parameters according to the configuration parameters of the target melody file, for example, update the set configuration parameters to the target melody file Configuration parameters.
  • Figure 8 shows Another schematic flowchart of the music playing method provided in the present application. Before step 206 is executed, the music playing method may further include the following steps:
  • Step 205 When the target fetal heart rate data contains the fetal movement identifier, adjust the scale of the target rhythm file.
  • the user terminal can use, for example, the above-mentioned implementation methods provided in this application to determine whether the target fetal heart rate data contains a fetal movement identifier, which will not be repeated in this application.
  • the scale of the target melody file can be adjusted, and when step 206 is executed, the target melody file after the adjusted scale is played, so that the user can pass the played melody
  • the change of the musical scale can sense that the fetus has fetal movement within the time period corresponding to the target fetal heart rate data, which enhances the user's perception.
  • the user terminal when the user terminal adjusts the scale of the target melody file, the user terminal may raise the scale of the last tone of the target melody file, for example, raise the last tone by 8 degrees.
  • the user terminal when the user terminal adjusts the scale of the target melody file, the user terminal can add a fetal movement identification sound to the last sound of the target melody file, such as adding a preset fetal movement special sound, so that the user can By recognizing the fetal movement identification sound, it is determined whether the fetus has fetal movement within the corresponding time period.
  • a fetal movement identification sound such as adding a preset fetal movement special sound
  • multiple configuration rules of different timbre types may be pre-recorded on the user terminal, so that the user terminal can generate temperaments of different timbre types.
  • FIG. 9 shows another schematic flowchart of the music playing method provided by the present application. Before step 202 is performed, the music playing method may further include the following steps :
  • Step 200 Determine a temperament configuration rule in the timbre type strategy.
  • the user terminal may save a tone type strategy, which includes multiple configuration rules, such as hand disc tone configuration rules, piano tone configuration rules, harmonica tone configuration rules, violin tone configuration rules, and so on.
  • a tone type strategy which includes multiple configuration rules, such as hand disc tone configuration rules, piano tone configuration rules, harmonica tone configuration rules, violin tone configuration rules, and so on.
  • the user terminal executes the tone playing method provided in the present application, it can determine a configuration rule in the tone color type strategy as the tone configuration rule.
  • one of the configuration rules selected by the user can be received as the rhythm configuration rule; or, for example, the random algorithm described above can be used to select a configuration rule as the rhythm based on the current timestamp when the user terminal executes the rhythm playback method.
  • Configure rules can be used to select a configuration rule as the rhythm based on the current timestamp when the user terminal executes the rhythm playback method.
  • the user terminal can generate the target rhythm file corresponding to the target fetal heart rate data according to the rhythm configuration rules determined from the tone color type strategy, so that the user terminal can play different tone color types of rhythms.
  • the target fetal heart rate data obtained by the user terminal may be the fetal heart rate data received by the user terminal, for example, sent by the front-end device, or the fetal heart rate data downloaded by the user terminal from the server, or the user terminal itself Stored fetal heart data.
  • the melody playback method may further include the following steps:
  • Step 201-2 save the received fetal heart rate data to the first queue
  • the user terminal may set a first queue, and the first queue may be configured to store the received fetal heart rate data. In this way, when the user terminal receives the fetal heart rate data, the user terminal can save the received fetal heart rate data to the first queue.
  • the user terminal may read the first queue in a time sequence, thereby reading the fetal heart rate data stored in the first queue, to obtain the target fetal heart rate data.
  • the fetal heart rate data is generally measured every second; in some possible implementations, in order to avoid large fluctuations in the rhythm caused by the excessive variation of the fetal heart rate in a short period of time, the user terminal can select The fetal heart rate for a period of time is used as the target fetal heart rate data.
  • the duration of the target rhythm file may be longer than the time collected by the target fetal heart rate data; for example, you can collect the target fetal heart rate data for 5 seconds to obtain a target that can be played for 20 seconds.
  • Melody file that is, use a small amount of fetal heart rate data to play a longer tone. Therefore, in some possible implementations, the user end may discard some received fetal heart rate data.
  • FIG. 11 shows another schematic flowchart of the music playing method provided by the present application. Before step 201-2 is performed, the music playing method may further include The following steps:
  • Step 201-1 judge whether the remaining playing time is less than the first threshold; if yes, execute step 201-2; if no, execute step 201-3;
  • Step 201-2 save the received fetal heart rate data to the first queue
  • Step 201-3 discard the received fetal heart rate data.
  • the user terminal may record the remaining playing time of the music file when playing the music file; then, whenever the fetal heart rate data is received, the user terminal compares the recorded remaining playing time with the first threshold, when When the remaining playing time is less than the first threshold, the user terminal performs step 201-2 to save the received fetal heart rate data to the first queue; otherwise, when the remaining playing time is greater than or equal to the first threshold, the user terminal performs step 201 -3, discard the received fetal heart rate data.
  • the first threshold is set to 5 seconds; whenever the user terminal receives the fetal heart rate data, it is judged whether the remaining playing time of the rhythm file is less than 5 seconds ; If the remaining playback time is less than 5 seconds, the user terminal saves the received fetal heart rate data to the first queue; if the remaining playback time is greater than or equal to 5 seconds, the user terminal discards the received fetal heart rate data.
  • FIG. 12 shows still another schematic flowchart of the music playing method provided by the present application.
  • the music playing method may further include the following steps:
  • Step 201-6 save the read historical fetal heart rate data to the first queue, and update the number of data
  • the user terminal can use the fetal heart rate data stored by itself or the fetal heart rate data downloaded from the server as historical fetal heart rate data; then, the user terminal can read the historical fetal heart rate data, and according to the time series, Save the read historical fetal heart rate data to the first queue, and update the number of data, where the number of data is configured to indicate the number of historical fetal heart rate data saved in the first queue; for example, when the number of data is " When it is 4", it means that the number of historical fetal heart rate data saved in the first queue is 4, that is, the first queue saves 4 seconds of fetal heart rate data.
  • the user end can monitor the number of data, and when the number of data reaches the second threshold, the user end can execute step 202 and read the historical fetal heart rate data stored in the first queue according to the second threshold to obtain the target fetus. Heart data, and reset the first queue and the number of data.
  • the second threshold is set to "5"
  • the user end can read "5" historical fetal heart rate data saved in the first queue, thereby setting "5"
  • One historical fetal heart rate data is used as the target fetal heart rate data, then the first queue is cleared, and the number of data is reset to "0".
  • the user can also choose to save the continuously played melody file, so that the user can share it or play it again.
  • FIG. 13 shows still another schematic flowchart of the rhythm playing method provided in this application.
  • the playing method may also include the following steps:
  • Step 208 Save the target melody file to the second queue
  • Step 210 When the merge instruction is received, merge all the melody files in the second queue to generate an audio file.
  • the user terminal may be provided with a second queue, and the second queue is configured to save the rhythm file corresponding to the fetal heart rate data.
  • the user terminal can save the target melody file to the second queue; and, when the user terminal receives the merge instruction, the user terminal can save all the melody files in the second queue.
  • the files are merged to generate audio files.
  • the user end may use the received composition end instruction as a merge instruction.
  • the user end may execute step 210 to merge all the rhythm files in the second queue to generate an audio file, and generate an audio file.
  • the audio file of is saved locally, or uploaded to the cloud server for storage; or, when the user terminal uses historical fetal heart rate data for rhythm playback, if the user terminal finishes reading the historical fetal heart rate data, the traversal ends all the fetal heart rate According to the data, the user terminal can determine to obtain the merge instruction, and thus execute step 210.
  • each block in the flowchart or block diagram may represent a module, program segment, or part of the code, and the module, program segment, or part of the code contains one or more options that can realize the specified logical function. Execute instructions.
  • the functions marked in the block may also occur in a different order from the order marked in the drawings.
  • two consecutive blocks can actually be executed in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved.
  • each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart can be implemented by a dedicated hardware-based system that performs the specified functions or actions Or it can be realized by a combination of dedicated hardware and computer instructions.
  • the functional modules in some embodiments of the present application may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.
  • the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of the present application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage media include: U disk, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.
  • the target fetal heart rate data is obtained, and the corresponding relationship between multiple fetal heart rate data and multiple rhythm files is recorded according to the rhythm configuration rule to obtain the target fetal heart rate.
  • the target melody file corresponding to the data is played, and compared with the prior art, the target fetal heart rate data is converted into a melody that the user can perceive, thereby enhancing the user's perception and enhancing the interactive effect.
  • the user terminal uses different duplicate files to distinguish between the fetal movement data and the fetal movement data not contained in the fetal heart rate data, so that the user can distinguish whether the fetus has occurred when the corresponding fetal heart rate data is collected through different duplicate files. Fetal movement, thereby enhancing user perception and enhancing interactive effects.

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Cardiology (AREA)
  • Physics & Mathematics (AREA)
  • Animal Behavior & Ethology (AREA)
  • Public Health (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Medical Informatics (AREA)
  • Molecular Biology (AREA)
  • Surgery (AREA)
  • Biophysics (AREA)
  • General Health & Medical Sciences (AREA)
  • Pathology (AREA)
  • Veterinary Medicine (AREA)
  • Business, Economics & Management (AREA)
  • Physiology (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Educational Administration (AREA)
  • Educational Technology (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Reverberation, Karaoke And Other Acoustics (AREA)

Abstract

Provided are a melody playing method, and a client and a storage medium, which relate to the technical field of networks. The method comprises: acquiring target fetal heart data; and according to a melody configuration rule in which a correlation between multiple pieces of fetal heart data and multiple melody files is recorded, acquiring a target melody file corresponding to the target fetal heart data, so as to play the target melody file. Compared with the prior art, target fetal heart data is converted into a melody which can be perceived by a user, such that the perception of the user is enhanced, and an interaction effect is improved.

Description

音律播放方法、用户端及存储介质Musical playing method, user terminal and storage medium 技术领域Technical field
本申请涉及网络技术领域,具体而言,涉及一种音律播放方法、用户端及存储介质。This application relates to the field of network technology, and in particular, to a music playing method, a user terminal, and a storage medium.
背景技术Background technique
为了提升用户与胎儿的互动效果,可以利用一些可穿戴式智能设备对胎儿的例如胎心数据以及胎动数据进行采集,然后利用采集得到的胎心数据以及胎动数据进行例如绘画等互动式操作,使得用户不仅可以利用互动结果反映出胎儿的胎心数据以及胎动数据等,还能增强与胎儿之间的互动趣味,提升用户体验。In order to improve the interaction between the user and the fetus, some wearable smart devices can be used to collect fetal heart rate data and fetal movement data, and then use the collected fetal heart rate data and fetal movement data to perform interactive operations such as drawing, so that Users can not only use the interactive results to reflect the fetal heart rate data and fetal movement data, but also enhance the interest of interaction with the fetus and enhance the user experience.
然而,目前的互动方案仅仅是在静态层面建立用户与胎儿之间的互动,无法动态的建立用户与胎儿之间的互动,互动效果较差。However, the current interaction scheme only establishes the interaction between the user and the fetus at a static level, and cannot dynamically establish the interaction between the user and the fetus, and the interaction effect is poor.
发明内容Summary of the invention
本申请的目的包括,提供一种音律播放方法、用户端及存储介质,能够将胎心数据转换为用户可以感知的音律,从而增强用户的感知,提升互动效果。The purpose of this application includes providing a rhythm playing method, a user terminal, and a storage medium, which can convert fetal heart rate data into a rhythm that the user can perceive, thereby enhancing the user's perception and enhancing the interactive effect.
为了实现上述目的中的至少一个目的,本申请采用的技术方案如下:In order to achieve at least one of the above objectives, the technical solutions adopted in this application are as follows:
本申请提供一种音律播放方法,所述方法包括:The present application provides a method for playing music. The method includes:
获得目标胎心数据;Obtain target fetal heart rate data;
根据音律配置规则,获得与所述目标胎心数据对应的目标音律文件;其中,所述音律配置规则记录有多个胎心数据与多个音律文件的对应关系;Obtain a target rhythm file corresponding to the target fetal heart rate data according to the rhythm configuration rule; wherein the rhythm configuration rule records the correspondence between multiple fetal heart rate data and multiple rhythm files;
播放所述目标音律文件。Playing the target melody file.
可选地,所述目标胎心数据包括多个胎心值;所述音律配置规则记录有多个胎心范围与多个旋律文件的对应关系;Optionally, the target fetal heart rate data includes multiple fetal heart rate values; the rhythm configuration rule records the correspondence between multiple fetal heart rate ranges and multiple melody files;
根据音律配置规则,获得与所述目标胎心数据对应的目标音律文件的步骤,包括:According to the rhythm configuration rule, the step of obtaining the target rhythm file corresponding to the target fetal heart rate data includes:
获得所述目标胎心数据包括的所述多个胎心值的平均胎心值;Obtaining an average fetal heart rate value of the multiple fetal heart rate values included in the target fetal heart rate data;
将所述音律配置规则中,与目标胎心范围对应的旋律文件确定为所述目标音律文件;其中,所述目标胎心范围为所述多个胎心范围中所述平均胎心值所在的胎心范围。Determine the melody file corresponding to the target fetal heart rate range in the rhythm configuration rule as the target rhythm file; wherein, the target fetal heart rate range is where the average fetal heart rate value is located in the plurality of fetal heart rate ranges Fetal heart rate range.
可选地,每一旋律文件包括第一副本文件和第二副本文件;Optionally, each melody file includes a first copy file and a second copy file;
将所述音律配置规则中,与目标胎心范围对应的旋律文件确定为所述目标音律文件的步骤,包括:The step of determining the melody file corresponding to the target fetal heart rate range in the melody configuration rule as the target melody file includes:
判断所述目标胎心数据中是否包含胎动标识;Judging whether the target fetal heart rate data includes a fetal movement identifier;
当所述目标胎心数据中不包含胎动标识时,将所述目标胎心范围对应的旋律文件所包括的第一副本文件,确定为所述目标音律文件;When the target fetal heart rate data does not include a fetal movement identifier, determining the first copy file included in the melody file corresponding to the target fetal heart rate range as the target melody file;
当所述目标胎心数据中包含胎动标识时,将所述目标胎心范围对应的旋律文件所包 括的第二副本文件,确定为所述目标音律文件。When the target fetal heart rate data includes a fetal movement identifier, the second copy file included in the melody file corresponding to the target fetal heart rate range is determined as the target melody file.
可选地,每一旋律文件包括多个子旋律文件;Optionally, each melody file includes multiple sub-melody files;
将所述音律配置规则中,与目标胎心范围对应的旋律文件确定为所述目标音律文件的步骤,包括:The step of determining the melody file corresponding to the target fetal heart rate range in the melody configuration rule as the target melody file includes:
在所述目标胎心范围对应的旋律文件所包括的多个子旋律文件中,确定出所述目标音律文件。The target melody file is determined among multiple sub-melody files included in the melody file corresponding to the target fetal heart rate range.
可选地,所述目标胎心数据包括多个胎心值;所述音律配置规则记录有多个胎心范围与多个音符文件的对应关系;Optionally, the target fetal heart rate data includes multiple fetal heart rate values; the rhythm configuration rule records the correspondence between multiple fetal heart rate ranges and multiple note files;
根据音律配置规则,获得与所述目标胎心数据对应的目标音律文件的步骤,包括:According to the rhythm configuration rule, the step of obtaining the target rhythm file corresponding to the target fetal heart rate data includes:
获得所述目标胎心数据包括的所述多个胎心值的平均胎心值;Obtaining an average fetal heart rate value of the multiple fetal heart rate values included in the target fetal heart rate data;
将所述音律配置规则中,与目标胎心范围对应的音符文件确定为所述目标音律文件;其中,所述目标胎心范围为所述多个胎心范围中所述平均胎心值所在的胎心范围。In the rhythm configuration rule, the note file corresponding to the target fetal heart rate range is determined as the target rhythm file; wherein, the target fetal heart rate range is where the average fetal heart rate value is located in the multiple fetal heart rate ranges Fetal heart rate range.
可选地,每一音符文件包括多个子音符文件;Optionally, each note file includes multiple sub-note files;
将所述音律配置规则中,与目标胎心范围对应的音符文件确定为所述目标音律文件的步骤,包括:The step of determining the note file corresponding to the target fetal heart rate range in the rhythm configuration rule as the target rhythm file includes:
在所述目标胎心范围对应的音符文件所包括的多个子音符文件中,确定出所述目标音律文件。The target melody file is determined among the multiple sub-note files included in the note file corresponding to the target fetal heart rate range.
可选地,每一子音符文件对应有配置参数;Optionally, each sub-note file corresponds to configuration parameters;
在所述目标胎心范围对应的音符文件所包括的多个子音符文件中,确定出所述目标音律文件的步骤,包括:Among the multiple sub-note files included in the note file corresponding to the target fetal heart rate range, the step of determining the target rhythm file includes:
将所述目标胎心范围对应的音符文件所包括的多个子音符文件中,对应的配置参数与设定的配置参数两者的差值在设定的范围内的目标子音符文件,确定为所述目标音律文件。Among the multiple sub-note files included in the note file corresponding to the target fetal heart rate range, the target sub-note file whose difference between the corresponding configuration parameter and the set configuration parameter is within the set range is determined as the target sub-note file Describe the target melody file.
可选地,所述方法还包括:Optionally, the method further includes:
根据所述目标音律文件的配置参数,更新所述设定的配置参数。Update the set configuration parameters according to the configuration parameters of the target melody file.
可选地,在播放所述目标音律文件的步骤之前,所述方法还包括:Optionally, before the step of playing the target melody file, the method further includes:
当所述目标胎心数据中包含有胎动标识时,调整所述目标音律文件的音阶;When the target fetal heart rate data contains a fetal movement identifier, adjusting the scale of the target rhythm file;
播放所述目标音律文件的步骤,包括:The step of playing the target melody file includes:
播放调整音阶后的目标音律文件。Play the target temperament file after adjusting the scale.
可选地,调整所述目标音律文件的音阶的步骤,包括:Optionally, the step of adjusting the scale of the target melody file includes:
升高所述目标音律文件最后一个音的音阶。Raise the scale of the last note of the target melody file.
可选地,调整所述目标音律文件的音阶的步骤,包括:Optionally, the step of adjusting the scale of the target melody file includes:
在所述目标音律文件最后一个音中加入胎动标识音。The fetal movement identification sound is added to the last sound of the target melody file.
可选地,在根据音律配置规则,获得与所述目标胎心数据对应的目标音律文件的步骤之前,所述方法还包括:Optionally, before the step of obtaining the target rhythm file corresponding to the target fetal heart rate data according to the rhythm configuration rule, the method further includes:
在音色类型策略中确定出所述音律配置规则;其中,所述音色类型策略中包括多条配置规则。The timbre configuration rule is determined in the timbre type strategy; wherein, the timbre type strategy includes multiple configuration rules.
可选地,在获得目标胎心数据的步骤之前,所述方法还包括:Optionally, before the step of obtaining target fetal heart rate data, the method further includes:
将接收的胎心数据保存至第一队列;Save the received fetal heart rate data to the first queue;
获得目标胎心数据的步骤,包括:The steps to obtain target fetal heart rate data include:
按照时间顺序读取所述第一队列,以获得所述目标胎心数据。The first queue is read in chronological order to obtain the target fetal heart rate data.
可选地,在将接收的胎心数据保存至第一队列的步骤之前,所述方法还包括:Optionally, before the step of saving the received fetal heart rate data to the first queue, the method further includes:
判断剩余播放时长是否小于第一阈值;Determine whether the remaining playing time is less than the first threshold;
当为是时,执行将接收的胎心数据保存至第一队列的步骤。When it is yes, execute the step of saving the received fetal heart rate data to the first queue.
可选地,在获得目标胎心数据的步骤之前,所述方法还包括:Optionally, before the step of obtaining target fetal heart rate data, the method further includes:
将读取的历史胎心数据保存至第一队列,并更新数据个数;其中,所述数据个数被配置为指示所述第一队列中保存的历史胎心数据的数量;Save the read historical fetal heart rate data to the first queue, and update the number of data; wherein the number of data is configured to indicate the number of historical fetal heart rate data stored in the first queue;
当所述数据个数达到第二阈值时,获得目标胎心数据的步骤,包括:When the number of data reaches the second threshold, the step of obtaining target fetal heart rate data includes:
按照所述第二阈值读取所述第一队列中保存的历史胎心数据,以获得所述目标胎心数据,并重置所述第一队列以及所述数据个数。Read the historical fetal heart rate data stored in the first queue according to the second threshold to obtain the target fetal heart rate data, and reset the first queue and the number of data.
可选地,在音律文件库中,获得与所述目标胎心数据对应的目标音律文件的步骤之后,所述方法还包括:Optionally, after the step of obtaining the target rhythm file corresponding to the target fetal heart rate data in the rhythm file library, the method further includes:
将所述目标音律文件保存至第二队列;其中,所述第二队列被配置为保存胎心数据对应的音律文件;Saving the target rhythm file to a second queue; wherein the second queue is configured to save the rhythm file corresponding to the fetal heart rate data;
当接收到合并指令时,将所述第二队列中的所有音律文件进行合并,生成音频文件。When the merge instruction is received, all the melody files in the second queue are merged to generate an audio file.
本申请还提供一种用户端,包括:This application also provides a user terminal, including:
存储器,被配置为存储一个或多个程序;The memory is configured to store one or more programs;
处理器;processor;
当所述一个或多个程序被所述处理器执行时,实现上述的音律播放方法。When the one or more programs are executed by the processor, the above-mentioned melody playing method is realized.
本申请还提供一种计算机可读存储介质,其上存储有计算机程序,该计算机程序被处理器执行时实现上述的音律播放方法。The present application also provides a computer-readable storage medium on which a computer program is stored, and when the computer program is executed by a processor, the above-mentioned melody playback method is realized.
附图说明Description of the drawings
图1示出本申请提供的音律播放方法的一种示意性应用场景图;FIG. 1 shows a schematic application scenario diagram of the music playing method provided by the present application;
图2示出本申请提供的用户端的一种示意性结构框图;FIG. 2 shows a schematic structural block diagram of the user terminal provided by the present application;
图3示出本申请提供的音律播放方法的一种示意性流程图;FIG. 3 shows a schematic flow chart of the method for playing music provided by the present application;
图4示出图3中步骤204的子步骤的一种示意性流程图;FIG. 4 shows a schematic flowchart of the sub-steps of step 204 in FIG. 3;
图5示出图4中步骤204-2的子步骤的一种示意性流程图;FIG. 5 shows a schematic flowchart of the sub-steps of step 204-2 in FIG. 4;
图6示出图3中步骤204的子步骤的另一种示意性流程图;FIG. 6 shows another schematic flowchart of the sub-steps of step 204 in FIG. 3;
图7示出图3中步骤204的子步骤的再一种示意性流程图;FIG. 7 shows still another schematic flowchart of the sub-steps of step 204 in FIG. 3;
图8示出本申请提供的音律播放方法的另一种示意性流程图;FIG. 8 shows another schematic flow chart of the music playing method provided by the present application;
图9示出本申请提供的音律播放方法的再一种示意性流程图;FIG. 9 shows still another schematic flow chart of the music playing method provided by the present application;
图10示出本申请提供的音律播放方法的再一种示意性流程图;FIG. 10 shows still another schematic flow chart of the music playing method provided by the present application;
图11示出本申请提供的音律播放方法的再一种示意性流程图;FIG. 11 shows still another schematic flowchart of the music playing method provided by the present application;
图12示出本申请提供的音律播放方法的再一种示意性流程图;FIG. 12 shows still another schematic flow chart of the music playing method provided by the present application;
图13示出本申请提供的音律播放方法的再一种示意性流程图。Fig. 13 shows still another schematic flow chart of the music playing method provided by the present application.
图中:100-用户端;101-存储器;102-处理器;103-存储控制器;104-外设接口;105-射频单元;106-通讯总线/信号线;107-播放单元。In the figure: 100-user terminal; 101-memory; 102-processor; 103-storage controller; 104-peripheral interface; 105-radio frequency unit; 106-communication bus/signal line; 107-playing unit.
具体实施方式Detailed ways
为使本申请的目的、技术方案和优点更加清楚,下面将结合本申请一些实施例中的附图,对本申请提供的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请的一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本申请实施例的组件可以以各种不同的配置来布置和设计。In order to make the purpose, technical solutions and advantages of this application clearer, the following will clearly and completely describe the technical solutions provided by this application in conjunction with the drawings in some embodiments of this application. Obviously, the described embodiments are the same for this application. Part of the embodiments, but not all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various different configurations.
因此,以下对在附图中提供的本申请的实施例的详细描述并非旨在限制要求保护的本申请的范围,而是仅仅表示本申请选定的一部分实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。Therefore, the following detailed description of the embodiments of the application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely represents a part of the selected embodiments of the application. Based on the embodiments in this application, all other embodiments obtained by those of ordinary skill in the art without creative work shall fall within the protection scope of this application.
应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。同时,在本申请的描述中,术语“第一”、“第二”等仅表示区分描述,而不能理解为指示或暗示相对重要性。It should be noted that similar reference numerals and letters indicate similar items in the following figures. Therefore, once a certain item is defined in one figure, it does not need to be further defined and explained in subsequent figures. At the same time, in the description of the present application, the terms "first", "second", etc. only indicate distinguishing description, and cannot be understood as indicating or implying relative importance.
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。It should be noted that in this article, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply one of these entities or operations. There is any such actual relationship or order between. Moreover, the terms "include", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes those that are not explicitly listed Other elements of, or also include elements inherent to this process, method, article or equipment. If there are no more restrictions, the element defined by the sentence "including a..." does not exclude the existence of other identical elements in the process, method, article, or equipment that includes the element.
在例如上述利用胎心数据以及胎动数据使得用户可以与胎儿进行互动的场景中,目前的方案一般是基于胎儿的胎心数据以及胎动数据,进行绘画操作;基于胎心数据以及胎动数据,使得用户可以与胎儿之间建立情感连接并实现有趣的互动,能够增加用户与胎儿之间的情感。For example, in the above scenario where the user can interact with the fetus using fetal heart rate data and fetal movement data, the current solution is generally based on the fetal heart rate data and fetal movement data for drawing operations; based on the fetal heart rate data and fetal movement data, the user It can establish an emotional connection with the fetus and realize interesting interactions, which can increase the emotion between the user and the fetus.
然而,例如绘画等操作仅仅是在静态层面建立用户与胎儿之间的互动,用户对胎儿的胎心数据以及胎动数据等的感知并不强烈,互动效果较差。However, operations such as drawing are only to establish the interaction between the user and the fetus at a static level, and the user's perception of the fetal heart data and fetal movement data of the fetus is not strong, and the interaction effect is poor.
为此,本申请提供的一种可能的实现方式为:通过获得目标胎心数据,并根据记录有多个胎心数据与多个音律文件的对应关系的音律配置规则,获得与目标胎心数据对应的目标音律文件,从而播放该目标音律文件,将目标胎心数据转换为用户可以感知的音律,进而增强用户的感知,提升互动效果。To this end, a possible implementation manner provided by this application is to obtain target fetal heart rate data, and obtain the target fetal heart rate data according to the rhythm configuration rule that records the correspondence between multiple fetal heart rate data and multiple rhythm files. Corresponding target melody file, thereby playing the target melody file, converting the target fetal heart rate data into a melody that the user can perceive, thereby enhancing the user’s perception and enhancing the interactive effect.
下面结合附图,对本申请的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。Hereinafter, some embodiments of the present application will be described in detail with reference to the accompanying drawings. In the case of no conflict, the following embodiments and features in the embodiments can be combined with each other.
请参阅图1,图1示出本申请提供的音律播放方法的一种示意性应用场景图;在一实施例中,前端设备与用户端建立通信,以实现前端设备与用户端之间的数据交互。Please refer to FIG. 1, which shows a schematic application scenario diagram of the melody playback method provided by the present application; in one embodiment, the front-end device establishes communication with the user end to realize data between the front-end device and the user end Interactive.
比如,在一实施例中,前端设备与用户端可以位于无线网络或有线网络中,通过该无线网络或有线网络,前端设备与用户端进行数据交互。For example, in an embodiment, the front-end device and the user terminal may be located in a wireless network or a wired network, and the front-end device and the user terminal perform data interaction through the wireless network or the wired network.
或者是,在另一实施例中,前端设备与用户端可以采用例如蓝牙(bluetooth)或者是局域网等方式建立通信,以实现前端设备与用户端之间的数据交互。Or, in another embodiment, the front-end device and the user terminal may establish communication by using, for example, Bluetooth (bluetooth) or a local area network, so as to realize the data interaction between the front-end device and the user terminal.
在一实施例中,用户端可采用移动终端设备,例如可以包括但不显示是智能手机、个人电脑(personal computer,PC)、平板电脑、个人数字助理(personal digital assistant,PDA)、穿戴式移动终端等等。In an embodiment, the user terminal may use a mobile terminal device, such as a smart phone, a personal computer (PC), a tablet computer, a personal digital assistant (PDA), and a wearable mobile device. Terminal and so on.
本申请提供的一种音律播放方法,可以应用于如图1所示的用户端,该用户端中安装有应用程序,与前端设备相对应,可以为用户提供服务,本申请提供的音律播放方法可以通过该用户端中安装的应用程序实现。The music playing method provided in this application can be applied to the client as shown in FIG. It can be implemented by an application installed in the client.
示意性地,请参阅图2,图2示出本申请提供的用户端100的一种示意性结构框图;该用户端100可以包括存储器101、一个或多个(图中仅示出一个)处理器102、存储控制器103、外设接口104、射频单元105、播放单元107等。这些组件可以通过一条或多条通讯总线/信号线106相互通讯。Schematically, please refer to FIG. 2. FIG. 2 shows a schematic structural block diagram of the client 100 provided by the present application; the client 100 may include a memory 101, one or more (only one is shown in the figure) processing The device 102, the storage controller 103, the peripheral interface 104, the radio frequency unit 105, the playback unit 107, and so on. These components can communicate with each other through one or more communication buses/signal lines 106.
存储器101可以被配置为存储软件程序以及模组,如本申请提供的音律播放方法所对应的程序指令/模组,处理器102通过运行存储在存储器101内的软件程序以及模组,从而执行各种功能应用以及图像处理等,以实现本申请提供的音律播放方法。The memory 101 may be configured to store software programs and modules, such as program instructions/modules corresponding to the melody playback method provided in this application. The processor 102 executes the software programs and modules stored in the memory 101 by running the software programs and modules. Various functional applications and image processing, etc., to implement the melody playback method provided in this application.
其中,存储器101可以是,但不限于,随机存取存储器(Random Access Memory, RAM),只读存储器(Read Only Memory,ROM),可编程只读存储器(Programmable Read-Only Memory,PROM),可擦除只读存储器(Erasable Programmable Read-Only Memory,EPROM),电可擦除可编程只读存储器(Electric Erasable Programmable Read-Only Memory,EEPROM)等。The memory 101 can be, but is not limited to, random access memory (Random Access Memory, RAM), read only memory (Read Only Memory, ROM), programmable read-only memory (Programmable Read-Only Memory, PROM), which can be Erasable Programmable Read-Only Memory (EPROM), Electric Erasable Programmable Read-Only Memory (EEPROM), etc.
处理器102可以是一种集成电路芯片,具有信号处理能力。上述的处理器102可以是通用处理器,包括中央处理器(Central Processing Unit,CPU)、网络处理器(Network Processor,NP)、语音处理器以及视频处理器等;还可以是数字信号处理器(Digital Signal Processing,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器102也可以是任何常规的处理器等。The processor 102 may be an integrated circuit chip with signal processing capabilities. The aforementioned processor 102 may be a general-purpose processor, including a central processing unit (CPU), a network processor (Network Processor, NP), a voice processor, a video processor, etc.; it may also be a digital signal processor ( Digital Signal Processing, DSP), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components Wait. The methods, steps, and logical block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor may be a microprocessor or the processor 102 may also be any conventional processor or the like.
外设接口104将各种输入/输入装置耦合至处理器102以及存储器101。在一些实施例中,外设接口104、处理器102以及存储控制器103可以在单个芯片中实现。在本申请其他的一些实施例中,他们还可以分别由独立的芯片实现。The peripheral interface 104 couples various input/input devices to the processor 102 and the memory 101. In some embodiments, the peripheral interface 104, the processor 102, and the storage controller 103 may be implemented in a single chip. In some other embodiments of this application, they can also be implemented by independent chips.
射频单元105被配置为接收以及发送电磁波,实现电磁波与电信号的相互转换,从而与通讯网络或者其他设备进行通讯。The radio frequency unit 105 is configured to receive and send electromagnetic waves, realize mutual conversion between electromagnetic waves and electrical signals, and communicate with a communication network or other devices.
播放单元107被配置为播放音律文件或者是音频文件等,以输出音律信息或者是音频信息等。The playing unit 107 is configured to play a melody file or an audio file, etc., to output melody information or audio information and the like.
可以理解,图2所示的结构仅为示意,用户端100还可以包括比图2中所示更多或者更少的组件,或者具有与图2所示不同的配置。图2中所示的各组件可以采用硬件、软件或其组合实现。It can be understood that the structure shown in FIG. 2 is only for illustration, and the user terminal 100 may also include more or fewer components than those shown in FIG. 2, or have a configuration different from that shown in FIG. 2. The components shown in FIG. 2 can be implemented by hardware, software, or a combination thereof.
下面以图2所示的用户端100作为示意性执行主体,对本申请提供的音律播放方法进行示例性说明。In the following, the user terminal 100 shown in FIG. 2 is used as an exemplary execution subject to exemplarily describe the melody playback method provided in the present application.
请参阅图3,图3示出本申请提供的音律播放方法的一种示意性流程图,可以包括以下步骤:Please refer to FIG. 3. FIG. 3 shows a schematic flow chart of the music playing method provided by the present application, which may include the following steps:
步骤202,获得目标胎心数据;Step 202: Obtain target fetal heart rate data;
步骤204,根据音律配置规则,获得与目标胎心数据对应的目标音律文件;Step 204: Obtain a target rhythm file corresponding to the target fetal heart rate data according to the rhythm configuration rule;
步骤206,播放目标音律文件。Step 206: Play the target melody file.
在一实施例中,用户端在执行本申请提供的音律播放方法时,可以先获得目标胎心数据;然后利用目标胎心数据进行谱曲,从而获得目标胎心数据对应的目标音律文件,使得用户端可以播放该目标音律文件。In one embodiment, when the user terminal executes the rhythm playback method provided in this application, it can first obtain target fetal heart rate data; then use the target fetal heart rate data to compose music, thereby obtaining the target rhythm file corresponding to the target fetal heart rate data, so that The client can play the target melody file.
其中,用户端在获得目标胎心数据时,可以如图1所示的场景,将接收的例如前端设备等其他设备发送的胎心数据作为目标胎心数据;或者是,用户端可以将从服务器下载的胎心数据作为目标胎心数据;再或者是,用户端可以将自身存储的胎心数据作为目标胎心数据。Among them, when the user side obtains the target fetal heart rate data, it can use the received fetal heart rate data sent by other devices such as front-end equipment as the target fetal heart rate data as shown in the scenario shown in Figure 1; The downloaded fetal heart rate data is used as the target fetal heart rate data; or, the user terminal can use the stored fetal heart rate data as the target fetal heart rate data.
另外,用户端可以保存有音律配置规则,该音律配置规则记录有多个胎心数据与多个音律文件的对应关系;用户端在获得目标音律文件时,可以根据该音律配置规则,将音律配置规则中与目标胎心数据对应的音律文件确定为目标音律文件。In addition, the user terminal can store a rhythm configuration rule, which records the correspondence between multiple fetal heart data and multiple rhythm files; when the user terminal obtains the target rhythm file, it can configure the rhythm configuration according to the rhythm configuration rule The melody file corresponding to the target fetal heart rate data in the rule is determined to be the target melody file.
如此,用户端可以播放该目标音律文件,即:将目标胎心数据转换为用户可以感知的音律,从而增强用户的感知,提升互动效果。In this way, the user terminal can play the target rhythm file, that is, convert the target fetal heart rate data into a rhythm that the user can perceive, thereby enhancing the user's perception and enhancing the interactive effect.
其中,需要说明的是,用户端在执行步骤204时,可以通过多种方式获得目标胎心数据对应的目标音律文件。It should be noted that when the user terminal executes step 204, the target rhythm file corresponding to the target fetal heart rate data may be obtained in various ways.
比如,在一些适用的应用场景中,胎儿的胎心率一般为110次/分~160次/分之间;为此,在一实施例中,用户端可以将完整的胎心率的值域范围划分为多个不同的胎心范围,并为不同的胎心范围预先存储不同的音律文件,即:可以预先为不同的胎心范围配置不同的音律文件,用户端保存的音律配置规则即可以记录有多个胎心范围与多个旋律文件的对应关系。For example, in some applicable application scenarios, the fetal heart rate of the fetus is generally between 110 beats/minute and 160 beats/minute; for this reason, in one embodiment, the user terminal can set the complete fetal heart rate range The range is divided into multiple different fetal heart rate ranges, and different rhythm files are pre-stored for different fetal heart rate ranges, that is: different rhythm files can be configured for different fetal heart rate ranges in advance, and the rhythm configuration rules saved on the user terminal can be used. Correspondences between multiple fetal heart rate ranges and multiple melody files are recorded.
为此,在图3的基础上,请参阅图4,图4示出图3中步骤204的子步骤的一种示意性流程图,在一实施例中,步骤204可以包括以下子步骤:To this end, on the basis of FIG. 3, please refer to FIG. 4. FIG. 4 shows a schematic flowchart of the sub-steps of step 204 in FIG. 3. In an embodiment, step 204 may include the following sub-steps:
步骤204-1,获得目标胎心数据包括的多个胎心值的平均胎心值;Step 204-1: Obtain an average fetal heart rate value of multiple fetal heart rate values included in the target fetal heart rate data;
步骤204-2,将音律配置规则中,与目标胎心范围对应的旋律文件确定为目标音律文件。Step 204-2: Determine the melody file corresponding to the target fetal heart rate range in the melody configuration rule as the target melody file.
在一实施例中,为避免短时间内胎心率变化范围过大造成的音律波动较大,用户端在执行步骤202时,可以将获得的多个胎心值作为目标胎心数据,比如将一段时间范围(例如每5秒)的所有胎心值作为目标胎心数据。如此,在执行步骤204时,可以先求取目标胎心数据包括的多个胎心值的平均胎心值。In one embodiment, in order to avoid large fluctuations in the rhythm of the fetal heart rate within a short period of time, when the user terminal executes step 202, the obtained multiple fetal heart rate values may be used as target fetal heart rate data, for example, a period of time All fetal heart rate values in a range (for example, every 5 seconds) are used as target fetal heart rate data. In this way, when step 204 is performed, the average fetal heart rate value of the multiple fetal heart rate values included in the target fetal heart rate data may be obtained first.
然后,用户端可以结合保存的音律配置规则,将音律配置规则记录的多个胎心范围中,平均胎心值所在的胎心范围确定为目标胎心范围。Then, the user terminal can combine the saved rhythm configuration rules to determine the fetal heart rate range where the average fetal heart rate value is located among the multiple fetal heart rate ranges recorded by the rhythm configuration rule as the target fetal heart rate range.
如此,用户端可以根据计算得到的平均胎心值,将音律配置规则中与目标胎心范围对应的旋律文件确定为目标音律文件。In this way, the user terminal can determine the melody file corresponding to the target fetal heart rate range in the rhythm configuration rule as the target rhythm file according to the calculated average fetal heart rate value.
比如,假定用户端保存的音律配置规则可以如下表1所示:For example, suppose that the tone configuration rules saved on the client side can be as shown in Table 1 below:
表1Table 1
胎心(N)范围Fetal heart (N) range 音律文件主题Melody file theme
N<110N<110 静止still
110<=N<120110<=N<120 嘀嗒Tick
120<=N<130120<=N<130 舒缓Soothing
130<=N<140130<=N<140 故事story
140<=N<150140<=N<150 苏醒wake
150<=N<160150<=N<160 运动sports
160<=N160<=N 奔跑run
结合上述表1示例的音律配置规则,假定用户端计算得到的平均胎心值为136,则用户端可以选择主题名为“故事”的旋律文件作为目标音律文件。Combining the melody configuration rules in the example of Table 1 above, assuming that the average fetal heart rate calculated by the user terminal is 136, the user terminal can select the melody file with the theme name "Story" as the target melody file.
另外,在一些可能的应用场景中,前端设备测得的胎心数据中,可能会伴随有胎动数据。In addition, in some possible application scenarios, the fetal heart rate data measured by the front-end equipment may be accompanied by fetal movement data.
因此,为使胎儿的胎动情况能够在用户端播放的音律中得到体现,在一实施例中,可以采用不同的副本文件对含有胎动标识的目标胎心数据和不含有胎动标识的目标胎心数据进行区分;即:在用户端记录的音律配置规则中,每一旋律文件可以均包括有第一副本文件和第二副本文件,比如结合上述表1的示例中,主题名为“故事”的音律文件即包括两个副本文件,其中一个表示对应的胎心数据中没有胎动标识,而另一个则表示对应的胎心数据中包含胎动标识。Therefore, to enable the fetal movement of the fetus to be reflected in the rhythm played by the user terminal, in one embodiment, different copy files may be used to compare the target fetal heart rate data with the fetal movement identification and the target fetal heart rate data without the fetal movement identification. Make a distinction; that is: in the melody configuration rules recorded on the user side, each melody file may include a first copy file and a second copy file. For example, in combination with the example in Table 1, the theme is "story". The file includes two duplicate files, one of which indicates that there is no fetal movement identifier in the corresponding fetal heart rate data, and the other indicates that the corresponding fetal heart rate data contains a fetal movement identifier.
比如,可以假定以每一音律文件的第一副本文件表示对应的胎心数据中没有包含胎动标识,而第二副本文件则表示对应的胎心数据中包含有胎动标识。For example, it can be assumed that the first copy file of each rhythm file indicates that the corresponding fetal heart rate data does not contain a fetal movement identifier, and the second copy file indicates that the corresponding fetal heart rate data contains a fetal movement identifier.
如此,在图4的基础上,请参阅图5,图5示出图4中步骤204-2的子步骤的一种示意性流程图,在一实施例中,步骤204-2可以包括以下子步骤:In this way, on the basis of FIG. 4, please refer to FIG. 5. FIG. 5 shows a schematic flowchart of the sub-steps of step 204-2 in FIG. 4. In an embodiment, step 204-2 may include the following sub-steps step:
步骤204-2a,判断目标胎心数据中是否包含胎动标识;当为否时,执行步骤204-2b;当为是时,执行步骤204-2c;Step 204-2a, judge whether the target fetal heart rate data contains a fetal movement identifier; if it is no, execute step 204-2b; if it is yes, execute step 204-2c;
步骤204-2b,将目标胎心范围对应的旋律文件所包括的第一副本文件,确定为目标音律文件;Step 204-2b: Determine the first copy file included in the melody file corresponding to the target fetal heart rate range as the target melody file;
步骤204-2c,将目标胎心范围对应的旋律文件所包括的第二副本文件,确定为目标音律文件。Step 204-2c: Determine the second copy file included in the melody file corresponding to the target fetal heart rate range as the target melody file.
在一实施例中,用户端在执行步骤204-2时,可以判断目标胎心数据中是否包含有胎 动标识;当用户端判定目标胎心数据中不包含有胎动标识时,用户端可以选择将目标胎心范围对应的旋律文件所包括的第一副本文件,确定为目标音律文件,比如上述示例中主题名为“故事”的旋律文件所包括的第一副本文件确定为目标音律文件;当用户端判定目标胎心数据中包含有胎动标识时,用户端可以选择将目标胎心范围对应的旋律文件所包含的第二副本文件,确定为目标音律文件,比如上述示例中主题名为“故事”的旋律文件所包括的第二副本文件确定为目标音律文件。In one embodiment, when the user terminal performs step 204-2, it can determine whether the target fetal heart rate data contains a fetal movement identifier; when the user terminal determines that the target fetal heart rate data does not contain a fetal movement identifier, the user terminal can choose to The first copy file included in the melody file corresponding to the target fetal heart rate range is determined to be the target melody file. For example, the first copy file included in the melody file with the subject name "Story" in the above example is determined to be the target melody file; When the terminal determines that the target fetal heart rate data contains the fetal movement identifier, the user terminal can choose to determine the second copy file contained in the melody file corresponding to the target fetal heart rate range as the target melody file. For example, the subject name in the above example is "Story" The second copy file included in the melody file is determined to be the target melody file.
其中,需要说明的是,目标胎心数据中包含的胎动标识,可以是例如图1所示场景的中前端设备在采集胎心数据时,每当采集到一个胎动数据时,即为对应时间点的胎心数据记录一个胎动标识,以表示该胎心数据对应的时间点发生了一次胎动。Among them, it should be noted that the fetal movement identifier contained in the target fetal heart rate data can be, for example, when the front-end equipment in the scene shown in Figure 1 collects fetal heart rate data, whenever a piece of fetal movement data is collected, it is the corresponding time point. The fetal heart rate data records a fetal movement flag to indicate that a fetal movement occurred at the time point corresponding to the fetal heart rate data.
或者是,可以利用不同的时间序列分别记录胎心数据和胎动数据,胎心数据每一秒记录一次,胎动数据每发生一次记录一次;用户端在执行步骤202时,可以同时读取胎心数据的时间序列以及胎动数据的时间序列,并在获得目标胎心数据时,利用胎动变量记录读取到的胎动次数,从而在执行步骤204-2a时,用户端可以利用胎动变量的值判断目标胎心数据中是否包含有胎动标识;比如,若用户端读取到的胎动变量的值为0,则表示目标胎心数据中不包含有胎动标识;若用户端读取到的胎动变量的值大于0,则表示目标胎心数据中包含有胎动标识。Alternatively, different time series can be used to record the fetal heart rate data and fetal movement data respectively. The fetal heart rate data is recorded once every second, and the fetal movement data is recorded once every time it occurs; the user terminal can read the fetal heart rate data at the same time when performing step 202 The time series of the fetal movement data and the time series of the fetal movement data, and when the target fetal heart rate data is obtained, the fetal movement variable is used to record the number of fetal movements read, so that when step 204-2a is executed, the user terminal can use the value of the fetal movement variable to determine the target fetal movement. Whether the fetal movement identifier is included in the heart data; for example, if the value of the fetal movement variable read by the user terminal is 0, it means that the target fetal heart data does not contain the fetal movement identifier; if the value of the fetal movement variable read by the user terminal is greater than 0, it means that the target fetal heart rate data contains a fetal movement indicator.
如此,用户端采用不同的副本文件对胎心数据中包含有胎动标识以及不包含有胎动标识的情况进行区分,使得用户可以通过不同的副本文件区别出采集对应的胎心数据时,胎儿是否有发生胎动,进而增强用户感知,提升互动效果。In this way, the user terminal uses different duplicate files to distinguish between the fetal movement identification and the absence of the fetal movement identification in the fetal heart rate data, so that the user can distinguish whether the fetus has the fetus when the corresponding fetal heart rate data is collected through different duplicate files. Fetal movement occurs, which in turn enhances user perception and enhances interactive effects.
并且,为了避免每一胎心范围仅对应单个旋律文件,使得在连续播放时,产生的旋律较为单一,用户端保存的每一旋律文件可以包括有多个子旋律文件。In addition, in order to avoid that each fetal heart rate range corresponds to only a single melody file, so that during continuous playback, the generated melody is relatively single, each melody file saved on the user terminal may include multiple sub-melody files.
为此,用户端在执行步骤204-2时,可以在目标胎心范围对应的旋律文件所包括的多个子旋律文件中,确定出目标音律文件。For this reason, when performing step 204-2, the user terminal may determine the target melody file among the multiple sub-melody files included in the melody file corresponding to the target fetal heart rate range.
比如,可以预先为每一旋律文件保存3个子旋律文件;在上述以主题名为“故事”的旋律文件为目标胎心数据对应的旋律文件的示例中,在执行步骤204-2时,用户端可以采用例如随机算法,随机从“故事”所包含的3个子旋律文件中选择出一个,作为目标音律文件。For example, three sub-melody files can be saved for each melody file in advance; in the above example of the melody file corresponding to the target fetal heart data with the theme named "story", when step 204-2 is executed, the user terminal For example, a random algorithm can be used to randomly select one of the three sub-melody files included in the "story" as the target melody file.
示例性地,假定主题为“故事”的旋律文件所包含的三个子旋律文件各自的编号分别为0、1、2,数量记为total;用户端可以在执行步骤204-2时,以精确到毫秒的系统当前时间戳为currentTsInMillSecond,则目标旋律文件的编号的计算公式可以满足如下:Illustratively, suppose that the three sub-melody files contained in the melody file with the theme "story" are respectively numbered 0, 1, and 2, and the number is recorded as total; the user terminal can perform step 204-2 with the accuracy to The current timestamp of the system in milliseconds is currentTsInMillSecond, and the calculation formula for the number of the target melody file can satisfy the following:
index=(currentTsInMillSecond*31)%totalindex=(currentTsInMillSecond*31)%total
即:currentTsInMillSecond乘以31后的乘积再除以total后取余数,然后按照取余数的 结果选择对应编号的子旋律文件作为目标音律文件。That is, the product of currentTsInMillSecond multiplied by 31 is divided by total and the remainder is taken, and then the sub-melody file with the corresponding number is selected as the target melody file according to the result of taking the remainder.
如此,使得用户端可以在不同的播放周期,即使是不同的目标胎心数据对应相同的胎心范围,用户端也可以播放出不同的旋律,能够在连续播放音律时,避免产生的旋律单一。In this way, the user terminal can play different melody in different playback periods, even if different target fetal heart rate data correspond to the same fetal heart rate range, and can avoid a single melody when the music is played continuously.
可以理解的是,本申请提供的上述实现方式,是以预先为不同的胎心范围配置不同的旋律文件进行的音律播放。在本申请其他一些可能的实现方式中,用户端还可以为不同的胎心范围预先存储不同的音符文件,即:还可以采用配置音符的方式进行音律的播放,此时用户端保存的音律配置规则即可以记录多个胎心范围与多个音符文件的对应关系。It is understandable that the above-mentioned implementation provided by this application is based on pre-arranging different melody files for different fetal heart rate ranges to perform melody playback. In some other possible implementations of this application, the user terminal may also pre-store different note files for different fetal heart rate ranges, that is: the way of configuring notes may also be used to play the rhythm, and the rhythm configuration saved by the user terminal at this time The rule can record the correspondence between multiple fetal heart rate ranges and multiple note files.
为此,在图3的基础上,请参阅图6,图6示出图3中步骤204的子步骤的另一种示意性流程图,在另一实施例中,步骤204还可以包括以下子步骤:To this end, on the basis of FIG. 3, please refer to FIG. 6. FIG. 6 shows another schematic flowchart of the sub-steps of step 204 in FIG. 3. In another embodiment, step 204 may also include the following sub-steps: step:
步骤204-6,获得目标胎心数据包括的多个胎心值的平均胎心值;Step 204-6, obtaining an average fetal heart rate value of multiple fetal heart rate values included in the target fetal heart rate data;
步骤204-7,将音律配置规则中,与目标胎心范围对应的音符文件确定为目标音律文件;Step 204-7: Determine the note file corresponding to the target fetal heart rate range in the rhythm configuration rule as the target rhythm file;
在另一实施例中,同样为了避免短时间内胎心率变化范围过大造成的音律波动较大,用户端可以将获得的多个胎心值作为目标胎心数据,并计算目标胎心数据包括的多个胎心值的平均胎心值。In another embodiment, also in order to avoid large fluctuations in the rhythm caused by the excessive variation of the fetal heart rate in a short period of time, the user terminal may use the obtained multiple fetal heart rate values as the target fetal heart rate data, and calculate the target fetal heart rate data. The average fetal heart rate of multiple fetal heart rate values.
然后,用户端可以将平均胎心值所在的胎心范围确定为目标胎心范围,并将音律配置规则中与目标胎心范围对应的音符文件确定为目标音阶文件。Then, the user terminal may determine the fetal heart rate range where the average fetal heart rate value is located as the target fetal heart rate range, and determine the note file corresponding to the target fetal heart rate range in the rhythm configuration rule as the target musical scale file.
其中,需要说明的是,在本申请列举的上述两种实现方式中,步骤204-1~步骤204-2提供的方案是以完整的旋律进行播放,即预先存储的是完整的旋律;而步骤204-6~步骤204-7提供的方案是以音符为基础进行播放,即预先存储的是音符,在通过连续的音符播放进行编曲,而非播放完整的旋律。Among them, it should be noted that in the above two implementation manners listed in this application, the solutions provided in step 204-1 to step 204-2 are played in a complete melody, that is, the complete melody is pre-stored; and the step The solutions provided in 204-6 to step 204-7 are played based on notes, that is, the notes are stored in advance, and the music is arranged through continuous playing of the notes instead of playing the complete melody.
另外,为了增加在利用音符文件进行编曲时的多样性,用户端保存的每一音符文件可以包括有多个子音符文件。In addition, in order to increase the diversity when using the note file to arrange music, each note file saved on the user terminal may include multiple sub-note files.
如此,用户端在执行步骤204-7时,可以在目标胎心范围对应的音符文件所包括的多个子音符文件中,确定出目标音律文件;比如可以采用上述示例的随机算法确定出目标音律文件。In this way, when the user terminal performs step 204-7, the target melody file can be determined from among the multiple sub-note files included in the note file corresponding to the target fetal heart rate range; for example, the random algorithm described above can be used to determine the target melody file .
并且,在一实施例中,为了避免连续播放时,由于相邻的两个相符文件的音阶相差太大,导致用户端播放的音律效果较差,可以为每一子音符文件设置对应的配置参数,从而使用户端在连续播放时,能够根据设定的配置参数,使得连续的两个音符文件的配置参数相差在设定的范围内。Moreover, in one embodiment, in order to avoid continuous playback, because the scales of two adjacent matching files are too different, resulting in poor tempo effect played on the user side, corresponding configuration parameters can be set for each sub-note file. , So that when the user terminal is continuously playing, it can make the configuration parameters of two consecutive note files differ within the set range according to the set configuration parameters.
比如,可以将所有的子音符文件分为3个八度的子音符文件,分别为低音、中音、高 音三种类型,每一类型包含了完整的音符。For example, you can divide all sub-note files into 3 octaves of sub-note files, which are three types: bass, midrange, and treble. Each type contains a complete note.
每一子音符文件为音符中的一个音,比如低音的1(do)、中音的3(mi)、高音的5(so);每一个音可以包含有多个不同的子音符文件,区别在于持续的时间不同,比如持续2秒到6秒不等;假定以每0.5秒为一个音速单位,则:时长为2秒的音速为4,时长为4秒的音速为8。Each sub-note file is a note in the note, such as 1 (do) for the bass, 3 (mi) for the midrange, and 5 (so) for the treble; each note can contain multiple different sub-note files. The difference lies in the duration of time, for example, ranging from 2 seconds to 6 seconds; assuming that every 0.5 second is a sound speed unit, then: the speed of sound with a duration of 2 seconds is 4, and the speed of sound with a duration of 4 seconds is 8.
如此,可以以音高(lastScale)-音强(lastVolume)-音速(lastSpeed)的格式命名每个子音符文件;比如音强为3、音速为8的中音1,其对应的子音符文件可以命名为(中音1+3+8),即:该子音符文件对应的配置参数为音强3、音速8。In this way, each sub-note file can be named in the format of pitch (lastScale)-sound intensity (lastVolume)-speed of sound (lastSpeed); for example, for midrange 1 with a pitch of 3 and a speed of 8, its corresponding sub-note file can be named It is (midrange 1+3+8), that is, the configuration parameters corresponding to the sub-note file are pitch 3 and speed 8.
于是,用户端在执行步骤204-7时,可以将目标胎心范围对应的音符文件所包括的多个子音符文件中,对应的配置参数与设定的配置参数两者的差值在设定的范围内的目标子音符文件,确定为目标音律文件。Therefore, when the user terminal performs step 204-7, it can set the difference between the corresponding configuration parameter and the set configuration parameter among the multiple sub-note files included in the note file corresponding to the target fetal heart rate range. The target sub-note file within the range is determined as the target temperament file.
比如,可以假定该设定的范围内3度,即:目标音律文件的音阶与设定的配置参数不超过3度。For example, it can be assumed that 3 degrees is within the set range, that is, the scale of the target temperament file and the set configuration parameters do not exceed 3 degrees.
假定用户端保存的音律配置规则还可以包含有如下内容:It is assumed that the musical temperament configuration rules saved on the client side can also contain the following content:
(1)当平均胎心值小于110时,选用低音、音量强度不大于4、且音速值不小于12的音阶;(1) When the average fetal heart rate is less than 110, choose a scale with bass, volume intensity not greater than 4, and sound velocity not less than 12;
(2)当平均胎心值大于或等于110且小于125时,选用低音、音量强度为2-5之间、音速值不小于10的音阶;(2) When the average fetal heart rate is greater than or equal to 110 and less than 125, use a scale with bass, volume intensity between 2-5, and sound velocity not less than 10;
(3)当平均胎心值大于或等于125且小于145时,选用中音、音量强度为3-7之间、音速值为8-10之间的音阶;(3) When the average fetal heart rate is greater than or equal to 125 and less than 145, the midrange, the volume intensity is between 3-7, and the speed of sound is between 8-10;
(4)当平均胎心值大于或等于145且小于160时,选用高音、音量强度为5-8之间、音速值不大于8的音阶;(4) When the average fetal heart rate is greater than or equal to 145 and less than 160, a scale with a high pitch, a volume intensity of 5-8, and a speed of sound not greater than 8 is selected;
(5)当平均胎心值大于160时,选用高音、音量强度不小于6、音速值不大于6的音阶。(5) When the average fetal heart rate is greater than 160, a scale with high pitch, volume intensity not less than 6, and sound velocity not greater than 6 is selected.
如此,用户端可以基于上述音律配置规则,按照目标胎心数据所在的目标胎心范围,以及每一子音符文件的音高、音强、音速等维度的配置参数,结合设定的配置参数,以对应的配置参数与该设定的配置参数两者的差值在设定的范围内的子音符文件作为目标音律文件。In this way, the user terminal can be based on the above-mentioned rhythm configuration rules, according to the target fetal heart rate range where the target fetal heart rate data is located, and the configuration parameters of the pitch, intensity, and speed of each sub-note file, combined with the set configuration parameters, The sub-note file whose difference between the corresponding configuration parameter and the set configuration parameter is within the set range is used as the target melody file.
其中,该设定的配置参数可以是用户设定的固定的参数值,也可以是用户端在连续编曲时,为了避免播放的相邻两个音符文件的音阶相差太大,用户端可以选择将上一个被确定为目标音律文件的子音符文件的配置参数,作为该设定的配置参数。Among them, the set configuration parameter can be a fixed parameter value set by the user, or it can be the user side when the user terminal is continuously arranging music. In order to avoid the scale difference of the two adjacent note files being played, the user side can choose The configuration parameter of the last sub-note file determined as the target temperament file is used as the configuration parameter of the setting.
如此,在图6的基础上,请参阅图7,图7示出图3中步骤204的子步骤的再一种示 意性流程图,在一实施例中,该音律播放方法还可以包括以下子步骤:In this way, on the basis of FIG. 6, please refer to FIG. 7. FIG. 7 shows still another schematic flowchart of the sub-steps of step 204 in FIG. step:
步骤204-8,根据目标音律文件的配置参数,更新设定的配置参数。Step 204-8, update the set configuration parameters according to the configuration parameters of the target melody file.
通过不停的迭代,用户端在执行步骤204-7确定出目标音律文件后,可以根据目标音律文件的配置参数,更新设定的配置参数,比如将该设定的配置参数更新为目标音律文件的配置参数。Through continuous iteration, after the user terminal determines the target melody file in step 204-7, it can update the set configuration parameters according to the configuration parameters of the target melody file, for example, update the set configuration parameters to the target melody file Configuration parameters.
另外,在利用音符进行谱曲的实现方式中,为了体现在测量胎心数据时胎儿发生了胎动,作为一种可能的实现方式,在图6的基础上,请参阅图8,图8示出本申请提供的音律播放方法的另一种示意性流程图,在执行步骤206之前,该音律播放方法还可以包括以下步骤:In addition, in the implementation of using musical notes to compose music, in order to reflect the fetal movement during the measurement of the fetal heart rate data, as a possible implementation, on the basis of Figure 6, please refer to Figure 8. Figure 8 shows Another schematic flowchart of the music playing method provided in the present application. Before step 206 is executed, the music playing method may further include the following steps:
步骤205,当目标胎心数据中包含有胎动标识时,调整目标音律文件的音阶。Step 205: When the target fetal heart rate data contains the fetal movement identifier, adjust the scale of the target rhythm file.
其中,用户端可以采用例如本申请提供的上述实现方式,以判断目标胎心数据中是否包含有胎动标识,本申请在此不再进行赘述。Among them, the user terminal can use, for example, the above-mentioned implementation methods provided in this application to determine whether the target fetal heart rate data contains a fetal movement identifier, which will not be repeated in this application.
于是,当用户端确定目标胎心数据中包含有胎动标识时,可以调整目标音律文件的音阶,并在执行步骤206时,播放调整音阶后的目标音律文件,从而使用户能够通过播放的音律中音阶的变化,感知到目标胎心数据对应的时间段范围内胎儿出现了胎动,增强用户的感知。Therefore, when the user terminal determines that the target fetal heart rate data contains the fetal movement identifier, the scale of the target melody file can be adjusted, and when step 206 is executed, the target melody file after the adjusted scale is played, so that the user can pass the played melody The change of the musical scale can sense that the fetus has fetal movement within the time period corresponding to the target fetal heart rate data, which enhances the user's perception.
其中,在一实施例中,用户端在调整目标音律文件的音阶时,用户端可以升高目标音律文件最后一个音的音阶,比如将最后一个音升高8度。In one embodiment, when the user terminal adjusts the scale of the target melody file, the user terminal may raise the scale of the last tone of the target melody file, for example, raise the last tone by 8 degrees.
或者是,在另一实施例中,用户端在调整目标音律文件的音阶时,用户端可以在目标音律文件最后一个音中加入胎动标识音,比如加入预先设定的胎动特殊音,使得用户可以通过识别该胎动标识音,判断在对应时间段内胎儿是否发生胎动。Or, in another embodiment, when the user terminal adjusts the scale of the target melody file, the user terminal can add a fetal movement identification sound to the last sound of the target melody file, such as adding a preset fetal movement special sound, so that the user can By recognizing the fetal movement identification sound, it is determined whether the fetus has fetal movement within the corresponding time period.
在一实施例中,为了增强用户的体验,可以预先在用户端录入多种不同音色类型的配置规则,从而使用户端可以产生不同音色类型的音律。In one embodiment, in order to enhance the user's experience, multiple configuration rules of different timbre types may be pre-recorded on the user terminal, so that the user terminal can generate temperaments of different timbre types.
为此,在图3的基础上,请参阅图9,图9示出本申请提供的音律播放方法的再一种示意性流程图,在执行步骤202之前,该音律播放方法还可以包括以下步骤:To this end, on the basis of FIG. 3, please refer to FIG. 9. FIG. 9 shows another schematic flowchart of the music playing method provided by the present application. Before step 202 is performed, the music playing method may further include the following steps :
步骤200,在音色类型策略中确定出音律配置规则。Step 200: Determine a temperament configuration rule in the timbre type strategy.
在一实施例中,用户端可以保存有一音色类型策略,该音色类型策略中包括多条配置规则,比如手碟音色配置规则、钢琴音色配置规则、口琴音色配置规则、小提琴音色配置规则等。In one embodiment, the user terminal may save a tone type strategy, which includes multiple configuration rules, such as hand disc tone configuration rules, piano tone configuration rules, harmonica tone configuration rules, violin tone configuration rules, and so on.
用户端在执行本申请提供的音律播放方法时,可以在音色类型策略中确定一配置规则作为音律配置规则。When the user terminal executes the tone playing method provided in the present application, it can determine a configuration rule in the tone color type strategy as the tone configuration rule.
比如,可以接收用户选定的其中一条配置规则作为音律配置规则;或者,可以采用例 如上述的随机算法,基于用户端在执行该音律播放方法时的当前时间戳,选定出一条配置规则作为音律配置规则。For example, one of the configuration rules selected by the user can be received as the rhythm configuration rule; or, for example, the random algorithm described above can be used to select a configuration rule as the rhythm based on the current timestamp when the user terminal executes the rhythm playback method. Configure rules.
如此,用户端可以根据从音色类型策略中确定出的音律配置规则,生成目标胎心数据对应的目标音律文件,从而使用户端可以播放不同音色类型的音律。In this way, the user terminal can generate the target rhythm file corresponding to the target fetal heart rate data according to the rhythm configuration rules determined from the tone color type strategy, so that the user terminal can play different tone color types of rhythms.
需要说明的是,如上所述,用户端获得的目标胎心数据,可以是用户端接收例如前端设备发送的胎心数据,也可以是用户端从服务器下载的胎心数据,或者是用户端自身存储的胎心数据。It should be noted that, as described above, the target fetal heart rate data obtained by the user terminal may be the fetal heart rate data received by the user terminal, for example, sent by the front-end device, or the fetal heart rate data downloaded by the user terminal from the server, or the user terminal itself Stored fetal heart data.
为此,在例如用户端接收前端设备发送的胎心数据等应用场景中,作为一种可能的实现方式,在图3的基础上,请参阅图10,图10示出本申请提供的音律播放方法的再一种示意性流程图,在执行步骤202之前,该音律播放方法还可以包括以下步骤:For this reason, in application scenarios such as receiving the fetal heart rate data sent by the front-end equipment at the user end, as a possible implementation, on the basis of Fig. 3, please refer to Fig. 10, which shows the rhythm playback provided by this application. In yet another schematic flowchart of the method, before step 202 is performed, the melody playback method may further include the following steps:
步骤201-2,将接收的胎心数据保存至第一队列;Step 201-2, save the received fetal heart rate data to the first queue;
在一实施例中,用户端可以设置第一队列,该第一队列可以被配置为保存接收的胎心数据。如此,当用户端接收到胎心数据时,用户端可以将接收的胎心数据保存至第一队列。In an embodiment, the user terminal may set a first queue, and the first queue may be configured to store the received fetal heart rate data. In this way, when the user terminal receives the fetal heart rate data, the user terminal can save the received fetal heart rate data to the first queue.
于是,用户端在执行步骤202时,可以按照时间序列读取第一队列,从而读取第一队列保存的胎心数据,以获得目标胎心数据。Therefore, when performing step 202, the user terminal may read the first queue in a time sequence, thereby reading the fetal heart rate data stored in the first queue, to obtain the target fetal heart rate data.
需要说明的是,如上所述,胎心数据一般为每一秒测得一个;在一些可能的实现方式中,为了避免短时间内胎心率变化范围过大造成的音律波动较大,用户端可以选取一段时间的胎心值作为目标胎心数据。It should be noted that, as mentioned above, the fetal heart rate data is generally measured every second; in some possible implementations, in order to avoid large fluctuations in the rhythm caused by the excessive variation of the fetal heart rate in a short period of time, the user terminal can select The fetal heart rate for a period of time is used as the target fetal heart rate data.
然而,用户端在播放目标音律文件时,目标音律文件能够播放的时长可能会大于目标胎心数据所采集的时长;比如,可以用采集5秒的目标胎心数据,获得能够播放20秒的目标音律文件,即:利用少量的胎心数据播放较大时长的音律。因此,在一些可能的实现方式中,用户端可以将一些接收的胎心数据丢弃。However, when the user terminal is playing the target rhythm file, the duration of the target rhythm file may be longer than the time collected by the target fetal heart rate data; for example, you can collect the target fetal heart rate data for 5 seconds to obtain a target that can be played for 20 seconds. Melody file, that is, use a small amount of fetal heart rate data to play a longer tone. Therefore, in some possible implementations, the user end may discard some received fetal heart rate data.
为此,在图10的基础上,请参阅图11,图11示出本申请提供的音律播放方法的再一种示意性流程图,在执行步骤201-2之前,该音律播放方法还可以包括以下步骤:To this end, on the basis of FIG. 10, please refer to FIG. 11. FIG. 11 shows another schematic flowchart of the music playing method provided by the present application. Before step 201-2 is performed, the music playing method may further include The following steps:
步骤201-1,判断剩余播放时长是否小于第一阈值;当为是时,执行步骤201-2;当为否时,执行步骤201-3;Step 201-1, judge whether the remaining playing time is less than the first threshold; if yes, execute step 201-2; if no, execute step 201-3;
步骤201-2,将接收的胎心数据保存至第一队列;Step 201-2, save the received fetal heart rate data to the first queue;
步骤201-3,丢弃接收的胎心数据。Step 201-3, discard the received fetal heart rate data.
在一实施例中,用户端在播放音律文件时,可以记录音律文件的剩余播放时长;然后,每当接收到胎心数据时,用户端将记录的剩余播放时长与第一阈值相比较,当剩余播放时长小于第一阈值时,用户端则执行步骤201-2,将接收的胎心数据保存至第一队列; 反之,当剩余播放时长大于或等于第一阈值时,用户端则执行步骤201-3,丢弃接收的胎心数据。In one embodiment, the user terminal may record the remaining playing time of the music file when playing the music file; then, whenever the fetal heart rate data is received, the user terminal compares the recorded remaining playing time with the first threshold, when When the remaining playing time is less than the first threshold, the user terminal performs step 201-2 to save the received fetal heart rate data to the first queue; otherwise, when the remaining playing time is greater than or equal to the first threshold, the user terminal performs step 201 -3, discard the received fetal heart rate data.
比如,以上述目标胎心数据包括5个胎心值为例,假定第一阈值设定为5秒;每当用户端接收到胎心数据时,即判断音律文件的剩余播放时长是否小于5秒;若剩余播放时长小于5秒,则用户端将接收的胎心数据保存至第一队列;若剩余播放时长大于或等于5秒,则用户端丢弃接收的胎心数据。For example, taking the above target fetal heart rate data including 5 fetal heart rates as an example, assume that the first threshold is set to 5 seconds; whenever the user terminal receives the fetal heart rate data, it is judged whether the remaining playing time of the rhythm file is less than 5 seconds ; If the remaining playback time is less than 5 seconds, the user terminal saves the received fetal heart rate data to the first queue; if the remaining playback time is greater than or equal to 5 seconds, the user terminal discards the received fetal heart rate data.
另外,在例如用户端从服务器上下载胎心数据,或者是利用自身存储的胎心数据等应用场景中,作为另一种可能的实现方式,在图3的基础上,请参阅图12,图12示出本申请提供的音律播放方法的再一种示意性流程图,在执行步骤202之前,该音律播放方法还可以包括以下步骤:In addition, in application scenarios such as downloading fetal heart rate data from the server on the client side, or using its own stored fetal heart rate data, as another possible implementation method, refer to Figure 12 on the basis of Figure 3. 12 shows still another schematic flowchart of the music playing method provided by the present application. Before step 202 is performed, the music playing method may further include the following steps:
步骤201-6,将读取的历史胎心数据保存至第一队列,并更新数据个数;Step 201-6, save the read historical fetal heart rate data to the first queue, and update the number of data;
在一实施例中,用户端可以将自身存储的胎心数据,或者是将从服务器下载的胎心数据作为历史胎心数据;然后,用户端可以读取该历史胎心数据,按照时间序列,将读取的历史胎心数据保存至第一队列,并更新数据个数,其中,数据个数被配置为指示第一队列中保存的历史胎心数据的数量;比如,当数据个数为“4”时,表征第一队列中保存的历史胎心数据的个数为4个,即第一队列保存有4秒的胎心数据。In one embodiment, the user terminal can use the fetal heart rate data stored by itself or the fetal heart rate data downloaded from the server as historical fetal heart rate data; then, the user terminal can read the historical fetal heart rate data, and according to the time series, Save the read historical fetal heart rate data to the first queue, and update the number of data, where the number of data is configured to indicate the number of historical fetal heart rate data saved in the first queue; for example, when the number of data is " When it is 4", it means that the number of historical fetal heart rate data saved in the first queue is 4, that is, the first queue saves 4 seconds of fetal heart rate data.
于是,用户端可以监听数据个数,当该数据个数达到第二阈值时,用户端可以执行步骤202,并按照第二阈值读取第一队列中保存的历史胎心数据,以获得目标胎心数据,并重置第一队列以及数据个数。Therefore, the user end can monitor the number of data, and when the number of data reaches the second threshold, the user end can execute step 202 and read the historical fetal heart rate data stored in the first queue according to the second threshold to obtain the target fetus. Heart data, and reset the first queue and the number of data.
比如,假定设置第二阈值为“5”,当用户端监听数据个数达到“5”时,用户端可以读取“5”个第一队列中保存的历史胎心数据,从而将“5”个历史胎心数据作为目标胎心数据,然后清空第一队列,并重置数据个数为“0”。For example, assuming that the second threshold is set to "5", when the number of monitored data on the user end reaches "5", the user end can read "5" historical fetal heart rate data saved in the first queue, thereby setting "5" One historical fetal heart rate data is used as the target fetal heart rate data, then the first queue is cleared, and the number of data is reset to "0".
另外,在一些可能的实现方式中,用户还可以选择将连续播放的音律文件进行保存,以便用户可以进行分享或者是再次进行播放。In addition, in some possible implementation manners, the user can also choose to save the continuously played melody file, so that the user can share it or play it again.
因此,作为一种可能的实现方式,在图3的基础上,请参阅图13,图13示出本申请提供的音律播放方法的再一种示意性流程图,在执行步骤206之后,该音律播放方法还可以包括以下步骤:Therefore, as a possible implementation manner, on the basis of FIG. 3, please refer to FIG. 13. FIG. 13 shows still another schematic flowchart of the rhythm playing method provided in this application. The playing method may also include the following steps:
步骤208,将目标音律文件保存至第二队列;Step 208: Save the target melody file to the second queue;
步骤210,当接收到合并指令时,将第二队列中的所有音律文件进行合并,生成音频文件。Step 210: When the merge instruction is received, merge all the melody files in the second queue to generate an audio file.
在一实施例中,用户端可以设置有第二队列,该第二队列被配置为保存胎心数据对应的音律文件。In an embodiment, the user terminal may be provided with a second queue, and the second queue is configured to save the rhythm file corresponding to the fetal heart rate data.
为此,用户端在执行步骤206获得目标音律文件之后,用户端可以将目标音律文件保存至第二队列;并且,当用户端接收到合并指令时,用户端可以将第二队列中的所有音律文件进行合并,生成音频文件。For this reason, after the user terminal obtains the target melody file in step 206, the user terminal can save the target melody file to the second queue; and, when the user terminal receives the merge instruction, the user terminal can save all the melody files in the second queue. The files are merged to generate audio files.
比如,用户端可以将接收到的作曲结束指令作为合并指令,当接收到作曲结束指令时,用户端可以执行步骤210,将第二队列中的所有音律文件进行合并,生成音频文件,并将生成的音频文件保存在本地,或者是上传到云端服务器进行保存;或者是,当用户端利用历史胎心数据进行音律播放时,若用户端读取历史胎心数据结束,即遍历结束所有的胎心数据,用户端可以确定获得合并指令,从而执行步骤210。For example, the user end may use the received composition end instruction as a merge instruction. When receiving the composition end instruction, the user end may execute step 210 to merge all the rhythm files in the second queue to generate an audio file, and generate an audio file. The audio file of is saved locally, or uploaded to the cloud server for storage; or, when the user terminal uses historical fetal heart rate data for rhythm playback, if the user terminal finishes reading the historical fetal heart rate data, the traversal ends all the fetal heart rate According to the data, the user terminal can determine to obtain the merge instruction, and thus execute step 210.
在本申请所提供的实施例中,应该理解到,所揭露的方法,也可以通过其它的方式实现。以上所描述的方法实施例仅仅是示意性的,例如,附图中的流程图和框图显示了根据本申请的一些实施例的功能模块、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个可以实现规定的逻辑功能的可执行指令。In the embodiments provided in this application, it should be understood that the disclosed method may also be implemented in other ways. The method embodiments described above are merely illustrative. For example, the flowcharts and block diagrams in the drawings show the possible implementation architecture, functions, and functions of the functional modules, methods, and computer program products according to some embodiments of the present application. operate. In this regard, each block in the flowchart or block diagram may represent a module, program segment, or part of the code, and the module, program segment, or part of the code contains one or more options that can realize the specified logical function. Execute instructions.
也应当注意,在有些作为替换的实现方式中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。It should also be noted that in some alternative implementations, the functions marked in the block may also occur in a different order from the order marked in the drawings. For example, two consecutive blocks can actually be executed in parallel, or they can sometimes be executed in the reverse order, depending on the functions involved.
也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。It should also be noted that each block in the block diagram and/or flowchart, and the combination of the blocks in the block diagram and/or flowchart, can be implemented by a dedicated hardware-based system that performs the specified functions or actions Or it can be realized by a combination of dedicated hardware and computer instructions.
另外,在本申请一些实施例中的各功能模块可以集成在一起形成一个独立的部分,也可以是各个模块单独存在,也可以两个或两个以上模块集成形成一个独立的部分。In addition, the functional modules in some embodiments of the present application may be integrated together to form an independent part, or each module may exist alone, or two or more modules may be integrated to form an independent part.
所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present application essentially or the part that contributes to the existing technology or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: U disk, mobile hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.
并且,以上所述仅为本申请的一部分实施例而已,并不表示限制本申请的所有实现方式,对于本领域的技术人员来说,本申请可以有各种更改和变化。凡在本申请的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本申请的保护范围之内。Moreover, the above description is only a part of the embodiments of the present application, and does not mean to limit all the implementation manners of the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of this application shall be included in the protection scope of this application.
对于本领域技术人员而言,显然本申请不限于上述示范性实施例的细节,而且在不背离本申请的精神或基本特征的情况下,能够以其它的具体形式实现本申请。因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本申请的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化囊括在本申请内。不应将权利要求中的任何附图标记视为限制所涉及的权利要求。For those skilled in the art, it is obvious that the present application is not limited to the details of the foregoing exemplary embodiments, and the present application can be implemented in other specific forms without departing from the spirit or basic characteristics of the present application. Therefore, no matter from which point of view, the embodiments should be regarded as exemplary and non-limiting. The scope of this application is defined by the appended claims rather than the above description, and therefore it is intended to fall into the claims. All changes in the meaning and scope of the equivalent elements of are included in this application. Any reference signs in the claims should not be regarded as limiting the claims involved.
工业实用性Industrial applicability
本申请提供的一种音律播放方法、用户端及存储介质,通过获得目标胎心数据,并根据记录有多个胎心数据与多个音律文件的对应关系的音律配置规则,获得与目标胎心数据对应的目标音律文件,从而播放该目标音律文件,相比于现有技术,将目标胎心数据转换为用户可以感知的音律,从而增强用户的感知,提升互动效果。According to a rhythm playing method, user terminal, and storage medium provided by the present application, the target fetal heart rate data is obtained, and the corresponding relationship between multiple fetal heart rate data and multiple rhythm files is recorded according to the rhythm configuration rule to obtain the target fetal heart rate. The target melody file corresponding to the data is played, and compared with the prior art, the target fetal heart rate data is converted into a melody that the user can perceive, thereby enhancing the user's perception and enhancing the interactive effect.
并且,用户端采用不同的副本文件对胎心数据中包含有胎动数据以及不包含有胎动数据的情况进行区分,使得用户可以通过不同的副本文件区别采集对应的胎心数据时,胎儿是否有发生胎动,进而增强用户感知,提升互动效果。In addition, the user terminal uses different duplicate files to distinguish between the fetal movement data and the fetal movement data not contained in the fetal heart rate data, so that the user can distinguish whether the fetus has occurred when the corresponding fetal heart rate data is collected through different duplicate files. Fetal movement, thereby enhancing user perception and enhancing interactive effects.

Claims (18)

  1. 一种音律播放方法,其特征在于,所述方法包括:A method for playing music, characterized in that the method includes:
    获得目标胎心数据;Obtain target fetal heart rate data;
    根据音律配置规则,获得与所述目标胎心数据对应的目标音律文件;其中,所述音律配置规则记录有多个胎心数据与多个音律文件的对应关系;Obtain a target rhythm file corresponding to the target fetal heart rate data according to the rhythm configuration rule; wherein the rhythm configuration rule records the correspondence between multiple fetal heart rate data and multiple rhythm files;
    播放所述目标音律文件。Playing the target melody file.
  2. 如权利要求1所述的方法,其特征在于,所述目标胎心数据包括多个胎心值;所述音律配置规则记录有多个胎心范围与多个旋律文件的对应关系;The method according to claim 1, wherein the target fetal heart rate data includes multiple fetal heart rate values; the rhythm configuration rule records the correspondence between multiple fetal heart rate ranges and multiple melody files;
    根据音律配置规则,获得与所述目标胎心数据对应的目标音律文件的步骤,包括:According to the rhythm configuration rule, the step of obtaining the target rhythm file corresponding to the target fetal heart rate data includes:
    获得所述目标胎心数据包括的所述多个胎心值的平均胎心值;Obtaining an average fetal heart rate value of the multiple fetal heart rate values included in the target fetal heart rate data;
    将所述音律配置规则中,与目标胎心范围对应的旋律文件确定为所述目标音律文件;其中,所述目标胎心范围为所述多个胎心范围中所述平均胎心值所在的胎心范围。Determine the melody file corresponding to the target fetal heart rate range in the rhythm configuration rule as the target rhythm file; wherein, the target fetal heart rate range is where the average fetal heart rate value is located in the plurality of fetal heart rate ranges Fetal heart rate range.
  3. 如权利要求2所述的方法,其特征在于,每一旋律文件包括第一副本文件和第二副本文件;3. The method of claim 2, wherein each melody file includes a first copy file and a second copy file;
    将所述音律配置规则中,与目标胎心范围对应的旋律文件确定为所述目标音律文件的步骤,包括:The step of determining the melody file corresponding to the target fetal heart rate range in the melody configuration rule as the target melody file includes:
    判断所述目标胎心数据中是否包含胎动标识;Judging whether the target fetal heart rate data includes a fetal movement identifier;
    当所述目标胎心数据中不包含胎动标识时,将所述目标胎心范围对应的旋律文件所包括的第一副本文件,确定为所述目标音律文件;When the target fetal heart rate data does not include a fetal movement identifier, determining the first copy file included in the melody file corresponding to the target fetal heart rate range as the target melody file;
    当所述目标胎心数据中包含胎动标识时,将所述目标胎心范围对应的旋律文件所包括的第二副本文件,确定为所述目标音律文件。When the target fetal heart rate data includes a fetal movement identifier, the second copy file included in the melody file corresponding to the target fetal heart rate range is determined as the target melody file.
  4. 如权利要求2或3所述的方法,其特征在于,每一旋律文件包括多个子旋律文件;The method according to claim 2 or 3, wherein each melody file includes a plurality of sub-melody files;
    将所述音律配置规则中,与目标胎心范围对应的旋律文件确定为所述目标音律文件的步骤,包括:The step of determining the melody file corresponding to the target fetal heart rate range in the melody configuration rule as the target melody file includes:
    在所述目标胎心范围对应的旋律文件所包括的多个子旋律文件中,确定出所述目标音律文件。The target melody file is determined among multiple sub-melody files included in the melody file corresponding to the target fetal heart rate range.
  5. 如权利要求1所述的方法,其特征在于,所述目标胎心数据包括多个胎心值;所述音律配置规则记录有多个胎心范围与多个音符文件的对应关系;The method of claim 1, wherein the target fetal heart rate data includes multiple fetal heart rate values; the rhythm configuration rule records the correspondence between multiple fetal heart rate ranges and multiple note files;
    根据音律配置规则,获得与所述目标胎心数据对应的目标音律文件的步骤,包括:According to the rhythm configuration rule, the step of obtaining the target rhythm file corresponding to the target fetal heart rate data includes:
    获得所述目标胎心数据包括的所述多个胎心值的平均胎心值;Obtaining an average fetal heart rate value of the multiple fetal heart rate values included in the target fetal heart rate data;
    将所述音律配置规则中,与目标胎心范围对应的音符文件确定为所述目标音律文 件;其中,所述目标胎心范围为所述多个胎心范围中所述平均胎心值所在的胎心范围。In the rhythm configuration rule, the note file corresponding to the target fetal heart rate range is determined as the target rhythm file; wherein, the target fetal heart rate range is where the average fetal heart rate value is located in the multiple fetal heart rate ranges Fetal heart rate range.
  6. 如权利要求5所述的方法,其特征在于,每一音符文件包括多个子音符文件;The method of claim 5, wherein each note file includes a plurality of sub-note files;
    将所述音律配置规则中,与目标胎心范围对应的音符文件确定为所述目标音律文件的步骤,包括:The step of determining the note file corresponding to the target fetal heart rate range in the rhythm configuration rule as the target rhythm file includes:
    在所述目标胎心范围对应的音符文件所包括的多个子音符文件中,确定出所述目标音律文件。The target melody file is determined among the multiple sub-note files included in the note file corresponding to the target fetal heart rate range.
  7. 如权利要求6所述的方法,其特征在于,每一子音符文件对应有配置参数;8. The method of claim 6, wherein each sub-note file corresponds to configuration parameters;
    在所述目标胎心范围对应的音符文件所包括的多个子音符文件中,确定出所述目标音律文件的步骤,包括:Among the multiple sub-note files included in the note file corresponding to the target fetal heart rate range, the step of determining the target rhythm file includes:
    将所述目标胎心范围对应的音符文件所包括的多个子音符文件中,对应的配置参数与设定的配置参数两者的差值在设定的范围内的目标子音符文件,确定为所述目标音律文件。Among the multiple sub-note files included in the note file corresponding to the target fetal heart rate range, the target sub-note file whose difference between the corresponding configuration parameter and the set configuration parameter is within the set range is determined as the target sub-note file Describe the target melody file.
  8. 如权利要求7所述的方法,其特征在于,所述方法还包括:8. The method of claim 7, wherein the method further comprises:
    根据所述目标音律文件的配置参数,更新所述设定的配置参数。Update the set configuration parameters according to the configuration parameters of the target melody file.
  9. 如权利要求5-8中任一项所述的方法,其特征在于,在播放所述目标音律文件的步骤之前,所述方法还包括:8. The method according to any one of claims 5-8, characterized in that, before the step of playing the target melody file, the method further comprises:
    当所述目标胎心数据中包含有胎动标识时,调整所述目标音律文件的音阶;When the target fetal heart rate data contains a fetal movement identifier, adjusting the scale of the target rhythm file;
    播放所述目标音律文件的步骤,包括:The step of playing the target melody file includes:
    播放调整音阶后的目标音律文件。Play the target temperament file after adjusting the scale.
  10. 如权利要求9所述的方法,其特征在于,调整所述目标音律文件的音阶的步骤,包括:9. The method of claim 9, wherein the step of adjusting the scale of the target melody file comprises:
    升高所述目标音律文件最后一个音的音阶。Raise the scale of the last note of the target melody file.
  11. 如权利要求9所述的方法,其特征在于,调整所述目标音律文件的音阶的步骤,包括:9. The method of claim 9, wherein the step of adjusting the scale of the target melody file comprises:
    在所述目标音律文件最后一个音中加入胎动标识音。The fetal movement identification sound is added to the last sound of the target melody file.
  12. 如权利要求1-11中任一项所述的方法,其特征在于,在根据音律配置规则,获得与所述目标胎心数据对应的目标音律文件的步骤之前,所述方法还包括:The method according to any one of claims 1-11, wherein before the step of obtaining a target rhythm file corresponding to the target fetal heart rate data according to a rhythm configuration rule, the method further comprises:
    在音色类型策略中确定出所述音律配置规则;其中,所述音色类型策略中包括多条配置规则。The timbre configuration rule is determined in the timbre type strategy; wherein, the timbre type strategy includes multiple configuration rules.
  13. 如权利要求1-12中任一项所述的方法,其特征在于,在获得目标胎心数据的步骤之前,所述方法还包括:The method according to any one of claims 1-12, wherein before the step of obtaining target fetal heart rate data, the method further comprises:
    将接收的胎心数据保存至第一队列;Save the received fetal heart rate data to the first queue;
    获得目标胎心数据的步骤,包括:The steps to obtain target fetal heart rate data include:
    按照时间顺序读取所述第一队列,以获得所述目标胎心数据。The first queue is read in chronological order to obtain the target fetal heart rate data.
  14. 如权利要求13所述的方法,其特征在于,在将接收的胎心数据保存至第一队列的步骤之前,所述方法还包括:The method of claim 13, wherein before the step of saving the received fetal heart rate data to the first queue, the method further comprises:
    判断剩余播放时长是否小于第一阈值;Determine whether the remaining playing time is less than the first threshold;
    当为是时,执行将接收的胎心数据保存至第一队列的步骤。When it is yes, execute the step of saving the received fetal heart rate data to the first queue.
  15. 如权利要求1-12中任一项所述的方法,其特征在于,在获得目标胎心数据的步骤之前,所述方法还包括:The method according to any one of claims 1-12, wherein before the step of obtaining target fetal heart rate data, the method further comprises:
    将读取的历史胎心数据保存至第一队列,并更新数据个数;其中,所述数据个数被配置为指示所述第一队列中保存的历史胎心数据的数量;Save the read historical fetal heart rate data to the first queue, and update the number of data; wherein the number of data is configured to indicate the number of historical fetal heart rate data stored in the first queue;
    当所述数据个数达到第二阈值时,获得目标胎心数据的步骤,包括:When the number of data reaches the second threshold, the step of obtaining target fetal heart rate data includes:
    按照所述第二阈值读取所述第一队列中保存的历史胎心数据,以获得所述目标胎心数据,并重置所述第一队列以及所述数据个数。Read the historical fetal heart rate data stored in the first queue according to the second threshold to obtain the target fetal heart rate data, and reset the first queue and the number of data.
  16. 如权利要求1-15中任一项所述的方法,其特征在于,在音律文件库中,获得与所述目标胎心数据对应的目标音律文件的步骤之后,所述方法还包括:15. The method according to any one of claims 1-15, wherein, after the step of obtaining a target melody file corresponding to the target fetal heart rate data in the melody file library, the method further comprises:
    将所述目标音律文件保存至第二队列;其中,所述第二队列被配置为保存胎心数据对应的音律文件;Saving the target rhythm file to a second queue; wherein the second queue is configured to save the rhythm file corresponding to the fetal heart rate data;
    当接收到合并指令时,将所述第二队列中的所有音律文件进行合并,生成音频文件。When the merge instruction is received, all the melody files in the second queue are merged to generate an audio file.
  17. 一种用户端,其特征在于,包括:A user terminal, characterized in that it includes:
    存储器,被配置为存储一个或多个程序;The memory is configured to store one or more programs;
    处理器;processor;
    当所述一个或多个程序被所述处理器执行时,实现如权利要求1-16中任一项所述的方法。When the one or more programs are executed by the processor, the method according to any one of claims 1-16 is realized.
  18. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该计算机程序被处理器执行时实现如权利要求1-16中任一项所述的方法。A computer-readable storage medium with a computer program stored thereon, wherein the computer program implements the method according to any one of claims 1-16 when the computer program is executed by a processor.
PCT/CN2020/089653 2020-05-11 2020-05-11 Melody playing method, and client and storage medium WO2021226800A1 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
PCT/CN2020/089653 WO2021226800A1 (en) 2020-05-11 2020-05-11 Melody playing method, and client and storage medium
CN202080100694.XA CN115515482A (en) 2020-05-11 2020-05-11 Temperament playing method, user terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/089653 WO2021226800A1 (en) 2020-05-11 2020-05-11 Melody playing method, and client and storage medium

Publications (1)

Publication Number Publication Date
WO2021226800A1 true WO2021226800A1 (en) 2021-11-18

Family

ID=78526103

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/089653 WO2021226800A1 (en) 2020-05-11 2020-05-11 Melody playing method, and client and storage medium

Country Status (2)

Country Link
CN (1) CN115515482A (en)
WO (1) WO2021226800A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117860259B (en) * 2022-12-06 2024-07-09 北京中医药大学 Electrocardiogram data characteristic analysis method and device based on melody analysis

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101038705A (en) * 2006-03-18 2007-09-19 北京华旗资讯数码科技有限公司 Fetal education machine
US20150313531A1 (en) * 2009-04-22 2015-11-05 Joe Paul Tupin, Jr. Fetal monitoring device and methods
CN107174238A (en) * 2017-05-19 2017-09-19 深圳睿京科技有限公司 The processing method and processing device of physiological data
CN109549641A (en) * 2017-09-27 2019-04-02 深圳市理邦精密仪器股份有限公司 Fetal heart monitoring method and device, terminal, computer readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
NL1011226C1 (en) * 1999-02-05 2000-08-08 Mike De Jongh Portable equipment to play music to unborn child and monitor and record its response
CN104133551B (en) * 2014-07-15 2018-05-11 惠州Tcl移动通信有限公司 Change the method and mobile terminal of the music style of song according to heart rate value
CN107007275A (en) * 2017-03-31 2017-08-04 上海斐讯数据通信技术有限公司 A kind of Intelligent worn device and its rhythm of the heart method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101038705A (en) * 2006-03-18 2007-09-19 北京华旗资讯数码科技有限公司 Fetal education machine
US20150313531A1 (en) * 2009-04-22 2015-11-05 Joe Paul Tupin, Jr. Fetal monitoring device and methods
CN107174238A (en) * 2017-05-19 2017-09-19 深圳睿京科技有限公司 The processing method and processing device of physiological data
CN109549641A (en) * 2017-09-27 2019-04-02 深圳市理邦精密仪器股份有限公司 Fetal heart monitoring method and device, terminal, computer readable storage medium

Also Published As

Publication number Publication date
CN115515482A (en) 2022-12-23

Similar Documents

Publication Publication Date Title
US20200313782A1 (en) Personalized real-time audio generation based on user physiological response
JP2007322598A (en) Musical piece classification device, musical piece classification method and musical piece classification program
EP1798643A2 (en) Taste profile production apparatus, taste profile production method and profile production program
CN112382257A (en) Audio processing method, device, equipment and medium
JP6690181B2 (en) Musical sound evaluation device and evaluation reference generation device
JP6759545B2 (en) Evaluation device and program
US11074897B2 (en) Method and apparatus for training adaptation quality evaluation model, and method and apparatus for evaluating adaptation quality
CN111602193A (en) Information processing method and apparatus for processing performance of music
JP6729515B2 (en) Music analysis method, music analysis device and program
CN109410972B (en) Method, device and storage medium for generating sound effect parameters
WO2021226800A1 (en) Melody playing method, and client and storage medium
US20220208175A1 (en) Information processing method, estimation model construction method, information processing device, and estimation model constructing device
KR20160056104A (en) Analyzing Device and Method for User&#39;s Voice Tone
JP6102076B2 (en) Evaluation device
JP6288197B2 (en) Evaluation apparatus and program
JP5712669B2 (en) Singing voice evaluation device
CN114402389A (en) Sound analysis method, sound analysis device, and program
JP6035112B2 (en) A voice evaluation device for evaluating singing by the shout technique
JP2019101148A (en) Communication karaoke system
JP4483561B2 (en) Acoustic signal analysis apparatus, acoustic signal analysis method, and acoustic signal analysis program
CN113168824B (en) Acoustic analysis method, acoustic analysis device, and model construction method
CN116631359A (en) Music generation method, device, computer readable medium and electronic equipment
CN114299899A (en) Target music generation method, device, terminal and storage medium
JP5585320B2 (en) Singing voice evaluation device
Stoller et al. Intuitive and efficient computer-aided music rearrangement with optimised processing of audio transitions

Legal Events

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

Ref document number: 20935553

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20935553

Country of ref document: EP

Kind code of ref document: A1