How Phraser works

The Phraser program is underpinned by a particular conception of the elementary formal structure of music. This conception is expressed through three interrelated types of objects: sequence, event, and phrase.

A sequence object is defined as a list of integers, for example [9, 2, 6] which has the following attributes:

  • cardinal: a number, for example 12, which constrains the following two attributes:
  • set: an ordered list of unique integers less than the cardinal and starting from zero. It is related to the sequence as follows: each number in the sequence is converted to its modulo with the cardinal, the minimum number is then subtracted from each number, and the list is ordered. For the example above this would be [0, 4, 7]. This correspond to “normal form” in pitch-class-set theory.
  • steps: a list of intervals expressing the difference between each element of the set, adding up to the cardinal; for our example it would be [4, 3, 5]
  • transpose: the minimum number, in this case, 2
  • order: a list of zero-based indexes expressing the order of the sequence. In this case, [2, 0, 1]
  • An event is defined as a list of zero or more “pitches” (broadly defined as any any instructions about what to play, including, say, percussive timbres) with the following additional attributes:

  • duration
  • start: when to play relative to an arbitrary time origin
  • volume
  • temperament (the number of equal steps by which the octave is divided)
  • A phrase is defined as a list of events, and corresponds roughly to the idea of a musical bar. Phrases are useful for conveniently grouping events which are related in some way, e.g., rhythmically.

    Within the Phraser program, events and phrases are created by combining sequences. For example, the pitches used in an event may be the values from the set attribute of a sequence, and a phrase may be formed from a series of such events whose volume is determined by the set values of another sequence, and whose duration may be determined by the steps values of yet another sequence.

    Any functions may be used to produce integer lists which are converted to sequences. Any functions may then be used to produce events, and then phrases, from sequences.

    As events and phrases are produced further functions may display or play the results or if possible, print them out in score form.

    More detail coming…

    This entry was posted in Music, Software. Bookmark the permalink.

    Leave a Reply

    Your email address will not be published.

    You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>