comparison base/Pitch.h @ 1024:d1ce7a4a920b

Wire up note/octave stuff
author Chris Cannam
date Tue, 02 Dec 2014 17:53:17 +0000
parents 1f62a890da58
children 88b54a185a0a
comparison
equal deleted inserted replaced
1023:1f62a890da58 1024:d1ce7a4a920b
68 float frequencyB, 68 float frequencyB,
69 float *centsOffsetReturn = 0, 69 float *centsOffsetReturn = 0,
70 float concertA = 0.0); 70 float concertA = 0.0);
71 71
72 /** 72 /**
73 * Return the MIDI pitch for the given note number (0-12 where 0
74 * is C) and octave number. The octave numbering system is based
75 * on the application preferences (default is C4 = middle C,
76 * though in previous SV releases that was C3).
77 */
78 static int getPitchForNoteAndOctave(int note, int octave);
79
80 /**
81 * Return the note number (0-12 where 0 is C) and octave number
82 * for the given MIDI pitch. The octave numbering system is based
83 * on the application preferences (default is C4 = middle C,
84 * though in previous SV releases that was C3).
85 */
86 static void getNoteAndOctaveForPitch(int midiPitch, int &note, int &octave);
87
88 /**
73 * Return a string describing the given MIDI pitch, with optional 89 * Return a string describing the given MIDI pitch, with optional
74 * cents offset. This consists of the note name, octave number, 90 * cents offset. This consists of the note name, octave number,
75 * and optional cents. The octave numbering system is based on the 91 * and optional cents. The octave numbering system is based on the
76 * application preferences (default is C4 = middle C, though in 92 * application preferences (default is C4 = middle C, though in
77 * previous SV releases that was C3). 93 * previous SV releases that was C3).