Logo Search packages:      
Sourcecode: csound version File versions

csound::Score Class Reference

#include <Score.hpp>

List of all members.


Detailed Description

Base class for collections of events in music space. Can order events by time.

The implementation is a std::vector of Events. The elements of the vector are value objects, not references.

Definition at line 49 of file Score.hpp.


Public Member Functions

virtual void append (double time, double duration, double status, double channel, double key, double velocity, double phase=0, double pan=0, double depth=0, double height=0, double pitches=4095)
virtual void append (Event event)
virtual void arrange (int oldInstrumentNumber, int newInstrumentNumber, double gain, double pan)
virtual void arrange (int oldInstrumentNumber, int newInstrumentNumber, double gain)
virtual void arrange (int oldInstrumentNumber, int newInstrumentNumber)
virtual void dump (std::ostream &stream)
virtual void findScale ()
virtual std::string getCsoundScore (double tonesPerOctave=12.0, bool conformPitches=false)
virtual double getDuration ()
virtual std::vector< double > getPitches (size_t begin, size_t end, size_t divisionsPerOctave=12) const
virtual std::vector< double > getPT (size_t begin, size_t end, double lowest, double range, size_t divisionsPerOctave=12) const
virtual std::vector< double > getPTV (size_t begin, size_t end, double lowest, double range, size_t divisionsPerOctave=12) const
virtual std::vector< double > getVoicing (size_t begin, size_t end, size_t divisionsPerOctave=12) const
virtual int indexAfterTime (double time)
virtual int indexAtTime (double time)
virtual double indexToTime (size_t index)
virtual void initialize ()
virtual void load (MidiFile &midiFile)
virtual void load (std::istream &stream)
virtual void load (std::string filename)
virtual void removeArrangement ()
virtual void rescale (int dimension, bool rescaleMinimum, double minimum, bool rescaleRange=false, double range=0.0)
virtual void rescale (Event &event)
virtual void rescale ()
virtual void save (MidiFile &midiFile)
virtual void save (std::ostream &stream)
virtual void save (std::string filename)
virtual void setDuration (double targetDuration)
virtual void setPitchClassSet (size_t begin, size_t end, const std::vector< double > &pcs, size_t divisionsPerOctave=12)
virtual void setPitches (size_t begin, size_t end, const std::vector< double > &pitches)
virtual void setPT (size_t begin, size_t end, double prime, double transposition, double lowest, double range, size_t divisionsPerOctave=12)
virtual void setPTV (size_t begin, size_t end, double prime, double transposition, double voicing, double lowest, double range, size_t divisionsPerOctave=12)
virtual void setVoicing (size_t begin, size_t end, const std::vector< double > &voicing, double range, size_t divisionsPerOctave=12)
virtual void sort ()
virtual std::string toString ()
virtual void voicelead (size_t beginSource, size_t endSource, size_t beginTarget, size_t endTarget, const std::vector< double > &targetPitches, double lowest, double range, bool avoidParallelFifths, size_t divisionsPerOctave=12)
virtual void voicelead (size_t beginSource, size_t endSource, size_t beginTarget, size_t endTarget, double lowest, double range, bool avoidParallelFifths, size_t divisionsPerOctave=12)

Static Public Member Functions

static void getScale (std::vector< Event > &score, int dimension, size_t beginAt, size_t endAt, double &minimum, double &range)
static void setScale (std::vector< Event > &score, int dimension, bool rescaleMinimum, bool rescaleRange, size_t beginAt, size_t endAt, double targetMinimum, double targetRange)

Public Attributes

std::map< int, double > gains
MidiFile midifile
std::map< int, double > pans
std::map< int, double > reassignments
std::vector< bool > rescaleMinima
std::vector< bool > rescaleRanges
Event scaleActualMinima
Event scaleActualRanges
Event scaleTargetMinima
Event scaleTargetRanges

Protected Member Functions

void createMusicModel ()

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index