Abstract:
The Cellular Automata Music Generator (CAMG) is a software platform, application and engine that generates and modifies musical compositions in real-time using a system of networked modules that utilize the  1 -dimensional cellular automata (CA) mathematical model. The music compositions are non-looping (i.e. the same few bars of music do not repeat over and over), can be any length, can have low memory and processing requirements compared to looping WAV or MP 3  files, and follow psychoacoustic principles. The music generated is ever evolving and can be globally altered based on one-parameter change. The music engine can be utilized in computer games or to generate unique ringtones or any musical composition for cell phones or other mobile devices based on ten-digit inputs, such as telephone numbers. The ringtones or musical pieces can be generated automatically based on the telephone number of the in-coming telephone call, or manually by the user, who inputs a selected numerical sequence. It can also be used as an audio caller identification system.

Description:
FIELD OF THE INVENTION 
       [0001]    The present invention relates to software for creating, defining, generating and modifying complex patterns and behaviors in computer-generated music content. 
       BACKGROUND OF THE INVENTION 
       [0002]    Music composition and generation has been largely an artistic endeavor involving composers, musicians, recording engineers and the like to create melodies for pleasure or commercial use. Computer-generated music has been pursued in recent years for two reasons: academic curiosity and commercial demand for inexpensive, textural music for a variety of media applications including film, video, web sites, games and wireless applications. It is the latter reason that has economic implications, for a number of companies and consumers are looking for textural or ambient music that is inexpensive, easy to produce, as rights-free as possible and that follows essential psychoacoustic principles in composition. Computer music generation systems typically use MIDI (Musical Instrument Digital Interface) to control the electronic musical instruments. 
         [0003]    Computer-generated music in real time has used a variety of systems or methodologies in an attempt to achieve these goals. Current systems, such as Sseyo&#39;s Koan system or the method as described in U.S. Patent Application Publication No. 20010025561 to Milburn use stochastic methods or metrics. Using the stochastic method, music is generated using random numbers to determine a variety of musical parameters within user specified constraints. The Koan system is an embodiment of this approach. The issues with the stochastic method are that the music may not be complex enough to adhere to the psychoacoustic principles that make the music sound as if it was composed and played by humans. In addition, this system can be difficult to use for those not conversant in music. 
         [0004]    Milburn&#39;s approach to automatic music generation relies on pre-specified musical phrases, which are then analyzed using a metrics technique which allows the composer to morph between two different phrases. This technique requires a higher level of specification than the Cellular Automata Music Generator (CAMG) system described herein, in that the musical phrases must be pre-composed. 
         [0005]    Another system used in music generation is the mathematical model cellular automata (CA). CA methodology lends itself to music generation because of the nature of this mathematical model. The CA theory stems from the notion that simple systems can generate complex behavior or patterns. This makes it ideal for music generation that requires complex output using simple and lightweight systems. In addition, CA systems are easy to modify on a global basis. Under a CA model, one parameter change can result in global dynamic behavior that is either predictable, complex, periodic or random. The system is also deterministic; therefore given the same parameters, the same musical piece will be generated and evolve in the same way each time, giving the user an element of necessary control. 
         [0006]    There has also been work in music generation using CA, but it has been either using 2-dimensional models or applying simple 1-dimensional CA to a specific musical content, such as rhythm, to create simply a general beat or a series of notes. The issues with 2-dimensional models is that the systems are complex to use and have memory and processing requirements that are too high for average personal computer, wireless device or console systems. A number of authors have published related techniques to CAMG on the Internet (for example, Reiners, Millen, and Miranda). Reiner&#39;s system, named Automatous Monk, relies upon elementary 1D CA to generate musical parameters, however his currently published work is far more primitive in its application. For example, 1D CA are only used to generate pitch values for the composition, resulting in a far less complex final output. 
         [0007]    Miranda&#39;s CAMUS is a generative music system in that it is based upon CA technology, but relies on complex 2D CA implementations. Milburn&#39;s approach to generative music employs a technique which creates a metric between two pre-composed musical phrases and allows the user to morph between them. 
         [0008]    Sseyo&#39;s Koan uses purely random or stochastic techniques with constraints provided by the composer in areas such as which scale to use, and the range of note choices. Koan has a steep learning curve and requires the user to have musical knowledge. Koan is concentrated on the mobile and web site market. 
         [0009]    Leach (U.S. Patent Application Publication No. 20030183065) employs a strictly rule based networking approach that does not use any CA based techniques Georges (U.S. Patent Application Publication No. 20030131715) employs a rule-based approach that does rely on stochastic variables. This approach is more closely related to Koan. 
       SUMMARY OF THE INVENTION 
       [0010]    The CAMG is a software engine that allows users to create and modify an entire musical composition in real-time based on a selection of parameters. These compositions are non-looping (i.e. the same few bars of music do not repeat over and over), can be any length, can have low memory and processing requirements compared to looping WAV or MP3 files, and follow psychoacoustic principles. The innovative and unique aspect of this invention is the use of 1-dimensional CAs modules that are networked together to form an overall unifying framework to produce complex musical compositions. Once an initialization string is selected and implemented, the system does not require further human intervention to create a complex, fully developed piece of ever-evolving music. The initialization string can be any digital input including, but not restricted to, number sequences, game play sequences, real time MIDI input or previously composed MIDI files. CAMG uses MIDI to control the digital musical instruments for the compositions. 
         [0011]    CAMG is built such that a single parameter change can have a global effect upon the entire composition. Unlike random systems, these changes can be controlled to produce the complex output required. In the case of CAMG, because of the CA methodology, a single parameter change, or just one byte of data, can have an effect on the flow of the entire piece of music. For example, this parameter change could be used to quickly or gradually change the density of the notes in the composition. A piece which is very ‘chaotic and busy’ would then evolve into a much more “repetitive and sparse” musical texture, or vice versa. 
         [0012]    Due to the nature of CAs and the use of networked modules to control various aspects of the composition, such as scale selection, tempo, velocity, orchestration, timbre modification, rhythmic patterns, accompaniment and melody creation, CAMG has the following characteristics: 
         [0013]    Fully interactive—Because the CAMG engine is generating music in real time, rather than playing back pre-composed music loops, the programmer can easily change the musical output in an interactive environment based upon user input. 
         [0014]    Real time music generation—One key benefit of the CAMG engine is that the music it generates is composed in real-time, dispensing with the need to pre-arrange a number of different pre- composed MIDI or audio files, saving programmers for games or wireless applications from having to interface with numerous music cues. 
         [0015]    Generates textural music—The primary content of the first version of CAMG is well suited toward creating music that serves a textural, ambient, background function often referred to incidental music. 
         [0016]    Composer creates a process—The entire approach toward using CAMG is fundamentally different than the traditional model of music composition, where a composer relies on a number of different systems, such as MIDI sequencers, audio looping tools or digital audio workstations to provide a finished piece of music which the programmer must then integrate into a game or wireless application. In the CAMG model, the composer creates a process, which is then employed within the game or wireless application to generate the musical layer at runtime. 
         [0017]    CAMG does the actual composition, saving valuable production time—In a traditional approach to music composition, where a composer has to pre-specify all aspects of the piece such as rhythm, melody and dynamics. CAMG allows composers to concentrate on the high level aspects of the musical content without having to specify the lower level details, such as choice of note value, rhythmic motif or dynamics. This shortens the composition cycle, saving production time. 
         [0018]    Modifications simple and quick—CAMG uses algorithms which, based upon a single parameter, generate a variety of dynamic behaviors, including repetition, randomness and true complexity. This means modifications are simply parameter changes that require only a few keystrokes instead of recoding and re-recording audio files. 
         [0019]    API is easy to use—Another inherent benefit of the CAMG engine is that the API layer is very easy to use. In many cases, all that the programmer has to specify is a bit string which determines the initial state of the CAMG. The CAMG itself then generates the music in real time based upon the initial bit string and subsequent modifications of the string to change the music in an interactive fashion. 
         [0020]    Psychoacoustic principles embedded in algorithms, making music sound more realistic—Due to the nature of the algorithms that CAMG uses, human beings can inherently identify that the music being generated by the engine is not entirely random or overly predictable, depending upon the constraints that the composer chooses. Of course, CAMG does have the ability to produce music that is random or predictable if necessary. 
         [0021]    Completely deterministic—CAMG generates musical output which is completely deterministic, unlike other more random music generation systems which typically derive their initial input using a random seed value, such as the current system time. This means that the music generated by CAMG will play exactly the same way every time given the same parameter inputs and initialization string. 
         [0022]    Easily interfaced to other generative systems—Although CAMG is primarily designed to generate real time MIDI data, it can be easily adapted to interface with another generative music engine, such as Microsoft&#39;s Direct Music. 
         [0023]    Can be used by non-musicians—Because CAMG does not use a traditional approach to music generation, non-musicians can quickly learn how to interact with the user interface to produce high level compositions, which can then be interactively guided or modified by the user in real time. A number of musically naive beta testers have reported that they found the experience of working with CAMG to be “very engaging” and “highly addictive” primarily because they get immediate feedback as they change the parameters of the composition. 
         [0024]    Easily scalable to different levels of music generation—The CAMG engine can be employed to address any layer of music generation, such as parameter modification of the sound itself (using CAMG to determine the amount of vibrato in a note for example), direct generation of the music at the note level, re-arranging musical themes at the phrase level and finally re-arranging and re- orchestrating at the section (verse, chorus) level. CAMG can also be used as a real time mixer, to mute or solo individual instruments within the piece. 
         [0025]    Generates arbitrary lengths of music—CAMG can be used to create essentially to create ever- evolving compositions, which can be synchronized with other digital content. For example, the music can change if a game player commits a series of moves or if a user performs a different task or function in a wireless application. In a wireless application example, the ringtone automatically changes with each telephone number received. 
         [0026]    The underlying CAMG model could be extended to create more thematic, foreground musical content by allowing the composer to access the ‘building blocks’ which make up the engine itself, rather than relying on the user-interface to the pre-assembled initial CAMG engine. In other words, it is possible to broaden the CAMG&#39;s scope to produce a software development kit (SDK) for programmers to build their own engines for music. 
         [0027]    A version of CAMG is also used to generate ringtones for mobile devices, such as cellular telephones. These musical compositions can be used as an audio caller identification system, a musical game or simply as a ringtone. 
         [0028]    A method of real-time generation of music using networked 1-dimensional cellular automata and a number of other timing, selection and processing components is provided, including networking multiple cellular automata to generate various musical parameters to create and modify complex musical compositions. At the highest level, the CAMG uses a network of interconnected CA to generate all aspects of a musical composition. At the top of the hierarchical structure, a single 1-dimensional CA is used to determine the on-going arrangement of the composition by selectively updating a network of multiple 1-dimensional CA structures, or “virtual musicians”, which determine the low level musical parameters for the composition, such as pitch, rhythm, velocity, duration, MIDI controller values, and arrangement. CAMG is scalable to include any arbitrary number of virtual musicians based upon the composer&#39;s input. The midlevel of the hierarchy is referred to as a “virtual musician” and consists of the individual self contained CA network which is responsible for actually creating the musical phrasing. 
         [0029]    A method of generating rhythmic values using CA is provided, including a 1-dimensional CA is used to provide the rhythmic pattern for the real time creation of a musical phrase. Each active bit (value=1) in the CA corresponds to a single beat within a musical phrase. Each active bit also triggers other CA in the network to produce their associated parameter value, such as pitch, velocity and other controller parameters like volume or modulation. The generated pattern can be modified in a variety of ways by altering the delay values for the parallel delay line which provides the actual timing values of the rhythm. Each bit within the CA is associated with a variable length timing delay. If each delay is set to a time of 0 milliseconds, the rhythm output will consist of a chord that consists of as many notes as there are active bits in the CA (i.e. if the CA has 4 active bits then a 4 note chord will be generated). In a similar vein, a rhythm of single notes can be generated by assigning each timing delay to a fractional, cumulative value of the overall rhythm CA based upon the master rhythm update clock, which controls the rhythm CAs update status, divided by the lattice size of the CA (i.e. if the rhythm CA is being updated every 4000 milliseconds and its lattice size is set to 16 bits then each delay associated with each bit in the CA will have incremental values, starting at 0 milliseconds for the most significant bit (the first note in the musical phrase) and setting subsequent delays to incremental values of 250 milliseconds. (4000/16=250, delay values would increase in 250 millisecond increments from left to right: 0, 250, 500, 750 etc.) 
         [0030]    A method of generating pitch values using CA is provided including using the decimal value of the CA to pick a particular note from a lookup table. In this instance the CA generates a note value between  0  and  127 , which is then mapped to a lookup table which can constrain the note value into a particular scale or mode. A parameter associated with this function allows the CA generated value to be further constrained by introducing a ‘slew’ control which prevents the CA output from instantaneously generating its latest value. For example, assume the CA has generated a series of values; 23, 66, 44 based upon its transition rule and current state. Normally these values would be used to directly select the corresponding note value from the scale lookup table. The slew function limits the speed and step size for making the transition between the values. Using 23 as the staring value, and assuming the CA is being updated every 100 milliseconds; if the slew rate was set to 200 milliseconds and the step size to 1, the resulting CA value would be approximately 44 on the second update (halfway between 23 and 66). Essentially this function provides a continually varying output as opposed to the discrete value output that characterize CA. The bit position is used to select a note from a list of corresponding notes in a musical phrase. In this instance the CA which generates the rhythm pattern is also used to select a note value from a list of values which correspond to a single predetermined phrase of music. This approach associates each bit in the CA to a particular note value from the phrase. Using this approach allows the composer to specify an exact sequence of pre-determined notes to be used for the generation of a musical phrase. 
         [0031]    A method of generating velocity values using CA is provided including using a CA to generate a decimal value between 0 and 127 for the MIDI velocity of the associated note. The value generated by the CA is further constrained with a specified high and low value. A slew function is also provided to enable a continually varying-value rather than the discrete values generated by the CA. 
         [0032]    A method of generating generic MIDI controller data using CA is provided, including using a CA to generate a range a values which can be associated with an arbitrary  8  bit or  16  bit MIDI controller value, such as volume, modulation, and pitch bend. The value generated by the CA is further constrained with a specified high and low value. A slew function is also provided to enable a continually varying value rather than the discrete values generated by the CA. 
         [0033]    A method of generating timing fluctuations using CA is provided, including using a CA to generate a decimal value between −X, 0, X number of milliseconds to offset the final timing value of the associated note. This function causes the note to be “behind or ahead” of the beat by a varying value. The value generated by the CA is further constrained within a specified high and low value. A slew function is also provided to enable a continually varying value rather than the discrete values generated by the CA. 
         [0034]    A method of generating multiple musical parameters using bit fluctuations within the current CA state is provided, including relying upon the sequence of bits within the current CA state to generate a time varying continuous range of values which can be applied to most of the other low level parameters within the virtual musician. The CA generates a serial stream of bits which serve to alter the direction of a continuously changing value in a similar manner to the slew function mentioned above. The difference is that this technique employs the active bit to change the current direction of the values vector (i.e. a vector of values starting at a low value of 25 and incrementing to a high value of 66 at a rate of 20 milliseconds per step (25, 26, 27 . . . 66) would change the direction of the vector upon receiving an active bit from the serial bit stream being generated by the CA). Upon the occurrence of this active bit event, the continuous value would now start decrementing toward the low value of 25 and would continue decrementing until another active bit event causes the direction to change again. 
         [0035]    A method of generating note duration values using CA is provided, including using a CA to generate a decimal value between 0 and X for determining the duration value of the associated note. The value generated by the CA is further constrained with a specified high and low value. A slew function is also provided to enable a continually varying value rather than the discrete values generated by the CA. A specialized “legato” module is provided to assist in generating duration values which are determined by the rhythm pattern generated by the rhythm CA. This function calculates the appropriate duration values associated with the active bits within the current CA state by examining the distance between the active bits. For example, in the case that the rhythm CA has generated a bit string “1000100010001000”, with an update clock of 4000 milliseconds, this function would assign each active bit a value of 1000 milliseconds. In another case, a CA state of “1111111111111111” would assign each active bit a value of 250 milliseconds (4000/16). This value also has a constraint which allows the duration value to be shortened or lengthened (i.e. above examples could be 90 (staccato) or 1100 (legato with overlap) milliseconds). Note that the virtual musician must be capable of polyphonic output in the event of duration overlapping. 
         [0036]    A method of generating phrase level musical arrangement using CA is provided, including using CA to determine the high level musical arrangement of the composition. This function uses 1-dimensional CA to control whether a particular virtual musician will play during the current phrase or not. At its simplest level, this function employs a CA to mute or unmute an individual virtual musician. More complex aspects of the arrangement can be determined by building a CA hierarchical structure which uses multiple, parallel CA to provide low level parameter initialization values, such as pitch and velocity to the virtual musicians structure. In this implementation, each virtual musician has an associated “master” CA, which is itself controlled by a “global CA”. 
         [0037]    A method of generating CA which have related evolutionary properties, including allowing for the automatic generation of related CA transition rules based upon the nature of the seed CA rule&#39;s evolutionary behavior. This function calculates related rules by simple manipulation of the binary expression of the transition rules unique number. For example, rule  255  (11111111) would become rule  0  (00000000) if each active bit in the rule table was inverted. Both rules exhibit class  1  behavior. As a further example rule  30  (00111110) would become rule  86  (11100001). 
         [0038]    A method of generating a unique musical composition based upon a user input phone number digit sequence is provided, including using CAMG to create a musical composition that is determined by the sequence of digits contained in a 10 digit phone number utilized as initial parameters for a subset of CAMG referred to as the “ring tone application”. This embodiment of CAMG is intended to enable the user to generate a musical composition of indeterminate length based upon the input phone number. Each phone number will create a different piece resulting in a total of 10 billion different compositions. 
         [0039]    A method of generating a real time telephone ring tone using the incoming phone number digit sequence is provided, including intercepting the incoming 10 digit phone number on a typical polyphonic ringtone enabled cellphone and to replace the default ringtones with a new musical composition that is unique for every possible phone number and is generated in real time. The resulting ring composition will play until the user&#39;s answering service feature is invoked, typically in the neighborhood of 10 to 20 seconds. Because each possible phone number input will have a different composition associated with it, the user will ultimately be able to distinguish the incoming caller by recognizing the composition that is generated 
     
     
       BRIEF DESCRIPTION OF THE DRAWINGS  
         [0040]      FIG. 1  is a block diagram of a CAMG according to the invention; 
           [0041]      FIG. 2  is an example of a representation of a cellular automata generator module according to the invention; 
           [0042]      FIG. 3  is an example of a representation of a serial/parallel delay module according to the invention; 
           [0043]      FIG. 4  is an example of a serial/parallel delay module with 16 event output triggers; 
           [0044]      FIG. 5  is an example of the inputs thereof; 
           [0045]      FIG. 6  is an example of a representation of a range module according to the invention; 
           [0046]      FIG. 7  is an example of a representation of a MIDI generator module according to the invention; 
           [0047]      FIG. 8  is an example of a representation of a MIDI generator module for a drum/single note according to the invention; 
           [0048]      FIG. 9  is an example of a representation of the values of a field generator module according to the invention; 
           [0049]      FIG. 10  is an example of a representation of a lag generator module according to the invention; 
           [0050]      FIG. 11  is an example of a representation of a serial lookup table module according to the invention; 
           [0051]      FIG. 12  is an example of a representation of a threshold/counter module according to the invention; 
           [0052]      FIG. 13  is an example of a representation of a clock module according to the invention; 
           [0053]      FIG. 14  is an example of a representation of a history module according to the invention; 
           [0054]      FIG. 15  is an example of a representation of a MIDI controller module according to the invention; 
           [0055]      FIG. 16  is an example of a representation of a phrase event duration module according to the invention; 
           [0056]      FIG. 17  is an example of a representation of a complex rules module according to the invention; 
           [0057]      FIG. 18  is an example of a representation of a rule matrix module according to the invention; 
           [0058]      FIG. 19  is an example of a representation of a global initialization module according to the invention; 
           [0059]      FIG. 20  is an example of a representation of phrase generator module according to the invention; 
           [0060]      FIG. 21  is an example of a representation of a 1 bit controller module according to the invention; 
           [0061]      FIG. 22  is an example of a representation of a parameter matrix module according to the invention; 
           [0062]      FIG. 23  is a representation of the CAMG module interconnections according to the invention; 
           [0063]      FIG. 24  is a representation of the CAMG module interconnections for a ringtone application according to the invention; 
           [0064]      FIG. 25  is a representation of the initialization and master arrangement components thereof; 
           [0065]      FIG. 26  is a representation of the rhythm repeat function thereof; 
           [0066]      FIG. 27  is a representation of an actual instrument thereof; 
           [0067]      FIG. 28  is a representation of a  1  bit shifter module according to the invention; 
           [0068]      FIG. 29  is a block diagram of the activation process of the ringtone application according to the invention; 
           [0069]      FIG. 30  is a block diagram of an alternative activation process of the ringtone application according to the invention; 
           [0070]      FIG. 31  is a block diagram of the composer mode and the number selection process in the ringtone application according to the invention; 
           [0071]      FIG. 32  is a block diagram showing the composer mode and the tempo selection process in the ringtone application according to the invention; and 
           [0072]      FIG. 33  is a block diagram showing the composer mode and the save process in the ringtone application according to the invention. 
       
    
    
     DETAILED DESCRIPTION OF THE INVENTION  
     Definitions 
       [0073]    In this document, the following terms will have the following meanings: 
         [0074]    C-Ionian, Dorian mode: Ionian mode refers to a type of musical scale consisting of eight notes. The white keys on a piano: C,D,E,F,G,A,B,C are the pitches used in this mode. The mode itself is based upon the intervals between each note in the following sequence, with a whole tone representing 2 steps and a semi tone, 1 step: 2,2,2,1,2,2,2,1. C Ionian means that the note sequence begins on the note C, D Ionian would begin on the note D and have the following pitch sequence: D,E,F#,G,A,B,C#,D. 
         [0075]    Cellular Automata (CA): A mathematical model that employs computationally simple systems that can evolve into a series of patterns, some of which are inherently random or complex. Cellular automata are a simple model of parallel computation. The model comprises a matrix of cells, which can be turned on or off (e.g. black or white) and a transition rule. Based on the transition rule and the state of its neighboring cells, a cell will update its state (on/off) over time. It is the turning on and off of these cells that generate patterns over time. 
         [0076]    Chromatic mode: A mode based on the chromatic scale. The chromatic scale divides an octave into twelve equal steps equivalent to the  12  keys within one octave of a piano keyboard. 
         [0077]    Delay line: The delay line is used to delay an event trigger by a specified number of milliseconds. The delay line is central to the CAMG system for generating rhythm values. 
         [0078]    Event Triggers: In CAMG, an event trigger refers to a signal which is usually generated by a clock or delay line that is used to update the CA receiving the event trigger to its next CA state. An event trigger can be though of as equivalent to the pulse of a timing source, such as a clock tick. 
         [0079]    Fletcher-Munson curves: A series of curves that present the sensitivity of humans to various sound frequencies. 
         [0080]    Legato: The smooth movement of one note to the next with no audible space or break between notes. 
         [0081]    Melodic Range: This determines the lowest and highest note values for a particular instrument. 
         [0082]    Metronomic Clock: A means of generating the exact tempo of a musical piece. MIDI (Music Instrument Digital Interface): A standard method of interfacing computers and synthesizers developed in the early 1980&#39;s. MIDI is widely used throughout the audio and music production industry. 
         [0083]    MS Offset: This component adds a continuously varying value expressed in milliseconds to the duration parameter. Used to provide a more organic, human feel to the rhythmic phrase. 
         [0084]    Orchestration: Arranging a piece of music for an orchestra or band and the assignment of musical parts to different instruments. 
         [0085]    One-dimensional Elementary (ID) Cellular Automata: This is the simplest network or matrix of cells. In this configuration, each cell has one of two possible states, on or off, and only two neighboring cells to affect its updates over time. The cells are arranged in a linear one- dimensional array. 
         [0086]    Phrase Generator: The phrase generator associates a pre-determined sequence of notes (a melody) with a particular index value, much like the serial lookup table but able to store multiple values with a single index. 
         [0087]    Pitch: The property of a tone determined by its frequency or number of vibrations. 
         [0088]    Psychoacoustic: Refers to the subjective way in which humans perceive sound, including music. 
         [0089]    Serial Lookup Table: A serial lookup table associates a unique address location, or index with a particular numeric value. The size of the table determines how many addresses are contained within the table. The serial lookup table is used to constrain pitch values into particular musical scales. 
         [0090]    Staccato: The opposite of legato, the notes are short in duration, regardless of the notes that follow in the rhythmic phrase. 
         [0091]    Stochastic: Exhibiting varying degree of randomness. 
         [0092]    Tempo: The speed at which a musical composition is played, measured in beats per minute. 
         [0093]    Timbre: The sonic quality of a musical note. Different instruments and voices have distinctive qualities or timbres. 
         [0094]    Transition Rule: The unique rule that defines how the cells will update over time. Each rule specifies how every cell in the CA will be updated based upon the current state of the cell in question and the state of it&#39;s left and right neighbors. There are 256 possible transition rules in the ID elementary CA employed in CAMG. Some rules, like rule  30  generate random patterns, whereas others, like rule  110 , generate complex patterns. 
         [0095]    Two-dimensional (2D) Cellular Automata: This is a more complex matrix of cells. In this configuration, each cell has eight neighboring cells in two dimensions to affect its updates over time. 
         [0096]    Velocity (in reference to music): The loudness or softness of a note&#39;s volume. 
         [0097]    VM Control: A Virtual Musician Controller, this component determines a variety of initialization parameters for the virtual musician section of CAMG. 
         [0098]    WAV files: Utilizing a sound format developed by Microsoft, WAV files have CD sound quality. 
         [0099]    Wolfram Classes: Stephen Wolfram, in the 1980&#39;s, discovered that  1  dimensional elementary CAs could be categorized into four classes that based on the types of patterns each transition rule generated. These categories include homogenous or constant state (Wolfram Class I), periodic limit cycles or repeating (Wolfram Class II), chaotic or random (Wolfram Class III) and finally true complexity (a mix of periodic and chaotic behavior—Wolfram Class IV). 
         [0100]    ZenRings: Brand name for the ringtone or audio caller identification application. 
       Cellular Automata Music Generator Software—Component Modules 
       [0101]    The following describes the various component modules of a CAMG according to a preferred embodiment of the invention. The end result of the modules is shown in  FIG. 1  as the CAMG takes a global initialization and from that generates output of MIDI notes for a plurality of virtual musicians. The modules are preferably implemented by a computer having a memory, input and output means and a processor. In alternative embodiments of the invention not all of the modules need to be present. 
       Cellular Automata Generator (CAG or CA) Module 
       [0102]    The CAG module is the central signal generation component of the CAMG. The core algorithm is a one dimensional elementary K=2, R=1 cellular automata with periodic boundary conditions. A preferred implementation has a variable lattice size of between 3 to 16 cells. The transition rule determines the future evolution of the CA based upon its current state. The 256 possible transition rules exhibit a variety of dynamic behaviors such as convergence to a homogenous state (Wolfram Class I), periodic limit cycles (Wolfram Class II), chaotic (Wolfram Class III) and finally true complexity (a mix of periodic and chaotic behavior—Wolfram Class IV). Wolfram classified the various CA behaviors as outlined in his book “Cellular Automata and Complexity”. 
         [0103]    The inputs to this module allow the user to set the lattice size, transition rule and initial state value. The initial state value must be less than or equal to 2 ̂ Lattice size— 1 , (i.e. a size  3  lattice can only accept an initial state value in the range 0 . . . 7). 
         [0104]    The Update Input causes the CA to advance to its next state based upon the current state value and transition rule. 
         [0105]    The Output of the CAG module is a decimal number within the current lattice size range that corresponds to the binary value of the CA lattice. 
       Inputs: 
       [0106]    Size: Lattice size of ID CA ( 3 - 16 ) 
         [0107]    Rule: Transition Rule ( 0 - 255 ) 
         [0108]    Init: Initial state ( 0 - 65535  based upon lattice size) 
         [0109]    Update: Update CA to next state 
       Outputs: 
       [0110]    State: Current CA state ( 0 - 65535 ) 
         [0111]    Live Cells: Number of current cells equal to “1” 
         [0112]    A representation of a CAG module is shown in  FIG. 2 . 
       Serial/Parallel Delay (DLY) Module 
       [0113]    The DLY module is the primary timing and rhythmic component of the CAMG. The primary function of the DLY module is to accept a decimal CA state value as input and transform that value into a series of delayed event triggers based upon an internal lookup table. The process involves converting the decimal value into a binary value and using each bit to generate an event trigger that is subsequently passed through a series of parallel delay lines. Each bit in the binary value has a dedicated delay line. The user can input the global delay time, which is divided by the current size value to determine the delay time of each individual delay line. This value can be overridden by a Delay Lookup Table, which consists of different multiplicand values for the delay times.  FIG. 3  shows a representation of a DLY module. 
         [0114]    As seen in  FIG. 4 , the serial/parallel delay (DLY) module converts the CA state on input into a rhythmic phrase of a number of beats equal to the “size” parameter. 
         [0115]    A Serial/Parallel Delay with 16 event output triggers is shown in  FIG. 5 . Note the left most event trigger (darker) represents the serial output. 
       Inputs: 
       [0116]    State: Current CA state ( 0 - 65535 ) 
         [0117]    Delay: Total delay time in Msec (divided by Size to determine cell delay time 
         [0118]    Size: Range of input values (2 ̂ N power) determines number of delay cells 
         [0119]    Delay LookUp: Set current delay values to Delay Lookup Table values 
       Outputs: 
       [0120]    Serial Trigger: (red) 
         [0121]    Parallel Trigger # 1   
         [0122]    Parallel Trigger #N (Size) 
       Range (RNG) Module 
       [0123]    The RNG module is used to constrain the input state to a new user specified range of values. Example, an 8 bit CA will generate a value between 0-255. If the input state is 128, range “lo” value is set to 60 and range “hi” is set to 85, the new output value is 72. It is important that the size value is greater than the highest value for the input state (i.e. input of 235 would create an error if size was set to 7 bits, which has a maximum value of 127). 
         [0124]    The RNG module is designed to restrict the range of notes that the CA can generate. For example, the parameters can be set to limit the CA to a range of a single octave to ensure that a bass line stays within a lower set of note values. The RNG module is also used to restrict the range of MIDI velocities or the loudness of a particular note.  FIG. 6  shows a representation of a RNG module. 
       Inputs: 
       [0125]    State: Current CA state ( 0 - 65535 ) 
         [0126]    Range Lo: Minimum value for scaled range 
         [0127]    Range Hi: Maximum value for scaled range 
         [0128]    Size: Range of input values (2 ̂ N power) 
       Outputs: 
       [0129]    State: Current CA state scaled to RangeLo&lt;=State&lt;=RangeHi 
       MIDI Generator (MIDI) Module 
       [0130]    The MIDI module is the primary MIDI playback engine in the CAMG. All input parameters can be replaced with CA generated values. 
       Inputs: 
       [0131]    Note In: MIDI Note # ( 0 - 127 )(pitch value) 
         [0132]    Trig In: Trigger a note (play the note) 
         [0133]    Velocity: MIDI velocity value ( 0 - 127 ) (loudness) 
         [0134]    MIDI Ch: MIDI channel ( 0 - 16 ) (which instrument) 
         [0135]    Duration: Duration in Msec (duration of note) 
         [0136]    Pg Chg: MIDI Program change ( 0 - 127 ) (change instrument) 
       Outputs: 
       [0137]    MIDI Note to MIDI port (sends Note On MIDI message to synthesizer) 
         [0138]      FIG. 7  shows a representation of a MIDI module. A drum/single note version of the MIDI module is shown in  FIG. 8 . 
       Field Generator (FG) Module 
       [0139]    The FG module is a simple binary to decimal converter that accepts event triggers as input bit values. One common application is to use multiple field generators to derive a number of different decimal values from a single CA binary state output. 
         [0140]    Example: CA state input value is 29 (binary value is 11101) a 3 bit field generator attached to bits  1 - 3  would output  5  ( 101 ), a 2 bit field generator attached to bits  4 ,  5  would output  3  ( 11 ) and a 5 bit field generator would output  29 . The Most Significant Bit (MSB) is the leftmost bit within the binary value. The Least Significant Bit (LSB) is the rightmost value. The FG module can be used to generate initialization values for multiple modules from a single CA output. For example the output of a 16 bit CA could be divided into 4 equal sections of 4 bits each, which could then be used to provide an initial state value, between 0 and 16 for 4 other CA&#39;s that are used to generate pitch values. 
       Inputs: 
       [0141]    Bit # 12 : MSB of a 12 bit number (bit  12 ) 
         [0142]    Bit #N: Bits  11  through  2   
         [0143]    Bit # 1 : LSB of a 12 bit number (bit  1 ) 
         [0144]    Reset: reset all bits to  0   
       Outputs: 
       [0145]    DecValue: Decimal value of 12 bit input state 
         [0146]      FIG. 9  shows a sample representation of a FG module. 
       Lag Generator (LAG) Module 
       [0147]    The LAG module provides a ramp function between successive input values. Lag time determines how much delta time will elapse between new input state and previous input state. Lag resolution determines how fine each lag increment will be. Once the new value has been reached the Reflected value output will begin counting in the reverse direction until reaching the previous value and then reversing again. The Limited output option will remain at the new value until a newer value is received. 
         [0148]    Example: state value on previous input was 200, new value is 300. If lag time is set to 1000 Msec, the output value will ramp from 200 to 300 over a period of 1 Sec. If lag resolution is set to 1, lag sequence will be 200,201,202 . . . 300. If lag resolution is set to 20, lag sequence will be 200,220,240 . . . 300. Lag Value Reflected output will cause lag value to begin counting in opposite direction once new value is achieved, 220,240,260 . . . 300, 280, 260, . . .200, 220 
         [0149]    Limited output will cause lag value to remain at new value once new value is achieved, 220,240,260 . . . 300, 300,300 . . . 
         [0150]    The LAG module can be used to generate more “lyrical” melodies by preventing large jumps between notes. Most typical humanly composed melodies exhibit this characteristic. 
       Inputs: 
       [0151]    State: Current CA state 
         [0152]    Lag Time: Ramp value for lag time in Msec 
         [0153]    Lag Resolution: Number of interpolation points between lag Values 
       Outputs: 
       [0154]    Lag Value—Reflected: Current lag value. If boundary value is Reached, lag reverses direction and continues. 
         [0155]    Lag Value—Limited: Current lag value. If boundary value is Reached, lag remains at boundary value until a new input state occurs 
         [0156]      FIG. 10  shows a sample representation of a LAG module. 
       Serial Lookup Table (SLT) Module 
       [0157]    The SLT module is used to provide a lookup table for constraining pitch values into particular scales. The input value is a decimal number between 0-127. The output value will be the lookup table value at the input value&#39;s address. 
         [0158]    Example: input values  60 ,  61 ,  62  would output  60 ,  62 ,  62  if table was set to C-Ionian mode. Chromatic mode is a one to one mapping of input value to output value,  1 - 1 ,  2 - 2 ,  3 - 3  etc. 
         [0159]    The SLT module is important for generating melodies which conform to a particular musical key. If the CA output was not constrained using the SLT module, the resulting melodies would sound much more random. 
       Inputs: 
       [0160]    CA State: current CA state (must be scaled to 0-127) 
         [0161]    Lookup Table: read lookup table 
       Outputs: 
       [0162]    CA State: New CA state conformed to current lookup table 
         [0163]      FIG. 11  shows a sample representation of a SLT module. 
       Threshold/Counter (TCT) Module 
       [0164]    The TCT module is used as a general purpose threshold trigger and counter. The module inputs can be either an event trigger or a CA state value. The event trigger input is used in counter mode to count the number of times an event trigger has been received as input. When the count has been reached the module generates an event trigger output. In threshold mode, the module uses the CA state value as input to determine whether it satisfies one of several logical evaluations, &lt;,=or &gt; and generates an event trigger based upon if the condition is satisfied. The inhibit/excite parameter determines whether the event trigger will only occur the first time the condition is true (inhibit) or every time (excite). 
       Inputs: 
       [0165]    CA State: Current CA state 
         [0166]    T/C Value: Threshold or Counter Maximum Value 
         [0167]    Trig In: Trigger input (advance counter) 
         [0168]    &gt;, =, &lt;: Comparison state (less than, equal, greater than) 
         [0169]    Inhibit/Excite: Excite—Trigger every time threshold is exceeded
       Inhibit—Trigger only the first time threshold is exceeded       
 
         [0171]    Reset: Reset counter to 0 
       Outputs: 
       [0172]    Trigger: 
         [0173]    Count: Current counter value 
         [0174]      FIG. 12  shows a sample representation of a TCT module. 
       Clock (CLK) Module 
       [0175]    The CLIK module provides a metronomic clock that outputs event triggers at a particular clock speed, set in Msec. 
       Inputs: 
       [0176]    Start/Stop: Start or stop current clock (toggle) 
         [0177]    MSec: Clock value in Msec 
       Outputs: 
       [0178]    Trig: Clock trigger (event trigger) 
         [0179]    MSec: Current clock value in Msec 
         [0180]      FIG. 13  shows a sample representation of a CLK module. 
       History (HIST) Module 
       [0181]    The HIST module provides a history of previous CA states. Each time a new state is received, each state shifts to the right by one position and replaces the previous state in that position. 
       Inputs: 
       [0182]    CA State: Current CA state 
       Outputs: 
       [0183]    Current CA State 
         [0184]    Previous CA State (Time— 1 ) (Bucket brigade) 
         [0185]    Previous CA State (Time— 2 ) 
         [0186]    Previous CA State (Time— 7 ) 
         [0187]      FIG. 14  shows a sample representation of a HIST module. 
       MIDI Controller (CTRL) Module 
       [0188]    The CTRL module provides a general purpose MIDI controller generator. Each of the 4 controller values can be set to a different MIDI controller # (i.e. CTL # 7  is MIDI volume). The CA State value for each input is translated into the appropriate MIDI controller data on the MIDI channel set by the user. MIDI controllers are used to generate a variety of continuously varying values, such as instrument volume or pitch bend. This is useful for creating musical phrases which sound more organic and human. 
       Inputs: 
       [0189]    CA State 1 : CA State (must be scaled to  0 - 127 ) 
         [0190]    CA State 2   
         [0191]    CA State 3   
         [0192]    CA State 4   
         [0193]    CTL 1 : Midi Controller # ( 0 - 127 ) 
         [0194]    CTL 2 : Midi Controller # ( 0 - 127 ) 
         [0195]    CTL 3 : Midi Controller # ( 0 - 127 ) 
         [0196]    CTL 4 : Midi Controller # ( 0 - 127 ) 
         [0197]    MIDI CH: MIDI channel for controllers 
       Outputs: 
       [0198]    CAState 1  mapped to MIDI Controller # N value 
         [0199]    CAState 2  mapped to MIDI Controller # N value 
         [0200]    CAState 3  mapped to MIDI Controller # N value 
         [0201]    CAState 4  mapped to MIDI Controller # N value 
         [0202]      FIG. 15  shows a sample representation of a CTRL module. 
       Phrase Event Duration (PED) Module 
       [0203]    The PED module is used to calculate MIDI event duration times based upon the CA state used as input, combined with the current master clock value. The master clock value is used to calculate the overall duration of one ‘bar’ of 16 beats (equivalent to one CA state output of 16 cells). Internally this module divides the master clock value by 16 and multiplies each individual cell&#39;s value by an integer based upon the number of cells to the right of the current cell which have a state of 0 plus the current non zero cell value of 1. 
         [0204]    Example: Assume CA input state is 65535: (1111111111111111) and current master clock value is 10000 Msec. Duration value for left most cell will be 10000/16=625 Msec . Because there are no cells with a value of 0, all durations for each of the 16 beats in the bar will be 625 
         [0205]    Msec (1*625). 
         [0206]    Now assume input state is 34952 (1000100010001000). The leftmost cell will now have a duration value of 625*4=2500 Msec (i.e. current cell=1+3 “0” cells to the right=4). Note that all other non-zero cells will have the same value. 
         [0207]    As a final example of a more complex input state, assume CA inputs state is 37090 (1001 0000 1110 0010), duration value for each non zero cell starting from the left will be: 1875 Msec (3*625), 3125 Msec (5*625), 625 Msec (1*625), 625 Msec, 2500 Msec (625*4) and 1250 Msec (625*2). 
         [0208]    In musical terms, this module is responsible for determining the rhythmic value of each note in a phrase base upon the rhythmic position of the notes that follow. By varying this parameter, the articulation of the notes can be varied between legato to staccato. 
       Inputs: 
       [0209]    CA State: Current CA state 
         [0210]    MSec: Clock value in Msec 
         [0211]    Event Trigger # 1 : usually associated with Module  2 -Serial Parallel
       Delay; Parallel Delay Trigger # 1         
 
         [0213]    Event Trigger #N: usually associated with Module  2 -Serial Parallel
       Delay; Parallel Delay Trigger #N       
 
       Outputs: 
       [0215]    Msec: Legato duration value associated with Event trigger position from Serial/Parallel Delay trigger 
         [0216]      FIG. 16  shows a sample representation of a PED module. 
       Complex Rules (CR) Module 
       [0217]    The CR module uses a simple lookup table to constrain the possible CA transition rules to a subset of rules which exhibit complex, chaotic or periodic behaviors. Rules which tend to evolve into homogenous states are replaced by rules that exhibit more complex evolutions. (i.e. Rule  0  will always arrive at a homogenous state of “0000000” after one CA update, Rule  255  will always arrive at a homogenous state of “11111111” after one update). This module will output a new CA transition rule based upon the input rule&#39;s associated value in the lookup table (i.e. if input is Rule  0 , output for new rule becomes Rule  30 ). The assignment of associated values is based upon a manually constructed look up table which has no underlying algorithm for generating the appropriate values. 
       Inputs: 
       [0218]    Rule: Transition Rule ( 0 - 255 ) 
       Outputs: 
       [0219]    Rule: Constrained Transition Rule (subset of  0 - 255 ) 
         [0220]      FIG. 17  shows a sample representation of a CR module. 
       Rule Matrix (RM) Module 
       [0221]    The RM module calculates various transformations of the original transition rule used as input. The transformations consist of  3  variations of the input rule based upon the methods outlined in “The Global Dynamics of Cellular Automata”, A. Wuensche ISBN 0-201-55740-1, pg 18-20, which is hereby incorporated by reference. The purpose of this module is to generate a group of related transition rules which have similar global behaviors. 
         [0222]    A—Complemented Transition Rule: The complemented rule is the binary complement of the original (i.e. Rule  0  becomes Rule  255 , Rule  193  (11000001) becomes Rule  110  (00111110). 
         [0223]    B—Negated Transition Rule: The negated rule will generate a negative space time pattern (i.e. Rule  193  (11000001) becomes Rule  124 (01111100)). 
         [0224]    C—Reflected Transition Rule: The reflected rule will generate a reflected (mirror image) space time pattern (i.e., Rule  193  (11000001) becomes Rule  137  (10001001)). 
       Inputs: 
       [0225]    Rule: Transition Rule ( 0 - 255 ) 
       Outputs: 
       [0226]    Rule: Original Transition Rule ( 0 - 255 ) 
         [0227]    Rule: Complemented Transition Rule ( 0 - 255 ) 
         [0228]    Rule: Negated Transition Rule ( 0 - 255 ) 
         [0229]    Rule: Reflected Transition Rule ( 0 - 255 )) 
         [0230]      FIG. 18  shows a sample representation of a RM module. 
       Global Initialization (GI) Module 
       [0231]    The GI module performs the global initialization of the CAMG system. Every module contained within CAMG has associated initialization parameters such as CA transition rule, Serial/Parallel Delay time and Serial Lookup Table scale selection. The GI module effectively determines the entire initial state of the CAMG environment. The current global state of CAMG can be saved in order to perfectly replicate the musical composition being generated at that point in time. This module allows the user to create a specific “song” and recall that song at a later time. For example, CAMG may be initially configured to generate an “ambient techno piece” that the user wishes to save. The current song can be saved in the global initialization table and a different song such as a “chromatic fantasy” can be recalled. 
       Inputs: 
       [0232]    Table of global initialization strings 
       Outputs: 
       [0233]    All initial state parameters for every module within CAMG, such as Pitch CA size, transition rule and initial state. 
         [0234]      FIG. 19  shows a sample representation of a GI module. 
       Phone Initialization (Ringtone Application) (PINIT) Module 
       [0235]    The PINIT module is a special purpose module that is not part of the general CAMG toolkit. It is specifically used to provide the global initial parameters for a ringtone application. Different digits within the phone number input are used to provide the initial values for every component within the ring tone application. For example the last digit of the phone number could provide the CA melody module # 1  with an initial state setting of 7, the area code could provide the initial state for the CA rhythm module # 2 . 
       Inputs: 
       [0236]    10 digit phone number: e.g. (604-555-5555) 
         [0237]    Outputs: (all integer values except where noted) 
         [0238]    CA Melody initialization: 4 digit value divided by 40 (0 to 250) 
         [0239]    CA Duration init: 1 digit value (1 to 10) 
         [0240]    CA Velocity init: 1 digit value (1 to 10) 
         [0241]    CA Rhythm init: 4 digit value (0000 to 9999) 
         [0242]    MIDI Program select: 2 digit value (00-99) 
         [0243]    Scale select: 1 digit value (0-9) 
         [0244]    Legato select: 2 digit floating point value (0.00-0.99) 
         [0245]    Global Rule: 3 digit value (0-255) 
         [0246]    Global Clock init: 4 digit value (6000-20000) 
         [0247]    Melodic Range select: 1 digit value (0-9) See Appendix A 
       Phrase Generator (PHGEN) Module 
       [0248]    This module is designed to generate pitch values based upon a look up table that associates a particular pitch with a corresponding active bit output by the Serial/Parallel Delay Module. Unlike the Serial Lookup Table, which constrains the CA state output of the CA used to generate pitch values, this module uses the parallel bit outputs from the delay module as its input. For example assume that the CA used as input has generated a CA state value of 65535 (1111111111111111), the Phrase Generator has been initialized with a phrase table consisting of the sequential series of pitch values: C 3 , D 3 , E 3 , F 3 , G 3 , A 3 , B 3 , C 4 , D 4 , E 4 , F 4 , G 4 , A 4 , B 4 , C 5 , D 5 . Because each bit in the input CA is active, the Phrase Generator would play an ascending C major scale of  16  notes beginning on C 3 . If the CA state value was 34952 (1000100010001000), the Phrase Generator would play a 4 note sequence consisting of the pitch values: C 3 , G 3 , D 4 , A 4 . 
       Inputs: 
       [0249]    Parallel Trigger # 1   
         [0250]    Parallel Trigger #N (Size) 
         [0251]    Select phrase table—choose which note values are associated with each bit 
       Outputs: 
       [0252]    MIDI pitch value ( 0 - 127 )—Pitch value associated with a specific bit in 
         [0253]    Serial/Parallel Delay Module 
         [0254]      FIG. 20  shows a sample representation of a PHGEN module. 
       1 Bit Controller (IBIT) Module 
       [0255]    The 1BIT module is used to generate a continuously varying value which can be applied to a variety of other module&#39;s inputs such as velocity, duration or MIDI continuous controller value. This module is related to the Lag Generator module in that its output continuously varies over time. The 1BIT module generates a serial stream of bits which serve to alter the direction of a continuously changing value in a similar manner to the Lag Generator Module described above. The difference is that this technique employs the active bit to change the current direction of the values vector (i.e. a vector of values starting at a low value  25  and incrementing to a high value of  66  at a rate of 20 milliseconds per step ( 25 ,  26 ,  27  . . .  66 ) would change the direction of the vector upon receiving an active bit from the serial bit stream being generated by the CA). Upon the occurrence of this active bit event, the continuous value would now start decrementing toward the low value of  25  and would continue decrementing until another active bit event causes the direction to change again 
       Inputs: 
       [0256]    CA State 1   
         [0257]    Lag Time: Ramp value for lag time in Msec 
         [0258]    Lag Resolution: Number of interpolation points between lag values 
       Outputs: 
       [0259]    Lag Value—Reflected: Current lag value. If boundary value is reached, lag reverses direction and continues 
         [0260]    Lag Value—Limited: Current lag value. If boundary value is reached, lag remains at boundary value until a new input state occurs 
         [0261]      FIG. 21  shows a sample representation of a 1 BIT module. 
       Parameter Matrix (PM) Module 
       [0262]    The PM module provides an alternative method of globally reconfiguring CAMG to create a network of CA and other modules that can be specified by the user. In this mode the user is able to select any combination of module inputs and outputs via a matrix which lists all possible input parameters on the X axis of the matrix and all possible output assignments on the Y axis. Using this module allows the composer to create customized configurations of CAMG for specific purposes other than the default CAMG structure. 
       Inputs: 
       [0263]    CA 1  State input 
         [0264]    CA 1  Size 
         [0265]    CA 1  Transition rule 
         [0266]    DLY 2  Delay time 
         [0267]    Lag Generator lag time 
         [0268]    (inputs for every module) 
       Outputs: 
       [0269]    CA 1  state output 
         [0270]    CA 2  state output 
         [0271]    (outputs of every module) 
         [0272]      FIG. 22  shows a sample representation of a PM module. 
       Bit Shifter Module 
       [0273]    This module is uses 2 CAG modules and 2 CLK modules to generate a random walk function. CA 1  is used to implement the final output state of this module which generally consists of a binary number containing only one significant bit, such as 1, 2, 4 up to the lattice size as a power of 2. The module also outputs the bit number as a value based upon the bits position, i.e. binary 1 is position  1 , binary 4 is position  3  and so forth. CA 2  provides the rate of change control, which determines which of the transition rules is applied to CA 1 . The rules that are used by CA 1 ,  170 ,  240  and  204  are specifically selected to provide a left shift, right shift and identity function. The number of live cells contained in CA 2  state provide the input value which determines which transition rule will be applied to CA 1 . The input threshold value determines when to apply each individual change of transition rule to CA 1 . 
       Inputs: 
       [0274]    CA 1  Shift Size: Lattice size of 1D CA ( 3 - 16 ) 
         [0275]    CA 1  Shift Init: Initial state ( 0 - 65535  based upon lattice size) 
         [0276]    CA 2  Change Size: Lattice size of 1D CA ( 3 - 16 ) 
         [0277]    CA 2  Change RuleRule: Transition Rule ( 0 - 255 ) 
         [0278]    CA 2  Change Init: Initial state ( 0 - 65535  based upon lattice size) 
         [0279]    Clock value for Shift CA: controls rate at which output bit is generated 
         [0280]    Clock value for Change CA: controls how often Shift CA will change 
         [0281]    Start/Stop Clocks: Start or Stop the internal clocks 
         [0282]    Threshold Value: Determines when CA 1  will change transition rule 
       Outputs: 
       [0283]    State: Current CA state ( 0 - 65535 ) 
         [0284]    Bit Number ( 0 - 16 ) 
         [0285]      FIG. 28  shows a representation of a bit shifter module. 
       Module Interconnections 
       [0286]    The above described modules can be arranged to create a single virtual musician as shown in  FIG. 23 . 
       CAMG—Module Interconnections (Ringtone Application) 
       [0287]    As shown in  FIGS. 24 ,  25 ,  26  and  27 , an application of CAMG may be designed to generate unique cell phone ring tones in real time, based upon the incoming phone number. When using this “ring mode”, the length of the ring tone composition is determined by the cell phone&#39;s internal setting that determines the number of “rings” to generate before answering the call, or branching to the “leave message” feature. One variant of the application, “play mode”, would allow the user to input the phone number manually and have the cell phone play the resulting composition for a more extended period, as determined by the listener. 
         [0288]    Cellular automata are used extensively to provide the primary parameter generation within the “ringtone” composition. The initial input for the application consists of a 10 digit phone number (999-999-9999), which is used to determine all of the initial CA parameter settings for the music composition. 
         [0289]    Unlike stochastic approaches to generative music, such as Sseyo&#39;s Koan, the CAMG methodology is completely deterministic, meaning that the composition based upon the unique phone number input will always “sound the same” and develop in exactly the same way over time. 
       CA Module Components: 
       [0290]    CA 1  (Master Arranger—section  1 ) is used to provide the “master instrument arrangement” function. CA 1  determines the input state for a delay module, DLY 1 . Each cell (bit) in CA 1  is used to update the current state of CA 4   x,  the “rhythm generator”. Bit  16  is used to update CA 4   a,  the lead instrument. Bits  15  and  14  update CA 4   b  and CA 4   c,  the harmony instruments and Bit  13  updates CA 4   d,  the bass instrument. 
         [0291]    CA 1  is updated by CLK 1  (the master clock module) at a rate determined by the input phone number. 
         [0292]    The initial parameter settings for CA 1  are size= 16 , rule= 30  and init= 1 . 
         [0293]    CA 2  (Rhythm Repeat—section  2 ) is used to implement a “rhythm repeat” function, which provides a degree of redundancy to the rhythms that each of the “instruments” used. 
         [0294]    CA 2  essentially acts a linear position counter based upon very specific initial CA parameter settings of size= 4 , rule= 170  and init= 8 . Each update causes the current state to shift  1  cell to the right. By using an initial state setting of “8” (1000) with a lattice size of 4 bits, this CA causes a second delay module, DLY 2  to trigger successive events that shift from right to left, starting at bit  13  output from DLY 2 , then shifting to bit  14 ,  15 ,  16 ,  13  . . . on each update clock. 
         [0295]    The update clock is provided by clock module CLY 2 , which runs synchronously with master clock CLK 1 , but updates  4  times as often. (i.e. if master clock CLK 1  is set to  320 OMsec, CLK 2  will update every  800  Msec). Bit  13  of DLY 2  is used to update CA 7 , which provides the “melody range setting”. Bits  14 - 16  are used to provide the “drum repeat” function, which causes DLY 3   x  (another delay module) to retrigger its current rhythm using the current state stored in DLY 3   x.  Note that Bits  14 - 16  retrigger all DLY 3   x  modules simultaneously, i.e. “drum repeat” is a global retrigger for ALL instruments. CA 3   x  (Melody Initialize—section  3 ) is used to provide an initial state value for CA 5   x,  which provides the melodic values for MIDI Module MID 1   x.  CA 3   x  is initialized by a portion of the input phone number only at the start of the composition. CA 3   x  is updated by the CA 1 /DLY 1  modules. CA 3   a  is updated by Bit  16  of DLY 1 . CA 3   b  is updated by Bit  15  etc. 
         [0296]    The initial parameter settings for CA 3   x  are size= 8  , rule= 30  and init is based upon phone number. 
         [0297]    CA 4   x  (Rhytlm Generator—section  3 ) is used to provide the rhythm pattern for one “bar” of music consisting of 16 beats. CA 4   x  provides the input for DLY 3   x  which is further processed by Legato Module to provide the rhythmic sequencing and duration values for MID 1   x.  DLY 3  also provides the update trigger for CA 5   x  (melody) and CA 6   x  (velocity). 
         [0298]    The initial parameter settings for CA 4   x  are size= 16 , rule and init are based upon phone number. 
         [0299]    CA 5   x  (Melody Generator—section  3 ) is used to provide raw pitch values to RNG 1   x  (a range module), which constrains the value to a range determined by CA 7  (Melodic Range Setting). RNG 1   x  is then filtered through Serial Lookup Table module to further constraint the final pitch value to a particular musical mode, such as Ionian or Dorian modes. The final pitch value is used to provide the “note” input for MID 1   x.    
         [0300]    The initial parameter settings for CA 5   x  are size= 8 , rule is based upon phone number and init is determined by the current output state of CA 3   x.    
         [0301]    The phone number input for initialization is constrained by Complex Rules module to ensure that the transition rule used for melody generation is not a member of Wolfram&#39;s Class 1  CA (Limit Points such as Rule  0 ,  255 ,  204  etc.). 
         [0302]    NOTE: The phone number only determines the actual transition rule used by CA 5   a,  the “Lead” instrument. The other instruments have transition rules which are determined by the Rule Matrix module as follows: 
         [0303]    Harmony instrument  1  (CA 5   b ) is the complement of the original rule, used by CA 5   a;    
         [0304]    Harmony instrument  2  (CA 5   c ) is the reflection of the original rule; and 
         [0305]    Bass instrument (CA 5   d ) is the negation of the original rule. 
         [0306]    For example, if phone# selects Rule  193  for CA 5   a,  CA 5   b  uses rule  110 , CA 5   c  uses rule  137  and CA 5   d  uses rule  124 . 
         [0307]    CA 6   x  (Velocity Generator—section  3 ) is used to provide raw velocity values to RNG 2   x  (a range module) which constrains the velocity to a new value based upon the Hi &amp; Lo parameter settings of RNG 2   x.  These RNG 2   x  settings are not based upon the phone number, but instead are fixed for all possible compositions to a range of values which are loosely based upon psycho-acoustic principles pertaining to the human ear&#39;s frequency response pattern, i.e. the Fletcher Munson curves 
         [0308]    The initial parameter settings for CA 6   x  are size= 8  , rule and init are based upon phone number. 
         [0309]    The phone number input for initialization is constrained by Complex Rules module to ensure that the transition rule used for melody generation is not a member of Wolfram&#39;s Class 1  CA (Limit Points such as Rule  0 ,  255 ,  204  etc.). 
         [0310]    CA 7  (Melodic Range Setting—section  4 ) is used to provide a list of parameters which select the Hi and Lo range values for RNG 1   a -RNG 1   d.  Each RNG 1   x  will receive a different range that determines the note values that a particular instrument will be able to use. For example, Instrument  4 -“Bass” (RNG 1   d ) has a range value of note # 36  for LO and note # 55  for HI (1.5 octaves) when melodic range is set to “C Ionian”. 
         [0311]    CA 7  generates a value between 0 and 7 (000-111). The value generated by CA 7  is then converted to a 3 bit binary value (via DLY 4 ) and reconverted to decimal (via FG 1 ). The output of FG 1  is used to pick one of 8 “lists” which provide input for RNG 1   a - d    
         [0312]    CA 7  is updated by bit  13  of CA 2  (Rhythm Repeat) 
         [0313]    The initial parameter settings for CA 6   x  are size= 3  , rule= 82  and init is based upon phone number. 
         [0314]    NOTE: initial parameter is preset to be between the values of 1 through 6, a 0 or 7 input would cause 3 bit CA 7  to enter a static state (always 000, 111 or alternating between these two states). 
         [0315]    Rule  82  was chosen because any value between 1 and 6 will cycle through all states (other than 0 and 7). The cycle is a period  6 . Increasing the size of CA 7  would allow a greater number of possible values for the RNG 1   x  parameter lists, beyond  6 . 
         [0316]    DLY 4  and FG 1  could be removed from this section and the output of CA 7  could be directly input into the code that implements the actual list selection 
       Ringtone Application Functions and User Interface 
     Sequencing using Standard User Interface (UI) Components 
       [0317]    The examples below illustrate the sequencing to perform tasks for ZenRings in a ringtone application, such as audio caller ID. It uses standard UI components, however to make the UI more concrete. These use cases are based on the Series 60 phones: Symbian OS 7.0s although the CAMG can be adapted for use with other phone models. 
       Sequence  1 : ZenRings,Activation 
       [0318]    As shown in  FIGS. 29 and 30 , the ringtone application (referred to as ZenRings) may be started using the following process: 
         [0000]    
       
         
               
               
               
               
             
           
               
                   
               
               
                 Trigger 
                 Task 
                 Sequence 
                 Comments 
               
               
                   
               
             
             
               
                 Launch 
                 Find ZenRings 
                 1. Activates “Menu” 
                 1. Activation may be 
               
               
                 Program 
                 application on cell 
                 from default screen. 
                 pressing preset 
               
               
                   
                 phone 
                 2. Uses arrows or 
                 button or require 
               
               
                   
                   
                 joystick to cycle menu 
                 another mode 
               
               
                   
                   
                 until “Applications” 
                 depending on phone. 
               
               
                   
                   
                 folder is highlighted. 
                 3. “Select” label 
               
               
                   
                   
                 3. Activates “Select” to 
                 may be “Open” 
               
               
                   
                   
                 open “Applications” 
                 depending on phone. 
               
               
                   
                   
                 folder. 
                 4. The 4 th  step may 
               
               
                   
                   
                 4. Uses arrows to cycle 
                 be skipped on some 
               
               
                   
                   
                 menu until “Select 
                 phones. 
               
               
                   
                   
                 Application” is 
               
               
                   
                   
                 highlighted. 
               
               
                   
                   
                 5. Activates “Select” to 
               
               
                   
                   
                 get applications listing. 
               
               
                   
                   
                 6. Uses arrows or 
               
               
                   
                   
                 joystick to cycle through 
               
               
                   
                   
                 available applications 
               
               
                   
                   
                 until “ZenRings” is 
               
               
                   
                   
                 highlighted. 
               
               
                 Decides to 
                 Get back to 
                 1. Activates “Back” item 
                 2. This process may 
               
               
                 abort plans to 
                 default Phone 
                 available on the screen. 
                 be avoided on some 
               
               
                 launch 
                 Screen. 
                 2. Repeats activating 
                 phones by holding 
               
               
                 ZenRings* 
                   
                 “Back” until default 
                 down “Disconnect” 
               
               
                   
                   
                 screen is reestablished. 
                 button on the cell 
               
               
                   
                   
                   
                 phone. 
               
               
                 Chooses to 
                 Enter ZenRings 
                 7. Activates “Options” to 
                 7. “Options” may not 
               
               
                 continue with 
                 Interface. 
                 open list of application 
                 be universal for all 
               
               
                 Launching 
                   
                 info: Open, Delete, Web 
                 phones. 
               
               
                 Program. 
                   
                 Access, Check Version. 
               
               
                   
                   
                 8. Uses arrows or 
               
               
                   
                   
                 joystick to cycle through 
               
               
                   
                   
                 available applications 
               
               
                   
                   
                 until “Open” is 
               
               
                   
                   
                 highlighted. 
               
               
                   
                   
                 9. Activates “Select” to 
               
               
                   
                   
                 start ZenRings Interface. 
               
               
                   
                   
                 Status of Zen Rings 
               
               
                   
                   
                 Application is provided. 
               
               
                   
                   
                 It reads “ZenRings 
               
               
                   
                   
                 Status: Off”. 
               
               
                 Decides to 
                 Get back to 
                 1. Activates “Exit” 
                 1. Pressing 
               
               
                 Quit 
                 Default Screen 
                 available on the screen. 
                 “Disconnect” 
               
               
                 Application* 
                   
                 2. Activates “Back” 
                 button does same 
               
               
                   
                   
                 item available on the 
                 function. 
               
               
                   
                   
                 screen. 
                 3. This process 
               
               
                   
                   
                 3. Repeats activating 
                 may be avoided on 
               
               
                   
                   
                 “Back” until default 
                 some phones by 
               
               
                   
                   
                 screen is reestablished. 
                 holding down 
               
               
                   
                   
                   
                 “Disconnect” 
               
               
                   
                   
                   
                 button on the cell 
               
               
                   
                   
                   
                 phone. 
               
               
                 Chooses to 
                 Activate 
                 10. Activates “Options” 
                 10. Composer 
               
               
                 continue and 
                 ZenRings 
                 available on the screen. 
                 Mode is a 
               
               
                 activate 
                 program 
                 Screen: 
                 alternative Label to 
               
               
                 Program. 
                   
                 Activate ZenRings 
                 Play Mode. 
               
               
                   
                   
                 Composer Mode 
                 Although labels 
               
               
                   
                   
                 11. Use Arrows or 
                 can change 
               
               
                   
                   
                 joystick to toggle 
                 throughout 
               
               
                   
                   
                 between Start ZenRings 
                 development. 
               
               
                   
                   
                 and Composer Mode 
                 13. Pressing 
               
               
                   
                   
                 until Start ZenRings is 
                 “Disconnect” 
               
               
                   
                   
                 selected. 
                 button does same 
               
               
                   
                   
                 12. Activates “Select” 
                 function. 
               
               
                   
                   
                 item available on the 
                 14. This process 
               
               
                   
                   
                 screen. 
                 may be avoided on 
               
               
                   
                   
                 Screen pops up to the 
                 some phones by 
               
               
                   
                   
                 one displayed in step 8. 
                 holding down 
               
               
                   
                   
                 It now displays: 
                 “Disconnect” 
               
               
                   
                   
                 “ZenRings Status: On”. 
                 button on the cell 
               
               
                   
                   
                 13. Activates “Exit” 
                 phone. 
               
               
                   
                   
                 available on the screen. 
               
               
                   
                   
                 14. Activates “Back” 
               
               
                   
                   
                 item available on the 
               
               
                   
                   
                 screen. 
               
               
                   
                   
                 15. Repeats activating 
               
               
                   
                   
                 “Back” until default 
               
               
                   
                   
                 screen is reestablished. 
               
               
                   
               
               
                 *These triggers indicate possible aborting of the primary task, and do not represent a step in the required sequence to achieve the primary task. After a sequence is aborted, the user will need to begin a step one of the sequence. 
               
             
          
         
       
     
       Sequence  2 : Composer Mode (See FIGS. 29,  30  and  31 ) 
       [0319]      FIGS. 31 ,  32  and  33  show how the user can use the CAMG in a “composer mode” to save selected music and associate that music with a particular phone number, using the steps below: 
         [0000]    
       
         
               
               
               
               
             
           
               
                   
               
               
                 Trigger 
                 Task 
                 Sequence 
                 Comments 
               
               
                   
               
             
             
               
                 Activate 
                 Find ZenRings 
                 Same as Sequence 1-9 
                 Sequence 1-9 may 
               
               
                 Composer 
                 and enter 
                 The status of the 
                 be set at the OS 
               
               
                 Mode 
                 interface. 
                 ZenRings application 
                 level. 
               
               
                   
                   
                 may be ON or OFF 
               
               
                   
                 Activate/Enter 
                 10. Activates 
               
               
                   
                 Composer 
                 “Options” available on 
               
               
                   
                 Mode 
                 the screen. 
               
               
                   
                   
                 Screen: 
               
               
                   
                   
                 Activate ZenRings 
               
               
                   
                   
                 Composer Mode 
               
               
                   
                   
                 11. Use Arrows or 
               
               
                   
                   
                 joystick to toggle 
               
               
                   
                   
                 between Start 
               
               
                   
                   
                 ZenRings and 
               
               
                   
                   
                 Composer Mode until 
               
               
                   
                   
                 Composer Mode is 
               
               
                   
                   
                 selected. 
               
               
                   
                   
                 12. Activates “Select” 
               
               
                   
                   
                 item available on the 
               
               
                   
                   
                 screen. 
               
               
                   
                   
                 Composer Mode UI is 
               
               
                   
                   
                 presented: 
               
               
                   
                   
                 Enter Phone Number 
               
               
                   
                   
                 From Phone Book 
               
               
                   
                   
                 New Phone Number 
               
               
                   
                 Chooses 
                 13. Use Arrows or 
               
               
                   
                 Number From 
                 joystick to toggle 
               
               
                   
                 Phone Book 
                 between “From Phone 
               
               
                   
                   
                 Book” and “New 
               
               
                   
                   
                 Phone Number” until 
               
               
                   
                   
                 “New Phone Number” 
               
               
                   
                   
                 is selected. 
               
               
                   
                   
                 14. Activates “Select” 
               
               
                   
                   
                 item available on the 
               
               
                   
                   
                 screen. 
               
               
                   
                   
                 Phone Book UI on 
               
               
                   
                   
                 screen. 
               
               
                   
                   
                 15. Searches or 
               
               
                   
                   
                 Browses for stored 
               
               
                   
                   
                 phone number using 
               
               
                   
                   
                 default UI 
               
               
                   
                   
                 mechanisms. 
               
               
                   
                   
                 16. Activates “Select” 
                 16. Details and 
               
               
                   
                   
                 available on screen. 
                 Back are the 
               
               
                   
                   
                   
                 default UI 
               
               
                   
                   
                   
                 mechanisms in the 
               
               
                   
                   
                   
                 Phone book UI. It 
               
               
                   
                   
                   
                 is preferable to use 
               
               
                   
                   
                   
                 an instance of the 
               
               
                   
                   
                   
                 phone book in 
               
               
                   
                   
                   
                 order to have our 
               
               
                   
                   
                   
                 own functionality 
               
               
                   
                   
                   
                 within the familiar 
               
               
                   
                   
                   
                 phone book UI. 
               
               
                   
                 Plays Music 
                 17. New Menu 
               
               
                   
                   
                 Displayed: 
               
               
                   
                   
                 604-555-1212 
               
               
                   
                   
                 Play 
               
               
                   
                   
                 Tempo 
               
               
                   
                   
                 Restart 
               
               
                   
                   
                 Advanced 
               
               
                   
                   
                 Save as Ringtone 
               
               
                   
                   
                 18. Uses Use arrows 
               
               
                   
                   
                 or joystick to cycle 
               
               
                   
                   
                 through menu until 
               
               
                   
                   
                 “Play” is highlighted. 
               
               
                   
                   
                 19. Activates “Select” 
                 It may be useful to 
               
               
                   
                   
                 available on screen. 
                 have a time 
               
               
                   
                   
                 ZenRings Music 
                 indicator on 
               
               
                   
                   
                 Plays. 
                 screen, when the 
               
               
                   
                   
                 Menus Changes on 
                 music is playing. 
               
               
                   
                   
                 Screen to now display: 
               
               
                   
                   
                 604-555-1212 
               
               
                   
                   
                 Pause 
               
               
                   
                   
                 Tempo 
               
               
                   
                   
                 Restart 
               
               
                   
                   
                 Advance 
               
               
                   
                   
                 Save as Ringtone 
               
               
                   
                 Restart Music 
                 20. User uses Arrows 
                 Screen does not 
               
               
                   
                 from 
                 or joystick to cycle 
                 change. Music 
               
               
                   
                 Beginning 
                 through until “Restart” 
                 restarts and Time 
               
               
                   
                   
                 is highlighted. 
                 Counter resets 
               
               
                   
                 Changes 
                 21. User uses Arrows 
               
               
                   
                 Tempo 
                 or joystick to cycle 
               
               
                   
                   
                 through until “Tempo” 
               
               
                   
                   
                 is highlighted. 
               
               
                   
                   
                 22. Screen Changes to 
                 Music will begin 
               
               
                   
                   
                 provide a meter. With 
                 or restart once 
               
               
                   
                   
                 present indicator being 
                 Tempo is selected 
               
               
                   
                   
                 at midpoint. User uses 
                 depending on 
               
               
                   
                   
                 arrows or joystick to 
                 play/pause status. 
               
               
                   
                   
                 adjust tempo. 
                 Tempo changes in 
               
               
                   
                   
                 “Up” (or suitable icon) 
                 real-time as per 
               
               
                   
                   
                 to Increase Tempo 
                 user input. 
               
               
                   
                   
                 “Down” (or suitable 
               
               
                   
                   
                 icon) to decrease 
               
               
                   
                   
                 Tempo. 
               
               
                   
                 Chooses 
                 23. Activates “Select” 
                 Music remains 
               
               
                   
                 Tempo 
                 Available on Screen. 
                 Playing at new 
               
               
                   
                   
                 Screen is back to: 
                 Tempo. 
               
               
                   
                   
                 604-555-1212 
               
               
                   
                   
                 Pause 
               
               
                   
                   
                 Tempo 
               
               
                   
                   
                 Restart 
               
               
                   
                   
                 Advance 
               
               
                   
                   
                 Save as Ringtone 
               
               
                   
                 Saves 
                 24. User uses arrows 
               
               
                   
                 Ringtone 
                 or joystick to cycle 
               
               
                   
                   
                 through menu until 
               
               
                   
                   
                 “Save as Ringtone” is 
               
               
                   
                   
                 selected. 
               
               
                   
                   
                 25. Activates “Select” 
               
               
                   
                   
                 Available on Screen. 
               
               
                   
                   
                 Screen displays: 
               
               
                   
                   
                 Save As: &lt;Data Field&gt; 
               
               
                   
                   
                 26. User inputs name 
               
               
                   
                   
                 27. Activates “Save” 
                 New Ringtone for 
               
               
                   
                   
                 available on screen. 
                 phone is set, and a 
               
               
                   
                   
                 Screen goes back to: 
                 copy of the 
               
               
                   
                   
                 604-555-1212 
                 Ringtone is sent to 
               
               
                   
                   
                 Pause 
                 Ringtone folder 
               
               
                   
                   
                 Tempo 
                 with the saved. 
               
               
                   
                   
                 Restart 
                 name. 
               
               
                   
                   
                 Advance 
               
               
                   
                   
                 Save as Ringtone 
               
               
                   
                 User Exits 
                 28. Activates “Back” 
               
               
                   
                 Application 
                 available on the 
               
               
                   
                   
                 screen. 
               
               
                   
                   
                 Screen back to: 
               
               
                   
                   
                 Activate ZenRings 
               
               
                   
                   
                 Composer Mode 
               
               
                   
                   
                 29. Activates “Back” 
               
               
                   
                   
                 Available on Screen. 
               
               
                   
                   
                 Screen back to: 
               
               
                   
                   
                 “ZenRings Status: 
               
               
                   
                   
                 On”. 
               
               
                   
                   
                 30. Activates “Exit” 
               
               
                   
                   
                 Screen Back to 
               
               
                   
                   
                 Applications Folder 
               
               
                   
               
             
          
         
       
     
         [0320]    Alternatively, it may be possible to provide restart function in the tempo window. Also it could be possible to adjust tempo, by using Left/Right arrows, keeping the Up/Down arrows reserved for menu navigation. 
         [0321]    The above system is designed for use on a 176×208 display screen with 16 bit colour, although it could be adapted for use on other displays. It is also designed for use with the following inputs: two soft keys, five-way navigator, and several dedicated keys dependent on phone; although it could be easily adapted for other inputs. 
         [0322]    Preferably the application is comfortably manageable in one hand using the user&#39;s thumb. This has important implications since it is convenient for users on the move. Since single applications fill the available screen, an application switcher is available via a long press of the menu button, which greatly enhances productivity on the device. Any user with mobile phone experience will grasp the workings of this intuitive UI very quickly. 
         [0323]    Although the particular preferred embodiments of the invention have been disclosed in detail for illustrative purposes, it will be recognized that variations or modifications of the disclosed apparatus lie within the scope of the present invention. As an example the CAMG is useful in video games wherein actions by the game player provide the inputs to initialize the CAMG.