comparison base/Pitch.h @ 892:451f7f3ab6e7

Make octave numbering configurable, and change default to C4 = middle C
author Chris Cannam
date Thu, 27 Mar 2014 13:32:56 +0000
parents 0a44caddd9fe
children 1f62a890da58
comparison
equal deleted inserted replaced
889:7f97a4d9d14f 892:451f7f3ab6e7
69 float *centsOffsetReturn = 0, 69 float *centsOffsetReturn = 0,
70 float concertA = 0.0); 70 float concertA = 0.0);
71 71
72 /** 72 /**
73 * Return a string describing the given MIDI pitch, with optional 73 * Return a string describing the given MIDI pitch, with optional
74 * cents offset. This consists of the note name, octave number 74 * cents offset. This consists of the note name, octave number,
75 * (with MIDI pitch 0 having octave number -2), and optional 75 * and optional cents. The octave numbering system is based on the
76 * cents. 76 * application preferences (default is C4 = middle C, though in
77 * previous SV releases that was C3).
77 * 78 *
78 * For example, "A#3" (A# in octave 3) or "C2-12c" (C in octave 2, 79 * For example, "A#3" (A# in octave 3) or "C2-12c" (C in octave 2,
79 * minus 12 cents). 80 * minus 12 cents).
80 * 81 *
81 * If useFlats is true, spell notes with flats instead of sharps, 82 * If useFlats is true, spell notes with flats instead of sharps,