Monday, 27 February 2012

Suedo Code

Here is my first attempt at the Suedo code for the sketch. I am also working on a name...


Start Program
______________________________________________________________

input space    // through the xbox into the computer
                       
                        variable (int) occupants
                                    the xbox needs to keep a track of how many objects are                                      in each zone (1 - 10) as this effects the volume.

                        variable (float || int) depth
                                    I want the depth of people with in a space to be recorded                                 alsoas this will control the tone of the track
                       

            initiate sound (track1, track2, track3) // drum, bass, treble
                        // the tracks may have to be functions
                        // and they must start at the same time

                       
           
                        track function -
                                    setup -
                                                track volume = occupants
                                                            // number of occupants control the volume
                                                track tone = depth
                                                            // proximity to the xbox controls the tone

                       
                        Controlling the tracks
                                    if there is motion in zone 1
                                                play track 1
                                    if there is motion in zone 2
                                                play track 2
                                    if there is motion in zone 3
                                                play track 3

______________________________________________________________

End program

No comments:

Post a Comment