Detecting Beat Information Using a Diverse Set of Correlations

Abstract
A beat analysis module is described for determining beat information associated with an audio item. The beat analysis module uses an Expectation-Maximization (EM) approach to determine an average beat period, where correlation is performed over diverse representations of the audio item. The beat analysis module can determine the beat information in a relative short period of time. As such, the beat analysis module can perform its analysis together with another application task (such as a game application task) without disrupting the real time performance of that application task. In one application, a user may select his or her own audio items to be used in conjunction with the application task.
Description
BACKGROUND

Technology exists to analyze the beat-related characteristics of an audio item. However, the task of analyzing the characteristics of audio information may be a computationally intensive operation. Existing technology may not enable to perform this task in a suitably efficient manner. This potential deficiency, in turn, may restrict the uses to which this technology may be applied.


SUMMARY

A beat analysis module is described for determining beat information associated with an audio item. The beat analysis module uses a statistical modeling approach (such as an Expectation-Maximization approach) to determine an average beat period. In one illustrative implementation, the modeling approach performs correlation over diverse representations of the audio item. Next, the beat analysis module uses the average beat period to determine beat onset information associated with the commencement of the beats in the audio item. The beat onset information identifies the average onset of beats in the audio item and the actual onset for each individual beat.


Various applications can make use of the analysis performed by the beat analysis module. According to one illustrative aspect, the beat analysis module is configured to determine the beat information in a relatively short period of time. As such, the beat analysis module can perform its analysis together with another application task without disrupting the real time performance of that application task.


For example, in one illustrative application, the beat analysis module can be used to analyze beat information in the context of operations performed by a game module. In this approach, a user may select one or more audio items to be used in the course of a game. The beat analysis module can analyze the beat information and apply the beat information in the course of the game without disrupting the real time performance of the game.


According to one illustrative aspect, an application (such as a game module application) allows the user to select his or her own audio items to be used with the application. In other words, the providers of the application do not dictate a collection of audio items to be used with the application.


The above approach can be manifested in various types of systems, components, methods, computer readable media, data structures, and so on.


This Summary is provided to introduce a selection of concepts in a simplified form; these concepts are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.





BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 shows an illustrative electronic beat analysis module for determining beat information from at an audio item.



FIG. 2 graphically illustrates the concept of beats within an audio item.



FIG. 3 graphically illustrates the concept of beat onset for a particular beat of the audio item.



FIG. 4 is a flowchart which presents an overview of one illustrative approach to determining beat information; in this approach, an Expectation-Maximization (EM) approach is used to determine the average beat period, where correlation is performed over a diverse set of representations of the audio item.



FIGS. 5-7 together present another flowchart that provides additional illustrative details regarding the approach outlined in FIG. 4.



FIGS. 8-10 present additional illustrative details regarding mathematical operations that may be performed by the approach of FIGS. 4-7.



FIG. 11 shows a system which incorporates the beat analysis module of FIG. 1.



FIG. 12 is a flowchart that shows one illustrative manner of operation of the system of the FIG. 11.



FIG. 13 shows illustrative processing functionality that can be used to implement any aspect of the features shown in the foregoing drawings.





The same numbers are used throughout the disclosure and figures to reference like components and features. Series 100 numbers refer to features originally found in FIG. 1, series 200 numbers refer to features originally found in FIG. 2, series 300 numbers refer to features originally found in FIG. 3, and so on.


DETAILED DESCRIPTION

This disclosure sets forth an approach for analyzing an audio item to determine beat information. The disclosure also sets forth various applications of the approach.


The disclosure is organized as follows. Section A describes an illustrative beat analysis module for determining beat information from an audio item. Section B describes various applications of the beat analysis module of Section A. Section C describes illustrative processing functionality that can be used to implement any aspect of the features described in Sections A and B.


As a preliminary matter, some of the figures describe concepts in the context of one or more structural components, variously referred to as functionality, modules, features, elements, etc. The various components shown in the figures can be implemented in any manner, for example, by software, hardware (e.g., discrete logic components, etc.), firmware, and so on, or any combination of these implementations. In one case, the illustrated separation of various components in the figures into distinct units may reflect the use of corresponding distinct components in an actual implementation. Alternatively, or in addition, any single component illustrated in the figures may be implemented by plural actual components. Alternatively, or in addition, the depiction of any two or more separate components in the figures may reflect different functions performed by a single actual component. FIG. 13, to be discussed in turn, provides additional details regarding one illustrative implementation of the functions shown in the figures.


Other figures describe the concepts in flowchart form. In this form, certain operations are described as constituting distinct blocks performed in a certain order. Such implementations are illustrative and non-limiting. Certain blocks described herein can be grouped together and performed in a single operation, certain blocks can be broken apart into plural component blocks, and certain blocks can be performed in an order that differs from that which is illustrated herein (including a parallel manner of performing the blocks). The blocks shown in the flowcharts can be implemented by software, hardware (e.g., discrete logic components, etc.), firmware, manual processing, etc., or any combination of these implementations.


As to terminology, the phrase “configured to” encompasses any way that any kind of functionality can be constructed to perform an identified operation. The functionality can be configured to perform an operation using, for instance, software, hardware (e.g., discrete logic components, etc.), firmware etc., and/or any combination thereof.


The term “logic” encompasses any functionality for performing a task. For instance, each operation illustrated in the flowcharts corresponds to logic for performing that operation. An operation can be performed using, for instance, software, hardware (e.g., discrete logic components, etc.), firmware, etc., and/or any combination thereof.


A. Illustrative System


A. 1. Overview of Illustrative Beat Analysis Module



FIG. 1 shows a beat analysis module 102 for determining beat information based on an audio item. Here, the term audio item corresponds to any audio information that includes a generally rhythmic content. In many cases, for instance, the audio item may include song information that includes a detectable beat.


The beat analysis module 102 includes an audio receiving module 104 for receiving the audio item (or multiple audio items) and storing the audio item in an audio buffer store 106. In one case, the beat analysis module 102 selects a relatively small portion of the audio item for analysis, such as, without limitation, a sample of 4-10 seconds in duration. However, the beat analysis module 102 can perform its analysis on audio items of any length. For example, the beat analysis module 102 can perform its analysis over the span of an entire audio item (e.g., an entire song). In the following explanation, the operations of the beat analysis module 102 will be described as being performed on an “audio item,” where it is to be understood that the audio item may refer to a sample of the originally received audio item of any duration or the entire audio item.


The rhythmic content of the audio item may contribute to the appearance of regularly occurring patterns in its waveform. For instance, each instance of a regularly occurring pattern may include a distinct spike in audio level (or other telltale signal form). This spike may be attributed to a drum strike or other musical occurrence that marks out the tempo of a song. According to the terminology used herein, each instance of a regularly occurring pattern is referred to as a beat. As such, the audio item includes a sequence of beats. In formal musical notation, the beat of an audio item may have some relation a measure of a song, which, in turn, is governed by a time signature and tempo of the song. For example, a beat may correspond to a portion of a measure.


A pre-processing module 108 performs pre-processing on the audio item to place it in an appropriate form for further processing. In one case, for example, the audio item may include multiple channels. The pre-processing module 108 can convert the multiple channels into a single audio item by averaging the channels together to produce a single audio item. That is, in the case that there are n channels (j=1 to n), each sample vi of the resultant single-channel audio item is determined by:










v
i

=


1
n






j
=
1

n





v
i



(
j
)


.







(
1
)







The pre-processing module 108 may also either downsample or upsample the audio item to a desired sample rate. For example, in one particular but non-limiting case, the pre-processing module 108 may downsample or upsample the audio item to 16 kHz.


An average beat period determination module (ABPD) 110 analyzes the beat determination module using a statistical modeling approach, such as an Expectation-Maximization (EM) approach. The ABPD module 110 determines the average beat period of beats within the audio item.


A beat onset determination (BOD) module 112 uses the average beat period to first determine the average beat onset for the audio item. That is, the onset of a beat determines when the beat is considered to commence. The average beat onset is formed by taking the average of individual beat onsets within the audio item. The BOD module 112 also determines the beat onset for each individual beat within the audio item. An individual beat onset is referred to herein as an actual beat onset for that particular beat.


The average beat period, the average beat onset, and actual beat onsets may be referred to herein as beat information. Also, any part of this information is referred to as beat information (for example, the average beat period can generically be referred to as beat information). The beat analysis module 102 can store the beat information in an analyzed beat information store 114.


An application module 116 may use the beat information to perform any type of application task (referred to in the singular below for brevity). For example, a game module may use the beat information in the course of the play of a game. For instance, the game module may use the beat information to synchronize action in the game to an audio item, to synchronize an audio item to action in the game, to select an appropriate audio item from a collection of audio items, and so on. No limitation is placed on the uses of the beat information. Section B will provide additional information regarding illustrative applications of the beat information.


Later figures will be used to explain in detail how the ABPD module 110 and the BOD module 112 may be configured to operate. At this point, suffice it to say that the beat analysis module 102 is configured to compute the beat information in a relatively short period of time, for example, in one case, in a fraction of a second. This enables the application module 116 to perform beat analysis in an integrated manner with other application tasks. In other words, because the beat analysis is performed so quickly, it does not unduly interfere with the performance of the application tasks. This makes it possible to perform the beat analysis in an integrated fashion with other application tasks, rather than, for example, in off-line fashion prior to the application tasks. In one concrete case, a game module can incorporate beat analysis in the course of a game playing operation without unduly affecting the real-time operation of the game.



FIGS. 2 and 3 show illustrative waveform excerpts of an audio item, which help clarify the concepts of average beat period, average beat onset, and actual beat onset. Starting with FIG. 2, this figure shows a segment of an audio item. The signal level of the audio item may be normalized to vary between, for example, 1 and −1, using any quantization approach. This particular representative audio item is characterized by regularly occurring patterns in the audio level. Furthermore, the patterns may include distinct spikes (2021, 2022, . . . 2025) or other telltale variations in audio level. As noted above, the spike in level may be associated with a drum strike or musical occurrence used to mark out a tempo in a song. A beat corresponds to each instance of the regularly occurring pattern. FIG. 2 identifies five beats within the audio item. The duration of a beat defines its period; that is, a first beat has period P1, a second beat has period P2, and so on. The average beat period defines the average duration of beats in the audio item.



FIG. 3 shows a smaller portion of an audio item. In this case, the audio item includes a distinct beat peak 302. Assume further that, as a result of the analysis performed by the ABPD module 110, the beat is tentatively defined to start at a time instance 304. The BOD module 112 measures an onset 306 from the time instance 304 to the time at which the beat peak 302 occurs. More specifically, the onset 306 defines the actual onset for this particular beat. The average of the onsets for several beats defines an average onset time. (As will be described below, the BOD module 112 actually operates by first determining the average onset; from that information, the BOD module 112 defines the actual onsets for individual beats).


A.2. General Mathematical Basis for Beat Analysis


As a preliminary matter, this section sets out general mathematical principles for use in determining beat information. The next section (Section A.3) describes one illustrative implementation of the mathematical approach in this section. There are many ways to implement the analysis in this section; the specific implementation in Section A.3 represents a particularly fast and accurate approach for performing beat analysis that does not follow from the general principles described in this section.


Let um denote the signal energy at frame m of an audio item. To compute um, the waveform of the audio item can be analyzed in the time domain. The approach applies a window function at equally spaced time points, indexed by m=1, . . . , M. um is the mean squared value of the windowed signal.


The approach can model the beat by assuming that um is approximately periodic in m, with beat period τ. To estimate τ, the approach can use the following model:






u
m
=ηu
m−τm  (2).


Here, ρm is, for example, Gaussian noise with mean zero and variance σ2. This defines a probabilistic model in which um are the observed variances, τ is a hidden variable, and η and σ are parameters. The model can be expressed by:










p


(


{

u
m

}

|
τ

)


=



m











1


2





π






σ
2











-


(


u
m

-

η






u

m
-
τ




)

2


/
2







σ
2



.







(
3
)







To complete the definition of the model, the prior distribution p(τ) can be defined as a flat distribution. That is, p(τ)=const.


The Expectation-Maximization (EM) algorithm can then be used to estimate the period τ and the model parameters. EM is an iterative algorithm, where the E-step updates the sufficient statistics and the M-step updates the parameter estimates. In the present context, the sufficient statistics corresponds to the full posterior distribution over the beat period, conditioned on the data. It is computed via Bayes' rule:










p


(

τ
|

{

u
m

}


)


=


1
z



p


(


{

u
m

}

|
τ

)





p


(
τ
)


.






(
4
)







Here, z is a normalization constant. It can be shown to be equal to the data distribution, z=p({um}), but since it is independent of τ it does not need to be actually computed. This posterior can be computed efficiently for any value of τ by observing that its logarithm is the autocorrelation of um:










log






p


(

τ
|

{

u
m

}


)



=




1

σ
2






m




u
m



u

m
-
τ





+
const

..





(
5
)







The posterior can be computed using Fast Fourier Transform (FFT). The resulting complexity of the E-step is O (M log M).


The M-step update rules can be derived by minimizing the complete data log-likelihood E log p({um}|τ) p(τ), where the operator E performs averaging over τ with respect to the posterior formulation provided above in equation (4). The following expressions are obtained:











η
=



m




u
m




Eu

m
-
τ


/



m



u
m
2






,
and








σ
2

=


1
M





m





E


(


u
m

-

η






u

m
-
τ




)


2

.








(
7
)







As in the E-step, the computations involved in equations (6) and (7) can be performed efficiently using FFT.


Finally, the beat period can be obtained by using a maximum a posteriori (MAP) estimate:










τ
^

=

arg







max


τ









p


(

τ
|

{

u
m

}


)


.







(
8
)







Experimentally, the posterior over τ is relatively narrow. In the following, τ can be used to refer to {circumflex over (τ)}.


To compute the average beat onset, the approach can divide um into consecutive non-overlapping sequences of length τ. The sequence i can be denoted by (u1i, u2i, . . . uτi), where uni=u(i−1)τ+n and n=1, . . . τ. The approach can then perform averaging over those sequences. The average sequence can be denoted by (ū1, . . . ūτ). The average onset l is defined by:










l
_

=

arg







max



1

n

τ











u
_

n

.







(
9
)







The actual beat onset for an individual beat can be computed for each τ-long sequence above. It can be assumed, in one case, that the onset time l for a given sequence may deviate from the average onset time l by as much as about 10% of the beat period. Hence, the approach can search for li, the beat onset time for sequence i, within the corresponding interval:










l
i

=

arg







max





l
_

-

τ
/
10



n



l
_

+

τ
/
10












u
n
i

.







(
10
)







The onset times li can be converted back to the time domain where they form part of the beat information.


A.3. Particular Illustrative Implementation of Beat Analysis


This section describes one particular implementation of the statistical modeling approach of Section A.2. One way in which the particular implementation of this section improves on the approach in Section A.2 is by performing correlation over a diverse set of representations of the audio item. In the following explanation, the beat period will be referred to as P. More generally, the definition of symbols used in this section is to be found within this section, not the prior section.



FIG. 4 is a flowchart that shows an illustrative procedure 400 for determining beat information according to the approach in this section. FIGS. 5-10 provide additional information regarding the operations performed in the procedure 400.


Starting with FIG. 4, in block 402, the audio receiving module 104 of the beat analysis module 102 receives an audio item.


In block 404, the ABPD module 110 determines the average beat period P by performing correlations over plural representations of the audio item. Subsequent figures will explain how this operation is performed.


In block 406, the BOD module 112 determines the average onset for the beats in the audio item.


In block 408, the BOD module 112 determines the actual onsets for individual beats in the audio samples.


In block 410, the application module 116 applies the above-defined beat information for use in performing any application task.



FIGS. 5-7 together define a procedure 500 that explains how the operations in FIG. 4 are performed. FIGS. 5-7 will be described below in conjunction with the illustrative mathematical analyses illustrated in FIGS. 8-10.


Starting with FIG. 5, in block 502, the audio receiving module 104 receives an audio item. In its originally-received form, the audio item may have multiple channels. Further, the audio item may be represented in a source sampling frequency.


In block 504, the pre-processing module 108 can perform pre-processing operations on the original audio item to convert it into a form that is suitable for further analysis. In one case, the pre-processing may entail extracting a portion of the audio item for analysis, such as, without limitation, a portion of the audio item of 4-10 second duration. Pre-processing may also entail converting the multiple channels of the audio item into a single channel (e.g., using the averaging technique of equation (1)). The pre-processing may also entail downsampling or upsampling the audio items to a desired sampling rate, such as, without limitation, 16 kHz. As a result of these operations, the audio item defines a linear sequence v of N samples, that is, v≡ Expression 802 of FIG. 8 expresses the audio item at this point as v=v1, v1, . . . vN, where v1, v1, . . . vN define samples of the audio item.


In block 506, the ABPD module 110 reshapes the linear sequence of samples in the audio item into a M×B array of samples V, that is V=. In other words, the ABPD module 110 populates the elements of the matrix V one row of M samples at a time. Matrix 804 of FIG. 8 illustrates the matrix V. The number of elements in the rows, M, is selected such that it is a power of 2, such as, without limitation 512. The reason for defining the length of a row in this manner is because Fast Fourier Transform (FFT) analysis (to be described below) can be more efficiently performed on data sets having a length which is a power of 2. The number of rows or blocks, B, is such that







[

N
M

]

.




If the number of elements in the linear sequence of samples v do not completely fill out the matrix V, then the ABPD module 110 can pad the trailing elements of the matrix V with zeros.


In one case, there is no overlap in samples in the matrix V. In this case, the element v21 at the start of the second row is the next element following v1M, which is the last element in the first row; in other words, if element v1m corresponds to element vj in the sequence of linear samples, then element v21 corresponds to element vj+1. In another implementation, there is an overlap of samples between rows of the matrix V. For example, assuming that M is 512, then the first element in the second row (v21) could start at, for example, element v440 in the sequence of linear samples, even though the last element in the first row (v1M) corresponds to the element vM (i.e., v512) in the linear sequence.


In block 508, the ABPD module 110 computes the FFT of each of the rows of the matrix V. As shown in expression 806 of FIG. 8, this operation can produce a matrix of complex elements, labeled as matrix S.


In block 510, the ABPD module 110 constructs a vector y that contains the average frequency spectrum energy in each of the rows of S. To produce this vector y, the ABPD module 110 can square each of the elements in the matrix S, that is, by performing the operation ∥S2∥. For instance, the ABPD module 110 can square the element s11 by adding the square of its real component to the square of its imaginary component, to yield element s11 of the ∥S2∥ matrix. The ABPD module 110 then finds the average energy in each row by summing the elements in each row of the ∥S2∥ matrix and by dividing the sum by M. This operation is illustrated as expression 902 of FIG. 9. For example, the first element y1 of the vector y is defined by









i
=
1

M




1
M





s
_


1

M


.






The vector y has B real elements.


In block 512, the ABPD module 110 normalizes the vector y by dividing each element of the vector y by the standard deviation (std) of the vector y. Expression 904 in FIG. 9 illustrates this operation.


Advancing to FIG. 6, the ABPD module 110 commences an iterative EM algorithm on the basis of the vector y. Before doing so, the ABPD module 110 can pad the vector y with zeros such that it has a length that is a power of 2. In other words, the length 2ε of the vector y can be selected such that 268≧B, where ε in an integer. As stated before, performing this padding operation makes it more efficient to perform FFT on a set of data.


In block 604, the ABPD module 110 begins by calculating the vector a=FFT(y) (which is a complex vector), b=|a|2 (which is a real vector), and c=FFT(y2) (which is a complex vector).


In block 604, the ABPD module 110 determines the vector q as follows:






q=βe
λRe[FFT

−1

(b−max(b))]  (11).


In expression (11), λ is a scaling factor and β is chosen such that Σq=1. Values of (b−max(b)) are real. To create a complex vector from this real vector, the ABPD module 110 can set the real component of the complex vector to (b−max(b)) and the imaginary component to zero.


In block 606, the ABPD module 110 next determines the vectors f=FFT(q) (which defines a complex vector), g=FFT−1(f·a) (which defines a real vector), and h=FFT−1(f·c) (which defines a real vector).


In block 608, the ABPD module 110 next determines:










α
=




y
·
g




h



,
and




(
12
)







λ

-
1


=


B

-
1







(


y
2

+


α
2


h

-

2





α






y
·
g



)

.







(
13
)







At this point, the loop in FIG. 6 indicates that the vector q can be recalculated with the new value of λ. This process can repeated until λ converges.


In block 610, the ABPD module 110 can now extract the average beat period from the vector q upon the completion of the last iteration. That is, the index (index) at which the maximum value in q occurs corresponds to average beat period. This index can be converted to an actual beat period t (where t is the index multiplied by some large constant, such as 200), by iteratively multiplying t by 2 or dividing t by 2 until the value of t satisfies the expression 0.7<fs/t<2.3, where fs is the sampling frequency.


At this point, the ABPD module 110 has performed its task of determining the average beat period P of the audio item (that is, P=t). As noted above, the iterative EM procedure is implemented over a diverse set of correlations, e.g., by performing the correlations using different representations of the audio item. In the context of FIG. 6, the use of different correlations manifests itself in the use of a, b, and c vectors, as well as the f, g, and h vectors. In this case, correlation is performed based on a domain associated with the FFT of the audio signal, a domain associated with the inverse FFT of the audio signal, a domain associated with the square of the audio signal, and so on. This aspect may allow the ABPD module 110 to determine the beat information in an accurate manner. That is, one or more of these domains may be more effective than others in revealing redundancy in the audio signal. Accordingly, accuracy may improve by performing correlation over diverse representations of the audio signal.


Advancing to FIG. 7, the beat onset determination (BOD) module 112 now is called on to compute the average beat onset for the audio item as a whole, as well as the actual beat onsets for individual beats in the audio item. The process starts in block 702 by squaring the original linear sequence of samples in the audio item ν to produce a sequence of squared values v12, v22 . . . vn2. As shown in expression 1002 in FIG. 10, the sequence of squared values can be labeled as elements j1, j2, . . . jN. The BOD module 112 forms a P×Q matrix Z from the sequence of elements j1, j2 . . . jN, populating this matrix Z one row of P samples at a time (where P corresponds to the average beat period determined by the ABPD 110). FIG. 10 shows this matrix Z as expression 1004.


In block 704, the BOD module 112 forms a vector W by taking the average single energy across different beats. As shown in expression 1006 of FIG. 10, this operation is equivalent to taking the average of each column in the matrix Z. For example, the first element w1 of the matrix W is defined as


In block 706, the BOD module 112 next forms a circular moving average over the vector W. As indicated by waveform 1008 of FIG. 10, one value along the moving average will represent a maximum value, illustrated in FIG. 10 as maximum value 1010. The index at which the maximum value 1010 occurs corresponds to the average beat onset for the audio item.


Finally, in block 708, the BOD module 112 determines the beat onset for each of the individual beats in the audio sample. To perform this task, the BOD module 112 can take the circular moving average of an individual beat in the audio sample, as represented by operation 1012 of FIG. 10. Then, the BOD module 112 defines a window of k samples centered around the average beat onset that was determined in block 706. Starting from the average beat onset, the BOD module 112 attempts to find the maximum 1014 in the individual beat. This process is repeated for each individual beat to define a collection of actual beat onsets.


The information calculated in procedure 500 (the average beat period, the average beat onset, and the actual beat onsets) defines beat information.


B. Illustrative Applications


As described above, different types of applications can make use of the beat analysis module 102 of FIG. 1. FIG. 11 shows one such illustrative system 1100 that incorporates the beat analysis module 102. Namely, this system 1100 includes any kind of application module 1102 that makes use of beat information provided by the beat analysis module 102. In one illustrative and non-limiting case, the application module 1102 corresponds to a game module, such as a game console or a computer game that is implemented on a general-purpose computer (such as a personal computer), etc.


In this system 1100, the user may have access to a collection of audio items 1104. In one case, the user may own these audio items 1104. For example, the user may have acquired various free audio items from any source of such items. In addition, or alternatively, the user may have purchased various audio items 1104 from any source of such items. In addition, or alternatively, the user may have created various audio items 1104 (for example, the user may have recorded his or her own songs). In any event, a provider of the application module 1102 does not necessarily dictate the audio items that the user is expected to use in the application module 1102. Rather, the provider enables the user to select his or her own audio items from any source of audio items. This aspect of the system 1100 has various advantages. The user may consider this feature to be desirable because it empowers the user to select his or her own audio items.


An interface module 1106 defines any functionality by which the user can select one or more of the audio items 1104 for use by the application module 1102. In one case, the application module 1102 may provide a user interface that enables the user to select audio items for use with the application module 1102.


The beat analysis module 102 can compute the beat information relatively quickly. In one case, for example, the beat analysis module 102 can compute the beat information in a fraction of a second. In view of this feature, the operations performed by the beat analysis module 102 can be integrated together the other application tasks performed by the application module 1102 without unduly interfering with these application tasks. In one concrete case, a game module can perform beat analysis at various junctures in the game without slowing down the game or otherwise interfering with the game. As such, the game module does not need to perform the beat analysis in off-line fashion, although part of the analysis (or all the analysis) can also be performed in off-line fashion.


The application module 1102 itself can use the beat information in many different ways. In one example, the application module 1102 may include a synchronization module 1108. In one case, the synchronization module 1108 can use the beat information associated with an audio item to synchronize any kind of action (such as any kind of action happening in a game, or, more generally, behavior exhibited by a game) with the tempo of the audio item. In another example, the synchronization module 1108 can synchronize the audio item to any kind of action (such as any kind of action happening in a game, physical action performed by a human user, etc.). The synchronization module 1108 can synchronize the audio item to action by changing the tempo of the audio item (e.g., by slowing down or speeding up the audio item to match the action). In another example, the synchronization module 1108 can use the beat information to synchronize one audio item with respect to another audio item. The synchronization module 1108 can perform this operation, for example, by changing the tempo of one of the audio items to match the other, or by changing the tempos of both audio items until they are the same or similar. This type of synchronizing operation may be appropriate where it is desirable to create a smooth transition from one song to the next. Still other types of synchronization operations can be performed.


A clip selection module 1110 can use the beat information to select an appropriate audio item or to select multiple appropriate audio items. For example, the user may have identified a collection of audio samples that he or she would like to use with the application module 1102. The clip selection module 1110 can select the audio item at a particular juncture that is most appropriate in view of events occurring at that particular juncture. For example, a game module can select an audio item that matches the tempo of action happening at a particular juncture of the game. An exercise-related module can select an audio item that matches the pace of physical actions performed by the user, and so on. To perform this task, the application module 1102 can analyze the beat information of one or more audio items in real time when an audio item is needed. It is also possible for the application module 1102 to perform this operation off-line, e.g., before the audio item is needed. In similar fashion, the clip selection module 1110 can select an audio item which most appropriately matches the tempo of another audio item.


The application module 1102 can make yet other uses of the beat information. For example, although not shown, the application module 1102 can use the beat information to form an identification label for an audio item. The application module 1102 can then use the identification label to determine whether an unknown audio item matches a previously-encountered audio item (e.g., by comparing the computed identification label for the unknown audio item with a list of known identification labels).



FIG. 12 summarizes the explanation given above for FIG. 11 in flowchart form. In block 1202, the system 1100 receives the user's selection of one or more audio items (rather than being restricted by the provider of an application module 1102 to use a preselected audio item).


In block 1204, the beat analysis module 102 is used to determine beat information for one or more audio items. As explained above, the application module 1102 can invoke the beat analysis module 102 in off-line fashion (e.g., before performing other application tasks) or on-line fashion (e.g., in the course of performing other application tasks).


In block 1206, the application module 1102 performs any type of application based on the beat information. Without limitation, these applications can include: synchronizing events to beats in the audio item; synchronizing the audio item to events (e.g., by changing the tempo of the audio item); synchronizing an audio item with another audio item; selecting an appropriate audio item; determining a beat identification label; using a beat identification label to retrieve an audio item or perform some other task, and so on.


C. Representative Processing Functionality



FIG. 13 sets forth illustrative electrical data processing functionality or equipment 1300 (simply “processing functionality” below) that can be used to implement any aspect of the functions described above. With reference to FIG. 1, for instance, the type of equipment shown in FIG. 13 can be used to implement any aspect of the beat analysis module 102. In one case, the processing functionality 1300 may correspond to a general purpose computing device or the like. In another scenario, the processing functionality 1300 may correspond to a game console. Still other types of devices can be used to implement the processing functionality 1300 shown in FIG. 13.


In the context of FIG. 13, the processing functionality 1300 represents local client-side functionality that analyzes an audio item. But remote processing functionality (e.g., implemented by server-type computing functionality) can also be used to analyze the audio item. Such remote processing functionality can include the same processing components shown in FIG. 13 or a subset thereof.


The processing functionality 1300 can include volatile and non-volatile memory, such as RAM 1302 and ROM 1304. The processing functionality 1300 also optionally includes various media devices 1306, such as a hard disk module, an optical disk module, and so forth. More generally, instructions and other information can be stored on any computer-readable medium 1308, including, but not limited to, static memory storage devices, magnetic storage devices, optical storage devices, and so on. The term “computer-readable medium” also encompasses plural storage devices. The term “computer-readable medium” also encompasses signals transmitted from a first location to a second location, e.g., via wire, cable, wireless transmission, etc.


The processing functionality 1300 also includes one or more processing modules 1310 (such as one or more computer processing units, or CPUs). The processing functionality 1300 also may include one or more special purpose processing modules 1312 (such as one or more graphic processing units, or GPUs). A graphics processing module performs graphics-related tasks. One or more components of the special purpose processing modules 1312 can also be used to efficiently perform operations (such as FFT operations) used to analyze beat information.


The processing functionality 1300 also includes an input/output module 1314 for receiving various inputs from a user (via input module(s) 1316), and for providing various outputs to the user (via output module(s) 1318). One particular type of input module is a game controller 1320. The game controller 1320 can be implementing as any mechanism for controlling a game. The game controller 1320 may include various direction-selection mechanisms (e.g., 1322, 1324) (such as joy stick-type mechanisms), various trigger mechanisms (1326, 1328) for firing weapons, and so on. One particular output module is a presentation module 1330, such as a television screen, computer monitor, etc.


The processing functionality 1300 can also include one or more network interfaces 1332 for exchanging data with other devices via a network 1334. The network 1334 may represent any type of mechanism for allowing the processing functionality 1300 to interact with any kind of network-accessible entity. One or more communication buses 1336 communicatively couple the above-described components together.


Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.

Claims
  • 1. A beat analysis module for analyzing an audio item, comprising: an average beat period determination module for determining an average beat period of an audio item, the average beat period determination module being configured to use an Expectation-Maximization (EM) approach to determine the average beat period, wherein correlation is performed over plural representations of the audio item; anda beat onset determination module for determining, on a basis of the average beat period, onset information associated within the commencement of beats within the audio item.
  • 2. The beat analysis module of claim 1, wherein the beat analysis module is used within an application module, wherein the beat analysis module is configured to determine the average beat period and the onset information substantially concurrently with respect to another task performed by the application module.
  • 3. The beat analysis module of claim 2, wherein the application module is a game module, wherein the beat analysis module is configured to determine the average beat period and the onset information substantially concurrently with respect to a game playing operation performed by the game module.
  • 4. A computer readable medium for storing computer readable instructions, the computer readable instructions providing a beat analysis module when executed by one or more processing devices, the computer readable instructions comprising: logic configured to preprocess an audio item;logic configured to form a matrix based on samples of the audio item;logic configured to determine a Fast Fourier Transform (FFT) of each row of the matrix;logic configured to construct a vector y which contains an average frequency spectrum energy of each of the rows of the matrix; andlogic configured to perform an Expectation-Maximization (EM) iterative procedure to determine an average beat period P of the audio item, the EM iterative procedure being performed over plural representations of the audio item.
  • 5. The computer readable medium of claim 4, further comprising: logic configured to construct another matrix based on the samples in the audio item, each row of the other matrix having a length P based on the average beat period;logic configured use the other matrix to determine an average signal energy vector W, the average signal energy vector W expressing an average signal energy across different beats in the audio item; andlogic configured to use the average energy vector W to determine an average onset of beat maximums within the audio item.
  • 6. The computer readable medium of claim 5, further comprising: logic configured to use the average onset to determine an actual onset for at least one beat within the audio item.
  • 7. The computer readable medium of claim 4, wherein one representation of the audio item corresponds to an FFT of audio information associated with the audio item.
  • 8. The computer readable medium of claim 4, wherein one representation of the audio item corresponds to an inverse FFT of audio information associated with the audio item.
  • 9. The computer readable medium of claim 4, wherein one representation of the audio item corresponds to a higher-order power of audio information associated with the audio item.
  • 10. A method for performing an application task based on beat information, comprising: receiving a user's selection of one or more audio items;determining beat information from at least one audio item of said one or more audio items; andperforming an application task based on the beat information,said determining and performing occurring together as an integrated operation.
  • 11. The method of claim 10, wherein said one or more audio items are not identified by a provider of the application task.
  • 12. The method of claim 10, wherein the beat information includes: an average beat period of said at least one audio item;an average beat onset of said at least one audio item; andan actual beat onset for at least one beat within said at least one audio item.
  • 13. The method of claim 10, wherein the application task comprises governing a behavior of an application module based on the beat information.
  • 14. The method of claim 10, wherein the application task comprises governing an audio tempo based on the beat information.
  • 15. The method of claim 10, wherein the application task comprises making an audio selection based on the beat information.
  • 16. The method of claim 10, wherein the application task comprises an operation performed by a game module, wherein said determining and performing take place in a course of playing a game using the game module.
  • 17. The method of claim 10, wherein said determining involves use of an Expectation-Maximization (EM) approach to determine the beat information, wherein correlation is performed over plural representations at said least one audio item.
  • 18. The method of claim 10, wherein said determining comprises: pre-processing said at least one audio item;forming a matrix based on samples in said at least one audio item;determining a Fast Fourier Transform (FFT) of each row of the matrix;constructing a vector y which contains an average frequency spectrum energy of each of the rows of the matrix; andperforming an Expectation-Maximization (EM) iterative procedure to determine an average beat period P of said at least one audio item, the EM iterative procedure being performed over plural representations of said at least one audio item.
  • 19. The method of claim 18, wherein said determining further comprises: constructing another matrix based of the samples in said at least one audio item, each row having a length P based on the average beat period;using the other matrix to determine an average signal energy vector W, the average signal energy vector W expressing an average signal energy across different beats in said at least one audio item; andusing the average energy vector W to determine an average onset of beats within said at least one audio item.
  • 20. The method of claim 19, wherein said determining further comprises: using the average energy vector W to determine an actual onset for at least one beat within said at least one audio item.