Method for processing music to match runners tempo
First Claim
1. A method for matching a tempo of music to a runner'"'"'s rhythm, the method comprising:
- loading a music file into a mobile device;
attaching a mobile device to a person;
converting the music file into a universal PCM format;
splitting the music file into a set of overlapping windows;
applying a Discrete Fourier Transformation for each window;
calculating an energy of a high frequency portion within each Fourier spectrum;
using the calculated energy as the fingerprint at a corresponding offset from the beginning of the music file;
locating repeating patterns in different parts of the fingerprint using autocorrelation function;
using a frequency of the patterns repetition as a possible tempo value at the corresponding offset in the music file;
defining a main music rhythm using statistical analysis of possible tempo values;
detecting a rhythm of person'"'"'s steps using autocorrelation analysis of accelerometer and/or gyroscope data;
calculating a music adjustment coefficient K by dividing the music rhythm by the movement rhythm;
applying the music adjustment coefficient K to the music file; and
playing back the music file using a tempo adjusted by the music adjustment coefficient K.
2 Assignments
0 Petitions
Accused Products
Abstract
A method for adjusting a rhythm of music to match a running rhythm of a person'"'"'s steps. Even if a running rhythm changes during the same run, the rhythm of the music is changed without changing the sound and the key or the pitch of the music. A music file is converted into a universal PCM format and the fingerprint function is calculated. Repeating patterns are detected in the fingerprint function. Music tempo is estimated using data about repeating patterns. Runner'"'"'s steps are analyzed using an accelerometer. Then, a special coefficient is calculated in order to either speed up or slow down the music for matching it to the rhythm of the runner'"'"'s steps.
-
Citations
10 Claims
-
1. A method for matching a tempo of music to a runner'"'"'s rhythm, the method comprising:
-
loading a music file into a mobile device; attaching a mobile device to a person; converting the music file into a universal PCM format; splitting the music file into a set of overlapping windows; applying a Discrete Fourier Transformation for each window; calculating an energy of a high frequency portion within each Fourier spectrum; using the calculated energy as the fingerprint at a corresponding offset from the beginning of the music file; locating repeating patterns in different parts of the fingerprint using autocorrelation function; using a frequency of the patterns repetition as a possible tempo value at the corresponding offset in the music file; defining a main music rhythm using statistical analysis of possible tempo values; detecting a rhythm of person'"'"'s steps using autocorrelation analysis of accelerometer and/or gyroscope data; calculating a music adjustment coefficient K by dividing the music rhythm by the movement rhythm; applying the music adjustment coefficient K to the music file; and playing back the music file using a tempo adjusted by the music adjustment coefficient K. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A system for matching a tempo of music to a runner'"'"'s rhythm, the system comprising:
-
a mobile device configured to receive a music file; an accelerometer integrated in the mobile device, the accelerometer configured to detect a rhythm or person'"'"'s steps; a music processing module executed on the mobile device; and a play back module integrated into a module device, wherein; the mobile device receives the music file and provides it to the music processing module; the music processing module acquires the rhythm data from the accelerometer; the music processing module calculates a music adjustment coefficient based on the rhythm data and applies it to the music file; and the play back module plays the adjusted music file, wherein the music processing module is configured to perform the following steps; converting the music file into a universal format; applying a Discrete Fourier Transformation to the music file; calculating a Fourier spectrum for the music file; calculating an average amplitude for a high frequency portion within each Fourier spectrum and using it as a fingerprint; composing a fingerprint function from the music file; determining repeating patterns in the fingerprint function; calculating a rhythm of the song for each moment of time from the interval of repeating patterns in the fingerprint function; defining a main music rhythm based on statistical analysis of rhythm values of different parts of the music file; determining repeating patterns in real-time data received from accelerometer or gyroscope using autocorrelation function; and calculating a person'"'"'s step interval from repeating patterns interval. - View Dependent Claims (7, 8, 9, 10)
-
Specification