A volume visualization method, device, equipment and storage medium
By obtaining volume data and determining the color change speed according to its amplitude, and changing the display color of the volume bar, the problem of slow and stiff volume change effects in the prior art is solved, and the smooth natural animation performance and user experience of the volume bar are improved.
Patent Information
- Application Number
- CN202311681260.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-07
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2043-12-07
AI Technical Summary
The visual bars of existing audio data are accumulated step by step, resulting in slow and stiff volume changes, which cannot effectively reflect the different levels of volume jumps. Users need to observe carefully to distinguish the volume changes.
By obtaining the target volume data, determining the volume change amplitude and determining the color change speed based on it, changing the display color in the volume bar, so that the volume bar animation is smooth and natural.
It improves the user experience, solves the problem of slow and stiff volume changes, and enhances the animation performance of the volume bar and the attractiveness of the user interface.
Smart Images

Figure CN117724629B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the technical field of audio channels, and in particular to a volume visualization method, apparatus, device and storage medium. Background Art
[0002] The existing audio data visualization bar usually realizes the volume jump by a step-by-step accumulation method, which makes the volume change effect very slow and abrupt. This volume visualization method also cannot reflect the different volume levels of the volume jump bar, and sometimes users need to observe carefully to distinguish the volume change. Summary of the invention
[0003] The embodiments of the present invention provide a volume visualization method, apparatus, device and storage medium, which can determine the color change speed based on audio data, and then change the display color in the volume bar based on the color change speed, so that the animation of the volume bar is smooth and natural, thereby improving the user experience.
[0004] In a first aspect, an embodiment of the present invention provides a volume visualization method, the method comprising:
[0005] Get target volume data;
[0006] Determining a target volume change amplitude according to the target volume data, and determining a target color change speed according to the target volume change amplitude;
[0007] The color display area within the preset gradient color area is changed according to the target color change speed.
[0008] In a second aspect, an embodiment of the present invention provides a volume visualization device, the device comprising:
[0009] A volume data acquisition module, used to acquire target volume data;
[0010] a color change speed determination module, used to determine a target volume change amplitude according to the target volume data, and determine a target color change speed according to the target volume change amplitude;
[0011] The color display area changing module is used to change the color display area in the preset gradient color area according to the target color change speed.
[0012] In a third aspect, an embodiment of the present invention provides a computer device, the computer device comprising:
[0013] one or more processors;
[0014] A memory for storing one or more programs;
[0015] When the one or more programs are executed by the one or more processors, the one or more processors implement the volume visualization method described in any embodiment.
[0016] In a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the volume visualization method described in any embodiment.
[0017] The technical solution provided by the embodiment of the present invention obtains target volume data; determines the target volume change amplitude according to the target volume data, and determines the target color change speed according to the target volume change amplitude; and changes the color display area in the preset gradient color area according to the target color change speed. The technical solution of the embodiment of the present invention solves the problem that the volume bar of audio data in the prior art uses a step-by-step accumulation method to achieve volume jumps, and the volume change effect is slow and abrupt. The color change speed can be determined based on the audio data, and the display color in the volume bar can be changed based on the color change speed, so that the animation of the volume bar is smooth and natural, improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] Figure 1 is a flow chart of a volume visualization method provided by an embodiment of the present invention;
[0019] Figure 2 is a flow chart of another volume visualization method provided by an embodiment of the present invention;
[0020] Figure 3 This is a workflow diagram for volume visualization provided by an embodiment of the present invention;
[0021] Figure 4 is a schematic diagram of a volume visualization interface provided by an embodiment of the present invention;
[0022] Figure 5 is a structural schematic diagram of a volume visualization device provided by an embodiment of the present invention;
[0023] Figure 6 It is a structural schematic diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0025] Figure 1 This is a flow chart of a volume visualization method provided by an embodiment of the present invention. The embodiment of the present invention can be applied to a scenario in which volume changes in audio data are visualized. The method can be executed by a volume visualization device, which can be implemented by software and / or hardware.
[0026] like Figure 1 As shown, the volume visualization method includes the following steps:
[0027] S110: Obtain target volume data.
[0028] The target volume data may be volume data that needs to be visualized. Specifically, the user may upload the volume data that needs to be visualized to the device of the embodiment of the present invention, and the device uses the acquired volume data as the target volume data.
[0029] S120: Determine a target volume change amplitude according to the target volume data, and determine a target color change speed according to the target volume change amplitude.
[0030] Among them, the target volume change amplitude may be the amplitude of the volume value in the target volume data. Specifically, based on a preset interval duration, the volume value in the target volume data may be detected to determine the target volume change amplitude. The target color change speed may be the speed at which the color in the preset visualization area changes. Specifically, the target color change speed may be determined based on the target volume change amplitude based on the correspondence between the volume value and the height in the preset visualization area. By uniformly changing the color in the preset visualization area through the target color change speed, the color change in the preset visualization area can be made smooth and natural, thereby increasing the visualization of the preset visualization area and improving the user's viewing experience.
[0031] S130. Change a color display area within a preset gradient color area according to the target color change speed.
[0032] Among them, the color display area can be an area for display in a preset gradient color area. The background color of the preset gradient color area is a gradient color; the color display area is an area for priority display in the preset gradient color area. That is, only the color display area in the preset gradient color area is displayed, and other areas are not displayed. After determining the target color change speed, the height of the color display area in the preset gradient color area can be uniformly changed based on the target color change speed until it is stretched to the target area display height. Among them, the target stretching speed is associated with the target color change speed. Since the background color of the preset gradient color area is a gradient color, in the process of stretching the height of the color display area in the preset gradient color area to the target area display height at the target stretching speed, a color continuous smooth gradient effect will be presented, which can increase the attractiveness and dynamics of the user interface and improve the user's viewing experience. In addition, changing the color display area in the preset gradient color area according to the target color change speed can solve the problem that each increase in volume jump in the prior art triggers the recalculation of the UI (User Interface) layout, resulting in a large performance overhead, and can reduce performance loss, ensuring that the application can provide an excellent user experience without being affected.
[0033] The technical solution provided by the embodiment of the present invention obtains target volume data; determines the target volume change amplitude according to the target volume data, and determines the target color change speed according to the target volume change amplitude; and changes the color display area in the preset gradient color area according to the target color change speed. The technical solution of the embodiment of the present invention solves the problem that the volume bar of audio data in the prior art uses a step-by-step accumulation method to achieve volume jumps, and the volume change effect is slow and abrupt. The color change speed can be determined based on the audio data, and the display color in the volume bar can be changed based on the color change speed, so that the animation of the volume bar is smooth and natural, and the user experience is improved.
[0034] Figure 2 This is another volume visualization method flow chart provided by an embodiment of the present invention. The embodiment of the present invention can be applied to the scene of visually displaying the volume change in audio data. Based on the above embodiment, this embodiment further explains how to determine the target volume change amplitude according to the target volume data, and determine the target color change speed according to the target volume change amplitude; and how to change the color display area in the preset gradient color area according to the target color change speed. The device can be implemented by software and / or hardware, and integrated into a computer device with application development function.
[0035] like Figure 2 As shown, the volume visualization method includes the following steps:
[0036] S210: Obtain target volume data.
[0037] The target volume data may be volume data that needs to be visualized. Specifically, the user may upload the volume data that needs to be visualized to the device of the embodiment of the present invention, and the device uses the acquired volume data as the target volume data.
[0038] S220: Determine control jump height information of a preset volume indicator control according to the volume value in the target volume data.
[0039] The preset volume indicator control may be a preset control for indicating changes in volume values. Specifically, the preset volume indicator control is used to indicate changes in volume values in target volume data; the control jump height of the preset volume indicator control corresponds to the volume value. Exemplarily, a corresponding jump range and jump height scale may be set for the preset volume indicator control, each jump height scale corresponds to a volume value, and thus the control adjustment height of the control may correspond to each volume value in the volume data.
[0040] Furthermore, the control jump height information may be information related to the jump height of the preset volume indicator control. Specifically, the control jump height information includes but is not limited to information such as the jump amplitude and jump frequency of the preset volume indicator control. Since the jump height of the control corresponds to the volume value, the control jump height information can be determined based on the change of the volume value in the target volume data.
[0041] S230. Determine a target control jump amplitude according to the control jump height information, and determine a target color change speed according to the target control jump amplitude.
[0042] Among them, the target control jump amplitude can be the jump amplitude of the preset volume indicator control. Specifically, the jump height in the control jump height information can be analyzed based on the preset interval duration, and then the target control jump amplitude can be determined. The target color change speed can be the speed at which the color in the preset visualization area changes. By uniformly changing the color in the preset visualization area through the target color change speed, the color change in the preset visualization area can be made smooth and natural, thereby increasing the visualization of the preset visualization area and improving the user's viewing experience.
[0043] Specifically, when determining the target color change speed based on the jump amplitude of the target control, the jump height of the preset volume indicator control can be detected at every preset update duration to obtain a jump height detection value; the target color change speed is determined based on the jump height detection value at the current moment and the corresponding jump height detection value at the previous moment.
[0044] Among them, the preset update duration can be a preset duration for updating the color in the preset visualization area. That is, the color change speed must be recalculated every preset update duration, and then the color in the preset visualization area is updated based on the color change speed. The jump height detection value can be the jump height value of the preset volume indicator control determined every preset update duration. Further, by determining the jump height detection value at the current moment and the corresponding jump height detection value at the previous moment, the jump height change value of the preset volume indicator control can be determined, and then the target color change speed is determined according to the jump height change value.
[0045] Furthermore, when determining the target color change speed, the current height detection value and the previous height detection value can be subtracted to obtain the target height change value; the target height change value is multiplied by a preset conversion ratio coefficient to obtain the target color change height; the target color change speed is determined based on the target color change height and the preset update duration.
[0046] Among them, the target height change value can be the difference between the jump height detection value at the current moment and the corresponding previous moment. Specifically, the jump height detection value at the current moment and the jump height detection value at the corresponding previous moment can be subtracted to obtain the target height change value. Further, the preset conversion ratio coefficient can be the ratio coefficient between the jump height of the control and the height in the preset visualization area. The target color change height can be the change value of the display height in the preset visualization area. Specifically, the target height change value can be multiplied by the preset conversion ratio coefficient to obtain the target color change height. The target color change height can then be divided by the preset update duration to obtain the target color change speed.
[0047] S240: Determine the target area display height according to the target color change speed and the preset update duration.
[0048] The target area display height may be the height of the display area in the preset visualization area. That is, the area to be displayed in the preset visualization area is the area from the bottom to the target area display height. Specifically, the target color change speed and the preset update time may be multiplied, and the product value may be used as the target area display height.
[0049] S250. Based on the target color change speed, stretch the height of the color display area in the preset gradient color area to the target area display height at a target stretching speed.
[0050] Among them, the color display area can be an area displayed in a preset gradient color area. The preset gradient color area is also the preset visualization area mentioned above. The background color of the preset gradient color area is a gradient color; the color display area is an area that is preferentially displayed in the preset gradient color area. That is, only the color display area in the preset gradient color area is displayed, and other areas are not displayed. After determining the target color change speed, the height of the color display area in the preset gradient color area can be uniformly changed based on the target color change speed until it is stretched to the target area display height. Among them, the target stretching speed is associated with the target color change speed. Since the background color of the preset gradient color area is a gradient color, in the process of stretching the height of the color display area in the preset gradient color area to the target area display height at the target stretching speed, a smooth color gradient effect will be presented, which can increase the visualization of the volume data and improve the user's viewing experience.
[0051] In this optional implementation, the preset volume indicator control and the stretching process of the color display area can be displayed in the preset visualization interface. By displaying the preset volume indicator control and the stretching process of the color display area in the mapping visualization interface, the user can understand the intensity of the volume in real time by observing the height of the color display area, which provides intuitive volume feedback.
[0052] For example, Figure 3 FIG. 1 is a flow chart of volume visualization provided by an embodiment of the present invention. Figure 3 As shown in the figure, the workflow for volume visualization includes the following steps: Step 1: Create a control: Create a custom control that inherits from the Border class and sets its background color to a gradient color. This background is used to present the gradient effect when jumping, and this part remains unchanged.
[0053] Step 2: Draw a rectangle: Next, draw a rectangle in this control and add it to the control's child elements. The function of this rectangle is to cover the background gradient color when jumping. The jumping method is to stretch from the top of the control to the bottom. This visual effect will show that the bottom gradient color gradually appears during the jumping process. This method achieves the jumping effect while keeping the gradient color unchanged.
[0054] Step 3: Create a global animation: Create a DoubleAnimation animation, and set its interval to jump once every 100 milliseconds. At the same time, define two dependency properties, Value and MaxValue. The Value property is used to indicate the range of the jump, while MaxValue is used to limit the maximum value of the jump to prevent the jump from exceeding the layout range.
[0055] Step 4: Bounce calculation: In this step, we preset the bounce gain to G, which ranges from -72 to 0, where 0 represents the maximum volume and -72 represents the minimum volume. We also preset the maximum value of MaxValue to 72. To calculate the bounce effect, we use the formula Value = 72-(-G), and we also calculate y, which represents the percentage between the height of the control and the maximum value. The rectangle is used to implement the bounce, and its height is calculated as value*y. By applying these values to the DoubleAnimation animation, the bounce effect is implemented in a loop. Here, you can adjust the preset bounce gain and maximum value. This technology allows developers to customize the volume range to meet the needs of different application scenarios.
[0056] For example, Figure 4 : This is a schematic diagram of a volume visualization interface provided by an embodiment of the present invention. The area indicated by the arrow in the figure is a preset gradient color area. When the volume changes, the display color of the preset gradient color area will change accordingly. On the right side of the preset gradient color area is a preset volume indicator control. The scale value on the right side of the preset volume indicator control is the volume value. When the volume of the volume data changes, the preset volume indicator control will jump to the corresponding height. Figure 4 As shown, the left side of the figure is a schematic diagram of the volume visualization interface when the volume value is "0". At this time, the preset volume indicator control jumps to the height corresponding to the volume value of "0", and the preset gradient color area only displays a partial area; the left side of the figure is a schematic diagram of the volume visualization interface when the volume value is "12". Since 12 is the maximum value of the volume value, the preset volume indicator control jumps to the highest point at this time, and the preset gradient color area only displays the entire area.
[0057] The technical solution provided by the embodiment of the present invention obtains the target volume data; determines the control jump height information of the preset volume indicator control according to the volume value in the target volume data; determines the target control jump amplitude according to the control jump height information, and determines the target color change speed according to the target control jump amplitude; determines the target area display height according to the target color change speed and the preset update duration; based on the target color change speed, stretches the height of the color display area in the preset gradient color area to the target area display height at the target stretching speed. The technical solution of the embodiment of the present invention solves the problem that the volume bar of audio data in the prior art uses a step-by-step accumulation method to achieve volume jumps, and the volume change effect is slow and abrupt. The color change speed can be determined based on the audio data, and the display color in the volume bar can be changed based on the color change speed, so that the animation of the volume bar is smooth and natural, and the user experience is improved.
[0058] Figure 51 is a schematic diagram of the structure of a volume visualization device provided by an embodiment of the present invention. The embodiment of the present invention can be applied to a scenario in which volume changes in audio data are visualized. The device can be implemented by software and / or hardware and integrated into a computer device with application development function.
[0059] like Figure 5 As shown, the volume visualization device includes: a volume data acquisition module 310 , a color change speed determination module 320 and a color display area change module 330 .
[0060] Among them, the volume data acquisition module 310 is used to obtain target volume data; the color change speed determination module 320 is used to determine the target volume change amplitude according to the target volume data, and determine the target color change speed according to the target volume change amplitude; the color display area change module 330 is used to change the color display area within the preset gradient color area according to the target color change speed.
[0061] The technical solution provided by the embodiment of the present invention obtains target volume data; determines the target volume change amplitude according to the target volume data, and determines the target color change speed according to the target volume change amplitude; and changes the color display area in the preset gradient color area according to the target color change speed. The technical solution of the embodiment of the present invention solves the problem that the volume bar of audio data in the prior art uses a step-by-step accumulation method to achieve volume jumps, and the volume change effect is slow and abrupt. The color change speed can be determined based on the audio data, and the display color in the volume bar can be changed based on the color change speed, so that the animation of the volume bar is smooth and natural, improving the user experience.
[0062] In an optional embodiment, the color change speed determination module 320 is specifically used to: determine the control jump height information of the preset volume indicator control according to the volume value in the target volume data; determine the target control jump amplitude according to the control jump height information, and determine the target color change speed according to the target control jump amplitude; wherein the preset volume indicator control is used to indicate the change of the volume value in the target volume data; the control jump height of the preset volume indicator control corresponds to the volume value.
[0063] In an optional embodiment, the color change speed determination module 320 includes: a control jump analysis unit, used to: detect the jump height of the preset volume indicator control at each preset update duration to obtain a jump height detection value; determine the target color change speed based on the jump height detection value at the current moment and the corresponding jump height detection value at the previous moment.
[0064] In an optional embodiment, the control jump analysis unit includes: a change speed calculation subunit, used to: subtract the current height detection value from the previous height detection value to obtain a target height change value; multiply the target height change value by a preset conversion ratio coefficient to obtain the target color change height; determine the target color change speed based on the target color change height and the preset update duration.
[0065] In an optional embodiment, the color display area change module 330 is specifically used to: determine the target area display height according to the target color change speed and the preset update duration; based on the target color change speed, stretch the height of the color display area within the preset gradient color area to the target area display height at a target stretching speed; wherein the target stretching speed is associated with the target color change speed.
[0066] In an optional implementation, the volume visualization device further includes: a preset interface display module, configured to display the preset volume indication control and the stretching process of the color display area in a preset visualization interface.
[0067] In an optional implementation, the background color of the preset gradient color area is a gradient color; and the color display area is a priority display area within the preset gradient color area.
[0068] The volume visualization device provided in the embodiment of the present invention can execute the volume visualization method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0069] Figure 6 A schematic diagram of the structure of a computer device provided in an embodiment of the present invention. Figure 6 A block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention is shown. Figure 6 The computer device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention. The computer device 12 can be any terminal device with computing capability and can be configured in the volume visualization device.
[0070] like Figure 6 As shown, the computer device 12 is in the form of a general-purpose computing device. The components of the computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).
[0071] The bus 18 may be one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. For example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0072] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.
[0073] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache 32. The computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 6 not shown, usually called a "hard drive"). Although Figure 6 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.
[0074] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.
[0075] The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), one or more devices that enable a user to interact with the computer device 12, and / or any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed through an input / output (I / O) interface 22. Furthermore, the computer device 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) through a network adapter 20. Figure 6 As shown, the network adapter 20 communicates with other modules of the computer device 12 via the bus 18. It should be understood that although Figure 6 Not shown, other hardware and / or software modules may be used in conjunction with computer device 12, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0076] The processing unit 16 executes various functional applications and data processing by running the program stored in the system memory 28, for example, implementing the volume visualization method provided in the embodiment of the present invention, the method comprising:
[0077] Get target volume data;
[0078] Determining a target volume change amplitude according to the target volume data, and determining a target color change speed according to the target volume change amplitude;
[0079] The color display area within the preset gradient color area is changed according to the target color change speed.
[0080] This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the volume visualization method provided by any embodiment of the present invention is implemented, including:
[0081] Get target volume data;
[0082] Determining a target volume change amplitude according to the target volume data, and determining a target color change speed according to the target volume change amplitude;
[0083] The color display area within the preset gradient color area is changed according to the target color change speed.
[0084] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to: an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.
[0085] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0086] The program code embodied on the computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0087] Computer program code for performing the operations of the present invention may be written in one or more programming languages or combinations thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0088] It should be understood by those skilled in the art that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, optionally, they can be implemented by a program code executable by a computer device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0089] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A volume visualization method, It is characterized in that include: Get target volume data; Determining a target volume change amplitude according to the target volume data, and determining a target color change speed according to the target volume change amplitude; Changing the color display area within the preset gradient color area according to the target color change speed; Wherein, changing the color display area in the preset gradient color area according to the target color change speed includes: Determine the target area display height according to the target color change speed and the preset update time; Based on the target color change speed, the height of the color display area in the preset gradient color area is stretched to the target area display height at a target stretching speed; wherein the target stretching speed is associated with the target color change speed.
2. The method according to claim 1, It is characterized in that The step of determining a target volume change amplitude according to the target volume data, and determining a target color change speed according to the target volume change amplitude, comprises: Determine the control jump height information of the preset volume indication control according to the volume value in the target volume data; Determine the target control beating amplitude according to the control beating height information, and determine the target color change speed according to the target control beating amplitude; The preset volume indicator control is used to indicate the volume value change in the target volume data; and the control jump height of the preset volume indicator control corresponds to the volume value.
3. The method according to claim 2, It is characterized in that The step of determining the target control jump amplitude according to the control jump height information, and determining the target color change speed according to the target control jump amplitude, includes: Detecting the jumping height of the preset volume indicator control at every preset update time interval to obtain a jumping height detection value; The target color change speed is determined according to the jump height detection value at the current moment and the jump height detection value at the corresponding previous moment.
4. The method according to claim 3, It is characterized in that Determining the target color change speed according to the jump height detection value at the current moment and the jump height detection value at the corresponding previous moment includes: Subtract the current height detection value from the previous height detection value to obtain the target height change value; Multiply the target height change value by a preset conversion ratio coefficient to obtain the target color change height; The target color change speed is determined according to the target color change height and the preset update duration.
5. The method according to claim 1, It is characterized in that The method further comprises: A preset volume indicator control and the stretching process of the color display area are displayed in a preset visualization interface.
6. The method according to claim 1, It is characterized in that The background color of the preset gradient color area is a gradient color; and the color display area is a priority display area within the preset gradient color area.
7. A volume visualization device, It is characterized in that The device comprises: A volume data acquisition module, used to acquire target volume data; a color change speed determination module, used to determine a target volume change amplitude according to the target volume data, and determine a target color change speed according to the target volume change amplitude; A color display area changing module, used to change the color display area within a preset gradient color area according to the target color change speed; The color display area change module is specifically used to: determine the target area display height according to the target color change speed and the preset update duration; based on the target color change speed, stretch the height of the color display area in the preset gradient color area to the target area display height at a target stretching speed; wherein the target stretching speed is associated with the target color change speed.
8. A computer device, It is characterized in that The computer device comprises: one or more processors; A memory for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the volume visualization method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the program is executed by a processor, the volume visualization method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Method and device for marking speaker in video conference
CN108111799A
Method and device for implementing volume bar
CN108182097A
Volume adjustment and volume fluctuation combined display method and device, equipment and storage medium
CN110704016A
Target object display method and device, electronic equipment and computer readable storage medium
CN113467678A
Display controller for displaying gain setting value by hue
JP2005198356A
