#include <song.h>


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 () |
| Song::Song | ( | ) |
| Song::Song | ( | Index * | idx, | |
| bool | allow_write, | |||
| bool | checkondisk | |||
| ) |
References checkondisk(), and refill().
| Song::~Song | ( | ) | [virtual] |
| 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 | ) |
References tag_end.
Referenced by SongSelectorLogic::startAnotherAnalyzer().
| void Song::determine_color | ( | float4 | hue, | |
| float4 | dummy, | |||
| int | dummy2, | |||
| int | dummy3 | |||
| ) | [virtual] |
Reimplemented from Point.
References assert(), and tonumber().
References distance().
Calculates the distance between 2 points. Is virtual so it can be redefined for songs etcetera.
Reimplemented from Point.
References distance().
References SongMetriek::distance().
Referenced by DataBase::closestSongs(), distance(), get_distance_to_main(), and SongSelectorLogic::queueRandom().
| bool Song::get_distance_to_main | ( | float4 | limit = 1.0 |
) |
References distance(), SongMetriek::distance(), i, main_song, no_spectrum, songs_to_avoid, SongMetriek::std, and tonumber().
Referenced by SongSelectorLogic::updateItemList().
| QString Song::getDisplayTitle | ( | ) |
| bool Song::has_all_cluster_fields | ( | ) |
References no_spectrum.
| bool Song::modifiedOnDisk | ( | ) |
| bool Song::needs_analysis | ( | ) |
References needs_composition(), needs_echo(), needs_energy(), needs_rhythm(), needs_spectrum(), and needs_tempo().
Referenced by SongSelectorLogic::startAnotherAnalyzer().
| 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().
References bpmdj_deallocate, Index::changed(), Index::copy_albums(), QStringFactory::create(), Index::get_author(), Index::get_composition(), Index::get_cue_c(), Index::get_cue_v(), Index::get_cue_x(), Index::get_cue_z(), Index::get_display_title(), Index::get_filename(), Index::get_histogram(), Index::get_max(), Index::get_md5sum(), Index::get_mean(), Index::get_min(), Index::get_playcount(), Index::get_power(), Index::get_rhythm(), Index::get_spectrum(), Index::get_storedin(), Index::get_tags(), Index::get_tempo(), Index::get_time(), Index::get_version(), no_spectrum, Tags::parse_tags(), and Index::write_idx().
| void Song::reread | ( | ) |
References refill().
Referenced by SongSlot::reread(), and SongSelectorLogic::reread_and_repaint().
| void Song::setColor | ( | QColor | c | ) |
Referenced by SongSelectorPlayView::processChange().
| 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 | |||
| ) |
References SongMetriek::find_harmonic(), SongMetriek::std, and SongMetriek::tempo_diff().
| QString Song::tempo_str | ( | ) |
Referenced by HistorySong::HistorySong(), QueuedSong::QueuedSong(), QueuedSong::setSong(), and QSong::text().
1.6.2