Method, device and terminal for editing and playing music according to data download speed
First Claim
1. A method for editing and playing music according to a data download speed, comprising:
- Step A, recording a download speed value at a preset time interval after data download is started;
sorting a preset number of the continuously recorded download speed values in ascending order;
generating, according to the preset number of continuously recorded download speed values, a number of speed domains, wherein the number of the speed domains is one more than the preset number of the download speed values, and setting one set frequency for each speed domain, wherein each set frequency corresponds to one preset musical sound;
determining which speed domain the immediate subsequent download speed value belongs to, and transmitting the set frequency, corresponding to the speed domain which the immediate subsequent download speed value belongs to, to an audio master control unit;
calling a dynamic link library in a computer operating system, and sending an instruction having a parameter with the set frequency to an Application Programming Interface (API);
converting the instruction to a recognizable code instruction for a computer, and sending the code to a playing unit;
Step B, playing a preset musical sound corresponding to a set frequency which corresponds to a speed domain when an immediate subsequent download speed value is within the speed domain, andStep C, updating the preset number of the continuously recorded download speed values and prompting a user whether to turn off an audio function;
if the user selects not to turn off the audio function, returning to Step A; and
if the user selects to turn off the audio function, exiting an application program.
1 Assignment
0 Petitions
Accused Products
Abstract
The disclosure discloses a method, a device and a terminal for editing and playing music according to a data download speed. The method includes: generating, according to a preset number of continuously recorded download speed values, a number of preset speed domains, wherein the number of the preset speed domains is one more than the preset number of the download speed values, and setting one set frequency for each preset speed domain, wherein each set frequency corresponds to one preset musical sound; and playing a preset musical sound corresponding to a set frequency which corresponds to a preset speed domain when an immediate subsequent download speed value is within the preset speed domain. By means of the disclosure, an entertainment effect of “playing music randomly” can be achieved, so that entertainment experience of a user is increased and competitiveness of a product is improved.
-
Citations
13 Claims
-
1. A method for editing and playing music according to a data download speed, comprising:
-
Step A, recording a download speed value at a preset time interval after data download is started;
sorting a preset number of the continuously recorded download speed values in ascending order;generating, according to the preset number of continuously recorded download speed values, a number of speed domains, wherein the number of the speed domains is one more than the preset number of the download speed values, and setting one set frequency for each speed domain, wherein each set frequency corresponds to one preset musical sound; determining which speed domain the immediate subsequent download speed value belongs to, and transmitting the set frequency, corresponding to the speed domain which the immediate subsequent download speed value belongs to, to an audio master control unit; calling a dynamic link library in a computer operating system, and sending an instruction having a parameter with the set frequency to an Application Programming Interface (API); converting the instruction to a recognizable code instruction for a computer, and sending the code to a playing unit; Step B, playing a preset musical sound corresponding to a set frequency which corresponds to a speed domain when an immediate subsequent download speed value is within the speed domain, and Step C, updating the preset number of the continuously recorded download speed values and prompting a user whether to turn off an audio function; if the user selects not to turn off the audio function, returning to Step A; and if the user selects to turn off the audio function, exiting an application program. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A device for editing and playing music according to a data download speed, comprising an audio control module and a playing unit, wherein
the audio control module is configured to perform step A comprising generating, according to a preset number of continuously recorded download speed values, a number of speed domains, wherein the number of the speed domains is one more than the preset number of the download speed values, and set one set frequency for each speed domain, wherein each set frequency corresponds to one preset musical sound; -
determining which speed domain the immediate subsequent download speed value belongs to, and transmitting the set frequency, corresponding to the speed domain which the immediate subsequent download speed value belongs to, to an audio master control unit; calling a dynamic link library in a computer operating system, and sending an instruction having a parameter with the set frequency to an Application Programming Interface (API); and converting the instruction to a recognizable code instruction for a computer, and sending the code to the playing unit; the playing unit is connected with the audio control module and is configured to perform step B comprising playing a preset musical sound corresponding to a set frequency which corresponds to a speed domain when an immediate subsequent download speed value is within the speed domain, the audio control module is further configured to perform step C comprising updating the preset number of the continuously recorded download speed values and prompting a user whether to turn off an audio function; if the user selects not to turn off the audio function, returning to Step A; and if the user selects to turn off the audio function, exiting an application program; wherein the audio control module comprises; a speed recorder, configured to record a download speed value at a preset time interval after the device starts to download data;
sort the preset number of the continuously recorded download speed values in ascending order to generate the speed domains, wherein the number of the speed domains is one more than the preset number of the download speed values;
set one set frequency for each speed domain, wherein each set frequency corresponds to one preset musical sound;wherein the speed recorder is further configured to output prompt information of whether to turn off an audio function. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A terminal for editing and playing music according to a data download speed, comprising a device for editing and playing the music according to the data download speed, wherein the device is configured to perform the following steps,
Step A, recording a download speed value at a preset time interval after data download is started; - sorting a preset number of the continuously recorded download speed values in ascending order;
generating, according to the preset number of continuously recorded download speed values, a number of speed domains, wherein the number of the speed domains is one more than the preset number of the download speed values, and set one set frequency for each speed domain, wherein each set frequency corresponds to one preset musical sound; determining which speed domain the immediate subsequent download speed value belongs to, and transmitting the set frequency, corresponding to the speed domain which the immediate subsequent download speed value belongs to, to an audio master control unit; calling a dynamic link library in a computer operating system, and sending an instruction having a parameter with the set frequency to an Application Programming Interface (API); and converting the instruction to a recognizable code instruction for a computer, and sending the code to the playing unit; Step B, playing a preset musical sound corresponding to a set frequency which corresponds to a speed domain when an immediate subsequent download speed value is within the speed domain; and Step C, updating the preset number of the continuously recorded download speed values and prompting a user whether to turn off an audio function; if the user selects not to turn off the audio function, returning to Step A; and if the user selects to turn off the audio function, exiting an application program.
- sorting a preset number of the continuously recorded download speed values in ascending order;
Specification