Song Class Reference

#include <song.h>

Inheritance diagram for Song:
Inheritance graph
[legend]
Collaboration diagram for Song:
Collaboration graph
[legend]

List of all members.

Public Member Functions

QString tempo_str ()
 Song ()
 Song (Index *idx, bool allow_write, bool checkondisk)
void refill (Index &read, bool allowed_to_write=false)
void reread ()
bool has_all_cluster_fields ()
void checkondisk ()
void setColor (QColor c)
QString getDisplayTitle ()
bool get_distance_to_main (float4 limit=1.0)
bool contains_tag (const tag_type which)
tempo_type tempo_between (Song *, float4)
bool tempo_show (const Song *main, bool uprange, bool downrange)
QColor color_between (Song *song, float4 percent)
virtual float4 distance (Point *point, Metriek *dp, float8 limit)
virtual float4 distance (Point *point, Metriek *dp)
virtual float4 distance (Song *a, float4 wa, Song *b, float4 wb, Metriek *dp)
virtual void simpledump (unsigned2 d)
virtual void determine_color (float4 hue, float4, int, int)
virtual void color_sub_elements (int a, int b, float4 d)
virtual ~Song ()
bool modifiedOnDisk ()
bool needs_energy () const
bool needs_tempo () const
bool needs_spectrum () const
bool needs_echo () const
bool needs_rhythm () const
bool needs_composition () const
bool needs_analysis ()

Constructor & Destructor Documentation

Song::Song (  ) 
Song::Song ( Index idx,
bool  allow_write,
bool  checkondisk 
)

References checkondisk(), and refill().

Song::~Song (  )  [virtual]

Member Function Documentation

void Song::checkondisk (  ) 

References MusicDir.

Referenced by Song().

QColor Song::color_between ( Song song,
float4  percent 
)
void Song::color_sub_elements ( int  a,
int  b,
float4  d 
) [virtual]

References EMPTY, and tonumber().

bool Song::contains_tag ( const tag_type  which  ) 
void Song::determine_color ( float4  hue,
float4  dummy,
int  dummy2,
int  dummy3 
) [virtual]

Reimplemented from Point.

References assert(), and tonumber().

float4 Song::distance ( Song a,
float4  wa,
Song b,
float4  wb,
Metriek dp 
) [virtual]

References distance().

float4 Song::distance ( Point other,
Metriek dp 
) [virtual]

Calculates the distance between 2 points. Is virtual so it can be redefined for songs etcetera.

Reimplemented from Point.

References distance().

float4 Song::distance ( Point point,
Metriek dp,
float8  limit 
) [virtual]
bool Song::get_distance_to_main ( float4  limit = 1.0  ) 
QString Song::getDisplayTitle (  ) 
bool Song::has_all_cluster_fields (  ) 

References no_spectrum.

bool Song::modifiedOnDisk (  ) 
bool Song::needs_analysis (  ) 
bool Song::needs_composition (  )  const [inline]

Referenced by needs_analysis().

bool Song::needs_echo (  )  const [inline]

Referenced by needs_analysis().

bool Song::needs_energy (  )  const [inline]

Referenced by needs_analysis().

bool Song::needs_rhythm (  )  const [inline]

Referenced by needs_analysis().

bool Song::needs_spectrum (  )  const [inline]

References no_spectrum.

Referenced by needs_analysis().

bool Song::needs_tempo (  )  const [inline]

Referenced by needs_analysis().

void Song::refill ( Index read,
bool  allowed_to_write = false 
)
void Song::reread (  ) 
void Song::setColor ( QColor  c  ) 
void Song::simpledump ( unsigned2  d  )  [virtual]

This routine is necessary for the cluster debug output. Printing the songname might be a good idea

References assert().

tempo_type Song::tempo_between ( Song song,
float4  percent 
)

References between_tempos().

bool Song::tempo_show ( const Song main,
bool  uprange,
bool  downrange 
)
QString Song::tempo_str (  ) 

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by  doxygen 1.6.2