«Comparing M3, M2, P5 in Just Intonation and ET12» by Bruno Ruviaro

on 10 Oct'18 14:31 in tuningjustet12

Simple handy code for quick class demonstrations. Hear and compare a few intervals in Just Intonation versus 12-tone Equal Tempered tuning.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Handy code for quick class demonstrations.
// Comparing a few intervals - Just Intonation versus 12-tone Equal Tempered

// Major third (just)
Ndef(\a, { Saw.ar(freq: [60.midicps, 60.midicps * 5/4], mul: 0.1) }).play
// Major third (ET12)
Ndef(\a, { Saw.ar(freq: [60.midicps, 64.midicps], mul: 0.1) }).play;

// Major second (just)
Ndef(\a, { Saw.ar(freq: [60.midicps, 60.midicps * 9/8], mul: 0.1) }).play
// Major second (ET)
Ndef(\a, { Saw.ar(freq: [60.midicps, 62.midicps], mul: 0.1) }).play;

// Perfect fifth (just)
Ndef(\a, { Saw.ar(freq: [60.midicps, 60.midicps * 3/2], mul: 0.1) }).play
// Perfect fifth (ET)
Ndef(\a, { Saw.ar(freq: [60.midicps, 67.midicps], mul: 0.1) });
raw 699 chars (focus & ctrl+a+c to copy)
reception
comments