Download A dissertation submitted in partial fulfilment of the requirements for

Transcript
Requirement 2.4.1.1(7)
Name
Motion interpretation
Inputs
XDirectionHand1, XDirectionHand2
Behaviour
Accepts as inputs the direction hand 1 is moving and the
direction hand 2 is moving and returns a classification of the
current motion; hands moving apart, hands moving together,
hands still and apart, hands touching or other for any
classification which doesn’t fit into the first four categories.
interpretation = interpret(XDirectionHand1, XDiectionHand2)
3.2.1.2 Core Audio Functions
Requirement 2.4.1.2(1)
Name
Start playing a music clip continuously
Inputs
newMusicClip
Behaviour
If there is a music clip being played, it will end and the new
music clip will begin to play. Otherwise the new music clip
will begin to play
Post conditions
musicClip = newMusicClip
Continuously playing music clip
Requirement 2.4.1.2(2)
Name
Detect the tempo of the music clip
Inputs
musicClip
Behaviour
Accepts a music clip as an input and returns the tempo of the
music clip.
tempoMusic = findTempo(musicClip)
Requirement 2.4.1.2(3)
Name
Set the tempo of the music clip
Inputs
tempoMusic, musicClip
Behaviour
Acepts as an input a music clip and an integer value. It changes
the tempo of the music to the integer value.
Post conditions
changeTempo(musicClip, tempoMusic)
musicClip with its tempo changed to the value of tempoMusic
20