| athenaCL Tutorial Manual: Second Edition, Version 1.4.8 | ||
|---|---|---|
| Prev | Chapter 6. Tutorial 6: Textures and Paths | Next |
As explained in Chapter 5, the athenaCL EventMode determines what instruments are available for Texture creation. In the following example, the EventMode is set to midi, the TextureModule LiteralVertical is selected, a new Texture is created with instrument 0, and the Texture is displayed with TIv.
Example 6-3. Creating a Texture with TM LiteralVertical
[PI(q1)TI()] :: emo
select an EventMode mode: midi
EventMode mode set to: midi.
[PI(q1)TI()] :: tmls
TextureModules available:
{name,TIreferences}
DroneArticulate 0
DroneSustain 0
HarmonicAssembly 0
HarmonicShuffle 0
InterpolateFill 0
InterpolateLine 0
IntervalExpansion 0
LineCluster 0
+ LineGroove 0
LiteralHorizontal 0
LiteralVertical 0
MonophonicOrnament 0
TimeFill 0
TimeSegment 0
[PI(q1)TI()] :: tmo lv
TextureModule LiteralVertical now active.
[PI(q1)TI()] :: tin a1 0
TI a1 created.
[PI(q1)TI(a1)] :: tiv
TI: a1, TM: LiteralVertical, TC: 0, TT: TwelveEqual
pitchMode: pitchSpace, polyMode: set, silenceMode: off, postMapMode: on
midiProgram: piano1
status: +, duration: 000.0--20.16
(i)nstrument 0 (generalMidi: piano1)
(t)ime range 00.0--20.0
(b)pm constant, 120
(r)hythm loop, ((4,1,+),(4,1,+),(4,5,+)), orderedCyclic
(p)ath q1
(D2,G#3,A3,D3,E2,B2,A2),(C4,C#4,F#3,G4,A3),(G#5,A4,D#4,E5)
10.00(s), 6.25(s), 3.75(s)
local (f)ield constant, 0
local (o)ctave constant, 0
(a)mplitude constant, 0.9
pan(n)ing constant, 0.5
au(x)iliary none
texture (s)tatic
s0 loopWithinSet, on
s1 maxTimeOffset, 0.04
s2 levelFieldPolyphonic, event
s3 levelOctavePolyphonic, event
texture (d)ynamic none Notice that the Texture's Path attribute is set to q1. In all cases, a Texture, when created, links to the active Path. The Path a Texture links to can be edited later if necessary. Notice also that the Path listing in the TIv display shows the pitches of the Path, as well as timings for each set: 10, 6.25, and 3.74 seconds respectively. These times are the result of the duration fraction applied to the Texture's duration.
To hear this Texture, create an EventList as explained in Section 2.5. After using the ELn command, the ELh command can be used to open the MIDI file. Notice that each chord lasts the appropriate duration fraction of the total twenty-second duration of the Texture.
A few small edits to this Texture may make it more interesting. In the following example, both the rhythm and amplitude are edited: the rhythm is given more Pulses and told to oscillate back and forth along the specified series; the amplitude randomly selects from a list of four amplitudes.
Example 6-4. Editing a Texture
[PI(q1)TI(a1)] :: tie edit TI a1 which parameter? (i,t,b,r,p,f,o,a,n,x,s): r current rhythm: loop, ((4,1,+),(4,1,+),(4,5,+)), orderedCyclic new value: l, ((4,1,1), (4,1,1), (4,3,0), (2,3,1), (3,2,1), (3,2,1)), oo TI a1: parameter rhythm updated. [PI(q1)TI(a1)] :: tie edit TI a1 which parameter? (i,t,b,r,p,f,o,a,n,x,s): a current amplitude: constant, 0.9 new value: bg, rc, (.5,.6,.8,1)
Again, ELn and ELh can be used to create and audition the resulting musical structure.