Building on previous work, which suggests that jazz improvisers insert patterns stored in procedural memory, a probabiMstIc model based on patterns from a corpus of Charlie Parker solos was developed and implemented. In previous analysis, patterns were detected in the corpus in significant proportions; however, the results of a parallel control situation showed minimal patterns. The control improvisation was generated by software based on grammars and contours, coincident with the cognitive position that emphasizes learned rule-based procedures in improvisation, as opposed to stored patterns. The present pattern-based improvisations, using our model, have graphs that coincide significantly with the actual human improvisation. Though briefly described earlier (Norgaard, Montiel, & Spencer, 20t3), the current article expands the theoretical foundation and adds methods for evaluating our algorithm using interval distributions and alternate corpora. Specifically, we show that the algorithm is capable of generating improvisations in fiddle and classical styles, demonstrating that the pattern-based algorithm is style independent. Our model shows much promise both for future research in the cognitive underpinnings of musical improvisation as well as for the development of software based on a stylistically appropriate concatenation of actual patterns.Perfortnance of preexisting tnusic and mtjsical improvisation both involve learned movements. However, during mu.sical improvisation, the exact configuration of those movements is determined in the moment. How is this accomplished? What information is stored in the improviser's brain that enables this complex behavior? One theory posits memorized schémas form the basis for the improvised output (Pressing, 1988), while a competing theory emphasizes learned rules (Johnson-Laird, 2002). The current project further explores these questions through the implementation of a computer algorithm for improvisation based on the principle advocated by Pressing. We compare output from our model with the results of a jazz analysis study as well as with the output of a competing model that uses a rule-based algorithm to generate melodies in a jazz style. In addition, we show that our algorithm is capable of generating melodic output in other styles given a corpus in that style.Pressing's (1988) model of the cognitive processes underlying improvisation is still widely cited (