#include <cstdio>#include <assert.h>#include <qstring.h>#include <stdio.h>#include <qpixmap.h>#include <qpainter.h>#include <qtextedit.h>#include <qlabel.h>#include "bpmdj.h"#include "song.h"#include "histogram-type.h"#include "echo-property.h"#include "selector.h"#include "spectrum-type.h"#include "signals.h"#include "files.h"#include "statistics.h"#include "memory.h"#include "pca.h"#include "vector-iterator.h"#include "database.h"
Functions | |
| void | mean_spectrum (spectrum_type *spectrum) |
| void | dev_spectrum (spectrum_type *spectrum) |
| void | stop_mean_spectrum () |
| void | stop_dev_spectrum () |
| float4 | normalize_freq (float4 in, int band) |
| void | mean_echo_old (echo_property echo) |
| void | stop_mean_echo_old () |
| void | dev_echo (echo_property echo) |
| void | stop_dev_echo () |
| float4 | normalize_echo_old (float4 val, int band, int delay) |
| void | statistics_first_pass (Song *song) |
| void | statistics_prepare_second_pass () |
| void | statistics_second_pass (Song *song) |
| void | statistics_stop_second_pass () |
| float4 | stats_get_freq (int band) |
| float4 | stats_get_band_freq (int band) |
| float4 | stats_get_freq_dev (int band) |
| float4 | stats_get_echo_old (int band, int delay) |
| int | bit_rev (int in, int check) |
Variables | |
| spectrum_freq | devs [spectrum_size] |
| spectrum_freq | means [spectrum_size] |
| float8 ** | echo_mean = NULL |
| float8 ** | echo_dev = NULL |
| int bit_rev | ( | int | in, | |
| int | check | |||
| ) |
| void dev_echo | ( | echo_property | echo | ) |
| void dev_spectrum | ( | spectrum_type * | spectrum | ) |
References spectrum_type::band(), devs, i, means, no_spectrum, and spectrum_size.
Referenced by statistics_second_pass().
| void mean_echo_old | ( | echo_property | echo | ) |
| void mean_spectrum | ( | spectrum_type * | spectrum | ) |
In comparison to pre2.7 versions, the spectrum scale is now calculated differently first we take the mean value. Based on this we also take the mean variation rescaling happened by subtracting the mean and then dividing by the standard deviation
References spectrum_type::band(), i, means, no_spectrum, and spectrum_size.
Referenced by statistics_first_pass().
Referenced by SongMetriek::spectrum_dist().
| void statistics_first_pass | ( | Song * | song | ) |
References mean_spectrum().
| void statistics_prepare_second_pass | ( | ) |
References stop_mean_spectrum().
| void statistics_second_pass | ( | Song * | song | ) |
References dev_spectrum().
| void statistics_stop_second_pass | ( | ) |
References stop_dev_spectrum().
| float4 stats_get_band_freq | ( | int | band | ) |
References barkbounds.
| void stop_dev_echo | ( | ) |
References echo_dev, echo_prop_sx, i, and spectrum_size.
| void stop_dev_spectrum | ( | ) |
References devs, i, and spectrum_size.
Referenced by statistics_stop_second_pass().
| void stop_mean_echo_old | ( | ) |
References echo_mean, echo_prop_sx, i, and spectrum_size.
| void stop_mean_spectrum | ( | ) |
References i, means, and spectrum_size.
Referenced by statistics_prepare_second_pass().
| spectrum_freq devs[spectrum_size] |
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
Referenced by dev_spectrum(), normalize_freq(), stats_get_freq_dev(), and stop_dev_spectrum().
Referenced by dev_echo(), mean_echo_old(), normalize_echo_old(), and stop_dev_echo().
Referenced by dev_echo(), mean_echo_old(), normalize_echo_old(), stats_get_echo_old(), and stop_mean_echo_old().
| spectrum_freq means[spectrum_size] |
{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0}
Referenced by dev_spectrum(), mean_spectrum(), normalize_freq(), stats_get_freq(), and stop_mean_spectrum().
1.6.2