selector.cpp File Reference

#include <cstdio>
#include <unistd.h>
#include <qinputdialog.h>
#include <math.h>
#include <qmessagebox.h>
#include <qlcdnumber.h>
#include <ctype.h>
#include <qlabel.h>
#include <qlistview.h>
#include <qgroupbox.h>
#include <qdir.h>
#include <qfiledialog.h>
#include <qtextedit.h>
#include <qlineedit.h>
#include <qbuttongroup.h>
#include <qcheckbox.h>
#include <qcursor.h>
#include <qtabwidget.h>
#include <assert.h>
#include <stdlib.h>
#include <qspinbox.h>
#include <qradiobutton.h>
#include <qprogressbar.h>
#include <stdio.h>
#include <signal.h>
#include <qpainter.h>
#include <qcombobox.h>
#include <errno.h>
#include <sys/mount.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <qvariant.h>
#include <qpushbutton.h>
#include <qwidget.h>
#include <qframe.h>
#include <qsplitter.h>
#include <qlayout.h>
#include <qtooltip.h>
#include <qwhatsthis.h>
#include <qimage.h>
#include <qfont.h>
#include <libgen.h>
#include "music-scanner.h"
#include "about.h"
#include "ui-album.h"
#include "qsong.h"
#include "version.h"
#include "song-metric.h"
#include "bpmdj.h"
#include "players-manager.h"
#include "queuedsong.h"
#include "historysong.h"
#include "ui-bpmmerge.h"
#include "edit-distance.h"
#include "index-reader.h"
#include "scripts.h"
#include "spectrum-type.h"
#include "tags.h"
#include "common.h"
#include "ui-freq-mapping.h"
#include "memory.h"
#include "statistics.h"
#include "history.h"
#include "log-viewer.h"
#include <qaction.h>
#include "bpmdj-event.h"
#include "vector-iterator.h"
#include "song-iterator.h"
#include "fragment-cache.h"
#include "song-copier.h"
#include "info.h"
#include "qt-helpers.h"

Defines

#define TABS_ALBUMS   1
#define TABS_QUEUE   3

Functions

bool checkDocsAt (QString pos)
 if (!ok &&e) e->setText(TAGS_OR
 updateItemList ()
int songFileCompare (const void *a, const void *b)
 assert (all)
spectrumPca pcaThis (all)
 sprintf (scriptname,"%s/.xmms/xmms.m3u", homedir)
 if (!script)
 while (i< next)
 fclose (script)
 bpmdj_deallocate (current_directory)
 fclose (f)
 for (int i=0;i< 8 &&!there_is_one;i++) there_is_one|
analyzers start (slot, next->getSong(), command, description)
 delete (next)
 queueInsert (extraSongs->value())
 if (should_split) fprintf(out
 if (mergerDialog.wavConvert->isChecked()) fprintf(out
 fclose (out)
queue repaint ()
 while (restart)
 queueOrder ()
queue sortItems (0, Qt::AscendingOrder)
 queueRandom ()

Variables

SongSelectorLogicselector = NULL
IndexReader indexReader
 TAG_TRUE
const vector< Song * > & songs = database->getAllSongs()
char * homedir = getenv("HOME")
char scriptname [1024]
char * current_directory = getcwd(NULL,0)
FILE * script = fopen(scriptname,"wb")
int i = 0
anal_queue header()->
setResizeMode(QHeaderView bool 
there_is_one = false
SongSlotslot = &Config::analyzers[on_slot]
QString command = next->getCommand(*slot)
QString description = next->getDescription(*slot)
 split_arguments
for a in * RAW_EXT
do RAW2WAV $a basename $a RAW_EXT wav
rm $a
done n
bool reading_index
int last_pos = (::main_song || monitor_song) ? 1 : count + 2
return false
SongCopier songCopier

Define Documentation

#define TABS_ALBUMS   1
#define TABS_QUEUE   3

Function Documentation

assert ( all   ) 
bpmdj_deallocate ( current_directory   ) 
bool checkDocsAt ( QString  pos  ) 

References exists().

Referenced by SongSelectorLogic::doOnlineHelp().

delete ( next   ) 
fclose ( out   ) 
fclose (  ) 
fclose ( script   ) 
for (  ) 

References data, i, MAX, and MIN.

if ( mergerDialog.wavConvert->  isChecked()  ) 
if ( should_split   ) 
if ( script  ) 
if ( !ok &&  e  ) 
spectrumPca pcaThis ( all   ) 
queueInsert ( extraSongs->  value()  ) 
queueOrder (  ) 
queueRandom (  ) 
queue repaint (  ) 
int songFileCompare ( const void *  a,
const void *  b 
)
queue sortItems ( ,
Qt::AscendingOrder   
)
sprintf ( scriptname  ,
"%s/.xmms/xmms.m3u"  ,
homedir   
)
analyzers start ( slot  ,
next->  getSong(),
command  ,
description   
)

Referenced by main(), and ProcessManager::startSong().

updateItemList (  ) 
while ( restart   ) 
while (  ) 

Variable Documentation

rm $a
QString command = next->getCommand(*slot)

Referenced by SongSlot::startChecking().

char* current_directory = getcwd(NULL,0)
QString description = next->getDescription(*slot)
return false
char* homedir = getenv("HOME")
int i = 0

Referenced by absolute(), Md5Analyzer::analyze(), EnergyAnalyzer::analyze(), QSong::aSongChangedBehindQSongsBack(), histogram_type::best_dist(), between_spectra(), biased_abs_distance(), biased_autocorrelation(), biased_best_abs_circular_distance(), biased_best_l2_circular_distance(), biased_l2_distance(), BpmDjPreferences::BpmDjPreferences(), RhythmAnalyzer::calculateRhythmPattern2(), DataBase::clear(), dsp_alsa::close(), histogram_type::cor_dist(), histogram_type::dev(), dev_echo(), dev_spectrum(), differentiate(), dist_done(), dist_init(), do_pca(), BeatGraphLabel::drawCueText(), dump(), edist(), energize(), escape(), SpectrumAnalyzer::fetchSpectrum_normal(), fft_to_bark(), SongSelectorLogic::filterProposedList(), find_max(), find_max_rpos(), find_mean(), for(), Tags::full_string(), spectrum_type::get_data(), smallhistogram_type< smallhistogram_size >::get_data(), histogram_property< bandsize >::get_data(), Song::get_distance_to_main(), histogram_type::halve(), histogram_property< composition_prop_sx >::histogram_property(), HistorySong::HistorySong(), QSong::indexof(), smallhistogram_type< smallhistogram_size >::init(), rhythm_property::init(), QueuedSong::init(), histogram_type::init(), composition_property::init(), init_hues(), listen_to_main_requests(), Config::load(), Player::loadMap(), LpFilter(), main(), Player::mapLengthChanged(), Player::mapStart(), mean_echo_old(), mean_spectrum(), BpmCounter::measure(), Player::mousePressEvent(), histogram_type::normalize(), histogram_type::normalize_autocorrelation_diff(), normalize_mean(), ActiveFragmentPlayer::playWave(), poll_death(), process_creator(), process_options(), SongSelectorLogic::queueRandom(), read_audio(), remote(), Config::save(), Player::saveMap(), selectedSongIterator::selectedSongIterator(), spectrum_type::set_data(), smallhistogram_type< smallhistogram_size >::set_data(), histogram_property< bandsize >::set_data(), SongSelectorLogic::SongSelectorLogic(), QSong::Sort(), spawn_request(), SongMetriek::spectrum_dist(), spectrum_to_bark(), spectrum_type::spectrum_type(), SongSelectorLogic::startAnotherAnalyzer(), ProcessManager::startSong(), stop_dev_echo(), stop_dev_spectrum(), stop_mean_echo_old(), stop_mean_spectrum(), histogram_type::strip(), taglist2strings(), History::this_is_playing(), ActiveExistenceScanner::thunk(), translate_mean(), unbiased_autocorrelation(), Player::update_inmap_pixmap(), Player::update_map_pixmaps(), Player::update_speedmap_pixmap(), Player::update_volumemap_pixmap(), vector_mul_div(), and wave_read().

int last_pos = (::main_song || monitor_song) ? 1 : count + 2

if there is a main or monitor then the randomization will use that one as anker. Otherwise we refrain from using any anker

done n
for a in* RAW_EXT
FILE* script = fopen(scriptname,"wb")

Referenced by openScriptFile().

char scriptname[1024]
const vector<Song*>& songs = database->getAllSongs()
TAG_TRUE
anal_queue header ()->setResizeMode(QHeaderView bool there_is_one = false
do RAW2WAV $a basename $a RAW_EXT wav
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by  doxygen 1.6.2