CN117258270A - Vehicle-mounted game control method and device, electronic equipment and storage medium - Google Patents

Vehicle-mounted game control method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117258270A
CN117258270A CN202210662159.4A CN202210662159A CN117258270A CN 117258270 A CN117258270 A CN 117258270A CN 202210662159 A CN202210662159 A CN 202210662159A CN 117258270 A CN117258270 A CN 117258270A
Authority
CN
China
Prior art keywords
knocking
drumstick
vehicle
signal
data
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
CN202210662159.4A
Other languages
Chinese (zh)
Inventor
丁彬
傅强
帅一帆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Co Wheels Technology Co Ltd
Original Assignee
Beijing Co Wheels Technology 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 Beijing Co Wheels Technology Co Ltd filed Critical Beijing Co Wheels Technology Co Ltd
Priority to CN202210662159.4A priority Critical patent/CN117258270A/en
Publication of CN117258270A publication Critical patent/CN117258270A/en
Pending legal-status Critical Current

Links

Classifications

    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/21Input arrangements for video game devices characterised by their sensors, purposes or types
    • A63F13/218Input arrangements for video game devices characterised by their sensors, purposes or types using pressure sensors, e.g. generating a signal proportional to the pressure applied by the player
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/21Input arrangements for video game devices characterised by their sensors, purposes or types
    • A63F13/211Input arrangements for video game devices characterised by their sensors, purposes or types using inertial sensors, e.g. accelerometers or gyroscopes
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/20Input arrangements for video game devices
    • A63F13/24Constructional details thereof, e.g. game controllers with detachable joystick handles
    • A63F13/245Constructional details thereof, e.g. game controllers with detachable joystick handles specially adapted to a particular type of game, e.g. steering wheels
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/50Controlling the output signals based on the game progress
    • A63F13/54Controlling the output signals based on the game progress involving acoustic signals, e.g. for simulating revolutions per minute [RPM] dependent engine sounds in a driving game or reverberation against a virtual wall
    • AHUMAN NECESSITIES
    • A63SPORTS; GAMES; AMUSEMENTS
    • A63FCARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
    • A63F13/00Video games, i.e. games using an electronically generated display having two or more dimensions
    • A63F13/80Special adaptations for executing a specific game genre or game mode
    • A63F13/814Musical performances, e.g. by evaluating the player's ability to follow a notation

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • Acoustics & Sound (AREA)
  • Measuring Fluid Pressure (AREA)

Abstract

The disclosure provides a vehicle-mounted game control method, a vehicle-mounted game control device, electronic equipment and a storage medium. The vehicle-mounted game control method comprises the following steps: acquiring the waving data of the drumsticks and the instantaneous knocking pressure of the drumsticks; responding to the fact that the knocking instantaneous pressure is larger than or equal to a knocking pressure threshold value, generating a knocking signal according to the waving data and the unique code of a source pressure sensor of the knocking instantaneous pressure, wherein the source pressure sensor is arranged on the drumstick; a tapping signal is sent to the vehicle, the tapping signal being used to generate a target drum sound. Therefore, when a user uses the drumstick to strike, the vehicle can emit drumsticks corresponding to the strike positions and categories, so that the drumsticks with different strike positions and different categories in the actual drum scene are simulated, the cost can be reduced, and the applicability of the drumstick is improved.

Description

Vehicle-mounted game control method and device, electronic equipment and storage medium
Technical Field
The disclosure relates to the technical field of vehicle-mounted games, and in particular relates to a vehicle-mounted game control method, a device, electronic equipment and a storage medium.
Background
With the continuous development of new technologies such as automatic driving and intelligent entertainment systems, vehicles not only bear the heavy duty of people in traveling, but also can bear more and more entertainment functions. The vehicle-mounted game is gradually applied to a plurality of vehicles, so that the travel entertainment modes of users are further enriched.
For the vehicle-mounted drum playing game, a drum hammer is used for simulating a drum playing scene in the related art, and is positioned through a large number of positioning devices, so that the recognition of the striking direction of the drum hammer is realized, the cost is high, the vehicle-mounted drum playing game is not suitable for vehicles without the positioning devices, and the adaptability of the drum hammer is poor.
Disclosure of Invention
The disclosure provides a vehicle-mounted game control method, a vehicle-mounted game control device, electronic equipment and a storage medium.
An embodiment of a first aspect of the present disclosure provides a vehicle-mounted game control method, including: acquiring swing data of the drumstick and instantaneous knocking pressure of the drumstick; responding to the fact that the knocking instantaneous pressure is larger than or equal to a knocking pressure threshold value, generating a knocking signal according to the unique codes of the waving data and a source pressure sensor of the knocking instantaneous pressure, wherein the source pressure sensor is arranged on the drumstick; and sending the knocking signal to a vehicle, wherein the knocking signal is used for generating target drumbeats.
In the embodiment of the disclosure, the swing data of the drumstick and the instantaneous striking pressure of the drumstick are acquired; responding to the fact that the knocking instantaneous pressure is larger than or equal to a knocking pressure threshold value, generating a knocking signal according to the waving data and the unique code of a source pressure sensor of the knocking instantaneous pressure, wherein the source pressure sensor is arranged on the drumstick; a tapping signal is sent to the vehicle, the tapping signal being used to generate a target drum sound. According to the method and the device for detecting the drum hammer, the waving data of the drum hammer is acquired and sent to the vehicle, so that the vehicle can identify the knocking position of the drum hammer according to the waving data of the drum hammer, when a user uses the drum hammer to knock, the vehicle can send out the drum sound corresponding to the knocking position, and accordingly the drum sound of different knocking positions in an actual drum scene is simulated, wherein the waving data are acquired through the sensors of the drum hammer, the vehicle is not required to be assembled with an additional positioning device to identify the knocking position of the drum hammer, the cost is reduced, and the applicability of the drum hammer is improved. In addition, the unique code of the pressure sensor is sent to the vehicle, so that the vehicle can identify the knocking object of the drumstick according to the unique code of the pressure sensor, and accordingly when a user uses the drumstick to conduct knocking, the vehicle can emit corresponding types of drumsticks, and therefore the drumsticks and the drumsticks in an actual drumstick scene are simulated.
An embodiment of a second aspect of the present disclosure provides a vehicle-mounted game control method, including: receiving a knocking signal sent by a drumstick; analyzing the knocking signal to obtain signal data carried by the knocking signal, wherein the signal data comprises waving data and unique codes; generating a target drumbeat which is required to be sent currently based on the waving data and the unique code; and playing the target drum sound through a loudspeaker of the vehicle.
In the embodiment of the disclosure, a knocking signal sent by a drumstick is received; analyzing the knocking signal to obtain signal data carried by the knocking signal, wherein the signal data comprises waving data and unique codes; generating a target drum sound to be sent currently based on the waving data and the unique code; and playing the target drum sound through a loudspeaker of the vehicle. In the embodiment of the disclosure, in the process that a user uses a drumstick to strike, a vehicle can receive a striking signal sent by the drumstick, and generate drumsticks in different directions to play according to the waving data in the striking signal, so that the drumsticks in different striking directions in an actual striking scene can be simulated, and different types of drumsticks are generated according to unique codes of a pressure sensor in the striking signal, so that the drumsticks and drumsticks in the actual striking scene are simulated.
An embodiment of a third aspect of the present disclosure provides an in-vehicle game control apparatus, including: the acquisition module is used for acquiring the swing data of the drumstick and the striking instantaneous pressure of the drumstick; the generation module is used for responding to the fact that the knocking instantaneous pressure is larger than or equal to a knocking pressure threshold value, generating a knocking signal according to the unique codes of the source pressure sensor of the knocking instantaneous pressure and the waving data, and the source pressure sensor is arranged on the drumstick; and the sending module is used for sending the knocking signal to the vehicle, and the knocking signal is used for generating target drumbeats.
An embodiment of a fourth aspect of the present disclosure proposes an in-vehicle game control apparatus including: a receiving module for receiving a knocking signal sent by the drumstick; the analysis module is used for analyzing the knocking signal to obtain signal data carried by the knocking signal, wherein the signal data comprises waving data and unique codes; the generation module is used for generating target drumbeat which is required to be sent currently based on the waving data and the unique code; and the playing module is used for playing the target drum sound through a loudspeaker of the vehicle.
An embodiment of a fifth aspect of the present disclosure proposes an electronic device, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to implement the in-vehicle game control method according to the first aspect embodiment or the second aspect embodiment of the present disclosure.
An embodiment of a sixth aspect of the present disclosure proposes a non-transitory computer-readable storage medium storing computer instructions for implementing the in-vehicle game control method according to the embodiment of the first aspect or the embodiment of the second aspect.
Additional aspects and advantages of the disclosure will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the disclosure.
Drawings
The foregoing and/or additional aspects and advantages of the present disclosure will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings, in which:
FIG. 1 is a flow chart of a method of in-vehicle game control according to one embodiment of the present disclosure;
FIG. 2 is a schematic structural view of a drumstick according to an embodiment of the present disclosure;
FIG. 3 is a flow chart of a method of in-vehicle game control according to another embodiment of the present disclosure;
FIG. 4 is a flow chart of a method of in-vehicle game control according to another embodiment of the present disclosure;
FIG. 5 is a flow chart of a method of in-vehicle game control according to another embodiment of the present disclosure;
FIG. 6 is a schematic structural view of an in-vehicle game control apparatus according to one embodiment of the present disclosure;
FIG. 7 is a schematic structural view of an in-vehicle game control apparatus according to another embodiment of the present disclosure;
fig. 8 is a schematic structural view of an electronic device according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are exemplary and intended for the purpose of explaining the present disclosure and are not to be construed as limiting the present disclosure.
The following describes a vehicle-mounted game control method, apparatus, electronic device, and storage medium of the embodiments of the present disclosure with reference to the accompanying drawings.
FIG. 1 is a flow chart of a method for controlling a vehicle-mounted game according to one embodiment of the present disclosure, as shown in FIG. 1, the method comprising the steps of:
s101, acquiring the swing data of the drumstick and the instantaneous knocking pressure of the drumstick.
It should be noted that the method of the embodiments of the present disclosure is performed by a drumstick.
Alternatively, the drumstick in the embodiment of the disclosure may be the drumstick shown in fig. 2, and as shown in fig. 2, a pressure sensor is disposed on a surface of the drumstick, an inertial measurement unit (Inertial Measurement Unit, IMU), a communication component and a controller are disposed inside the drumstick, where the controller is connected with the pressure sensor, the communication component and the IMU, and when a tapping instantaneous pressure detected by the pressure sensor of the drumstick is greater than or equal to a tapping pressure threshold, the controller may generate a tapping signal and send the tapping signal to a vehicle machine of the vehicle through the communication component.
The pressure sensor is used for detecting the instantaneous knocking pressure of the drumstick and sending the detected knocking pressure to the controller.
The instantaneous pressure of the striking is the maximum pressure generated in the instantaneous time of striking the drumstick, wherein the instantaneous time can be set according to the actual situation, for example, if the instantaneous time is set to 100 milliseconds, the instantaneous pressure of the striking indicates the maximum pressure reached in 100 milliseconds.
Alternatively, referring to fig. 2, the pressure sensor includes a first pressure sensor provided on an end face of the first end of the drumstick and a second pressure sensor provided on a side wall of the drumstick, the second pressure sensor being adjacent to the first pressure sensor.
Since the first pressure sensor is provided on the end face of the first end of the drumstick, when the striking instantaneous pressure detected by the first pressure sensor is greater than or equal to the striking pressure threshold value, it can be considered that the user has struck the drumhead with the drumstick. Since the second pressure sensor is provided on the side wall of the drumstick, when the striking instantaneous pressure detected by the second pressure sensor is greater than or equal to the striking pressure threshold value, it can be considered that the user struck the drumstick with the drumstick.
Alternatively, the communication component may be a bluetooth module. The bluetooth module in the drumstick can be connected with the bluetooth module matching in the car machine for the drumstick can be through bluetooth communication with the car machine that beats the signal transmission to the vehicle.
The identification of the communication component can be a media access control address (Media Access Control Address, MAC), and the communication component can mark the knocking signal through the MAC of the communication component when the knocking signal is to be sent, so that the phenomenon of data disorder when a plurality of drumsticks send the knocking signal to a vehicle is avoided.
Alternatively, the IMU may include a gyroscope, an accelerometer, a magnetometer, etc., without any limitation, for collecting the swing data of the drumstick during the user's swing of the drumstick, and transmitting the swing data of the drumstick to the controller.
Wherein, the swing data includes the posture data, acceleration, angular velocity, displacement, etc. of the drumstick.
In some implementations, the IMU may be disposed near the first end of the drumstick such that when the user swings the drumstick in a hand-held position near the second end of the drumstick, the first end (i.e., IMU) stroke of the drumstick is substantially greater than the second end stroke of the drumstick, thereby making the IMU more accurate in acquiring swing data.
In the embodiment of the disclosure, in the process of knocking by using the drumstick by a user, the controller of the drumstick can acquire the swing data generated by the IMU and the knocking instantaneous pressure detected by the pressure sensor.
S102, responding to the fact that the knocking instantaneous pressure is larger than or equal to the knocking pressure threshold value, and generating a knocking signal according to the unique codes of the source pressure sensor of the knocking instantaneous pressure and the waving data.
After the controller of the drumstick obtains the waving data of the drumstick and the knocking instantaneous pressure of the drumstick, judging whether the knocking instantaneous pressure is greater than or equal to a knocking pressure threshold value, if so, generating a knocking signal according to the waving data and the unique code of the source pressure sensor of the knocking instantaneous pressure; if not, no knocking signal is generated.
The source pressure sensor of the knocking instantaneous pressure can be a first pressure sensor or a second pressure sensor, and when the knocking instantaneous pressure of the drumstick is larger than or equal to a knocking pressure threshold value, if the source pressure sensor of the knocking instantaneous pressure is the first pressure sensor, the controller generates a drumhead knocking signal according to the waving data of the drumstick and the first EID of the first pressure sensor; if the source pressure sensor of the knocking instantaneous pressure sensor is a second pressure sensor, the controller generates a drumstick knocking signal according to the waving data of the drumstick and the second EID of the second pressure sensor.
And S103, sending a knocking signal to the vehicle, wherein the knocking signal is used for generating the target drum sound.
After the controller of the drumstick generates the striking signal, the striking signal generated by the controller is transmitted to the vehicle through the communication device of the drumstick.
In the embodiment of the disclosure, the swing data of the drumstick and the instantaneous striking pressure of the drumstick are acquired; responding to the fact that the knocking instantaneous pressure is larger than or equal to a knocking pressure threshold value, generating a knocking signal according to the waving data and the unique code of a source pressure sensor of the knocking instantaneous pressure, wherein the source pressure sensor is arranged on the drumstick; a tapping signal is sent to the vehicle, the tapping signal being used to generate a target drum sound. According to the method and the device for detecting the drum hammer, the waving data of the drum hammer is acquired and sent to the vehicle, so that the vehicle can identify the knocking position of the drum hammer according to the waving data of the drum hammer, when a user uses the drum hammer to knock, the vehicle can send out the drum sound corresponding to the knocking position, and accordingly the drum sound of different knocking positions in an actual drum scene is simulated, wherein the waving data are acquired through the sensors of the drum hammer, the vehicle is not required to be assembled with an additional positioning device to identify the knocking position of the drum hammer, the cost is reduced, and the applicability of the drum hammer is improved. In addition, the unique code of the pressure sensor is sent to the vehicle, so that the vehicle can identify the knocking object of the drumstick according to the unique code of the pressure sensor, and accordingly when a user uses the drumstick to conduct knocking, the vehicle can emit corresponding types of drumsticks, and therefore the drumsticks and the drumsticks in an actual drumstick scene are simulated.
FIG. 3 is a flow chart of a method for controlling a vehicle-mounted game according to one embodiment of the present disclosure, as shown in FIG. 3, the method comprising the steps of:
s301, receiving a knocking signal sent by the drumstick.
The vehicle-mounted game control method according to the embodiment of the present disclosure is executed by a vehicle.
After the vehicle is electrified, whether a drum play starting event is triggered or not can be monitored in real time, and when the drum play starting event is detected to be triggered, the drum play is started.
In some implementations, the in-vehicle play is initiated when the vehicle detects that a user clicks a start button of the play in a display screen or multimedia screen of the vehicle, or detects a voice command to start the play (e.g., "start play", etc.).
During the course of playing the car-mounted drum game, the user can make a tap using the drumsticks to simulate a drum scene. In the process that a user uses the drumstick to strike, when the striking instantaneous pressure detected by the pressure sensor of the drumstick is greater than or equal to a pressure threshold value, the drumstick generates a striking signal according to the own waving data and the unique code of the source pressure sensor of the striking instantaneous pressure, and the striking signal is sent to the vehicle and received by the vehicle.
In the process of playing the vehicle-mounted drum game, the key function of the vehicle should be shielded so as to avoid false touch in the process of using the drumstick to strike, for example, the whistle key function on the steering wheel can be shielded, and the vehicle is prevented from whistling due to the fact that the pressing threshold value of the whistling key is reached when the drumstick is used to strike.
S302, analyzing the knocking signal to obtain signal data carried by the knocking signal, wherein the signal data comprises waving data and unique codes.
After the vehicle receives the knocking signal sent by the drumstick, the knocking signal sent by the drumstick is analyzed to obtain the waving data and the unique code carried by the knocking signal.
S303, generating target drum sound which needs to be sent currently based on the waving data and the unique code.
Optionally, the direction of waving of the drumstick is determined based on waving data, the source pressure sensor of the striking signal is determined based on the unique code, and the target drumstick is generated based on the direction of waving and the source pressure sensor.
The swing direction comprises a first direction and a second direction, wherein the first direction is a left-to-right swing direction, and the second direction is a right-to-left swing direction.
After the swing data carried by the knocking signal are obtained, the swing direction of the drumstick can be determined according to the posture data, the acceleration, the angular velocity, the displacement and other data in the swing data.
After the unique code carried by the knocking signal is obtained, the source pressure sensor of the knocking signal can be determined based on the unique code, if the unique code is the first EID, the source pressure sensor is the first pressure sensor, and if the unique code is the second EID, the source pressure sensor is the second EID, and the source pressure sensor is the second pressure sensor.
Wherein the target drumhead comprises a left drumhead, a right drumhead, a left drumhead or a right drumhead.
After the source pressure sensor and the swing direction of the drumstick are determined, the knocking object of the drumstick can be determined according to the source pressure sensor, the knocking direction corresponding to the knocking object is determined according to the swing direction, and then the corresponding target drumstick is generated according to the knocking object and the knocking direction.
Wherein the tapping object comprises a drumhead and a drumhead.
S304, playing the target drum sound through a loudspeaker of the vehicle.
In some implementations, the target drum sound is played directly through the vehicle's speakers.
In still other implementations, background music is acquired, the background music and the target drum sound are sent together to digital signal processing of the vehicle for mixing, and after mixing is completed, the mixed target drum sound is played through a loudspeaker of the vehicle.
In the embodiment of the disclosure, a knocking signal sent by a drumstick is received, the knocking signal is analyzed, signal data carried by the knocking signal is obtained, the signal data comprises waving data and unique codes, a target drumstick which needs to be sent currently is generated based on the waving data and the unique codes, and the target drumstick is played through a loudspeaker of a vehicle. In the embodiment of the disclosure, in the process that a user uses a drumstick to strike, a vehicle can receive a striking signal sent by the drumstick, and generate drumsticks in different directions to play according to the waving data in the striking signal, so that the drumsticks in different striking directions in an actual striking scene can be simulated, and different types of drumsticks are generated according to unique codes of a pressure sensor in the striking signal, so that the drumsticks and drumsticks in the actual striking scene are simulated.
Fig. 4 is a flow chart of a vehicle-mounted game control method according to an embodiment of the present disclosure, and further with reference to fig. 4, a process of generating a target drum sound based on a swing direction and a source pressure sensor is explained based on the above embodiment, and includes the following steps:
s401, identifying a knocking object of the drumstick according to the source pressure sensor.
If the source pressure sensor is a first pressure sensor, the knocking object of the drumstick is a drumhead, and if the source pressure sensor is a second pressure sensor, the knocking object of the drumstick is a drumstick edge.
S402, identifying the knocking direction corresponding to the knocking object according to the waving direction.
If the swing direction is the first direction, the knocking position is the left side position of the knocking object, and if the swing direction is the second direction, the knocking position is the right side position of the knocking object.
S403, generating target drumbeats according to the knocking objects and the knocking directions.
If the knocking object is a drumhead and the knocking direction is the left direction of the knocking object, generating left drumhead sound; if the knocking object is a drumhead and the knocking direction is the right direction of the knocking object, right drumhead sound is generated; if the knocking object is a drum edge and the knocking direction is the left direction of the knocking object, generating left drum edge sound; if the knocking object is a drum edge and the knocking direction is the right direction of the knocking object, right drum edge sound is generated.
In the embodiment of the disclosure, the knocking object of the drumstick is identified according to the source pressure sensor, the knocking direction corresponding to the knocking object is identified according to the swinging direction, and the target drumstick is generated according to the knocking object and the knocking direction. According to the method and the device for simulating the drum head sound, the knocking object and the knocking direction of the drum hammer can be identified, and corresponding drum sounds are generated according to the knocking object and the knocking direction, so that the left drum head sound, the right drum head sound, the left drum edge sound and the right drum edge sound in an actual drum scene can be simulated.
Fig. 5 is a flowchart of a vehicle-mounted game control method according to an embodiment of the present disclosure, and further with reference to fig. 5, a process of playing a target drum sound through a speaker of a vehicle is explained based on the above embodiment, including:
s501, determining a target volume of a target drum sound based on the tapping instantaneous pressure.
After the vehicle receives the knocking signal sent by the drumstick, the knocking signal can be analyzed, and signal data carried by the knocking signal are obtained, wherein the signal data comprise the knocking instantaneous pressure of the drumstick.
Alternatively, a map table between the tapping instantaneous pressure and the drumbeat volume may be created in advance, and stored in the storage space of the vehicle. In the map, different tapping transient pressures correspond to different drumbeat volumes.
In some implementations, after the vehicle obtains the striking instantaneous pressure of the drumstick, the target volume of the target drumstick may be queried from the mapping table with the striking instantaneous pressure as an index.
S502, based on the target volume, playing the target drum sound through the speaker of the vehicle.
When the target volume is inquired, playing the target drum sound at the target volume through the loudspeaker of the vehicle
In the embodiment of the disclosure, the target volume of the target drum sound is determined based on the instantaneous knocking pressure, and the target drum sound is played through a loudspeaker of the vehicle based on the target volume. In the embodiment of the disclosure, when a user uses the drumstick to strike, the volume of the drumstick can be determined according to the striking strength of the user, the larger the striking strength of the user is, the larger the drumstick is, the smaller the striking strength of the user is, and the smaller the drumstick is, so that the sense of reality of a drumstick game is enhanced, and the user experience is improved.
Fig. 6 is a schematic structural view of an in-vehicle game control apparatus according to an embodiment of the present disclosure, and as shown in fig. 6, an in-vehicle game control apparatus 600 includes:
an acquisition module 610 for acquiring swing data of the drumstick and a striking instantaneous pressure of the drumstick;
the generating module 620 is configured to generate a knock signal according to the swing data and a unique code of a source pressure sensor of the knock instantaneous pressure, where the source pressure sensor is disposed on the drumstick, in response to the knock instantaneous pressure being greater than or equal to the knock pressure threshold;
the sending module 630 is configured to send a tapping signal to the vehicle, where the tapping signal is used to generate a target drum sound.
In the embodiment of the disclosure, the swing data of the drumstick and the instantaneous striking pressure of the drumstick are acquired; responding to the fact that the knocking instantaneous pressure is larger than or equal to a knocking pressure threshold value, generating a knocking signal according to the waving data and the unique code of a source pressure sensor of the knocking instantaneous pressure, wherein the source pressure sensor is arranged on the drumstick; a tapping signal is sent to the vehicle, the tapping signal being used to generate a target drum sound. According to the method and the device for detecting the drum hammer, the waving data of the drum hammer is acquired and sent to the vehicle, so that the vehicle can identify the knocking position of the drum hammer according to the waving data of the drum hammer, when a user uses the drum hammer to knock, the vehicle can send out the drum sound corresponding to the knocking position, and accordingly the drum sound of different knocking positions in an actual drum scene is simulated, wherein the waving data are acquired through the sensors of the drum hammer, the vehicle is not required to be assembled with an additional positioning device to identify the knocking position of the drum hammer, the cost is reduced, and the applicability of the drum hammer is improved. In addition, the unique code of the pressure sensor is sent to the vehicle, so that the vehicle can identify the knocking object of the drumstick according to the unique code of the pressure sensor, and accordingly when a user uses the drumstick to conduct knocking, the vehicle can emit corresponding types of drumsticks, and therefore the drumsticks and the drumsticks in an actual drumstick scene are simulated.
In one embodiment of the present disclosure, the acquisition module 610 is further configured to acquire the swing data of the drumstick through the inertial measurement unit IMU of the drumstick.
In one embodiment of the present disclosure, the generation module 620 is further configured to generate a tapping signal based on the tapping instantaneous pressure, the waving data, and the unique code of the source pressure sensor.
It should be noted that, for details not disclosed in the vehicle-mounted game control device according to the embodiment of the present disclosure, please refer to details disclosed in the vehicle-mounted game control method according to the embodiment of the first aspect of the present disclosure, and details are not described here again.
Fig. 7 is a schematic structural view of an in-vehicle game control apparatus according to an embodiment of the present disclosure, and as shown in fig. 7, an in-vehicle game control apparatus 700 includes:
a receiving module 710 for receiving a striking signal transmitted from a drumstick;
the analyzing module 720 is configured to analyze the knocking signal, and obtain waving data and a unique code carried by the knocking signal;
a generating module 730, configured to generate a target drum sound to be emitted currently based on the swing data and the unique code;
and a playing module 740, configured to play the target drum sound through a speaker of the vehicle.
In the embodiment of the disclosure, a knocking signal sent by a drumstick is received, the knocking signal is analyzed, signal data carried by the knocking signal is obtained, the signal data comprises waving data and unique codes, a target drumstick which needs to be sent currently is generated based on the waving data and the unique codes, and the target drumstick is played through a loudspeaker of a vehicle. In the embodiment of the disclosure, in the process that a user uses a drumstick to strike, a vehicle can receive a striking signal sent by the drumstick, and generate drumsticks in different directions to play according to the waving data in the striking signal, so that the drumsticks in different striking directions in an actual striking scene can be simulated, and different types of drumsticks are generated according to unique codes of a pressure sensor in the striking signal, so that the drumsticks and drumsticks in the actual striking scene are simulated.
In one embodiment of the present disclosure, the generating module 730 is further configured to determine a waving direction of the drumstick based on waving data; determining a source pressure sensor of the tapping signal based on the unique code; based on the swing direction and the source pressure sensor, a target drumbeat is generated.
In one embodiment of the present disclosure, the generating module 730 is further configured to identify a striking object of the drumstick according to the source pressure sensor; identifying a knocking direction corresponding to the knocking object according to the waving direction; and generating target drumbeats according to the knocking objects and the knocking positions.
In one embodiment of the present disclosure, the play module 740 is further configured to determine a target volume of the target drum sound based on the tapping instantaneous pressure; and playing the target drum sound through a loudspeaker of the vehicle based on the target volume.
It should be noted that, for details not disclosed in the vehicle-mounted game control device according to the embodiment of the present disclosure, please refer to details disclosed in the vehicle-mounted game control method according to the second aspect of the present disclosure, and detailed descriptions thereof are omitted here.
In order to implement the above-mentioned embodiments, as shown in fig. 8, the present disclosure further proposes an electronic device 800, including a memory 810, a processor 820, and a computer program stored on the memory 810 and executable on the processor 820, where the processor 820 executes the program to implement the in-vehicle game control method according to the above-mentioned embodiments of the present disclosure.
In order to implement the above-described embodiments, the present disclosure also proposes a non-transitory computer-readable storage medium having stored thereon a computer program that is executed by a processor to implement the in-vehicle game control method proposed by the foregoing embodiments of the present disclosure.
In the description of this specification, the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present disclosure, the meaning of "a plurality" is at least two, such as two, three, etc., unless explicitly specified otherwise.
In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present disclosure. In this specification, schematic representations of the above terms are not necessarily directed to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, the different embodiments or examples described in this specification and the features of the different embodiments or examples may be combined and combined by those skilled in the art without contradiction.
Although embodiments of the present disclosure have been shown and described above, it will be understood that the above embodiments are illustrative and not to be construed as limiting the present disclosure, and that variations, modifications, alternatives, and variations may be made to the above embodiments by one of ordinary skill in the art within the scope of the present disclosure.

Claims (11)

1. A control method of an in-vehicle game, characterized by being executed by a drumstick, the method comprising:
acquiring swing data of the drumstick and instantaneous knocking pressure of the drumstick;
responding to the fact that the knocking instantaneous pressure is larger than or equal to a knocking pressure threshold value, generating a knocking signal according to the unique codes of the waving data and a source pressure sensor of the knocking instantaneous pressure, wherein the source pressure sensor is arranged on the drumstick;
and sending the knocking signal to a vehicle, wherein the knocking signal is used for generating target drumbeats.
2. The method of claim 1, wherein the acquiring swing data of the drumstick comprises:
and acquiring the swing data of the drumstick through an Inertial Measurement Unit (IMU) of the drumstick.
3. The method of claim 1, wherein generating a tapping signal from the unique code of the swing data and the source pressure sensor of the tapping transient pressure comprises:
generating the tapping signal according to the tapping instantaneous pressure, the waving data and the unique code of the source pressure sensor.
4. A vehicle-mounted game control method, characterized by being executed by a vehicle, the method comprising:
receiving a knocking signal sent by a drumstick;
analyzing the knocking signal to obtain signal data carried by the knocking signal, wherein the signal data comprises waving data and unique codes;
generating a target drumbeat which is required to be sent currently based on the waving data and the unique code;
and playing the target drum sound through a loudspeaker of the vehicle.
5. The method of claim 4, wherein the generating a target drum sound currently desired to be emitted based on the swing data and the unique code comprises:
determining a swing direction of the drumstick based on the swing data;
determining a source pressure sensor of the tapping signal based on the unique code;
the target drum sound is generated based on the swing direction and the source pressure sensor.
6. The method of claim 5, wherein the generating the target drum sound based on the swing direction and the source pressure sensor comprises:
identifying a striking object of the drumstick according to the source pressure sensor;
identifying a knocking direction corresponding to the knocking object according to the waving direction;
and generating the target drumbeat according to the knocking object and the knocking position.
7. The method of claim 4, wherein the signal data further comprises tap transient pressure;
wherein the playing the target drum sound through the speaker of the vehicle includes:
determining a target volume of the target drum sound based on the tapping instantaneous pressure;
and playing the target drum sound through a loudspeaker of the vehicle based on the target volume.
8. An in-vehicle game control apparatus, comprising:
the acquisition module is used for acquiring the swing data of the drumstick and the striking instantaneous pressure of the drumstick;
the generation module is used for responding to the fact that the knocking instantaneous pressure is larger than or equal to a knocking pressure threshold value, generating a knocking signal according to the unique codes of the source pressure sensor of the knocking instantaneous pressure and the waving data, and the source pressure sensor is arranged on the drumstick;
and the sending module is used for sending the knocking signal to the vehicle, and the knocking signal is used for generating target drumbeats.
9. An in-vehicle game control apparatus, comprising:
a receiving module for receiving a knocking signal sent by the drumstick;
the analysis module is used for analyzing the knocking signal to obtain signal data carried by the knocking signal, wherein the signal data comprises waving data and unique codes;
the generation module is used for generating target drumbeat which is required to be sent currently based on the waving data and the unique code;
and the playing module is used for playing the target drum sound through a loudspeaker of the vehicle.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the in-vehicle game control method of any one of claims 1-3 or claims 4-7 when the program is executed.
11. A non-transitory computer readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the in-vehicle game control method of any one of claims 1-3 or claims 4-7.
CN202210662159.4A 2022-06-13 2022-06-13 Vehicle-mounted game control method and device, electronic equipment and storage medium Pending CN117258270A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210662159.4A CN117258270A (en) 2022-06-13 2022-06-13 Vehicle-mounted game control method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210662159.4A CN117258270A (en) 2022-06-13 2022-06-13 Vehicle-mounted game control method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117258270A true CN117258270A (en) 2023-12-22

Family

ID=89208552

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210662159.4A Pending CN117258270A (en) 2022-06-13 2022-06-13 Vehicle-mounted game control method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117258270A (en)

Similar Documents

Publication Publication Date Title
US8858330B2 (en) Music video game with virtual drums
US7723604B2 (en) Apparatus and method for generating musical tone according to motion
JP3915257B2 (en) Karaoke equipment
US9406242B2 (en) Skill judging device, skill judging method and storage medium
WO2014030676A1 (en) Game machine, control method used in same, and computer program
JP2005103240A (en) Program, information storage medium, and game system
US9720509B2 (en) Gesture detection system, gesture detection apparatus, and mobile communication terminal
CN112005558B (en) Localization of sound in a loudspeaker system
US11120780B2 (en) Emulation of at least one sound of a drum-type percussion instrument
JP2006255072A (en) Program, information storage medium and game system
US8525006B2 (en) Input device and recording medium with program recorded therein
CN117258270A (en) Vehicle-mounted game control method and device, electronic equipment and storage medium
CN102760051B (en) A kind of method and electronic equipment obtaining voice signal
CN111462718A (en) Musical instrument simulation system
CN117258271A (en) Vehicle-mounted game control method and device, electronic equipment and storage medium
CN117258276A (en) Drumstick and vehicle-mounted game control method
JP2009131360A (en) Portable terminal, program and information storage medium
JP2022153363A (en) Server device, information processing method, and server program
WO2018189854A1 (en) Electronic musical instrument main body device and electronic musical instrument system
CN117258272A (en) Vehicle-mounted game control method and device, electronic equipment and storage medium
CN114434466A (en) Automobile intelligent cockpit performance evaluation simulation robot
WO2020091022A1 (en) Controller, rhythm game machine, and karaoke system
JP4420713B2 (en) PROGRAM, INFORMATION STORAGE MEDIUM, AND GAME DEVICE
KR101017578B1 (en) Virtual simulation game system and simulation game system using thereof
JP2008102813A (en) Annunciator arrangement

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