|
Csound and CsoundAC API
5.17
|
Chords represent simultaneously sounding pitches. More...
#include <ChordSpace.hpp>
Public Types | |
| enum | { PITCH = 0, DURATION = 1, LOUDNESS = 2, INSTRUMENT = 3, PAN = 4, COUNT = 5 } |
Public Member Functions | |
| Chord () | |
| virtual size_t | count (double pitch) const |
| virtual double | getDuration (int voice=0) const |
| virtual double | getInstrument (int voice=0) const |
| virtual double | getLoudness (int voice=0) const |
| virtual double | getPan (int voice=0) const |
| virtual double | getPitch (int voice) const |
| virtual bool | operator< (const Chord &other) |
| virtual bool | operator== (const Chord &other) |
| virtual void | resize (size_t voices) |
| virtual void | setDuration (double value, int voice=-1) |
| virtual void | setInstrument (double value, int voice=-1) |
| virtual void | setLoudness (double value, int voice=-1) |
| virtual void | setPan (double value, int voice=-1) |
| virtual void | setPitch (double value, int voice) |
| virtual std::string | toString () const |
| Returns a string representation of the chord. | |
| virtual size_t | voices () const |
| virtual | ~Chord () |
Chords represent simultaneously sounding pitches.
The pitches are represented as semitones with 0 at the origin and middle C as 60. Each voice also has a duration, velocity, channel, and pan.
| csound::Chord::Chord | ( | ) | [inline] |
| virtual csound::Chord::~Chord | ( | ) | [inline, virtual] |
| virtual size_t csound::Chord::count | ( | double | pitch | ) | const [inline, virtual] |
References csound::eq_epsilon().
| virtual double csound::Chord::getDuration | ( | int | voice = 0 | ) | const [inline, virtual] |
| virtual double csound::Chord::getInstrument | ( | int | voice = 0 | ) | const [inline, virtual] |
| virtual double csound::Chord::getLoudness | ( | int | voice = 0 | ) | const [inline, virtual] |
| virtual double csound::Chord::getPan | ( | int | voice = 0 | ) | const [inline, virtual] |
| virtual double csound::Chord::getPitch | ( | int | voice | ) | const [inline, virtual] |
Referenced by csound::euclidean(), operator<(), and operator==().
| virtual bool csound::Chord::operator< | ( | const Chord & | other | ) | [inline, virtual] |
References getPitch(), csound::lt_epsilon(), and voices().
| virtual bool csound::Chord::operator== | ( | const Chord & | other | ) | [inline, virtual] |
References csound::eq_epsilon(), getPitch(), and voices().
| virtual void csound::Chord::resize | ( | size_t | voices | ) | [inline, virtual] |
| virtual void csound::Chord::setDuration | ( | double | value, |
| int | voice = -1 |
||
| ) | [inline, virtual] |
| virtual void csound::Chord::setInstrument | ( | double | value, |
| int | voice = -1 |
||
| ) | [inline, virtual] |
| virtual void csound::Chord::setLoudness | ( | double | value, |
| int | voice = -1 |
||
| ) | [inline, virtual] |
| virtual void csound::Chord::setPan | ( | double | value, |
| int | voice = -1 |
||
| ) | [inline, virtual] |
| virtual void csound::Chord::setPitch | ( | double | value, |
| int | voice | ||
| ) | [inline, virtual] |
| virtual std::string csound::Chord::toString | ( | ) | const [inline, virtual] |
Returns a string representation of the chord.
Quadratic complexity, but short enough not to matter.
| virtual size_t csound::Chord::voices | ( | ) | const [inline, virtual] |
Referenced by csound::euclidean(), operator<(), and operator==().
1.7.6.1