COURSE NOTES 8
Computer Music Notation and Systems

Consonance and Dissonance

Musical Scales

Chromatic Scale

Pythagorean Tuning

Just Tuning

Equal Tempered Tuning

Pitch Notation in Csound

Pitch Converters in Csound

Pitch Representation Example in Csound

instr 1
k1 linen p4, p3/10, p3, p3/2
a1 oscil k1, cpspch(p5), 1
   out a1
endin

f1 0 1024 10 1 0 0.33 0 0.2
i1 0   0.5 10000 8.09  ; A
i1 1.0 0.5 20000 8.06  ; F# or Gb
i1 2.0 1.0 15000 7.11  ; B (below Middle C)
e

The Scot Score Translator

Scot Program Sections

Orchestra Declaration Section

orchestra {
	[ pp=2000 p=4000 mp=7000 mf=10000 f=20000 ff=30000 ]
	guitar = 1
	piano = 2
	cello = 3 [ pizz=0 arco=1 ]
}

Function Declaration Section

functions {
	f1 0 256 10 1 0 0.5 0 0.3
	f2 0 256 7 0 64 1 64 0.7 64 0
}

Score Declaration Rules

Score Declaration Section

score {
	$cello
	!ti "4/4"
	4=g 4e 4d 4c/ 4='g 4e 4d 4c/
	4=g e d c/ ''g e d c/
	2=c 4c# 4r/ 4.=c 8e- 2r/
}

Scot Use of Note Parameter Fields

More Score Rules

Extended Scot Example

orchestra {
	[ p=4000 mf=10000 f=20000 ff=30000 ]
	guitar = 1
}
functions {
	f1 0 256 10 1 0 0.5 0 0.3
}
score {
	$guitar
	!ti "4/4"
	2=c[p] 4r 4d__[mf]/ 4.d[mf] 8e-_[ff] 2d[f]/
}

Translated Csound Score File for Extended Scot Example

t0 60

f1 0 256 10 1 0 0.5 0 0.3

i1 0   2.0 0 8.00 4000
i1 3.0 2.5 0 8.02 10000
i1 5.5 0.5 1 8.03 30000
i1 6.0 2.0 0 8.02 20000

e 

Example Csound orchestra to use with Scot program for score

instr 1
	; p6 = amp
	if p4 = 1 goto postslur
	if p4 = 2 goto preslur
	; else p4=0 (no slur)
	k1 linen p6, p3/4, p3, p3/4
	goto done
postslur: k1 linen p6, p3/4, p3, 0
	goto done
preslur:  k1 linen p6, 0, p3, p3/4
done:	a1 oscil k1, cpspch(p5), 1
	out a1
endin 

COURSE INFORMATION | HOMEWORK ASSIGNMENTS
COURSE PROJECT | CS240 HELP DESK