CN115390673A - Vibration data generation method and device, electronic equipment and storage medium - Google Patents

Vibration data generation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN115390673A
CN115390673A CN202211109390.7A CN202211109390A CN115390673A CN 115390673 A CN115390673 A CN 115390673A CN 202211109390 A CN202211109390 A CN 202211109390A CN 115390673 A CN115390673 A CN 115390673A
Authority
CN
China
Prior art keywords
parameter
variation
frequency
intensity
vibration effect
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202211109390.7A
Other languages
Chinese (zh)
Inventor
柳慧芬
施韵
明幼林
何亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Wuhan Silicon Integrated Co Ltd
Original Assignee
Wuhan Silicon Integrated Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Silicon Integrated Co Ltd filed Critical Wuhan Silicon Integrated Co Ltd
Priority to CN202211109390.7A priority Critical patent/CN115390673A/en
Publication of CN115390673A publication Critical patent/CN115390673A/en
Priority to PCT/CN2023/117968 priority patent/WO2024055924A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/016Input arrangements with force or tactile feedback as computer generated output to the user
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Apparatuses For Generation Of Mechanical Vibrations (AREA)

Abstract

The invention relates to a method and a device for generating vibration data, an electronic device and a storage medium. A method of generating vibration data may comprise: acquiring a first type of description parameters defining a boundary condition of a vibration effect, wherein the first type of description parameters comprise a time parameter, a frequency parameter and an intensity parameter of the vibration effect; acquiring a second type of description parameters of the vibration effect, wherein the second type of description parameters comprise one or more of time variation parameters, frequency variation parameters and intensity variation parameters; determining a duration of the vibration effect and a frequency variation and an intensity variation within the duration based on the first type of description parameter and the second type of description parameter; and generating vibration data representing the vibration effect based on the duration of the vibration effect and the frequency variation and intensity variation over the duration.

Description

Vibration data generation method and device, electronic equipment and storage medium
Technical Field
The invention relates to a method and a device for generating vibration data, an electronic device and a storage medium.
Background
Currently, many electronic devices such as cell phones, game pads, virtual Reality (VR) devices, etc. are equipped with a vibration motor to provide a vibration feedback function. The vibration motor is driven by a specific vibration signal to output a desired vibration effect. The vibration signal may be generated based on vibration data stored in advance in a vibration effect library, or may be generated in real time based on external vibration data provided by an application program. For example, when music or video is played, a vibration signal corresponding to the music or video may be generated in real time to improve the audiovisual experience of the user.
Disclosure of Invention
The present invention generally provides a method and an apparatus for generating vibration data, an electronic device, and a storage medium, which are capable of generating vibration data in which frequency and intensity change with time, so that the change of a vibration effect is richer, finer, and smoother, thereby improving user experience.
According to an embodiment, a method of generating vibration data may include: acquiring a first type of description parameter defining a boundary condition of a vibration effect, wherein the first type of description parameter comprises a time parameter, a frequency parameter and an intensity parameter of the vibration effect; acquiring a second type of description parameters of the vibration effect, wherein the second type of description parameters comprise one or more of time variation parameters, frequency variation parameters and intensity variation parameters; determining a duration of the vibration effect and a frequency variation and an intensity variation within the duration based on the first type of description parameter and the second type of description parameter; and generating vibration data representing the vibration effect based on the duration of the vibration effect and the frequency change and intensity change over the duration.
In some embodiments, the second class of description parameters is decorrelated from the first class of description parameters.
In some embodiments, the time varying parameter describes a segmentation, extension or shortening of the duration of the vibration effect; the frequency variation parameter describes a variation curve of the frequency of the vibration effect during a corresponding duration or time segment; the intensity variation parameter describes a variation curve of the intensity of the vibration effect during a corresponding duration or time segment.
In some embodiments, the variation of the frequency and the variation of the intensity each comprise one of a linear variation, a quadratic variation, and an exponential variation.
In some embodiments, the frequency variation parameter describes mixing or frequency-varying the frequency of the vibration effect; the intensity variation parameter describes a linearity or curvature of an intensity variation of the vibration effect.
In some embodiments, the variation of the frequency of the vibration effect over the duration of time depends on at least one of the intensity parameter and the intensity variation parameter in addition to the frequency parameter and the frequency variation parameter.
In some embodiments, the variation in intensity of the vibratory effect over the duration is dependent on at least one of the frequency parameter and the frequency variation parameter in addition to the intensity parameter and the intensity variation parameter.
In some embodiments, generating vibration data representing the vibration effect comprises: based on predetermined granularities, a sequence of time parameters, frequency parameters and intensity parameters corresponding to respective granularities during a time duration or time segment of the vibration effect is generated.
In some embodiments, the predetermined granularity is an integer multiple of half a period of the vibration when the vibration data is used for a structured drive signal waveform design. The predetermined granularity is a time interval corresponding to a code rate when the vibration data is used for unstructured drive signal waveform design.
According to an embodiment, an apparatus for generating vibration data may comprise: a first acquisition unit, configured to acquire a first type of description parameter that defines a boundary condition of a vibration effect, where the first type of description parameter includes a duration, a frequency, and an intensity of the vibration effect; a second obtaining unit, configured to obtain a second type of description parameter of the vibration effect, where the second type of description parameter includes one or more of a time variation parameter, a frequency variation parameter, and an intensity variation parameter; a determination unit for determining a duration of the vibration effect and a frequency variation and an intensity variation within the duration based on the first type of description parameter and the second type of description parameter; and a generation unit for generating vibration data representing the vibration effect based on a duration of the vibration effect and a change in frequency and a change in intensity within the duration.
In some embodiments, the apparatus may further include other means for performing the vibration data generation method described above.
According to an embodiment, an electronic device may include: a processor; and a memory having instructions stored therein, which when executed by the processor, cause the electronic device to perform the above-described method for generating vibration data.
According to an embodiment, a readable storage medium is provided, having stored therein instructions, which when executed by a processor, cause the processor to perform the above-described method for generating vibration data.
The above and other features and advantages of the present invention will become apparent from the following description of exemplary embodiments, which is to be read in connection with the accompanying drawings.
Drawings
Fig. 1 shows a schematic graph of a vibration signal.
FIG. 2 shows a flow diagram of a vibration data generation method according to an embodiment of the invention.
Fig. 3 shows a schematic representation of the boundary conditions of a vibration effect defined by description parameters of the first type according to an embodiment of the invention.
Fig. 4 shows a schematic graph of the frequency and intensity of a vibration effect as a function of time as defined by a first type of descriptive parameter and a second type of descriptive parameter together, according to an embodiment of the invention.
FIG. 5 shows a schematic graph of vibration data generated according to an embodiment of the present invention.
FIG. 6 shows a functional block diagram of an apparatus for generating vibration data according to an embodiment of the present invention.
Fig. 7 shows a block diagram of an electronic device for generating vibration data according to an embodiment of the present invention.
Detailed Description
Some exemplary embodiments of the present invention will be described below with reference to the accompanying drawings. The following description provides specific details for a clear and thorough description of the exemplary embodiments. It should be understood, however, that the invention is not limited to the specific details of these exemplary embodiments. Rather, embodiments of the invention may be practiced without these specific details or with other alternatives without departing from the spirit and principles of the invention as defined by the claims.
In practical applications, it is desirable to be able to provide different vibration effects in response to different events. Fig. 1 shows an example of a vibration signal representing a vibration effect, which comprises a plurality of vibration units (5 vibration units are shown in fig. 1), which are connected in turn to form a complete vibration effect. The vibration units may be understood as the basic (minimal) units of vibration effect, each of which may be defined by a frequency F, an intensity I and a time T. The frequency F is the number of complete vibrations (corresponding to 2 pi phase change) that the vibration motor completes in a unit time, which indicates how fast the vibrations are; the intensity I represents the intensity of vibration, which can be represented by vibration attribute data such as driving current or voltage, displacement, speed, acceleration and the like according to the mapping relation; the time T may include a start time of the vibration unit, which may be a relative start time or an absolute start time, and a duration of the vibration unit. Therefore, by defining the respective vibration units using the frequency parameter F, the intensity parameter I, and the time parameter T, a desired vibration effect can be obtained.
However, the vibration effect thus defined has some disadvantages. As shown in fig. 1, the vibration signals in each vibration unit have the same frequency F and intensity I, and the outline thereof is substantially rectangular in shape. On one hand, the vibration effect in each vibration unit is single and flexible change is lacked; on the other hand, the frequency F and the intensity I between adjacent vibration units change more abruptly. Therefore, the vibration effect with rich vibration sense and fine and smooth change is difficult to generate, and the user experience is poor.
Exemplary embodiments of the present invention provide a vibration data generation method, apparatus, electronic device, and storage medium, which are capable of generating more complex vibration data, thereby providing a richer vibration sensation design. In the exemplary embodiment of the present invention, in addition to the traditional parameters describing frequency, intensity and time, additional parameters are provided to describe the variation of time parameters and the variation curve of frequency and intensity with time, so that based on the description parameters of each vibration unit, vibration data with the variation of frequency and intensity with time can be generated, the variation of the generated vibration effect is richer and finer, and the variation between the vibration units is smoother, thereby improving the user experience.
Fig. 2 shows a flow diagram of a vibration data generation method 100 according to an embodiment of the invention, which method 100 may be performed at an electronic device providing vibration feedback functionality, examples of such electronic devices including, but not limited to, cell phones, portable media players, personal digital assistants, game pads, virtual Reality (VR) devices, wearable devices, and the like.
Referring to fig. 2, at step 110, a first type of descriptive parameter defining a boundary condition for a vibration effect is obtained. In the present application, the first type of describing parameters are the traditional ones describing the time T, frequency F and intensity I of the vibration effect. In some embodiments, the vibration effect may be represented by a plurality of consecutive identical or different vibration units, each of which may be defined by a time parameter T, a frequency parameter F and an intensity parameter I. The time parameter T may define a start time of the vibration unit, which may be a relative start time or an absolute start time, and a duration of the vibration unit, which may be a duration length, or may be an end time point of the vibration unit. The frequency parameter F is the number of complete oscillations (corresponding to 2 pi phase change) that the oscillation motor completes in a unit time, which may indicate how fast the oscillations are. The intensity parameter I represents the intensity of the vibration, which can be represented by vibration attribute data such as driving current or voltage, displacement amplitude, velocity, acceleration, and the like, depending on the mapping relationship.
The first type of description parameters mentioned above, i.e. the time parameter T, the frequency parameter F and the intensity parameter I, define the boundary conditions of the vibration effect, an example of which is shown in fig. 3. FIG. 3 schematically shows three vibration units, wherein the start and stop times of the first vibration unit are T 1 And T 2 Starting and stopping frequencies are respectively F 1 And F 2 The starting and stopping strengths are respectively I 1 And I 2 . For simplicity, the start-stop time, frequency and intensity of the last two vibratory units are not labeled in FIG. 3. It will be appreciated that in some embodiments, the first type of descriptive parameter for each vibratory unit may include a start-stop time, a start-stop frequency, and a start-stop intensity; or in other embodiments, the starting time, frequency and intensity of the next vibration unit may be used as the ending time, frequency and intensity of the previous vibration unit, so that each vibration unit may be defined by only one time parameter T, frequency parameter F and intensity parameter I, and the boundary condition of the vibration effect in the current vibration unit is determined by combining the first type description parameters of the next vibration unit. In the example shown in fig. 3, it can be considered that the vibration frequency and intensity of each vibration unit vary linearly between the start-stop frequency and the start-stop intensity, respectively, during the duration of the vibration unit.
It is to be understood that the first category of descriptive parameters is not limited to any particular form of expression. For example, the first type of description parameter may be a relative value, an absolute value, or a joint expression. For example, the time parameter (100, 300) may indicate a relative start time of 100ms before starting and a duration of 300ms. For example, the frequency parameter 160 may represent a frequency of 160Hz; the-50 frequency parameter may represent a shift from the frequency f0 to-50 Hz, dynamically calculated as (f 0-50) Hz, where f0 is the resonant frequency of the vibration motor; the frequency parameter (75, 20) may represent (75 + 20) Hz or (f 0+75 + 20%) Hz. Alternatively, the frequency parameters (160, -50) may indicate a starting frequency of 160Hz and an ending frequency of 160-50= frequency110Hz. Moreover, the first description parameters may be associated with each other. For example, the intensity parameter 100 may represent dt x 100% function (F), where dt is a preset vibration displacement, and function (F) represents a function of frequency F, where frequency F may be the starting frequency F of the vibration unit 1 End frequency F 2 Or average frequency (F) 1 +F 2 ) And/2, etc. It will be appreciated that in an exemplary embodiment, the first type of descriptive parameter may characterize the time, frequency, and intensity of the vibratory unit in any predetermined expression.
In step 120, a second type of descriptive parameter of the vibration effect may be obtained, which describes a variation of one or more parameters of the first type of descriptive parameter. For example, the second type of descriptive parameter may describe a variation of one or more of a time parameter T, a frequency parameter F and an intensity parameter I of the vibration effect. Examples of the second type of description parameter may include a time-varying parameter (r) 1 ,r 2 ,...,r t ) Frequency variation parameter (p) 1 ,p 2 ,...,p f ) And an intensity variation parameter (q) 1 ,q 2 ,...,q i ) One or more of the above. In some embodiments of the invention, the second type of descriptive parameter is decorrelated (i.e. decorrelated or not) from the first type of descriptive parameter, i.e. the value of the second type of descriptive parameter is not dependent on the value of any of the above-mentioned first type of descriptive parameters, but the second type of descriptive parameter may be used together with the first type of descriptive parameter in a predetermined manner or rule to determine a change in the first type of descriptive parameter, as will be described in further detail below. On the other hand, similar to the first category of descriptive parameters discussed above, the second category of descriptive parameters may be related to each other, e.g., the intensity variation parameter may be used together with the time variation parameter and/or the frequency variation parameter to determine the intensity variation of the vibration effect, which will also be described in further detail below.
In some embodiments, the time varying parameter (r) 1 ,r 2 ,...,r t ) May be used to map the duration T of the vibratory unit (e.g., from T as shown in fig. 3) 1 To T 2 ) Further subdivided into segments, describing the time of each segmentLength or percentage of the entire duration of the vibration unit; or may be used to extend or shorten the duration T of the vibratory unit, e.g., to describe the length or percentage of time extended or shortened, etc. It can be understood that the time varying parameter (r) 1 ,r 2 ,...,r t ) When the duration T of the vibration unit is segmented, the start-stop frequency and the start-stop intensity of each segment can be calculated from the linear variation of the frequency and the intensity shown in fig. 3. Not limited to the examples described herein, the time varying parameter (r) 1 ,r 2 ,...,r t ) The variation of the duration T of the vibration unit may be described in various ways.
In some embodiments, the frequency variation parameter (p) 1 ,p 2 ,...,p f ) It may be described during the duration of the vibration effect (e.g. the start time T) 1 To the end time T 2 Or a time duration after an extension or a shortening according to the time variation parameter) or a time segment period (e.g. a time segment period determined according to the time variation parameter). In some embodiments, the frequency variation parameter (p) 1 ,p 2 ,...,p f ) May indicate a start-stop frequency, e.g., F, determined based on a frequency parameter 1 And F 2 Performing mixing processes, e.g. of frequency F 1 Decreases in a linear, quadratic or exponential manner with time, frequency F 2 Increases in a linear, quadratic or exponential manner with time. Or, a frequency variation parameter (p) 1 ,p 2 ,...,p f ) May indicate a start-stop frequency, e.g., F, determined based on a frequency parameter 1 And F 2 With frequency conversion, e.g. from F 1 Linearly, quadratic or exponentially varying to frequency F 2 . Frequency variation parameter (p) 1 ,p 2 ,...,p f ) Various frequency variation curve forms may be defined, for example one parameter field may indicate the selection of a desired function from several predefined functions representing the curve form, and furthermore one or more parameter fields may indicate the values of one or more variables for the function. Also for example, frequencyVariation parameter (p) 1 ,p 2 ,...,p f ) The slope of the frequency curve can be determined at a plurality of sampling points, which are connected to one another with the determined slope to form a complete frequency curve. Not limited to the examples described herein, the frequency variation parameter (p) 1 ,p 2 ,...,p f ) The various curves of the frequency F of the vibration unit can be described in various ways.
In some embodiments, the intensity variation parameter (q) 1 ,q 2 ,...,q i ) It may be described during the duration of the vibration effect (e.g. the start time T) 1 To the end time T 2 Or a time duration that is extended or shortened in accordance with a time variation parameter) or a time segment duration (e.g., a time segment duration determined in accordance with a time variation parameter). It is to be understood that the vibration intensity may be represented by any attribute parameter such as a driving current or voltage of the vibration motor, displacement, speed, acceleration, etc., which may indicate the intensity of the vibration. In some embodiments, the intensity variation parameter (q) 1 ,q 2 ,...,q i ) May indicate a start-stop intensity, e.g., I, determined based on an intensity parameter 1 And I 2 In between, e.g. the vibration intensity may be in the form of a linear, quadratic or exponential variation curve from the intensity I 1 Change to I 2 . In some exemplary embodiments, the intensity variation parameter (q) 1 ,q 2 ,...,q i ) May indicate that a desired function is selected from a number of predefined functions representing a curved form, and furthermore one or more parameter fields may indicate the values of one or more variables for that function. In other implementations, the intensity variation parameter (q) 1 ,q 2 ,...,q i ) The linearity or curvature of the intensity profile can be given at a plurality of sampling points, which are connected to one another according to the given linearity or curvature to form a complete intensity profile. Not limited to the examples described herein, the intensity variation parameter (q) 1 ,q 2 ,...,q i ) The intensity I of the vibration unit can be described in various waysVarious change curves.
Although the above describes the operation of obtaining the first-type description parameters and the second-type description parameters in separate steps 110 and 120, it should be understood that these parameters may be obtained together in the same step. In addition, the first-type description parameters and the second-type description parameters can be obtained from a pre-stored vibration effect library, or can be provided by a running application program in real time, or obtained by processing data provided by the application program in real time.
With continued reference to fig. 2, at step 130, the duration of the vibration effect and the frequency and intensity variations within the duration are determined based on the first and second type descriptive parameters. As described above, the second-type description parameter describes the variation of the first-type description parameter, and therefore the final vibration effect parameter can be determined according to the preset mapping relationship based on the first-type description parameter and the second-type description parameter. As previously mentioned, in the preset mapping relationship, the second class description parameters may be related to each other, and an example of the preset mapping relationship is described below in a functional form.
As an example, the duration T of the vibration unit may be determined according to the following equation 1:
T=functionT[F 1 ,F 2 ,functiontp(p 1 ,p 2 ,...,p f ),I 1 ,I 2 ,functionti(q 1 ,q 2 ,...,q i ),T 1 ,T 2 ,functiontt(r 1 ,r 2 ,...,r t )]equation (1).
In the above equation 1, the function funtionantp (p) 1 ,p 2 ,...,p f )、functionti(q 1 ,q 2 ,...,q i ) And functiontt (r) 1 ,r 2 ,...,r t ) Respectively representing a frequency variation parameter (p) 1 ,p 2 ,...,p f ) Intensity variation parameter (q) 1 ,q 2 ,...,q i ) And a time variation parameter (r) 1 ,r 2 ,...,r t ) The effect on the duration of the vibration effect. In some embodiments, the function may be applied tontp(p 1 ,p 2 ,...,p f ) And functinti (q) 1 ,q 2 ,...,q i ) Set to 0 or other flag value, indicates that the time parameter is not correlated to frequency variations and intensity variations. In some embodiments, the time varying parameter (r) 1 ,r 2 ,...,r t ) Function functiont (r) when it is null or its value is 0 1 ,r 2 ,...,r t ) May be 0 or other flag value, and further, the value of function may be set to 1 or other flag value, which indicates that the time parameter has not been changed under the boundary condition determined by the first-type description parameter. Parameter (r) as a function of time 1 ,r 2 ,...,r t ) When the time parameter indicating the vibration effect is segmented or scaled, the output value of the function may be a changed duration or a plurality of duration segments. As can be seen from equation (1), the frequency parameter F 1 、F 2 And intensity parameter I 1 、I 2 The time parameter of the vibration effect can also be influenced.
As an example, the frequency variation curve F of the vibration unit may be determined according to the following equation 2:
F=functionF[F 1 ,F 2 ,functionpp(p 1 ,p 2 ,...,p f ),I 1 ,I 2 ,functionpi(q 1 ,q 2 ,...,q i ),T 1 ,T 2 ,functionpt(r 1 ,r 2 ,...,r t )]equation (2).
In the above equation 2, the function functinpp (p) 1 ,p 2 ,...,p f )、functionpi(q 1 ,q 2 ,...,q i ) And functinpt (r) 1 ,r 2 ,...,r t ) Respectively representing a frequency variation parameter (p) 1 ,p 2 ,...,p f ) Intensity variation parameter (q) 1 ,q 2 ,...,q i ) And a time variation parameter (r) 1 ,r 2 ,...,r t ) Influence on the frequency profile. It can be seen from equation 2 that the frequency variation curve is dependent on the frequency parameter F in addition to 1 、F 2 Sum frequencyVariation parameter (p) 1 ,p 2 ,...,p f ) In addition to this, it is also possible to rely on the intensity parameter I 1 、I 2 And an intensity variation parameter (q) 1 ,q 2 ,...,q i ). In some embodiments, functinpi (q) may be added 1 ,q 2 ,...,q i ) Set to 0 or other flag value, indicates that the frequency variation curve is independent of the intensity variation parameter, and may also be made independent of the intensity parameter I 1 、I 2 Regardless, equation 2 can now be written as equation 2' below:
F=functionF[F 1 ,F 2 ,functionpp(p 1 ,p 2 ,...,p f ),T 1 ,T 2 ,functionpt(r 1 ,r 2 ,...,r t )]equation (2').
In one example, equation 2' may be predefined as functional nf = k (t/dt) + f1, where t represents the time axis, dt is derived from functional analysis and represents the time length of the primary vibration granularity, and k represents the time length represented by the frequency variation parameter (p) 1 ,p 2 ,...,p f ) Given a slope value, there may be different slope values k for different time segments. Here, a frequency change curve of the vibration effect is defined taking a linear change with a slope k as an example, but it is to be understood that the frequency change curve may be a non-linear curve such as a quadratic curve, an exponential curve, or the like.
As an example, the intensity variation curve I of the vibration unit may be determined according to the following equation 3:
I=functionI[F 1 ,F 2 ,functionip(p 1 ,p 2 ,...,p f ),I 1 ,I 2 ,functionii(q 1 ,q 2 ,...,q i ),T 1 ,T 2 ,functionit(r 1 ,r 2 ,...,r t )]equation (3).
In equation 3 above, the function funtionanip (p) 1 ,p 2 ,...,p f )、functionii(q 1 ,q 2 ,...,q i ) And functionit (r) 1 ,r 2 ,...,r t ) Respectively representing a frequency variation parameter (p) 1 ,p 2 ,...,p f ) Intensity variation parameter (q) 1 ,q 2 ,...,q i ) And a time variation parameter (r) 1 ,r 2 ,...,r t ) Influence on the intensity profile. As can be seen from equation 3, the intensity profile is dependent on the intensity parameter I in addition to 1 、I 2 And an intensity variation parameter (q) 1 ,q 2 ,...,q i ) Besides, it can also depend on the frequency parameter F 1 、F 2 And a frequency variation parameter (p) 1 ,p 2 ,...,p f ). In some embodiments, function (p) may be added 1 ,p 2 ,...,p f ) Set to 0 or other recognizable marker value, indicating that the intensity profile is independent of the frequency parameter, and may also be made independent of the frequency parameter F 1 、F 2 Regardless, equation 3 can now be written as equation 3' below:
I=functionI[I 1 ,I 2 ,functionii(q 1 ,q 2 ,...,q i ),T 1 ,T 2 ,functionit(r 1 ,r 2 ,...,r t )]formula (3').
In an example, formula 3' can be predefined as functional I = (1- β) = (I) 1 +(I 2 -I 1 )*exp(α*t))+β*((I 2 -I 1 )*t/T seg +I 1 ) Wherein T represents the time axis T seg Representing the duration or time segment length, alpha represents the curvature, which can be represented by an intensity variation parameter (q) 1 ,q 2 ,...,q i ) Given, and at different time periods T seg There may be different curvature values. A concave curve of logarithmic effect or a convex curve of exponential effect may be formed by configuring the curvature value α and the calculation manner. β is a scaling factor that controls the curvature and linearity of the curve, and ranges from 0 to 1. When the value of β is smaller, for example, 0, the intensity variation curve varies with a prescribed curvature; when the value of β is larger, for example 1, the contribution of the specified curvature to the intensity profile is zero and the intensity profile varies linearly. It is to be understood that in the present specification, the term "a" or "an" is to be understood in accordance with the contextThe term "curve" or "variation curve" also covers the case of a local or global linear variation. A specific function example of the intensity profile is given here, but it should be understood that other forms of intensity profiles may be defined.
As described above, based on the first and second class of descriptive parameters and the predefined mapping (e.g. the example functions given above), the duration of the vibration effect and the frequency and intensity variations over the duration can be determined, fig. 4 shows a schematic illustration of the frequency F and intensity I variation over time as determined by step 130. In the example of fig. 4, the time parameter T does not change, and the frequency F and the intensity I present a non-linear change curve, so that a vibration effect with richer and finer changes can be defined, and the changes of the frequency and the intensity between adjacent vibration units are smoother, thereby improving the user experience.
After the duration of the vibration effect and the frequency and intensity profiles are determined, in step 140, vibration data representing the vibration effect may be generated based on the determined duration of the vibration effect and the frequency and intensity profiles. The vibration data generated at step 140 is used to describe a vibration waveform representing a desired vibration effect, an example of which is shown in fig. 5. In step 140, a sequence of triplets (dt, f, i) of time parameter dt, frequency parameter f and intensity parameter i corresponding to respective granularities during a time segment or duration of a vibration unit may be generated according to a predetermined granularity. The particle size may be freely selected according to the specific embodiment. For example, when the generated vibration data is a drive signal waveform design for structuring, the granularity may be an integer multiple of a predefined half vibration period, preferably a half vibration period, one vibration period, two vibration periods, three vibration periods, and so on, although other numbers of vibration periods are possible, such as a quarter vibration period, a half vibration period, and so on. In structured drive waveform design, the waveform is composed of artificially partitioned structural elements (e.g., one structural element for a half cycle) with constant frequency and intensity (amplitude) within one structural element, and only the phase changes with time. For another example, when the generated vibration data is for an unstructured drive signal waveform design, the granularity may be a time interval corresponding to a code rate. The code rate is the number of sampling points for generating the driving signal waveform in unit time, the frequency and the intensity can be changed among the sampling points, and the plurality of sampling points form the driving signal waveform in unit time. As described above, the granularity may be predetermined according to the driving signal waveform design, and then based on the preset granularity, the frequency value f conforming to the frequency variation curve and the intensity value i conforming to the intensity variation curve may be determined within the time dt corresponding to the granularity. An example of a vibration waveform represented by the resulting sequence of data triplets (dt, f, i) is shown in fig. 5.
As described above, vibration data representing vibration effects is generated, and these vibration data may be supplied to, for example, a driving chip of a vibration motor, and the driving chip may generate a driving signal from these vibration data, driving the vibration motor to vibrate to output the corresponding vibration effect. It will be appreciated that the vibration data corresponding to a plurality of vibration units may be concatenated with one another, as shown in fig. 5, to provide the complete desired vibration effect. As mentioned above, the vibration data of the invention can generate vibration effects with richer and more exquisite variations, and the frequency and intensity variations between adjacent vibration units are smoother, thereby improving the user experience.
Fig. 6 shows a functional block diagram of an apparatus 200 for generating vibration data according to an embodiment of the present invention. The apparatus 200 may be implemented at or as part of an electronic device having a vibration function, and the apparatus 200 may include a plurality of unit modules for implementing the vibration data generation method described above with reference to fig. 2-5, and such unit modules may be implemented in various ways, including but not limited to software, hardware, firmware, or any combination thereof.
Referring to fig. 6, the apparatus 200 may include a first acquisition unit 210, a second acquisition unit 220, a determination unit 230, and a generation unit 240. The first obtaining unit 210 may be configured to obtain a first type of description parameter that defines a boundary condition of a vibration effect, where the first type of description parameter includes a time parameter, a frequency parameter, and an intensity parameter of the vibration effect; the second obtaining unit 220 may be configured to obtain a second type of description parameters of the vibration effect, where the second type of description parameters include one or more of a time variation parameter, a frequency variation parameter, and an intensity variation parameter; the determination unit 230 may be configured to determine a duration of the vibration effect and a frequency variation and an intensity variation within the duration based on the first type of description parameter and the second type of description parameter; the generating unit 240 may be configured to generate vibration data representing the vibration effect based on the duration of the vibration effect and the frequency variation and intensity variation over the duration.
In some embodiments, the second class of description parameters is decorrelated from the first class of description parameters.
In some embodiments, the time variation parameter describes a segmentation, extension or shortening of a duration of the vibration effect, the frequency variation parameter describes a variation of a frequency of the vibration effect during a corresponding duration or time segment, and the intensity variation parameter describes a variation of an intensity of the vibration effect during a corresponding duration or time segment.
In some embodiments, the variation of the frequency and the variation of the intensity each comprise one of a linear variation, a quadratic variation, and an exponential variation.
In some embodiments, the frequency variation parameter describes a frequency mixing or frequency conversion process for the vibration effect, and the intensity variation parameter describes a linearity or curvature of an intensity variation of the vibration effect.
In some embodiments, a frequency variation of the vibration effect over the duration depends on at least one of the intensity parameter and the intensity variation parameter in addition to the frequency parameter and the frequency variation parameter, and an intensity variation of the vibration effect over the duration depends on at least one of the frequency parameter and the frequency variation parameter in addition to the intensity parameter and the intensity variation parameter.
In some embodiments, the generating unit 240 may be configured to generate a sequence of time parameters, frequency parameters and intensity parameters corresponding to respective granularities during a time segment or a duration of the vibration effect based on predetermined granularities.
In some embodiments, the predetermined granularity is an integer multiple of half of the period of vibration.
Fig. 7 illustrates a block diagram of an electronic device 300 for generating vibration data according to an embodiment of the present invention. Examples of the electronic device 300 include, but are not limited to, cell phones, portable media players, personal digital assistants, gamepads, virtual Reality (VR) devices, wearable devices, and the like.
Referring to fig. 7, the electronic device 300 may include one or more processors 310 and one or more memories 320.
The processor 310 may be a Central Processing Unit (CPU) or other form of processing unit having data processing capabilities and/or instruction execution capabilities, and may control other components in the electronic device 300 to perform desired functions.
Memory 320 may include one or more computer program products that may include various forms of computer-readable storage media, such as volatile memory and/or non-volatile memory. The volatile memory may include, for example, random Access Memory (RAM), cache memory (cache), and/or the like. The non-volatile memory may include, for example, read Only Memory (ROM), hard disk, flash memory, etc. On which computer program instructions 322 may be stored, and the processor 310 may execute the program instructions 322 to implement the vibration data generation method described above with reference to fig. 2-5 and/or other desired functions.
Of course, for simplicity, only some of the components of the electronic device 300 related to the above-described method are shown in fig. 7, and other components such as a bus, an input/output interface, a vibration motor, a motor driving chip, and the like are omitted. In addition, electronic device 300 may include any other suitable components depending on the particular application.
In addition to the methods, apparatus and electronic devices described above, embodiments of the present application may also be a computer program product comprising computer program instructions that, when executed by a processor, cause the processor to perform the vibration data generation methods described above with reference to fig. 2-5 and/or other desired functions.
The computer program product may be written with program code for performing the operations of embodiments of the present application in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server.
Furthermore, embodiments of the present application may also be a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, cause the processor to perform the vibration data generation method described above with reference to fig. 2-5 and/or other desired functions.
The computer-readable storage medium may take any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may include, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing describes the general principles of the present application in conjunction with specific embodiments, however, it is noted that the advantages, effects, etc. mentioned in the present application are merely examples and are not limiting, and they should not be considered essential to the various embodiments of the present application. Furthermore, the foregoing disclosure of specific details is for the purpose of illustration and description and is not intended to be limiting, since the foregoing disclosure is not intended to be exhaustive or to limit the disclosure to the precise details disclosed.
The block diagrams of devices, apparatuses, devices, systems referred to in this application are only used as illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. These devices, apparatuses, devices, systems may be connected, arranged, configured in any manner, as will be appreciated by one skilled in the art. Words such as "including," "comprising," "having," and the like are open-ended words that mean "including, but not limited to," and are used interchangeably herein. As used herein, the words "or" and "refer to, and are used interchangeably with, the word" and/or, "unless the context clearly dictates otherwise. The word "such as" is used herein to mean, and is used interchangeably with, the phrase "such as but not limited to".
It should also be noted that in the devices, apparatuses, and methods of the present application, the components or steps may be decomposed and/or recombined. These decompositions and/or recombinations are to be considered as equivalents of the present application.
The previous description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present application. Various modifications to these aspects will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other aspects without departing from the scope of the application. Thus, the present application is not intended to be limited to the aspects shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The foregoing description has been presented for purposes of illustration and description. Furthermore, the description is not intended to limit embodiments of the application to the form disclosed herein. While a number of example aspects and embodiments have been discussed above, those of skill in the art will recognize certain variations, modifications, alterations, additions and sub-combinations thereof.

Claims (12)

1. A method of generating vibration data, comprising:
acquiring a first type of description parameter defining a boundary condition of a vibration effect, wherein the first type of description parameter comprises a time parameter, a frequency parameter and an intensity parameter of the vibration effect;
acquiring a second type of description parameters of the vibration effect, wherein the second type of description parameters comprise one or more of time variation parameters, frequency variation parameters and intensity variation parameters;
determining a duration of the vibration effect and a frequency variation and an intensity variation within the duration based on the first type of description parameter and the second type of description parameter; and
generating vibration data representing the vibration effect based on the duration of the vibration effect and the frequency and intensity variations over the duration.
2. The method of claim 1, wherein the second class of description parameters is decorrelated from the first class of description parameters.
3. The method of claim 1, wherein the time varying parameter describes segmenting, extending or shortening the duration of the vibration effect,
the frequency variation parameter describing a variation profile of the frequency of the vibration effect during a corresponding duration or time segment,
the intensity variation parameter describes a variation curve of the intensity of the vibration effect during a corresponding duration or time segment.
4. The method of claim 3, wherein the variation of the frequency and the variation of the intensity each comprise one of a linear variation, a quadratic variation, and an exponential variation.
5. The method of claim 3, wherein the frequency variation parameter describes mixing or frequency converting the frequency of the vibration effect,
the intensity variation parameter describes a linearity or curvature of an intensity variation of the vibration effect.
6. The method of claim 1, wherein the frequency variation of the vibration effect over the duration depends on at least one of the intensity parameter and the intensity variation parameter, in addition to the frequency parameter and the frequency variation parameter, or
The variation in intensity of the vibration effect over the duration of time is dependent on at least one of the frequency parameter and the frequency variation parameter in addition to the intensity parameter and the intensity variation parameter.
7. The method of claim 1, wherein generating vibration data representing the vibration effect comprises:
based on predetermined granularities, a sequence of time parameters, frequency parameters and intensity parameters corresponding to respective granularities during a time duration or time segment of the vibration effect is generated.
8. The method of claim 7, wherein the predetermined granularity is an integer multiple of half a period of oscillation when the oscillation data is used for a structured drive signal waveform design,
when the vibration data is used for unstructured drive signal waveform design, the predetermined granularity is a time interval corresponding to a code rate.
9. An apparatus for generating vibration data, comprising:
a first acquisition unit, configured to acquire first class description parameters that define boundary conditions of a vibration effect, where the first class description parameters include duration, frequency, and intensity of the vibration effect;
a second obtaining unit, configured to obtain a second type of description parameter of the vibration effect, where the second type of description parameter includes one or more of a time variation parameter, a frequency variation parameter, and an intensity variation parameter;
a determination unit for determining a duration of the vibration effect and a frequency variation and an intensity variation within the duration based on the first type of description parameter and the second type of description parameter; and
a generating unit for generating vibration data representing the vibration effect based on a duration of the vibration effect and a frequency variation and an intensity variation within the duration.
10. The apparatus of claim 9, wherein the apparatus further comprises means for performing the method of any of claims 2-8.
11. An electronic device, comprising:
a processor; and
a memory having instructions stored therein that, when executed by the processor, cause the electronic device to perform the method of any of claims 1-8.
12. A readable storage medium having stored therein instructions, which when executed by a processor, cause the processor to perform the method of any one of claims 1 to 8.
CN202211109390.7A 2022-09-13 2022-09-13 Vibration data generation method and device, electronic equipment and storage medium Pending CN115390673A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211109390.7A CN115390673A (en) 2022-09-13 2022-09-13 Vibration data generation method and device, electronic equipment and storage medium
PCT/CN2023/117968 WO2024055924A1 (en) 2022-09-13 2023-09-11 Vibration data generation method and apparatus, and electronic device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211109390.7A CN115390673A (en) 2022-09-13 2022-09-13 Vibration data generation method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115390673A true CN115390673A (en) 2022-11-25

Family

ID=84126917

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211109390.7A Pending CN115390673A (en) 2022-09-13 2022-09-13 Vibration data generation method and device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN115390673A (en)
WO (1) WO2024055924A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024055924A1 (en) * 2022-09-13 2024-03-21 武汉市聚芯微电子有限责任公司 Vibration data generation method and apparatus, and electronic device and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552377A (en) * 2020-03-30 2020-08-18 瑞声科技(新加坡)有限公司 Method, device and equipment for generating vibration signal and storage medium
CN111562839A (en) * 2020-03-30 2020-08-21 瑞声科技(新加坡)有限公司 Method and apparatus for presenting haptic effect based on displacement, storage medium and device
CN111580647A (en) * 2020-04-23 2020-08-25 瑞声科技(新加坡)有限公司 Vibration driving signal generation method and device and electronic equipment
CN112506341A (en) * 2020-12-01 2021-03-16 瑞声新能源发展(常州)有限公司科教城分公司 Vibration effect generation method and device, terminal equipment and storage medium
CN114740979A (en) * 2022-04-19 2022-07-12 腾讯科技(深圳)有限公司 Method and device for representing change trend of service curve and readable storage medium
CN114995629A (en) * 2021-12-30 2022-09-02 荣耀终端有限公司 Vibration method and vibration device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6527339B2 (en) * 2015-01-27 2019-06-05 任天堂株式会社 Vibration signal generating program, vibration generating device, vibration generating system, and vibration signal generating method
CN115390673A (en) * 2022-09-13 2022-11-25 武汉市聚芯微电子有限责任公司 Vibration data generation method and device, electronic equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111552377A (en) * 2020-03-30 2020-08-18 瑞声科技(新加坡)有限公司 Method, device and equipment for generating vibration signal and storage medium
CN111562839A (en) * 2020-03-30 2020-08-21 瑞声科技(新加坡)有限公司 Method and apparatus for presenting haptic effect based on displacement, storage medium and device
CN111580647A (en) * 2020-04-23 2020-08-25 瑞声科技(新加坡)有限公司 Vibration driving signal generation method and device and electronic equipment
CN112506341A (en) * 2020-12-01 2021-03-16 瑞声新能源发展(常州)有限公司科教城分公司 Vibration effect generation method and device, terminal equipment and storage medium
CN114995629A (en) * 2021-12-30 2022-09-02 荣耀终端有限公司 Vibration method and vibration device
CN114740979A (en) * 2022-04-19 2022-07-12 腾讯科技(深圳)有限公司 Method and device for representing change trend of service curve and readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024055924A1 (en) * 2022-09-13 2024-03-21 武汉市聚芯微电子有限责任公司 Vibration data generation method and apparatus, and electronic device and storage medium

Also Published As

Publication number Publication date
WO2024055924A1 (en) 2024-03-21

Similar Documents

Publication Publication Date Title
WO2024055924A1 (en) Vibration data generation method and apparatus, and electronic device and storage medium
CN110380664A (en) A kind of motor vibrations control method, device and computer readable storage medium
CN110162171B (en) Motor driving signal setting method, electronic device and storage medium
EP1904816A1 (en) A signal process and system
CN110010151A (en) A kind of acoustic signal processing method and equipment, storage medium
WO2021196680A1 (en) Method and apparatus for presenting haptic effect based on displacement, storage medium, and device
JPH07325583A (en) Method and device for analyzing and synthesizing sound
EP0017341A1 (en) A sound synthesizing circuit and method of synthesizing sounds
CN105702249B (en) The method and apparatus for automatically selecting accompaniment
US9806655B1 (en) Signal generating method for accurately controlling a motor
WO2020034693A1 (en) Method for measuring bandwidth of linear vibration motor
CN107644632B (en) Audio downmix and waveform generation method and apparatus
CN106457310A (en) Drive device and drive device control method
CN110827789A (en) Music generation method, electronic device and computer-readable storage medium
CN114327040A (en) Vibration signal generation method, device, electronic device and storage medium
KR101907276B1 (en) System for practicing musical instrument and method for supporting the practice
CN103594082A (en) Sound synthesis device, sound synthesis method and storage medium
JP2023009163A (en) measuring instrument
CN113674725B (en) Audio mixing method, device, equipment and storage medium
CN111722108B (en) Motor distortion measuring method and apparatus, computer readable storage medium
Bilbao Robust physical modeling sound synthesis for nonlinear systems
CN116189636B (en) Accompaniment generation method, device, equipment and storage medium based on electronic musical instrument
JPH11149367A (en) Random number generating method, recording medium stored with program for implementing same random number generating method, and random number generating device
US6314403B1 (en) Apparatus and method for generating a special effect on a digital signal
JP6716921B2 (en) Signal processing device, program, and method

Legal Events

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