CN105225680B - Audio frequency playing method and device with horizontal displacement is changed based on height above sea level - Google Patents

Audio frequency playing method and device with horizontal displacement is changed based on height above sea level Download PDF

Info

Publication number
CN105225680B
CN105225680B CN201510615873.8A CN201510615873A CN105225680B CN 105225680 B CN105225680 B CN 105225680B CN 201510615873 A CN201510615873 A CN 201510615873A CN 105225680 B CN105225680 B CN 105225680B
Authority
CN
China
Prior art keywords
state
climber
audio
height above
above sea
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.)
Active
Application number
CN201510615873.8A
Other languages
Chinese (zh)
Other versions
CN105225680A (en
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.)
Hubei University of Arts and Science
Original Assignee
Hubei University of Arts and Science
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 Hubei University of Arts and Science filed Critical Hubei University of Arts and Science
Priority to CN201510615873.8A priority Critical patent/CN105225680B/en
Publication of CN105225680A publication Critical patent/CN105225680A/en
Application granted granted Critical
Publication of CN105225680B publication Critical patent/CN105225680B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention proposes a kind of audio frequency playing method and device changed based on height above sea level with horizontal displacement, including audio is divided into different type, sets the corresponding audio types of every kind of motion state, and motion state type is divided into physical features state and speed state;Carry out motion state detection and correspondingly audio is played.The present invention can be changed by detecting the height above sea level of climber and suitable audio is played in horizontal displacement selection, can further improve the intelligent of audio playing apparatus, meets the demand of numerous sports fans, more preferable audio experience is brought to climber.

Description

Audio frequency playing method and device with horizontal displacement is changed based on height above sea level
Technical field
The present invention relates to a kind of audio frequency playing method and device changed based on height above sea level with horizontal displacement, belong to audio Application of the technology in Sports Field.
Background technology
People often like in motion and listen music while moving, such as when running, climbing the mountain, by listen music or The audio of some other type such as chirping of birds etc., can increase the enjoyment of motion, eliminate the tired of motion, and adjustment sporter is (main Climber) mood, and then promote motion efficiency, improve motion effect.But the music listened during current people's motion and Audio is mostly to realize shuffle or played in order after one group of music of selection, but people are when in different motion state Often tend to listen different genres of music or audio.Exemplified by climbing the mountain, in mountain-climbing, if the road of mountain-climbing is more precipitous, or Climb the mountain speed when, climber's physical demands is larger, if now listening strong audio magnificent, be conducive to climber after It is continuous to adhere to, crest a hill;If the road of mountain-climbing is shallower, or mountain-climbing speed it is slower when, climber's physical demands is smaller, mountain-climbing Person is lighter, often likes and listens more easily audio.Because current technology can not realize automatic switchover, can only manual switching broadcast The music or audio put, this brings for climber uses upper inconvenience, and climber needs to shift note during exercise Meaning power simultaneously frees hand to switch music so that motion has potential safety hazard.Existing market not yet notices this demand, without phase Technical scheme is closed to occur.
The content of the invention
The present invention proposes a kind of audio frequency playing method and device based on height above sea level change and horizontal displacement, it is therefore intended that It can automatically select suitable audio according to the change of climber height above sea level and horizontal displacement and play out.
A kind of audio frequency playing method changed based on height above sea level with horizontal displacement of technical solution of the present invention proposition, including with Lower step:
Step 1, audio classification, including audio is divided into different type, number of types is designated as M;
Step 2, motion state is set, including sets the corresponding audio types of every kind of motion state;The fortune of the climber Dynamic Status Type is divided into physical features state and speed state, and physical features state includes " precipitous state ", " gentle state " and " level road shape State ", speed state includes " fast state ", " middling speed state ", " state at a slow speed ";
Step 3, motion state detection and correspondingly audio broadcasting, including following sub-step,
Step 3.1, note detection number of times is n, and the time accordingly detected is designated as T (n), initializes n=1, carries out height above sea level With horizontal displacement initial detecting, the height above sea level H (1) and horizontal level S (1) of current climber present position are detected;
Step 3.2, audio initial play;
Step 3.3, motion state detection is carried out, is included in after certain interval of time t, n=n+1, the current mountain-climbing of detection is made The height above sea level H (n) and horizontal level S (n) of person present position, the time of detection are designated as T (n);
Step 3.4, motion state, which is calculated, judges, including following sub-step,
Step 3.4.1, judges whether that height above sea level changes DelH (n) and is not equal to 0 and horizontal displacement DelS (n) equal to 0, is Physical features state is then judged for " precipitous state ", into step 3.5, otherwise into step 3.4.2;
Wherein, DelH (n)=| H (n)-H (n-1) |, DelS (n)=| S (n)-S (n-1) |;
Step 3.4.2, judges whether that horizontal displacement DelS (n) is equal to 0, is then to judge that climber is in " level road state ", Into step 3.4.5, otherwise into step 3.4.3;
Step 3.4.3, calculates the steep D (n), D (n)=DelH (n)/DelS (n) on the road of climber's mountain-climbing;
Step 3.4.4, carries out physical features condition discrimination,
If D (n) is less than D1, climber is in " level road state ";
If D (n) is not less than D1 and less than D2, climber is in " gentle state ";
If D (n) is not less than D2, climber is in " precipitous state ";
Wherein, D1 is the default criteria for classifying of " level road state " and " gentle state ", and wherein D2 is " gentle state " and " steep The default criteria for classifying of high and steep state ";
Step 3.4.5, the dimensional orientation change DelK (n) for calculating climber is as follows,
Step 3.4.6, calculates dimensional orientation pace of change VH (n)=DelK (n)/(T (n)-T (n-1)) of climber;
Step 3.4.7, carries out speed state and differentiates as follows,
If VH (n) is less than V1, climber is in " state at a slow speed ",
If VH (n) is not less than V1 and less than V2, climber is in " middling speed state ",
If VH (n) is not less than V2, climber is in " fast state ";
Wherein, V1 is the criteria for classifying of " state at a slow speed " and " middling speed state ", and wherein V2 is " middling speed state " and " quick shape The criteria for classifying of state ", V1 and V2 are corresponding predetermined threshold value;
Step 3.5, judging time T (n) corresponding states and time T (n-1) corresponding state of last time detection of detection is No difference, according to the new corresponding audio types of state plays if different, does not switch if audio types are identical;Then Return to step 3.3, until stopping flow.
Moreover, the audio is to input to obtain from other electronic equipments, or downloads acquisition from network, or obtained by recording Take, or acquisition is made by audio Core Generator.
Moreover, setting P1 represents that " precipitous state ", P2 represent that " gentle state ", P3 are represented " level road state ", S1 represents " quick State ", S2 represent that " middling speed state ", S3 are represented " state at a slow speed ", it is comprehensive after constitute climber state set P1S1, P1S2, P1S3, P2S1, P2S2, P2S3, P3S1, P3S2, P3S3 }, comprehensive state and the corresponding relation of audio types are in set It is one-to-one or one-to-many, or many-one.
The present invention also provides a kind of audio playing apparatus changed based on height above sea level with horizontal displacement, including following mould Block:
Audio classification module, for audio to be divided into different type, number of types is designated as M;
Motion state setup module, for setting the corresponding audio types of every kind of motion state;The motion of the climber Status Type is divided into physical features state and speed state, and physical features state includes " precipitous state ", " gentle state " and " level road state ", Speed state includes " fast state ", " middling speed state ", " state at a slow speed ";
Height above sea level detection module, for detecting that climber is presently in the height above sea level of position;
Horizontal level detection module, for detecting that climber is presently in the horizontal level of position;
Timing module, the corresponding time for recording detection;
Motion state computing module, for according to height above sea level, the horizontal level inspection obtained by height above sea level detection module The time that the horizontal level and timing module that survey module is obtained are obtained, calculating obtains the current motion state of climber;
Audio playing module, for being set according to the motion state obtained by motion state computing module, and motion state The motion state of module and audio types corresponding relation, obtain the corresponding audio types of current motion state, and play the audio The audio of type;
Moreover, the audio broadcasting course of work is as follows,
It is n that motion state, which calculates judge module note detection number of times, and the time accordingly detected obtained by timing module is designated as into T (n) n=1, is initialized, order height above sea level detection module and horizontal level detection module carry out height above sea level and horizontal position respectively Initial detecting is moved, the height above sea level H (1) and horizontal level S (1) of current climber present position is detected;
Audio playing module carries out audio initial play;
Motion state calculates judge module and carries out real time kinematics state-detection, is included in after certain interval of time t, makes n=n + 1, order height above sea level detection module and horizontal level detection module detect the height above sea level of current climber present position respectively H (n) and horizontal level S (n), T (n) is designated as by the time accordingly detected obtained by timing module;Then motion state calculating is carried out Judge;
Audio playing module judges time T (n) corresponding states of detection shape corresponding to the time T (n-1) of last time detection Whether state is different, according to the new corresponding audio types of state plays if different, does not switch if audio types are identical; Then order motion state calculates judge module work, until stopping.
Moreover, the motion state, which calculates judge module, carries out real time kinematics state-detection, implementation is as follows,
Step 3.4.1, judges whether that height above sea level changes DelH (n) and is not equal to 0 and horizontal displacement DelS (n) equal to 0, is Physical features state is then judged for " precipitous state ", into step 3.5, otherwise into step 3.4.2;
Wherein, DelH (n)=| H (n)-H (n-1) |, DelS (n)=| S (n)-S (n-1) |;
Step 3.4.2, judges whether that horizontal displacement DelS (n) is equal to 0, is then to judge that climber is in " level road state ", Into step 3.4.5, otherwise into step 3.4.3;
Step 3.4.3, calculates the steep D (n), D (n)=DelH (n)/DelS (n) on the road of climber's mountain-climbing;
Step 3.4.4, carries out physical features condition discrimination,
If D (n) is less than D1, climber is in " level road state ";
If D (n) is not less than D1 and less than D2, climber is in " gentle state ";
If D (n) is not less than D2, climber is in " precipitous state ";
Wherein, D1 is the default criteria for classifying of " level road state " and " gentle state ", and wherein D2 is " gentle state " and " steep The default criteria for classifying of high and steep state ";
Step 3.4.5, the dimensional orientation change DelK (n) for calculating climber is as follows,
Step 3.4.6, calculates dimensional orientation pace of change VH (n)=DelK (n)/(T (n)-T (n-1)) of climber;
Step 3.4.7, carries out speed state and differentiates as follows,
If VH (n) is less than V1, climber is in " state at a slow speed ",
If VH (n) is not less than V1 and less than V2, climber is in " middling speed state ",
If VH (n) is not less than V2, climber is in " fast state ";
Wherein, V1 is the criteria for classifying of " state at a slow speed " and " middling speed state ", and wherein V2 is " middling speed state " and " quick shape The criteria for classifying of state ", V1 and V2 are corresponding predetermined threshold value.
Moreover, the audio is to input to obtain from other electronic equipments, or downloads acquisition from network, or obtained by recording Take, or acquisition is made by audio Core Generator.
Moreover, setting P1 represents that " precipitous state ", P2 represent that " gentle state ", P3 are represented " level road state ", S1 represents " quick State ", S2 represent that " middling speed state ", S3 are represented " state at a slow speed ", it is comprehensive after constitute climber state set P1S1, P1S2, P1S3, P2S1, P2S2, P2S3, P3S1, P3S2, P3S3 }, comprehensive state and the corresponding relation of audio types are in set It is one-to-one or one-to-many, or many-one.
The present invention proposes audio frequency playing method and device based on height above sea level change and horizontal displacement, and climber's steps on The steep on the road of mountain speed and current mountain-climbing can be obtained by height above sea level change and horizontal displacement, be climbed the mountain by detecting Suitable audio is played in the height above sea level change and horizontal displacement selection of person, without user's manual switching, is brought more to climber Good usage experience, while the security of climber's motion can be improved.The buyer of portable audio playing apparatus is a lot Sports fan, the switching play-back technology proposed by the present invention that automatically selects can further improve the intelligent of audio playing apparatus, The demand of numerous sports fans is met, therefore, the present invention is by with great market value.
Brief description of the drawings
Fig. 1 is the apparatus structure block diagram of the embodiment of the present invention.
Fig. 2 is the real-time overhaul flow chart of present invention method.
Embodiment
Referring to Fig. 1, the embodiment of the present invention provides a kind of audio playing apparatus changed based on height above sea level with horizontal displacement, Including with lower module:
Audio classification module, for audio to be divided into different type, audio types are output to by number of types M, M not less than 2 Motion state setup module.
When it is implemented, audio can be inputted from other electronic equipments, either downloaded from network and obtain or obtained by recording Take, or made by audio Core Generator.Classification can also automatically be classified by manually being classified.Automatic point The foundation of class can have a variety of, including but not limited to rhythm, melody, musical instrument, style etc., title, singer etc. can also be used as according to According to a part, the attribute that can be carried according to audio file classified.Some audios can be downloaded in advance and are classified, such as 40 The audio of the nature sound such as the music of individual different-style type and some record chirping of birds, be respectively divided into M1 " symphony ", M2 " march ", M3 " folk song ", five audio types of M4 " rock music " and M5 " chirping of birds ".
Motion state setup module, corresponding audio types during for setting climber to be in different motion Status Type; Motion state type and audio types and corresponding relation are output to audio playing module.
The motion state type of climber can be divided into two classes:Physical features state and speed state, physical features state may be configured as With Types Below:P1 " precipitous state ", P2 " gentle state ", P3 " level road state ", speed state may be configured as with Types Below:S1 " fast state ", S2 " middling speed state ", S3 " state at a slow speed ".Two kinds of classification states constitute the state set of climber after integrating { P1S1, P1S2, P1S3, P2S1, P2S2, P2S3, P3S1, P3S2, P3S3 }, such as comprehensive state P1S1 are while in P1 The situation of " precipitous state " and S1 " fast state ", the state of each in set can correspond to a kind of audio types, can also be many A kind of audio types of the state of kind correspondence, or a kind of a variety of audio types of state correspondence.I.e. described motion state and audio types Corresponding relation to be one-to-one or one-to-many, or many-one is feasible.
It can for example correspond to as follows:State P1S1, P1S2 and P1S3 correspond to M1, P2S1 correspondence M4, P2S2 correspondence M2, P2S3 correspondence M2 and M5, P3S1 M3 corresponding with P3S2 and M5, P3S3 correspondence M5.
Height above sea level detection module, for detecting that climber is presently in the height above sea level H (n) of position, is output to motion State computation module, the record value of the n-th detection gained height above sea level of this motion is identified using n.
Horizontal level detection module, for detecting that climber is presently in the horizontal level S (n) of position, is output to motion State computation module, the record value of the n-th detection gained horizontal level of this motion is identified using n.
Specific detection can use prior art, and height above sea level is obtained using existing detection sensor when climber climbs the mountain Information and horizontal position information, refer to the smart mobile phone with corresponding detection function.
Timing module, the corresponding time T (n) for recording n-th detection, output time T (n) to motion state calculates mould Block.Absolute time can be used, such as Beijing time, Greenwich Mean Time, relative time can also be recorded, such as current relative mountain-climbing The time of beginning.
Motion calculation module, records the height above sea level H (n) inputted by height above sea level detection module, horizontal level detection mould Horizontal level S (n) that block the is obtained and current time T (n) inputted by timing module, calculating obtains the motion shape of climber currently State, and motion state is output to audio playing module, it is implemented as follows:
Height above sea level change DelH (n) is calculated according to formula (1), wherein H (n-1) is the height above sea level recorded at T (n-1) moment Degree,
DelH (n)=| H (n)-H (n-1) | formula (1)
The horizontal level S at horizontal level S (n) and T (n-1) moment at T (n) moment that horizontal level detection module is obtained (n-1), horizontal displacement DelS (n) is obtained according to formula (2)
DelS (n)=| S (n)-S (n-1) | formula (2)
If height above sea level change DelH (n) is equal to 0 and horizontal displacement DelS (n) and is equal to 0, illustrate that climber is in static State, can be considered as climber and be in " level road state ", not make any operation, be returned directly to the step of flow initially starts, Carry out the detection of subsequent time;" inactive state " can also be used as a corresponding music of single state plays.If extra large Pull out height change DelH (n) and be not equal to 0 and horizontal displacement DelS (n) equal to 0, illustrate that climber is moving vertically, then physical features State is " precipitous state ";
If horizontal displacement DelS (n) is not equal to 0, DelH (n) is changed according to height above sea level and horizontal displacement DelS (n) is pressed The steep D (n) on the road of climber's mountain-climbing is calculated according to formula (3)
D (n)=DelH (n)/DelS (n) formula (3)
If D (n) is less than D1, climber is in " level road state ", such as when DelH (n) is equal to 0;If D (n) is not small In D1 and less than D2, then climber is in " gentle state ", if D (n) is not less than D2, climber is in " precipitous state ", Wherein D1 is the criteria for classifying of " level road state " and " gentle state ", and wherein D2 is the division of " gentle state " and " precipitous state " Standard, D1 and D2 are corresponding predetermined threshold value, can be configured by climber oneself according to itself impression, can also be by counting Obtain,
Calculate and the sky that DelH (n) and horizontal displacement DelS (n) calculate climber according to formula (4) is changed according to height above sea level Between Orientation differences DelK (n),
Formula (4)
Judge its speed state according to the speed VH (n) of the dimensional orientation change of formula (5) calculating climber,
VH (n)=DelK (n)/(T (n)-T (n-1)) formula (5)
If VH (n) is less than V1, climber is in " state at a slow speed ", if VH (n) is stepped on not less than V1 and less than V2 Mountain person is in " middling speed state ", if VH (n) is not less than V2, climber is in " fast state ", and wherein V1 is " shape at a slow speed The criteria for classifying of state " and " middling speed state ", wherein V2 is the criteria for classifying of " middling speed state " and " fast state ", and V1 and V2 are phase The predetermined threshold value answered, can be configured by climber oneself according to own bodies quality, can also be obtained by statistics;
In above-mentioned calculating, n>1, i.e., first record when calculated without motion state;
Audio playing module, for being set according to the motion state obtained by motion state computing module, and motion state The motion state of module and audio types corresponding relation, obtain the corresponding audio types of current motion state, and play the audio The audio of type, for the sake of improving efficiency, can obtain motion state, with audio playing module according to by motion state computing module The former motion state of storage is contrasted, and if the same continues to play original audio, new sound is switched to if different Frequency type, and play.
When it is implemented, add module can be realized by dress provided by the present invention in the equipment such as existing mp3, mp4, mobile phone Put, it would however also be possible to employ software engineering realizes corresponding flow automatic running.One kind that the embodiment of the present invention is provided is based on height above sea level Degree change and the audio frequency playing method of horizontal displacement, comprise the following steps:
Step 1, audio classification, including audio is divided into different type, number of types M, M are typically no less than 2.
Step 2, motion state is set, including sets the corresponding audio types of every kind of motion state.
Step 3, motion state detection and correspondingly audio broadcasting, including following sub-step,
Step 3.1, height above sea level and horizontal displacement initial detecting are carried out, the height above sea level of current climber present position is detected Spend H (1) and horizontal level S (1);
When it is implemented, can remember that detection number of times is n, n=1 is initialized, step 3.1 is to be detected first, is obtained Height above sea level H (n) is H (1), similarly obtains horizontal level S (1);The time of detection is designated as T (n), i.e. T (1).
Step 3.2, audio initial play, audio can also be given tacit consent to according to a certain pattern, such as M2, entered with shuffle Row is played.
Step 3.3, after certain interval of time t, n=n+1 is made, motion state detection, the current mountain-climbing of detection is re-started The height above sea level H (n) and horizontal level S (n) of person present position, when it is implemented, t values voluntarily can be set or be used by user Default setting set in advance, to adjust the time interval between motion state detection twice, can set the smaller time To track user's status in time;The time of detection is designated as T (n).
Step 3.4, motion state, which is calculated, judges, including following sub-step,
Step 3.4.1, judges whether that height above sea level changes DelH (n) and is not equal to 0 and horizontal displacement DelS (n) equal to 0, is Physical features state is then judged for " precipitous state ", into step 3.5, otherwise into step 3.4.2;
Wherein, DelH (n)=| H (n)-H (n-1) |, DelS (n)=| S (n)-S (n-1) |;
Step 3.4.2, judges whether that horizontal displacement DelS (n) is equal to 0, is then to judge that climber is in " level road state ", Into step 3.4.5, otherwise into step 3.4.3;
Step 3.4.3, be now not equal to for horizontal displacement DelS (n) 0 situation, calculate climber's mountain-climbing road it is precipitous Degree D (n), D (n)=DelH (n)/DelS (n);
Step 3.4.4, carries out physical features condition discrimination,
If D (n) is less than D1, climber is in " level road state ";
If D (n) is not less than D1 and less than D2, climber is in " gentle state ";
If D (n) is not less than D2, climber is in " precipitous state ";
Wherein, D1 is the default criteria for classifying of " level road state " and " gentle state ", and wherein D2 is " gentle state " and " steep The default criteria for classifying of high and steep state ";
Step 3.4.5, the dimensional orientation change DelK (n) for calculating climber is as follows,
Step 3.4.6, calculates dimensional orientation pace of change VH (n)=DelK (n)/(T (n)-T (n-1)) of climber
Step 3.4.7, carries out speed state and differentiates as follows,
If VH (n) is less than V1, climber is in " state at a slow speed ",
If VH (n) is not less than V1 and less than V2, climber is in " middling speed state ",
If VH (n) is not less than V2, climber is in " fast state ";
Wherein, V1 is the criteria for classifying of " state at a slow speed " and " middling speed state ", and wherein V2 is " middling speed state " and " quick shape The criteria for classifying of state ", V1 and V2 are corresponding predetermined threshold value;
Flow is implemented reference can be made to Fig. 2.
Step 3.5, judging time T (n) corresponding states and time T (n-1) corresponding state of last time detection of detection is No difference, according to the new corresponding audio types of state plays if different, does not switch if audio types are identical.
Step 3.3 is then back to, until stopping flow.When it is implemented, be able to can also be worked as certainly by user's manual-lock Dynamic to detect a period of time T height above sea level and close when horizontal level does not change, T values can be default settings, can also be by User is set.
What the present invention was not described in detail partly belongs to techniques well known.
Above example is used for illustrative purposes only, rather than limitation of the present invention, about the technology people of technical field Member, without departing from the spirit and scope of the present invention, can also make various conversion or modification, therefore all equivalent Technical scheme, both falls within protection scope of the present invention.

Claims (8)

1. a kind of audio frequency playing method changed based on height above sea level with horizontal displacement, it is characterised in that comprise the following steps:
Step 1, audio classification, including audio is divided into different type, number of types is designated as M;
Step 2, motion state is set, including sets the corresponding audio types of every kind of motion state;The motion state class of climber Type is divided into physical features state and speed state, and physical features state includes " precipitous state ", " gentle state " and " level road state ", speed shape State includes " fast state ", " middling speed state ", " state at a slow speed ";
Step 3, motion state detection and correspondingly audio broadcasting, including following sub-step,
Step 3.1, note detection number of times is n, and the time accordingly detected is designated as T (n), initializes n=1, carries out height above sea level and water Prosposition moves initial detecting, detects the height above sea level H (1) and horizontal level S (1) of current climber present position;
Step 3.2, audio initial play;
Step 3.3, motion state detection is carried out, is included in after certain interval of time t, n=n+1 is made, current climber institute is detected Locate the height above sea level H (n) and horizontal level S (n) of position, the time of detection is designated as T (n);
Step 3.4, motion state, which is calculated, judges, including following sub-step,
Step 3.4.1, judges whether that height above sea level changes DelH (n) and is not equal to 0 and horizontal displacement DelS (n) equal to 0, is to sentence Disconnected physical features state is " precipitous state ", into step 3.5, otherwise into step 3.4.2;
Wherein, DelH (n)=| H (n)-H (n-1) |, DelS (n)=| S (n)-S (n-1) |;
Step 3.4.2, judges whether that horizontal displacement DelS (n) is equal to 0, is then to judge that climber is in " level road state ", enters Step 3.4.5, otherwise into step 3.4.3;
Step 3.4.3, calculates the steep D (n), D (n)=DelH (n)/DelS (n) on the road of climber's mountain-climbing;
Step 3.4.4, carries out physical features condition discrimination,
If D (n) is less than D1, climber is in " level road state ";
If D (n) is not less than D1 and less than D2, climber is in " gentle state ";
If D (n) is not less than D2, climber is in " precipitous state ";
Wherein, D1 is the default criteria for classifying of " level road state " and " gentle state ", and wherein D2 is " gentle state " and " precipitous shape The default criteria for classifying of state ";
Step 3.4.5, the dimensional orientation change DelK (n) for calculating climber is as follows,
Step 3.4.6, calculates dimensional orientation pace of change VH (n)=DelK (n)/(T (n)-T (n-1)) of climber;
Step 3.4.7, carries out speed state and differentiates as follows,
If VH (n) is less than V1, climber is in " state at a slow speed ",
If VH (n) is not less than V1 and less than V2, climber is in " middling speed state ",
If VH (n) is not less than V2, climber is in " fast state ";
Wherein, V1 is the criteria for classifying of " state at a slow speed " and " middling speed state ", and wherein V2 is " middling speed state " and " fast state " The criteria for classifying, V1 and V2 are corresponding predetermined threshold value;
Step 3.5, whether not time T (n) corresponding states and last time T (n-1) corresponding state detected of detection are judged Together, do not switched if audio types are identical according to the new corresponding audio types of state plays if different;It is then back to Step 3.3, until stopping flow.
2. the audio frequency playing method with horizontal displacement is changed based on height above sea level according to claim 1, it is characterised in that:Institute It is to input to obtain from other electronic equipments to state audio, or downloads acquisition from network, or is obtained by recording, or is generated by audio Tool making is obtained.
3. the audio frequency playing method according to claim 1 or claim 2 changed based on height above sea level with horizontal displacement, its feature is existed In:If P1 represents that " precipitous state ", P2 represent that " gentle state ", P3 are represented " level road state ", S1 represents " fast state ", S2 tables Show that " middling speed state ", S3 are represented " state at a slow speed ", it is comprehensive after constitute climber state set P1S1, P1S2, P1S3, P2S1, P2S2, P2S3, P3S1, P3S2, P3S3 }, comprehensive state and the corresponding relation of audio types are one-to-one in set, or It is one-to-many, or many-one.
4. a kind of audio playing apparatus changed based on height above sea level with horizontal displacement, it is characterised in that including with lower module:
Audio classification module, for audio to be divided into different type, number of types is designated as M;
Motion state setup module, for setting the corresponding audio types of every kind of motion state;The motion state type of climber It is divided into physical features state and speed state, physical features state includes " precipitous state ", " gentle state " and " level road state ", speed state Including " fast state ", " middling speed state ", " state at a slow speed ";
Height above sea level detection module, for detecting that climber is presently in the height above sea level of position;
Horizontal level detection module, for detecting that climber is presently in the horizontal level of position;
Timing module, the corresponding time for recording detection;
Motion state computing module, for according to height above sea level, horizontal level the detection mould obtained by height above sea level detection module The time that the horizontal level and timing module that block is obtained are obtained, calculating obtains the current motion state of climber;
Audio playing module, for according to the motion state obtained by motion state computing module, and motion state setup module Motion state and audio types corresponding relation, obtain the corresponding audio types of current motion state, and play the audio types Audio.
5. the audio playing apparatus with horizontal displacement is changed based on height above sea level according to claim 4, it is characterised in that:Sound The frequency broadcasting course of work is as follows,
It is n that motion state, which calculates judge module note detection number of times, is designated as into T (n), just the time accordingly detected obtained by timing module Beginningization n=1, order height above sea level detection module and horizontal level detection module carry out height above sea level respectively and horizontal displacement is initial Detection, detects the height above sea level H (1) and horizontal level S (1) of current climber present position;
Audio playing module carries out audio initial play;
Motion state calculates judge module and carries out real time kinematics state-detection, is included in after certain interval of time t, makes n=n+1, Order height above sea level detection module and horizontal level detection module detect the height above sea level H of current climber present position respectively (n) with horizontal level S (n), the time accordingly detected obtained by timing module is designated as T (n);Then motion state calculating is carried out to sentence It is disconnected;
Audio playing module judges that time T (n) corresponding states and time T (n-1) corresponding state of last time detection of detection are No difference, according to the new corresponding audio types of state plays if different, does not switch if audio types are identical;Then Order motion state calculates judge module work, until stopping.
6. the audio playing apparatus with horizontal displacement is changed based on height above sea level according to claim 5, it is characterised in that:Institute State motion state and calculate judge module progress real time kinematics state-detection, implementation is as follows,
Step 3.4.1, judges whether that height above sea level changes DelH (n) and is not equal to 0 and horizontal displacement DelS (n) equal to 0, is to sentence Disconnected physical features state is " precipitous state ", into step 3.5, otherwise into step 3.4.2;
Wherein, DelH (n)=| H (n)-H (n-1) |, DelS (n)=| S (n)-S (n-1) |;
Step 3.4.2, judges whether that horizontal displacement DelS (n) is equal to 0, is then to judge that climber is in " level road state ", enters Step 3.4.5, otherwise into step 3.4.3;
Step 3.4.3, calculates the steep D (n), D (n)=DelH (n)/DelS (n) on the road of climber's mountain-climbing;
Step 3.4.4, carries out physical features condition discrimination,
If D (n) is less than D1, climber is in " level road state ";
If D (n) is not less than D1 and less than D2, climber is in " gentle state ";
If D (n) is not less than D2, climber is in " precipitous state ";
Wherein, D1 is the default criteria for classifying of " level road state " and " gentle state ", and wherein D2 is " gentle state " and " precipitous shape The default criteria for classifying of state ";
Step 3.4.5, the dimensional orientation change DelK (n) for calculating climber is as follows,
Step 3.4.6, calculates dimensional orientation pace of change VH (n)=DelK (n)/(T (n)-T (n-1)) of climber;
Step 3.4.7, carries out speed state and differentiates as follows,
If VH (n) is less than V1, climber is in " state at a slow speed ",
If VH (n) is not less than V1 and less than V2, climber is in " middling speed state ",
If VH (n) is not less than V2, climber is in " fast state ";
Wherein, V1 is the criteria for classifying of " state at a slow speed " and " middling speed state ", and wherein V2 is " middling speed state " and " fast state " The criteria for classifying, V1 and V2 are corresponding predetermined threshold value.
7. the audio playing apparatus with horizontal displacement, its feature are changed based on height above sea level according to claim 4 or 5 or 6 It is:The audio is to input to obtain from other electronic equipments, or downloads acquisition from network, or is obtained by recording, or is passed through Audio Core Generator, which makes, to be obtained.
8. the audio playing apparatus with horizontal displacement, its feature are changed based on height above sea level according to claim 4 or 5 or 6 It is:If P1 represents that " precipitous state ", P2 represent that " gentle state ", P3 represent " level road state ", S1 represents " fast state ", S2 Represent that " middling speed state ", S3 are represented " state at a slow speed ", it is comprehensive after constitute climber state set P1S1, P1S2, P1S3, P2S1, P2S2, P2S3, P3S1, P3S2, P3S3 }, comprehensive state and the corresponding relation of audio types are one-to-one in set, or It is one-to-many, or many-one.
CN201510615873.8A 2015-09-24 2015-09-24 Audio frequency playing method and device with horizontal displacement is changed based on height above sea level Active CN105225680B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510615873.8A CN105225680B (en) 2015-09-24 2015-09-24 Audio frequency playing method and device with horizontal displacement is changed based on height above sea level

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510615873.8A CN105225680B (en) 2015-09-24 2015-09-24 Audio frequency playing method and device with horizontal displacement is changed based on height above sea level

Publications (2)

Publication Number Publication Date
CN105225680A CN105225680A (en) 2016-01-06
CN105225680B true CN105225680B (en) 2017-08-08

Family

ID=54994584

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510615873.8A Active CN105225680B (en) 2015-09-24 2015-09-24 Audio frequency playing method and device with horizontal displacement is changed based on height above sea level

Country Status (1)

Country Link
CN (1) CN105225680B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101111743A (en) * 2004-12-17 2008-01-23 耐克国际有限公司 Multi-sensor montoring of athletic performance
CN101388233A (en) * 2008-10-22 2009-03-18 深圳华为通信技术有限公司 Method for playing music based on step of user and mobile terminal
CN102955897A (en) * 2011-08-10 2013-03-06 索尼公司 Information processing apparatus, information processing method, program, and recording medium
CN104714648A (en) * 2015-03-25 2015-06-17 广东欧珀移动通信有限公司 Method and device for switching music playing scenes

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9409052B2 (en) * 2008-10-03 2016-08-09 Adidas Ag Program products, methods, and systems for providing location-aware fitness monitoring services

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101111743A (en) * 2004-12-17 2008-01-23 耐克国际有限公司 Multi-sensor montoring of athletic performance
CN101388233A (en) * 2008-10-22 2009-03-18 深圳华为通信技术有限公司 Method for playing music based on step of user and mobile terminal
CN102955897A (en) * 2011-08-10 2013-03-06 索尼公司 Information processing apparatus, information processing method, program, and recording medium
CN104714648A (en) * 2015-03-25 2015-06-17 广东欧珀移动通信有限公司 Method and device for switching music playing scenes

Also Published As

Publication number Publication date
CN105225680A (en) 2016-01-06

Similar Documents

Publication Publication Date Title
TWI716413B (en) Method of fading between a first audio section and a second destination audio section, a computer program product, and an audio system
CN101859562B (en) Method for matching conventional images with karaoke melodies in real time
CN105142017B (en) Picture switching method and picture switching device during picture video playing
JP4264752B2 (en) Audio signal player and playback method
US20220067114A1 (en) Search media content based upon tempo
CN101640057A (en) Audio and video matching method and device therefor
US10372757B2 (en) Search media content based upon tempo
CN106531201A (en) Song recording method and device
CN101197180B (en) Player and method for playing media file
CN105225680B (en) Audio frequency playing method and device with horizontal displacement is changed based on height above sea level
CN105832320A (en) Method and system for automatically selecting music to play according to exercise state of user
CN105139875B (en) The audio frequency playing method and device of height above sea level change during based on motion
Barrass et al. Probing preferences between six designs of interactive sonifications for recreational sports, health and fitness
CN103928037A (en) Audio switching method and terminal device
CN103871433A (en) Control method and electronic device
Van De Laar Emotion detection in music, a survey
Chiarandini et al. A system for dynamic playlist generation driven by multimodal control signals and descriptors
CN106448710B (en) A kind of calibration method and music player devices of music play parameters
CN105245955B (en) Visual aid playback method and device based on height above sea level variation and horizontal displacement
CN101609666A (en) Portable karaoke multi-media player
CN106372248A (en) Music playing method and device
CN101370216B (en) Emotional processing and playing method for mobile phone audio files
CN107577740A (en) The method and apparatus for determining next broadcasting content
CN110164242B (en) Vocal music singing simulation training platform
CN104503587B (en) A kind of method and electronic equipment of editor's audio

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant