Background music matching system, method and equipment based on software writing speed self-adaption
Through a background music matching system based on software writing speed adaptive, background music is dynamically adjusted to match the writing speed, which solves the problem that background music cannot match the writing rhythm of test cases in the prior art, and improves the writing efficiency and experience.
Patent Information
- Application Number
- CN202510117163.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-24
- Publication Date
- 2025-04-18
AI Technical Summary
Existing background music playback is usually a fixed list loop or manually switched, which cannot match the working rhythm of the test case writing, resulting in poor writing efficiency and experience.
It provides a background music matching system based on software writing speed adaptive, including speed monitoring module, matching module and playback control module, to obtain the writing speed of the software writer in real time, and dynamically adjust the background music according to the writing speed to ensure that the music matches the writing speed.
By dynamically adjusting background music, the work efficiency and experience of software writers is improved, monotony and fatigue are reduced, and the writing process is more pleasant.
Smart Images

Figure CN119848290A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of software development auxiliary technology, and in particular to a background music matching system, method and device based on software writing speed adaptation. Background Art
[0002] In the software development process, writing test cases is a key link to ensure software quality. When developers or testers write a large number of test cases, they often face monotonous and boring situations, which affects efficiency and concentration. Although there are related applications for background music playback, there is no solution specifically for scenarios such as writing test cases to intelligently adjust the background music BGM according to the writing speed. Existing background music playback is usually a fixed list loop playback or manual switching, which cannot match the work rhythm of test case writing, and cannot effectively improve writing efficiency and improve writing experience. Summary of the invention
[0003] The present application provides a background music matching system, method and device based on software writing speed adaptation, which is used to solve the technical problem that the existing background music playback is usually a fixed list loop playback or manual switching, which cannot match the working rhythm of test case writing and cannot effectively improve the writing efficiency and improve the writing experience.
[0004] In order to achieve the above objectives, this application provides the following technical solutions:
[0005] On the one hand, a background music matching system based on software-written speed adaptation is provided, comprising:
[0006] Speed monitoring module, used to obtain the writing speed of software writers in real time;
[0007] A matching module, used to connect to a database, and the matching module is used to match the music type corresponding to the writing speed in the database using a matching rule according to the writing speed;
[0008] A playing control module, used for selecting background music from the database according to the music type and putting the background music into the software writer's working environment for playing, so as to switch the corresponding background music in real time according to the dynamic change of the writing speed;
[0009] Wherein, the database is used to store background music of various music types.
[0010] Preferably, the content of the matching rule includes:
[0011] If the writing speed is fast, the music type is fast-tempo music;
[0012] If the writing speed is medium speed, then the music type is medium tempo music;
[0013] If the writing speed is slow, the music type is slow-tempo music.
[0014] Preferably, the matching module is further used to determine the speed type according to the writing speed.
[0015] Preferably, the matching module includes a type determination submodule, and the type determination submodule is used to determine that if the writing speed is not greater than a first speed, the speed type is slow; if the writing speed is greater than the first speed and not greater than a second speed, the speed type is medium; if the writing speed is greater than the second speed, the speed type is fast.
[0016] Preferably, the speed monitoring module is used to obtain in real time the number of keyboard taps by the software writer per minute to obtain the writing speed.
[0017] Preferably, the playback control module includes an interaction submodule, and the interaction submodule is used for adjusting the music volume, playing the music and / or pausing the music.
[0018] On the other hand, a background music matching method based on software writing speed adaptation is provided, comprising the following steps:
[0019] Get the writing speed of software writers in real time;
[0020] According to the writing speed, a matching rule is used in a database to match the music type corresponding to the writing speed;
[0021] Selecting background music from the database according to the music type and playing the background music in the software writer's working environment, so as to switch the corresponding background music in real time according to the dynamic change of the writing speed;
[0022] Wherein, the database is used to store background music of various music types.
[0023] Preferably, the content of the matching rule includes:
[0024] If the writing speed is fast, the music type is fast-tempo music;
[0025] If the writing speed is medium speed, then the music type is medium tempo music;
[0026] If the writing speed is slow, the music type is slow-tempo music.
[0027] Preferably, before matching the music type corresponding to the writing speed in a database using a matching rule according to the writing speed, the background music matching method includes: determining the speed type according to the writing speed; the content of determining the speed type according to the writing speed includes: if the writing speed is not greater than the first speed, the speed type is slow; if the writing speed is greater than the first speed and not greater than the second speed, the speed type is medium; if the writing speed is greater than the second speed, the speed type is fast.
[0028] In another aspect, a terminal device is provided, comprising a processor and a memory;
[0029] The memory is used to store program codes and transmit the program codes to the processor;
[0030] The processor is used to execute the above-mentioned background music matching method based on software-written speed adaptation according to the instructions in the program code.
[0031] The background music matching system, method and device based on software writing speed self-adaptation include a speed monitoring module, a matching module connected to the speed monitoring module and a playing control module connected to the matching module. The speed monitoring module is used to obtain the writing speed of the software writer in real time; the matching module is used to connect to a database, and the matching module is used to match the music type corresponding to the writing speed in the database using a matching rule according to the writing speed; the playing control module is used to select background music from the database according to the music type and put the background music into the software writer's working environment for playing, so as to switch the corresponding background music in real time according to the dynamic change of the writing speed; the database is used to store background music of multiple music types.
[0032] It can be seen from the above technical solutions that the present application has the following advantages: the background music matching system based on software writing speed adaptation matches the background music with appropriate rhythm to the working environment of the software writer through the speed monitoring module, the matching module and the playback control module, which can enable the software writer to better maintain concentration and work rhythm, thereby speeding up the software writing speed and improving work efficiency; the background music can be adjusted according to the real-time acquisition of the software writer's writing speed through the matching module and the playback control module, reducing the monotony and fatigue, making the software writer more pleasant during the writing process, and improving the software writer's writing experience; the background music matching system based on software writing speed adaptation does not require manual switching of background music, and can automatically adjust the background music dynamically according to the writing speed, which is convenient and fast and realizes intelligence; it solves the technical problem that the existing background music playback is usually a fixed list loop playback or manual switching, which cannot match the working rhythm of test case writing, and cannot effectively improve the writing efficiency and improve the writing experience.
[0033] The background music matching method based on software writing speed adaptation can match the background music with suitable rhythm to the working environment of the software writer, so that the software writer can better maintain concentration and work rhythm, thereby speeding up the software writing speed and improving work efficiency; the background music can also be adjusted according to the real-time acquisition of the software writer's writing speed, reducing monotony and fatigue, making the software writer more pleasant during the writing process, thereby improving the software writer's writing experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0035] Figure 1 A schematic diagram of the structure of a background music matching system based on software-written speed adaptation according to an embodiment of the present application;
[0036] Figure 2 This is a schematic diagram of the steps of the software-based speed-adaptive background music matching method described in an embodiment of the present application. DETAILED DESCRIPTION
[0037] In order to make the purpose, features, and advantages of the invention of this application more obvious and easy to understand, the technical solutions in the embodiments of this application will be clearly and completely described below in conjunction with the drawings in the embodiments of this application. Obviously, the embodiments described below are only part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0038] In the description of the embodiments of the present application, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present application, the meaning of "multiple" is two or more, unless otherwise clearly and specifically defined.
[0039] In the embodiments of the present application, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral one; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the embodiments of the present application can be understood according to the specific circumstances.
[0040] This patent application term:
[0041] KPM stands for "keys per minute", which is the number of keystrokes per minute, which is a reference for measuring typing speed.
[0042] Fast-tempo music refers to music with a brisk and dynamic rhythm, usually with strong drum beats and fast tempo, which can stimulate the emotions and vitality of the audience.
[0043] Medium tempo music usually refers to music with a moderate tempo and smooth melody, usually between 90 and 120 beats per minute (BPM). This type of music is neither too slow nor too intense, and can provide a comfortable and relaxing listening experience. Medium tempo music is reflected in many musical styles, including but not limited to pop music, jazz, blues, country music, etc.
[0044] Slow music refers to music with a soft melody and slow tempo, which usually brings a relaxing and soothing effect. This kind of music is often used to relax, relieve stress or as background music.
[0045] The embodiments of the present application provide a background music matching system, method and device based on software writing speed self-adaptation, which solves the technical problem that the existing background music playback is usually a fixed list loop playback or manual switching, which cannot match the working rhythm of test case writing, and cannot effectively improve writing efficiency and improve writing experience. The background music matching system, method and device based on software writing speed self-adaptation can automatically select and play appropriate background music according to the speed at which the software writer writes the software test case, so as to improve the work efficiency and experience of the software writer, and help the software writer to better concentrate and maintain a good working state.
[0046] Embodiment 1:
[0047] Figure 1 This is a schematic diagram of the framework of the software-based speed-adaptive background music matching system described in an embodiment of the present application.
[0048] like Figure 1As shown, an embodiment of the present application provides a background music matching system with adaptive speed based on software writing, including a speed monitoring module 10, a matching module 20 connected to the speed monitoring module 10, and a playback control module 30 connected to the matching module 20.
[0049] In the embodiment of the present application, the speed monitoring module 10 is used to obtain the writing speed of the software writer in real time.
[0050] It should be noted that the speed monitoring module 10 is used to obtain the number of times the software writer taps the keyboard per minute in real time to obtain the writing speed. In this embodiment, when the software writer is writing a test case, the speed monitoring module 10 continuously obtains the writing speed data in real time. For example, the writing speed data can monitor the number of keyboard taps per minute, and use the number of taps as the writing speed. In other embodiments, the speed monitoring module 10 can also measure the writing speed by counting the number of lines or characters of the newly written test case code within a certain time interval (such as every minute).
[0051] In the embodiment of the present application, the matching module 20 is used to connect to the database 40, and the matching module 40 is used to match the music type corresponding to the writing speed using a matching rule in the database 40 according to the writing speed.
[0052] It should be noted that the database 40 is used to store background music of various types, including fast-tempo music, medium-tempo music, and slow-tempo music. The matching module 20 is used to obtain the writing speed in real time by the speed monitoring module 10 and use matching rules to search for the music type that matches the writing speed in the database 40. In this embodiment, the matching module 20 selects a suitable music type in the database 10 according to the currently obtained writing speed.
[0053] In the embodiment of the present application, the database 40 contains background music of various types, which are classified according to characteristics such as rhythm and style, such as fast-tempo motivational music, medium-tempo soothing music, slow-tempo relaxing music, etc. Each type of music has a corresponding speed interval mark.
[0054] In the embodiment of the present application, the playback control module 30 is used to select background music from the database 40 according to the music type and put the background music into the software writer's working environment for playback, so as to switch the corresponding background music in real time according to the dynamic changes in the writing speed.
[0055] It should be noted that the playback control module 30 is used to select the background music in the database 40 according to the music type and control the selected background music to be played in the writing work environment, and the background music can be switched in real time according to the dynamic changes in the writing speed to ensure that the background music is always adapted to the writing speed. In this embodiment, the playback control module 30 includes an interactive submodule, which is used to adjust the volume of music, play music and / or pause music. Among them, the software writer can perform operations such as volume adjustment and pause playback through the interface provided by the interactive submodule of the playback control module 30. For example, when the software writer needs a short break, the background music can be paused; when the software is restarted, the background music matching system based on the software writing speed adaptation can continue to play appropriate background music according to the current writing speed.
[0056] In an embodiment of the present application, during the playback process, the speed monitoring module 10 can be used to obtain changes in the writing speed, and the speed monitoring module 10, the matching module 20 and the playback control module 30 can cooperate with each other to achieve dynamic adjustment of the background music.
[0057] The present application provides a background music matching system based on software writing speed adaptation, comprising a speed monitoring module, a matching module connected to the speed monitoring module, and a playing control module connected to the matching module, wherein the speed monitoring module is used to obtain the writing speed of the software writer in real time; the matching module is used to connect to a database, and the matching module is used to match the music type corresponding to the writing speed in the database using a matching rule according to the writing speed; the playing control module is used to select background music from the database according to the music type and put the background music into the software writer's working environment for playing, so as to switch the corresponding background music in real time according to the dynamic changes of the writing speed; the database is used to store background music of multiple music types. The background music matching system based on software writing speed self-adaptation matches the background music with suitable rhythm to the working environment of the software writer through the speed monitoring module, the matching module and the playing control module, so that the software writer can better maintain concentration and work rhythm, thereby speeding up the software writing speed and improving work efficiency; the background music can be adjusted according to the real-time acquisition of the software writer's writing speed through the matching module and the playing control module, so as to reduce the monotony and fatigue, make the software writer more pleasant in the writing process, and improve the writing experience of the software writer; the background music matching system based on software writing speed self-adaptation does not need to manually switch the background music, and can automatically adjust the background music dynamically according to the writing speed, which is convenient, fast and intelligent; it solves the technical problem that the existing background music playback is usually fixed list loop playback or manual switching, which cannot match the working rhythm of test case writing, and cannot effectively improve the writing efficiency and improve the writing experience.
[0058] In one embodiment of the present application, the content of the matching rule includes:
[0059] If the writing speed is fast, the music type is fast-tempo music;
[0060] If the writing speed is medium, the music type is medium tempo music;
[0061] If the writing speed is slow, the music type is slow-tempo music.
[0062] It should be noted that the matching rules can be theoretically as follows: when the writing speed is fast, fast-paced music is matched; when the writing speed is moderate, medium-paced music is matched; when the writing speed is slow, slow-paced music is matched.
[0063] In one embodiment of the present application, the matching module 20 is further used to determine the speed type according to the writing speed. The matching module 20 includes a type determination submodule, which is used to determine that the speed type is slow if the writing speed is not greater than the first speed; that the speed type is medium if the writing speed is greater than the first speed and not greater than the second speed; and that the speed type is fast if the writing speed is greater than the second speed.
[0064] It should be noted that the first speed can be selected as 40KPM / min. The second speed can be selected as 80KPM / min. In other embodiments, the first speed and the second speed can also be set according to different ways in which the monitoring software writer obtains the writing speed.
[0065] Embodiment 2:
[0066] Figure 2 This is a schematic diagram of the steps of the software-based speed-adaptive background music matching method described in an embodiment of the present application.
[0067] like Figure 2 As shown, the embodiment of the present application provides a background music matching method based on software writing speed adaptation, comprising the following steps:
[0068] S1. Obtain the writing speed of the software writer in real time;
[0069] S2. According to the writing speed, the music type corresponding to the writing speed is matched using matching rules in the database;
[0070] S3 selects background music from the database according to the type of music and plays the background music in the software writer's working environment to switch the corresponding background music in real time according to the dynamic changes in the writing speed;
[0071] The database is used to store background music of various types.
[0072] It should be noted that the contents of the steps in the method of Example 2 have been described in the contents of the module in the system of Example 1, and the contents of the background music matching method steps based on software writing speed adaptation will not be repeated in this embodiment. In this embodiment, the background music matching method based on software writing speed adaptation can match the background music with a suitable rhythm to the working environment of the software writer, so that the software writer can better maintain concentration and work rhythm, thereby speeding up the software writing speed and improving work efficiency; the background music can also be adjusted according to the real-time acquisition of the software writer's writing speed, reducing monotony and fatigue, making the software writer more pleasant during the writing process, and improving the software writer's writing experience.
[0073] In the embodiment of the present application, the content of the matching rule includes:
[0074] If the writing speed is fast, the music type is fast-tempo music;
[0075] If the writing speed is medium, the music type is medium tempo music;
[0076] If the writing speed is slow, the music type is slow-tempo music.
[0077] In an embodiment of the present application, before matching the music type corresponding to the writing speed in the database using a matching rule according to the writing speed, the background music matching method includes: determining the speed type according to the writing speed; the content of determining the speed type according to the writing speed includes: if the writing speed is not greater than the first speed, the speed type is slow; if the writing speed is greater than the first speed and not greater than the second speed, the speed type is medium; if the writing speed is greater than the second speed, the speed type is fast.
[0078] Embodiment three:
[0079] An embodiment of the present application provides a terminal device, including a processor and a memory;
[0080] A memory, used for storing program codes and transmitting the program codes to a processor;
[0081] The processor is used to execute the above-mentioned background music matching method based on software-written speed adaptation according to the instructions in the program code.
[0082] It should be noted that the processor is used to execute the steps in the above-mentioned software-based speed adaptive background music matching method embodiment according to the instructions in the program code. Alternatively, the processor implements the functions of each module / unit in the above-mentioned system / device embodiments when executing the computer program.
[0083] Exemplarily, the computer program may be divided into one or more modules / units, one or more modules / units are stored in a memory and executed by a processor to complete the present application. One or more modules / units may be a series of computer program instruction segments capable of completing a specific function, and the instruction segments are used to describe the execution process of the computer program in a terminal device.
[0084] The terminal device may be a computing device such as a desktop computer, a notebook, a PDA, or a cloud server. The terminal device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that this does not constitute a limitation on the terminal device, and may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal device may also include input and output devices, network access devices, buses, etc.
[0085] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0086] The memory can be an internal storage unit of the terminal device, such as a hard disk or memory of the terminal device. The memory can also be an external storage device of the terminal device, such as a plug-in hard disk equipped on the terminal device, a SmartMedia Card (SMC), a Secure Digital (SD) card, a Flash Card, etc. Furthermore, the memory can also include both the internal storage unit of the terminal device and the external storage device. The memory is used to store computer programs and other programs and data required by the terminal device. The memory can also be used to temporarily store data that has been output or is to be output.
[0087] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0088] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0089] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0090] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0091] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.
[0092] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A background music matching system based on software-written speed adaptation, characterized in that: include: Speed monitoring module, used to obtain the writing speed of software writers in real time; A matching module, used to connect to a database, and the matching module is used to match the music type corresponding to the writing speed in the database using a matching rule according to the writing speed; A playing control module, used for selecting background music from the database according to the music type and putting the background music into the software writer's working environment for playing, so as to switch the corresponding background music in real time according to the dynamic change of the writing speed; Wherein, the database is used to store background music of various music types.
2. The background music matching system based on software-written speed adaptation according to claim 1 is characterized in that: The content of the matching rules includes: If the writing speed is fast, the music type is fast-tempo music; If the writing speed is medium speed, then the music type is medium tempo music; If the writing speed is slow, the music type is slow-tempo music.
3. The background music matching system based on software-written speed adaptation according to claim 1 is characterized in that: The matching module is also used to determine the speed type according to the writing speed.
4. The background music matching system based on software-written speed adaptation according to claim 3 is characterized in that: The matching module includes a type determination submodule, which is used to determine that if the writing speed is not greater than a first speed, the speed type is slow; if the writing speed is greater than the first speed and not greater than a second speed, the speed type is medium; if the writing speed is greater than the second speed, the speed type is fast.
5. The background music matching system based on software-written speed adaptation according to any one of claims 1 to 4, characterized in that: The speed monitoring module is used to obtain the number of keyboard taps by the software writer per minute in real time to obtain the writing speed.
6. The background music matching system based on software-written speed adaptation according to any one of claims 1 to 4, characterized in that: The playback control module includes an interaction submodule, and the interaction submodule is used for adjusting the music volume, playing the music and / or pausing the music.
7. A background music matching method based on software-written speed adaptation, characterized in that: The following steps are involved: Get the writing speed of software writers in real time; According to the writing speed, a matching rule is used in a database to match the music type corresponding to the writing speed; Selecting background music from the database according to the music type and playing the background music in the software writer's working environment, so as to switch the corresponding background music in real time according to the dynamic change of the writing speed; Wherein, the database is used to store background music of various music types.
8. The background music matching method based on software-written speed adaptation according to claim 7 is characterized in that: The content of the matching rules includes: If the writing speed is fast, the music type is fast-tempo music; If the writing speed is medium speed, then the music type is medium tempo music; If the writing speed is slow, the music type is slow-tempo music.
9. The background music matching method based on software-written speed adaptation according to claim 7, characterized in that: Before matching the music type corresponding to the writing speed in a database using a matching rule according to the writing speed, the background music matching method includes: determining the speed type according to the writing speed; the content of determining the speed type according to the writing speed includes: if the writing speed is not greater than a first speed, the speed type is slow; if the writing speed is greater than the first speed and not greater than the second speed, the speed type is medium; if the writing speed is greater than the second speed, the speed type is fast.
10. A terminal device, characterized in that: including a processor and a memory; The memory is used to store program codes and transmit the program codes to the processor; The processor is used to execute the background music matching method based on software-written speed adaptation as described in any one of claims 7 to 9 according to the instructions in the program code.