alda-docs-list

Attributes

An attribute defines some quality of how an instrument (or multiple instruments) plays its notes.

Setting the Value of an Attribute

Just like setting octaves, setting an attribute will take effect for all of an instrument’s upcoming notes, until that attribute is changed again. (In fact, octave is also a settable attribute.)

Different attributes take different kinds of values. A lot of the time, the value is a number between 0 and 100, but this is not always the case.

Examples

(volume 50)
(quant 85)
(octave 'up)
(tempo 240)
(key-signature "f+ c+ g+")

See below for more information about the different kinds of attributes that are available to you when writing a score.

Per-Instrument vs. Global

By default, an attribute change event is only applied to the instrument(s) that you’re currently working with. For instance, in a score with four instruments:

violin "violin-1":
  o4 f2   g4 a   b-2   a

violin "violin-2":
  o4 c2   e4 f   f2    f

viola:
  o3 a2 > c4 c   d2    c

cello:
  o3 f2   c4 f < b-2 > f

Changing an attribute will only affect the instrument(s) whose part you are currently editing:

violin "violin-1":
  o4 f2   g4 a   b-2   a

violin "violin-2":
  o4 c2   e4 f   f2    f

viola:
  o3 a2 > c4 c   d2    c

cello:
  (volume 75)
  o3 f2   c4 f < b-2 > f

To change an attribute globally (i.e. for every instrument in the score), add an exclamation mark (!) after the name of the attribute:

violin "violin-1":
  (tempo! 80)
  o4 f2   g4 a   b-2   a

violin "violin-2":
  o4 c2   e4 f   f2    f

viola:
  o3 a2 > c4 c   d2    c

cello:
  o3 f2   c4 f < b-2 > f

Attributes can also be set globally at the beginning of a score, before you start writing out any instrument parts. The attributes will still be set for every instrument at the beginning of the score.

(tempo! 80)

violin "violin-1":
  o4 f2   g4 a   b-2   a

violin "violin-2":
  o4 c2   e4 f   f2    f

viola:
  o3 a2 > c4 c   d2    c

cello:
  o3 f2   c4 f < b-2 > f

List of Attributes

duration

key-signature

octave

panning

quantization

tempo

By default, (tempo 100) will set the tempo to 100 beats per minute, where each beat takes up the length of a quarter note.

Alda also offers additional ways to express tempo. See: tempo.

track-volume

transposition

volume

Dynamic Markings

midi-channel