src package#
Subpackages#
- src.clean package
- Submodules
- src.clean.clean_utils module
HidePrints
ItemMaker
YtDlpFakeLogger
_DemucsMaker
_DemucsMaker._download_audio_excerpt_from_youtube()
_DemucsMaker._get_valid_links()
_DemucsMaker._logger_wrapper()
_DemucsMaker._split_left_right_audio_channels()
_DemucsMaker.abs_tol
_DemucsMaker.cleanup_post_separation()
_DemucsMaker.finalize_output()
_DemucsMaker.fmt
_DemucsMaker.fname
_DemucsMaker.get_cmd()
_DemucsMaker.get_item()
_DemucsMaker.get_lr_audio
_DemucsMaker.in_file
_DemucsMaker.instrs
_DemucsMaker.run_separation()
_DemucsMaker.separate_audio()
_DemucsMaker.use_demucs
_DemucsMaker.use_mvsep
_DemucsMaker.use_spleeter
_DemucsMaker.ydl_opts
_MVSEPMaker
_MVSEPMaker.LOAD_KWS
_MVSEPMaker.MVSEP_KWARGS
_MVSEPMaker.MVSEP_LOCATION
_MVSEPMaker._download_audio_excerpt_from_youtube()
_MVSEPMaker._get_valid_links()
_MVSEPMaker._logger_wrapper()
_MVSEPMaker._split_left_right_audio_channels()
_MVSEPMaker.abs_tol
_MVSEPMaker.align_audio_signals()
_MVSEPMaker.calculate_best_shift()
_MVSEPMaker.cleanup_post_separation()
_MVSEPMaker.finalize_output()
_MVSEPMaker.fmt
_MVSEPMaker.fname
_MVSEPMaker.get_cmd()
_MVSEPMaker.get_files_to_keep()
_MVSEPMaker.get_item()
_MVSEPMaker.get_lr_audio
_MVSEPMaker.in_file
_MVSEPMaker.instrs
_MVSEPMaker.rename_piano_file()
_MVSEPMaker.run_separation()
_MVSEPMaker.separate_audio()
_MVSEPMaker.shift_audio_signal()
_MVSEPMaker.use_demucs
_MVSEPMaker.use_mvsep
_MVSEPMaker.use_spleeter
_MVSEPMaker.ydl_opts
_SpleeterMaker
_SpleeterMaker._download_audio_excerpt_from_youtube()
_SpleeterMaker._get_valid_links()
_SpleeterMaker._logger_wrapper()
_SpleeterMaker._split_left_right_audio_channels()
_SpleeterMaker.abs_tol
_SpleeterMaker.cleanup_post_separation()
_SpleeterMaker.finalize_output()
_SpleeterMaker.fmt
_SpleeterMaker.fname
_SpleeterMaker.get_cmd()
_SpleeterMaker.get_item()
_SpleeterMaker.get_lr_audio
_SpleeterMaker.in_file
_SpleeterMaker.instrs
_SpleeterMaker.run_separation()
_SpleeterMaker.separate_audio()
_SpleeterMaker.use_demucs
_SpleeterMaker.use_mvsep
_SpleeterMaker.use_spleeter
_SpleeterMaker.ydl_opts
return_timestamp()
- src.clean.make_dataset module
- Module contents
- src.detect package
- Submodules
- src.detect.midi_utils module
Interval
MIDIMaker
MelodyMaker
MelodyMaker.MIDDLE_C
MelodyMaker.SHORTEST_RHYTHM
MelodyMaker.TIME_THRESH
MelodyMaker._extract_highest_note()
MelodyMaker._quantize_notes_in_beat()
MelodyMaker._remove_iois_below_threshold()
MelodyMaker._remove_pitches_below_threshold()
MelodyMaker.chunk_melody()
MelodyMaker.extract_intervals()
MelodyMaker.extract_melody()
MelodyMaker.load_midi()
Note
group_onsets()
- src.detect.onset_utils module
ClickTrackMaker
OnsetMaker
OnsetMaker._get_channel_override_fpath()
OnsetMaker._load_audio()
OnsetMaker.beat_track_rnn()
OnsetMaker.compare_downbeats()
OnsetMaker.compare_onset_detection_accuracy()
OnsetMaker.detection_note_values
OnsetMaker.extract_downbeats()
OnsetMaker.finalize_output()
OnsetMaker.format_arg()
OnsetMaker.generate_click_track()
OnsetMaker.generate_matched_onsets_dictionary()
OnsetMaker.get_nonsilent_sections()
OnsetMaker.get_signal_to_noise_ratio()
OnsetMaker.get_silent_track_percent()
OnsetMaker.get_spectral_flatness()
OnsetMaker.match_onsets_and_beats()
OnsetMaker.onset_detect_cnn()
OnsetMaker.process_mixed_audio()
OnsetMaker.process_separated_audio()
OnsetMaker.remove_onsets_in_silent_passages()
OnsetMaker.return_converged_parameters_cnn()
OnsetMaker.save_annotations()
OnsetMaker.top_db
OnsetMaker.window
bandpass_filter()
calculate_tempo()
create_silent_clicktrack()
- src.detect.optimise_detection_parameters module
OptimizeBeatTrackRNN
OptimizeBeatTrackRNN.analyze_track()
OptimizeBeatTrackRNN.args
OptimizeBeatTrackRNN.audio_cutoff
OptimizeBeatTrackRNN.csv_name
OptimizeBeatTrackRNN.enable_logger()
OptimizeBeatTrackRNN.get_f_score()
OptimizeBeatTrackRNN.instr
OptimizeBeatTrackRNN.joblib_backend
OptimizeBeatTrackRNN.log_iteration()
OptimizeBeatTrackRNN.lookup_results_from_cache()
OptimizeBeatTrackRNN.n_jobs
OptimizeBeatTrackRNN.objective_function()
OptimizeBeatTrackRNN.return_kwargs()
OptimizeBeatTrackRNN.run_optimization()
OptimizeOnsetDetectCNN
OptimizeOnsetDetectCNN.analyze_track()
OptimizeOnsetDetectCNN.args
OptimizeOnsetDetectCNN.audio_cutoff
OptimizeOnsetDetectCNN.csv_name
OptimizeOnsetDetectCNN.enable_logger()
OptimizeOnsetDetectCNN.fps
OptimizeOnsetDetectCNN.get_f_score()
OptimizeOnsetDetectCNN.joblib_backend
OptimizeOnsetDetectCNN.log_iteration()
OptimizeOnsetDetectCNN.lookup_results_from_cache()
OptimizeOnsetDetectCNN.n_jobs
OptimizeOnsetDetectCNN.objective_function()
OptimizeOnsetDetectCNN.return_kwargs()
OptimizeOnsetDetectCNN.run_optimization()
Optimizer
Optimizer.analyze_track()
Optimizer.audio_cutoff
Optimizer.csv_name
Optimizer.enable_logger()
Optimizer.get_f_score()
Optimizer.joblib_backend
Optimizer.log_iteration()
Optimizer.lookup_results_from_cache()
Optimizer.n_jobs
Optimizer.objective_function()
Optimizer.return_kwargs()
Optimizer.run_optimization()
optimize_beat_tracking()
optimize_onset_detection_cnn()
- src.detect.process_dataset module
- Module contents
- src.features package
- Submodules
- src.features.features_utils module
- src.features.melody_features module
ContourExtractor
IntervalExtractor
MelodyChunkManager
PitchExtractor
TonalityExtractor
TonalityExtractor.MAJ_PROFILE
TonalityExtractor.MIN_PROFILE
TonalityExtractor.count_nonzero()
TonalityExtractor.get_between()
TonalityExtractor.krumhansl_schmuckler()
TonalityExtractor.quantile25()
TonalityExtractor.quantile75()
TonalityExtractor.truncate_df()
TonalityExtractor.update_summary_dict()
- src.features.rhythm_features module
Asynchrony
Asynchrony.count_nonzero()
Asynchrony.extract_asynchronies()
Asynchrony.get_between()
Asynchrony.groupwise_asynchronization()
Asynchrony.mean_absolute_asynchrony()
Asynchrony.mean_pairwise_asynchrony()
Asynchrony.mean_relative_asynchrony()
Asynchrony.pairwise_asynchronization()
Asynchrony.quantile25()
Asynchrony.quantile75()
Asynchrony.truncate_df()
Asynchrony.update_summary_dict()
BeatUpbeatRatio
IOIComplexity
IOIComplexity._bin_ioi()
IOIComplexity._get_summary_dict()
IOIComplexity.alphabet
IOIComplexity.bin_iois()
IOIComplexity.col_names
IOIComplexity.count_nonzero()
IOIComplexity.extract_complexity()
IOIComplexity.fracs
IOIComplexity.get_between()
IOIComplexity.lz77_compress()
IOIComplexity.quantile25()
IOIComplexity.quantile75()
IOIComplexity.truncate_df()
IOIComplexity.update_summary_dict()
PhaseCorrection
PhaseCorrection.count_nonzero()
PhaseCorrection.extract_model_coefficients()
PhaseCorrection.format_array()
PhaseCorrection.format_async_arrays()
PhaseCorrection.generate_model()
PhaseCorrection.get_between()
PhaseCorrection.quantile25()
PhaseCorrection.quantile75()
PhaseCorrection.shifter()
PhaseCorrection.truncate()
PhaseCorrection.truncate_df()
PhaseCorrection.update_summary_dict()
ProportionalAsynchrony
ProportionalAsynchrony.LOWER_BOUND
ProportionalAsynchrony.REF_INSTR
ProportionalAsynchrony.UPPER_BOUND
ProportionalAsynchrony._extract_async_stats()
ProportionalAsynchrony._extract_proportional_durations()
ProportionalAsynchrony._format_async_df()
ProportionalAsynchrony.count_nonzero()
ProportionalAsynchrony.get_between()
ProportionalAsynchrony.quantile25()
ProportionalAsynchrony.quantile75()
ProportionalAsynchrony.truncate_df()
ProportionalAsynchrony.update_summary_dict()
RollingIOISummaryStats
RollingIOISummaryStats.binary_entropy()
RollingIOISummaryStats.count_nonzero()
RollingIOISummaryStats.extract_rolling_statistics()
RollingIOISummaryStats.get_between()
RollingIOISummaryStats.lempel_ziv_complexity()
RollingIOISummaryStats.npvi()
RollingIOISummaryStats.quantile25()
RollingIOISummaryStats.quantile75()
RollingIOISummaryStats.truncate_df()
RollingIOISummaryStats.update_summary_dict()
TempoSlope
get_beats_from_matched_onsets()
- src.features.simulations_utils module
- Module contents
- src.visualise package
- Submodules
- src.visualise.asynchrony_plots module
BarPlotProportionalAsynchrony
BarPlotProportionalAsynchrony.BAR_KWS
BarPlotProportionalAsynchrony.ERROR_KWS
BarPlotProportionalAsynchrony._add_notation_vals()
BarPlotProportionalAsynchrony._bootstrap()
BarPlotProportionalAsynchrony._bootstrap_errorbars()
BarPlotProportionalAsynchrony._create_plot()
BarPlotProportionalAsynchrony._format_ax()
BarPlotProportionalAsynchrony._format_fig()
BarPlotProportionalAsynchrony.ax
BarPlotProportionalAsynchrony.create_plot()
BarPlotProportionalAsynchrony.df
BarPlotProportionalAsynchrony.fig
BarPlotProportionalAsynchrony.g
BarPlotProportionalAsynchrony.output_dir
HistPlotProportionalAsynchrony
HistPlotProportionalAsynchrony.FILL_KWS
HistPlotProportionalAsynchrony.PLOT_KWS
HistPlotProportionalAsynchrony.VLINE_KWS
HistPlotProportionalAsynchrony._add_images()
HistPlotProportionalAsynchrony._create_plot()
HistPlotProportionalAsynchrony._find_peaks()
HistPlotProportionalAsynchrony._format_ax()
HistPlotProportionalAsynchrony._format_fig()
HistPlotProportionalAsynchrony._kde()
HistPlotProportionalAsynchrony.ax
HistPlotProportionalAsynchrony.create_plot()
HistPlotProportionalAsynchrony.df
HistPlotProportionalAsynchrony.fig
HistPlotProportionalAsynchrony.g
HistPlotProportionalAsynchrony.output_dir
HistPlotProportionalAsynchronyTriosPiano
HistPlotProportionalAsynchronyTriosPiano.FILL_KWS
HistPlotProportionalAsynchronyTriosPiano.PLOT_KWS
HistPlotProportionalAsynchronyTriosPiano.VLINE_KWS
HistPlotProportionalAsynchronyTriosPiano.XTICKLABELS
HistPlotProportionalAsynchronyTriosPiano.XTICKS
HistPlotProportionalAsynchronyTriosPiano._add_bandleader_images()
HistPlotProportionalAsynchronyTriosPiano._add_notation_images()
HistPlotProportionalAsynchronyTriosPiano._create_plot()
HistPlotProportionalAsynchronyTriosPiano._format_ax()
HistPlotProportionalAsynchronyTriosPiano._format_fig()
HistPlotProportionalAsynchronyTriosPiano._kde()
HistPlotProportionalAsynchronyTriosPiano.ax
HistPlotProportionalAsynchronyTriosPiano.create_plot()
HistPlotProportionalAsynchronyTriosPiano.df
HistPlotProportionalAsynchronyTriosPiano.fig
HistPlotProportionalAsynchronyTriosPiano.g
HistPlotProportionalAsynchronyTriosPiano.img_loc
HistPlotProportionalAsynchronyTriosPiano.output_dir
PolarPlotAsynchrony
PolarPlotAsynchrony.ARROW_KWS
PolarPlotAsynchrony.CIRCLE_FILL_KWS
PolarPlotAsynchrony.CIRCLE_LINE_KWS
PolarPlotAsynchrony.CIRCLE_PADDING
PolarPlotAsynchrony.CIRCLE_PADDING_RANGE
PolarPlotAsynchrony.FILL_KWS
PolarPlotAsynchrony.KDE_BANDWIDTH
PolarPlotAsynchrony.LINE_KWS
PolarPlotAsynchrony._add_center_circle()
PolarPlotAsynchrony._create_plot()
PolarPlotAsynchrony._format_ax()
PolarPlotAsynchrony._format_fig()
PolarPlotAsynchrony._format_ticks()
PolarPlotAsynchrony._kde()
PolarPlotAsynchrony.ax
PolarPlotAsynchrony.create_plot()
PolarPlotAsynchrony.df
PolarPlotAsynchrony.fig
PolarPlotAsynchrony.g
PolarPlotAsynchrony.output_dir
RegPlotPianistAsynchrony
RegPlotPianistAsynchrony.BIN_MULTIPLER
RegPlotPianistAsynchrony.FILL_KWS
RegPlotPianistAsynchrony.FORMULA
RegPlotPianistAsynchrony.HIST_KWS
RegPlotPianistAsynchrony.LINE_KWS
RegPlotPianistAsynchrony.N_BOOT
RegPlotPianistAsynchrony.RE_STRUCT
RegPlotPianistAsynchrony.SCATTER_KWS
RegPlotPianistAsynchrony._add_notation_vals()
RegPlotPianistAsynchrony._create_main_plot()
RegPlotPianistAsynchrony._create_marginal_plots()
RegPlotPianistAsynchrony._create_plot()
RegPlotPianistAsynchrony._format_ax()
RegPlotPianistAsynchrony._format_bootstrap_lines()
RegPlotPianistAsynchrony._format_fig()
RegPlotPianistAsynchrony._format_main_ax()
RegPlotPianistAsynchrony._format_marginal_ax()
RegPlotPianistAsynchrony._get_bootstrapped_sample()
RegPlotPianistAsynchrony._get_line()
RegPlotPianistAsynchrony._mixedlm()
RegPlotPianistAsynchrony.ax
RegPlotPianistAsynchrony.create_plot()
RegPlotPianistAsynchrony.df
RegPlotPianistAsynchrony.fig
RegPlotPianistAsynchrony.g
RegPlotPianistAsynchrony.output_dir
ScatterPlotAsynchronyTrack
ScatterPlotAsynchronyTrack._create_plot()
ScatterPlotAsynchronyTrack._format_ax()
ScatterPlotAsynchronyTrack._format_fig()
ScatterPlotAsynchronyTrack.ax
ScatterPlotAsynchronyTrack.create_plot()
ScatterPlotAsynchronyTrack.df
ScatterPlotAsynchronyTrack.fig
ScatterPlotAsynchronyTrack.format_df()
ScatterPlotAsynchronyTrack.g
ScatterPlotAsynchronyTrack.output_dir
ScatterPlotAsynchronyTrack.wraparound
- src.visualise.bur_plots module
BarPlotBUR
HistPlotBURByInstrument
HistPlotBURByInstrument.BURS_WITH_IMAGES
HistPlotBURByInstrument.HIST_KWS
HistPlotBURByInstrument.KDE_KWS
HistPlotBURByInstrument.VLINE_KWS
HistPlotBURByInstrument._add_peaks()
HistPlotBURByInstrument._create_plot()
HistPlotBURByInstrument._format_ax()
HistPlotBURByInstrument._format_fig()
HistPlotBURByInstrument._kde()
HistPlotBURByInstrument.add_bur_images()
HistPlotBURByInstrument.ax
HistPlotBURByInstrument.create_plot()
HistPlotBURByInstrument.df
HistPlotBURByInstrument.fig
HistPlotBURByInstrument.g
HistPlotBURByInstrument.output_dir
HistPlotBURTrack
HistPlotBURTrack.BURS_WITH_IMAGES
HistPlotBURTrack.HIST_KWS
HistPlotBURTrack.KDE_KWS
HistPlotBURTrack.VLINE_KWS
HistPlotBURTrack._add_peaks()
HistPlotBURTrack._create_plot()
HistPlotBURTrack._format_ax()
HistPlotBURTrack._format_fig()
HistPlotBURTrack._kde()
HistPlotBURTrack.add_bur_images()
HistPlotBURTrack.ax
HistPlotBURTrack.create_plot()
HistPlotBURTrack.df
HistPlotBURTrack.fig
HistPlotBURTrack.format_df()
HistPlotBURTrack.g
HistPlotBURTrack.output_dir
RegPlotBURTempo
RegPlotBURTempo.BIN_MULTIPLER
RegPlotBURTempo.BURS_WITH_IMAGES
RegPlotBURTempo.BUR_THRESHOLD
RegPlotBURTempo.FILL_KWS
RegPlotBURTempo.HIST_KWS
RegPlotBURTempo.LINE_KWS
RegPlotBURTempo.MODEL
RegPlotBURTempo.N_BOOT
RegPlotBURTempo.RE_FORMULA
RegPlotBURTempo.SCATTER_KWS
RegPlotBURTempo._create_main_plot()
RegPlotBURTempo._create_marginal_plots()
RegPlotBURTempo._create_plot()
RegPlotBURTempo._format_ax()
RegPlotBURTempo._format_bootstrap_lines()
RegPlotBURTempo._format_df()
RegPlotBURTempo._format_fig()
RegPlotBURTempo._format_main_ax()
RegPlotBURTempo._format_marginal_ax()
RegPlotBURTempo._get_bootstrapped_sample()
RegPlotBURTempo._get_line()
RegPlotBURTempo._mixedlm()
RegPlotBURTempo.add_bur_images()
RegPlotBURTempo.ax
RegPlotBURTempo.create_plot()
RegPlotBURTempo.df
RegPlotBURTempo.fig
RegPlotBURTempo.g
RegPlotBURTempo.output_dir
ViolinPlotBURs
ViolinPlotBURs.BURS_WITH_IMAGES
ViolinPlotBURs.EBAR_KWS
ViolinPlotBURs.PAL
ViolinPlotBURs.SCAT_KWS
ViolinPlotBURs.VP_KWS
ViolinPlotBURs._add_bandleader_images()
ViolinPlotBURs._add_nburs_to_tick()
ViolinPlotBURs._create_plot()
ViolinPlotBURs._format_ax()
ViolinPlotBURs._format_fig()
ViolinPlotBURs.add_bur_images()
ViolinPlotBURs.ax
ViolinPlotBURs.create_plot()
ViolinPlotBURs.df
ViolinPlotBURs.fig
ViolinPlotBURs.g
ViolinPlotBURs.img_loc
ViolinPlotBURs.output_dir
- src.visualise.complexity_plots module
BarPlotComplexityDensity
BarPlotComplexityDensity.BAR_KWS
BarPlotComplexityDensity._create_plot()
BarPlotComplexityDensity._format_ax()
BarPlotComplexityDensity._format_fig()
BarPlotComplexityDensity.ax
BarPlotComplexityDensity.create_plot()
BarPlotComplexityDensity.df
BarPlotComplexityDensity.fig
BarPlotComplexityDensity.g
BarPlotComplexityDensity.output_dir
BarPlotTotalBins
BarPlotTotalBins.BAR_KWS
BarPlotTotalBins._add_notation_images()
BarPlotTotalBins._create_plot()
BarPlotTotalBins._format_ax()
BarPlotTotalBins._format_fig()
BarPlotTotalBins.ax
BarPlotTotalBins.create_plot()
BarPlotTotalBins.df
BarPlotTotalBins.fig
BarPlotTotalBins.g
BarPlotTotalBins.img_loc
BarPlotTotalBins.output_dir
HistPlotBins
HistPlotBinsTrack
HistPlotBinsTrack.HIST_KWS
HistPlotBinsTrack.LINE_KWS
HistPlotBinsTrack.PALETTE
HistPlotBinsTrack.VLINE_KWS
HistPlotBinsTrack._create_plot()
HistPlotBinsTrack._format_ax()
HistPlotBinsTrack._format_df()
HistPlotBinsTrack._format_fig()
HistPlotBinsTrack._kde()
HistPlotBinsTrack.ax
HistPlotBinsTrack.create_plot()
HistPlotBinsTrack.df
HistPlotBinsTrack.fig
HistPlotBinsTrack.g
HistPlotBinsTrack.output_dir
RegPlotTempoDensityComplexity
RegPlotTempoDensityComplexity.HIST_KWS
RegPlotTempoDensityComplexity.LINE_KWS
RegPlotTempoDensityComplexity.REG_KWS
RegPlotTempoDensityComplexity.SCATTER_KWS
RegPlotTempoDensityComplexity.TEXT_BBOX
RegPlotTempoDensityComplexity._add_regression_coeff()
RegPlotTempoDensityComplexity._create_main_plot()
RegPlotTempoDensityComplexity._create_marginal_plot()
RegPlotTempoDensityComplexity._create_plot()
RegPlotTempoDensityComplexity._format_ax()
RegPlotTempoDensityComplexity._format_fig()
RegPlotTempoDensityComplexity._format_main_ax()
RegPlotTempoDensityComplexity._format_marginal_ax()
RegPlotTempoDensityComplexity.ax
RegPlotTempoDensityComplexity.create_plot()
RegPlotTempoDensityComplexity.df
RegPlotTempoDensityComplexity.fig
RegPlotTempoDensityComplexity.g
RegPlotTempoDensityComplexity.output_dir
ViolinPlotOnsetComplexity
ViolinPlotOnsetComplexity.EBAR_KWS
ViolinPlotOnsetComplexity.KDE_KWS
ViolinPlotOnsetComplexity.PAL
ViolinPlotOnsetComplexity.SCAT_KWS
ViolinPlotOnsetComplexity._add_bandleader_images()
ViolinPlotOnsetComplexity._create_plot()
ViolinPlotOnsetComplexity._format_ax()
ViolinPlotOnsetComplexity._format_df()
ViolinPlotOnsetComplexity._format_fig()
ViolinPlotOnsetComplexity.ax
ViolinPlotOnsetComplexity.create_plot()
ViolinPlotOnsetComplexity.df
ViolinPlotOnsetComplexity.fig
ViolinPlotOnsetComplexity.g
ViolinPlotOnsetComplexity.img_loc
ViolinPlotOnsetComplexity.output_dir
- src.visualise.coordination_plots module
BarPlotCouplingCoefficients
BarPlotCouplingCoefficients.BAR_KWS
BarPlotCouplingCoefficients._create_plot()
BarPlotCouplingCoefficients._format_ax()
BarPlotCouplingCoefficients._format_fig()
BarPlotCouplingCoefficients.ax
BarPlotCouplingCoefficients.create_plot()
BarPlotCouplingCoefficients.df
BarPlotCouplingCoefficients.fig
BarPlotCouplingCoefficients.g
BarPlotCouplingCoefficients.output_dir
BarPlotModelComparison
BarPlotModelComparison.BAR_KWS
BarPlotModelComparison._create_plot()
BarPlotModelComparison._format_ax()
BarPlotModelComparison._format_fig()
BarPlotModelComparison.ax
BarPlotModelComparison.create_plot()
BarPlotModelComparison.df
BarPlotModelComparison.fig
BarPlotModelComparison.g
BarPlotModelComparison.output_dir
BarPlotSimulationComparison
BarPlotSimulationComparison.BAR_KWS
BarPlotSimulationComparison.HATCHES
BarPlotSimulationComparison.PAL
BarPlotSimulationComparison.TRIANGLE_KWS
BarPlotSimulationComparison._create_plot()
BarPlotSimulationComparison._format_ax()
BarPlotSimulationComparison._format_df()
BarPlotSimulationComparison._format_fig()
BarPlotSimulationComparison._format_params()
BarPlotSimulationComparison.ax
BarPlotSimulationComparison.create_plot()
BarPlotSimulationComparison.df
BarPlotSimulationComparison.fig
BarPlotSimulationComparison.g
BarPlotSimulationComparison.output_dir
HistPlotCouplingTerms
HistPlotCouplingTerms.HIST_KWS
HistPlotCouplingTerms.KDE_KWS
HistPlotCouplingTerms.TITLES
HistPlotCouplingTerms._create_plot()
HistPlotCouplingTerms._format_ax()
HistPlotCouplingTerms._format_fig()
HistPlotCouplingTerms._hist()
HistPlotCouplingTerms._kde()
HistPlotCouplingTerms.ax
HistPlotCouplingTerms.create_plot()
HistPlotCouplingTerms.df
HistPlotCouplingTerms.fig
HistPlotCouplingTerms.g
HistPlotCouplingTerms.output_dir
RegPlotCouplingGrangerCross
RegPlotCouplingGrangerCross.COUPLING_COLS
RegPlotCouplingGrangerCross.CROSS_COLS
RegPlotCouplingGrangerCross.GRANGER_COLS
RegPlotCouplingGrangerCross.HIST_KWS
RegPlotCouplingGrangerCross.LINE_KWS
RegPlotCouplingGrangerCross.REG_KWS
RegPlotCouplingGrangerCross.SCATTER_KWS
RegPlotCouplingGrangerCross.TEXT_BBOX
RegPlotCouplingGrangerCross._add_regression_coeff()
RegPlotCouplingGrangerCross._create_main_plot()
RegPlotCouplingGrangerCross._create_marginal_plot()
RegPlotCouplingGrangerCross._create_plot()
RegPlotCouplingGrangerCross._format_ax()
RegPlotCouplingGrangerCross._format_df()
RegPlotCouplingGrangerCross._format_fig()
RegPlotCouplingGrangerCross._format_main_ax()
RegPlotCouplingGrangerCross._format_marginal_ax()
RegPlotCouplingGrangerCross.ax
RegPlotCouplingGrangerCross.create_plot()
RegPlotCouplingGrangerCross.df
RegPlotCouplingGrangerCross.fig
RegPlotCouplingGrangerCross.g
RegPlotCouplingGrangerCross.output_dir
RegPlotCouplingHalves
RegPlotCouplingHalves.HIST_KWS
RegPlotCouplingHalves.LINE_KWS
RegPlotCouplingHalves.REG_KWS
RegPlotCouplingHalves.SCATTER_KWS
RegPlotCouplingHalves.TEXT_BBOX
RegPlotCouplingHalves._add_regression_text()
RegPlotCouplingHalves._create_main_plot()
RegPlotCouplingHalves._create_marginal_plot()
RegPlotCouplingHalves._create_plot()
RegPlotCouplingHalves._format_ax()
RegPlotCouplingHalves._format_fig()
RegPlotCouplingHalves._format_main_ax()
RegPlotCouplingHalves._format_marginal_ax()
RegPlotCouplingHalves.ax
RegPlotCouplingHalves.create_plot()
RegPlotCouplingHalves.df
RegPlotCouplingHalves.fig
RegPlotCouplingHalves.g
RegPlotCouplingHalves.output_dir
TriangleAxis
TrianglePlotChronology
TrianglePlotTrack
TrianglePlotTrack.BAR_KWS
TrianglePlotTrack._create_plot()
TrianglePlotTrack._format_ax()
TrianglePlotTrack._format_bar_df()
TrianglePlotTrack._format_df()
TrianglePlotTrack._format_fig()
TrianglePlotTrack.ax
TrianglePlotTrack.create_plot()
TrianglePlotTrack.df
TrianglePlotTrack.fig
TrianglePlotTrack.g
TrianglePlotTrack.output_dir
- src.visualise.corpus_plots module
BarPlotBandleaderDuration
BarPlotBandleaderDuration.BAR_KWS
BarPlotBandleaderDuration._create_plot()
BarPlotBandleaderDuration._format_ax()
BarPlotBandleaderDuration._format_df()
BarPlotBandleaderDuration._format_fig()
BarPlotBandleaderDuration.abbreviate()
BarPlotBandleaderDuration.ax
BarPlotBandleaderDuration.create_plot()
BarPlotBandleaderDuration.df
BarPlotBandleaderDuration.fig
BarPlotBandleaderDuration.g
BarPlotBandleaderDuration.initials()
BarPlotBandleaderDuration.output_dir
BarPlotCorpusDuration
BarPlotCorpusDuration.BAR_KWS
BarPlotCorpusDuration.PERC_KWS
BarPlotCorpusDuration._add_bandleader_images()
BarPlotCorpusDuration._add_percentage()
BarPlotCorpusDuration._create_plot()
BarPlotCorpusDuration._format_ax()
BarPlotCorpusDuration._format_df()
BarPlotCorpusDuration._format_fig()
BarPlotCorpusDuration.ax
BarPlotCorpusDuration.create_plot()
BarPlotCorpusDuration.df
BarPlotCorpusDuration.fig
BarPlotCorpusDuration.g
BarPlotCorpusDuration.img_loc
BarPlotCorpusDuration.output_dir
BarPlotFScores
BarPlotLastFMStreams
BarPlotLastFMStreams.BAR_KWS
BarPlotLastFMStreams.PAL
BarPlotLastFMStreams._create_plot()
BarPlotLastFMStreams._format_ax()
BarPlotLastFMStreams._format_fig()
BarPlotLastFMStreams.ax
BarPlotLastFMStreams.create_plot()
BarPlotLastFMStreams.df
BarPlotLastFMStreams.fig
BarPlotLastFMStreams.g
BarPlotLastFMStreams.output_dir
BarPlotSoloDuration
BarPlotSoloDuration.BAR_KWS
BarPlotSoloDuration.PAL
BarPlotSoloDuration._create_plot()
BarPlotSoloDuration._format_ax()
BarPlotSoloDuration._format_fig()
BarPlotSoloDuration.ax
BarPlotSoloDuration.create_plot()
BarPlotSoloDuration.df
BarPlotSoloDuration.fig
BarPlotSoloDuration.format_func()
BarPlotSoloDuration.g
BarPlotSoloDuration.output_dir
BarPlotSubjectiveRatings
BarPlotSubjectiveRatings.BAR_KWS
BarPlotSubjectiveRatings.COLS
BarPlotSubjectiveRatings.HATCHES
BarPlotSubjectiveRatings._create_plot()
BarPlotSubjectiveRatings._format_ax()
BarPlotSubjectiveRatings._format_df()
BarPlotSubjectiveRatings._format_fig()
BarPlotSubjectiveRatings._get_color()
BarPlotSubjectiveRatings._get_legend_handles()
BarPlotSubjectiveRatings.ax
BarPlotSubjectiveRatings.create_plot()
BarPlotSubjectiveRatings.df
BarPlotSubjectiveRatings.fig
BarPlotSubjectiveRatings.g
BarPlotSubjectiveRatings.output_dir
BoxPlotRecordingLength
BoxPlotRecordingLength.PAL
BoxPlotRecordingLength.TICKS
BoxPlotRecordingLength._add_bandleader_images()
BoxPlotRecordingLength._add_number_of_tracks()
BoxPlotRecordingLength._create_plot()
BoxPlotRecordingLength._format_ax()
BoxPlotRecordingLength._format_bandleader()
BoxPlotRecordingLength._format_fig()
BoxPlotRecordingLength._format_time()
BoxPlotRecordingLength.ax
BoxPlotRecordingLength.create_plot()
BoxPlotRecordingLength.df
BoxPlotRecordingLength.fig
BoxPlotRecordingLength.g
BoxPlotRecordingLength.img_loc
BoxPlotRecordingLength.output_dir
CountPlotPanning
HistPlotRecordingYear
HistPlotRecordingYear.BAR_KWS
HistPlotRecordingYear._create_plot()
HistPlotRecordingYear._format_ax()
HistPlotRecordingYear._format_df()
HistPlotRecordingYear._format_fig()
HistPlotRecordingYear.ax
HistPlotRecordingYear.create_plot()
HistPlotRecordingYear.df
HistPlotRecordingYear.fig
HistPlotRecordingYear.g
HistPlotRecordingYear.output_dir
LinePlotOptimizationIterations
LinePlotOptimizationIterations.LINE_KWS
LinePlotOptimizationIterations.ORDER
LinePlotOptimizationIterations.SCATTER_KWS
LinePlotOptimizationIterations._create_plot()
LinePlotOptimizationIterations._format_ax()
LinePlotOptimizationIterations._format_df()
LinePlotOptimizationIterations._format_fig()
LinePlotOptimizationIterations._format_legend()
LinePlotOptimizationIterations.ax
LinePlotOptimizationIterations.create_plot()
LinePlotOptimizationIterations.df
LinePlotOptimizationIterations.fig
LinePlotOptimizationIterations.g
LinePlotOptimizationIterations.output_dir
SpecPlotBands
TimelinePlotBandleaders
TimelinePlotBandleaders.BAR_KWS
TimelinePlotBandleaders.PAL
TimelinePlotBandleaders.SCATTER_KWS
TimelinePlotBandleaders.TEXT_KWS
TimelinePlotBandleaders._add_pianist_image()
TimelinePlotBandleaders._create_plot()
TimelinePlotBandleaders._format_ax()
TimelinePlotBandleaders._format_corpus_df()
TimelinePlotBandleaders._format_fig()
TimelinePlotBandleaders._format_timeline_df()
TimelinePlotBandleaders._get_birth_death_range()
TimelinePlotBandleaders.ax
TimelinePlotBandleaders.create_plot()
TimelinePlotBandleaders.df
TimelinePlotBandleaders.fig
TimelinePlotBandleaders.g
TimelinePlotBandleaders.img_loc
TimelinePlotBandleaders.output_dir
- src.visualise.interactive_plots module
- src.visualise.random_forest_plots module
BarPlotCategoryImportances
BarPlotCategoryImportances.BAR_KWS
BarPlotCategoryImportances.ERROR_KWS
BarPlotCategoryImportances._create_plot()
BarPlotCategoryImportances._format_ax()
BarPlotCategoryImportances._format_fig()
BarPlotCategoryImportances._format_ticks()
BarPlotCategoryImportances.ax
BarPlotCategoryImportances.create_plot()
BarPlotCategoryImportances.df
BarPlotCategoryImportances.fig
BarPlotCategoryImportances.g
BarPlotCategoryImportances.hatches
BarPlotCategoryImportances.output_dir
BarPlotFeatureImportances
BarPlotFeatureImportances.BAR_KWS
BarPlotFeatureImportances.ERROR_KWS
BarPlotFeatureImportances._create_plot()
BarPlotFeatureImportances._format_ax()
BarPlotFeatureImportances._format_fig()
BarPlotFeatureImportances._format_ticks()
BarPlotFeatureImportances.ax
BarPlotFeatureImportances.create_plot()
BarPlotFeatureImportances.df
BarPlotFeatureImportances.fig
BarPlotFeatureImportances.g
BarPlotFeatureImportances.hatches
BarPlotFeatureImportances.output_dir
CountPlotMissingValues
CountPlotMissingValues.BAR_KWS
CountPlotMissingValues._create_plot()
CountPlotMissingValues._format_ax()
CountPlotMissingValues._format_df()
CountPlotMissingValues._format_fig()
CountPlotMissingValues.ax
CountPlotMissingValues.create_plot()
CountPlotMissingValues.df
CountPlotMissingValues.fig
CountPlotMissingValues.g
CountPlotMissingValues.output_dir
HeatMapFeatureCorrelation
HeatMapFeatureCorrelation.HEAT_KWS
HeatMapFeatureCorrelation.LINE_KWS
HeatMapFeatureCorrelation.TEXT_KWS
HeatMapFeatureCorrelation._add_text_to_triangle()
HeatMapFeatureCorrelation._create_plot()
HeatMapFeatureCorrelation._format_ax()
HeatMapFeatureCorrelation._format_cax()
HeatMapFeatureCorrelation._format_corr_labels()
HeatMapFeatureCorrelation._format_fig()
HeatMapFeatureCorrelation._format_tick_labels()
HeatMapFeatureCorrelation.ax
HeatMapFeatureCorrelation.create_plot()
HeatMapFeatureCorrelation.df
HeatMapFeatureCorrelation.fig
HeatMapFeatureCorrelation.g
HeatMapFeatureCorrelation.output_dir
HeatMapPredictionProbDendro
HeatMapPredictionProbDendro.DENDRO_KWS
HeatMapPredictionProbDendro.MODEL_KWS
HeatMapPredictionProbDendro.PAL
HeatMapPredictionProbDendro._add_pianist_images()
HeatMapPredictionProbDendro._create_dendrogram()
HeatMapPredictionProbDendro._create_plot()
HeatMapPredictionProbDendro._fit_agg()
HeatMapPredictionProbDendro._format_annotations()
HeatMapPredictionProbDendro._format_ax()
HeatMapPredictionProbDendro._format_ax_ticks()
HeatMapPredictionProbDendro._format_dax()
HeatMapPredictionProbDendro._format_fig()
HeatMapPredictionProbDendro.ax
HeatMapPredictionProbDendro.create_plot()
HeatMapPredictionProbDendro.df
HeatMapPredictionProbDendro.fig
HeatMapPredictionProbDendro.g
HeatMapPredictionProbDendro.img_loc
HeatMapPredictionProbDendro.output_dir
HistPlotFirstLastP
HistPlotFirstLastP.FILL_KWS
HistPlotFirstLastP.KDE_BW
HistPlotFirstLastP.KDE_KWS
HistPlotFirstLastP.TEXT_KWS
HistPlotFirstLastP._create_plot()
HistPlotFirstLastP._format_ax()
HistPlotFirstLastP._format_fig()
HistPlotFirstLastP._get_kde()
HistPlotFirstLastP._get_pval()
HistPlotFirstLastP._slice_kde()
HistPlotFirstLastP.ax
HistPlotFirstLastP.create_plot()
HistPlotFirstLastP.df
HistPlotFirstLastP.fig
HistPlotFirstLastP.g
HistPlotFirstLastP.output_dir
RegPlotCareerJazzProgress
RegPlotCareerJazzProgress.N_JOBS
RegPlotCareerJazzProgress.REG_KWS
RegPlotCareerJazzProgress._create_plot()
RegPlotCareerJazzProgress._format_ax()
RegPlotCareerJazzProgress._format_fig()
RegPlotCareerJazzProgress.ax
RegPlotCareerJazzProgress.bootstrap()
RegPlotCareerJazzProgress.categories
RegPlotCareerJazzProgress.create_plot()
RegPlotCareerJazzProgress.df
RegPlotCareerJazzProgress.fig
RegPlotCareerJazzProgress.fit_model()
RegPlotCareerJazzProgress.g
RegPlotCareerJazzProgress.get_line()
RegPlotCareerJazzProgress.markers
RegPlotCareerJazzProgress.output_dir
RegPlotCareerJazzProgress.palette
RegPlotCareerJazzProgress.predictors
RegPlotCareerJazzProgress.xspace
RegPlotPredictorsCareerProgress
RegPlotPredictorsCareerProgress.REG_KWS
RegPlotPredictorsCareerProgress.TEXT_KWS
RegPlotPredictorsCareerProgress._create_plot()
RegPlotPredictorsCareerProgress._format_ax()
RegPlotPredictorsCareerProgress._format_fig()
RegPlotPredictorsCareerProgress.ax
RegPlotPredictorsCareerProgress.categories
RegPlotPredictorsCareerProgress.create_plot()
RegPlotPredictorsCareerProgress.df
RegPlotPredictorsCareerProgress.fig
RegPlotPredictorsCareerProgress.g
RegPlotPredictorsCareerProgress.markers
RegPlotPredictorsCareerProgress.output_dir
RegPlotPredictorsCareerProgress.palette
RegPlotPredictorsCareerProgress.predictors
RocPlotLogRegression
StripPlotLogitCoeffs
StripPlotLogitCoeffs.ERROR_KWS
StripPlotLogitCoeffs.LEGEND_KWS
StripPlotLogitCoeffs.STRIP_KWS
StripPlotLogitCoeffs._add_pvals()
StripPlotLogitCoeffs._create_plot()
StripPlotLogitCoeffs._format_ax()
StripPlotLogitCoeffs._format_df()
StripPlotLogitCoeffs._format_fig()
StripPlotLogitCoeffs._format_legend()
StripPlotLogitCoeffs._format_p()
StripPlotLogitCoeffs._format_yticks()
StripPlotLogitCoeffs.ax
StripPlotLogitCoeffs.create_plot()
StripPlotLogitCoeffs.df
StripPlotLogitCoeffs.fig
StripPlotLogitCoeffs.g
StripPlotLogitCoeffs.output_dir
StripPlotLogitCoeffs.palette
- src.visualise.visualise_utils module
- Module contents
Submodules#
src.process module#
Process a track directly from the command line.
- src.process.create_output_filestructure(filename: str)#
Creates necessary folder structure for track with given filename
- src.process.extract_track_features(track: OnsetMaker, exog_ins) dict #
Processes a single track, extracting all required features, and returns a dictionary
- src.process.format_predictions(predict_proba: ndarray, class_names: ndarray) str #
Formats model predictions into a nice human-readable string
- src.process.get_track_dictionary(filename: str, start: str, stop: str, json_location: str = '') dict #
Returns a dictionary from json_location or creates a dictionary from scratch
- src.process.make_pianist_prediction(feature_dict: dict, model_filepath: str | None = None)#
Predicts the pianist for an input track from extracted features using the pre-trained model
- src.process.preprocess_local_audio(audio_fpath: str, start_ts: str, end_ts: str) ndarray #
Loads a local audio file from audio_fpath and truncates to given start and end timestamp
- src.process.proc_inner(input: str, json: str, params: str, begin: str, end: str, exog_ins: str, generate_click: bool)#
An inner function for processing that can be imported directly in Python
- src.process.validate_input(input: str, begin: str, end: str) str #
Validate input URL address or filepath
src.utils module#
Utility classes, functions, and variables used across the entire pipeline
- class src.utils.CorpusMaker(data: list[dict])#
Bases:
object
Converts a multi-sheet Excel spreadsheet into the required format for processing
- static add_missing_channel_overrides(channel_overrides: dict) dict #
In cases where one instrument is hard panned, set all other instruments to use the other channel
- bandleader_instr = 'piano'#
- static construct_filename(item, id_chars: int = 8, desired_words: int = 5) str #
Constructs the filename for an item in the corpus
- format_first_downbeat(start_ts: float, first_downbeat: float) float #
Gets the position of the first downbeat in seconds, from the start of an excerpt
- static format_timestamp(ts: str, as_string: bool = True)#
Formats a timestamp string correctly. Returns as either a datetime or string, depending on as_string
- format_track_dict(track_dict: dict) Generator #
Formats each dictionary, corresponding to a single track
- format_trio_spreadsheet(**kwargs)#
- classmethod from_excel(fname: str, ext: str = 'xlsx', **kwargs)#
Construct corpus from an Excel spreadsheet, potentially containing multiple sheets
- classmethod from_json(fname: str, ext: str = 'json')#
Construct corpus from a JSON
- get_excerpt_duration(start, stop) str #
Returns the total duration of an excerpt, in the format %M:%S
- json_indent = 4#
- keep_all_tracks = False#
- lbz_url_cutoff = 49#
- static str_to_dict(s: str) dict #
Converts a string representation of a dictionary to a dictionary
- src.utils.check_item_present_locally(fname: str) bool #
Returns whether a given filepath is present locally or not
- src.utils.construct_audio_fpath_with_channel_overrides(root_fname: str, channel: str | None = None, instr: str | None = None) str #
From a root file name, optional channel (“l” or “r”) and instrument, constructs the complete file name
- src.utils.convert_to_mp3(dirpath: str, ext: str = '.wav', delete: bool = False, cutoff: int = False) None #
Converts all files with target .wav in dirpath to low bitrate `.mp3`s
- src.utils.disable_settingwithcopy_warning(func: Callable) Callable #
Simple decorator that disables the annoying SettingWithCopy warning in Pandas
- src.utils.flatten_dict(dd: dict, separator='_', prefix='')#
Flattens a dictionary with dictionaries as values, with given separator and prefict
- src.utils.get_audio_duration(fpath: str) float #
Opens a given audio file and returns its duration
- src.utils.get_cached_track_ids(fpath: str = 'c:\\python projects\\jazz-corpus-analysis/data/cambridge-jazz-trio-database-v02') Generator #
Gets the names of tracks which have already been processed
- src.utils.get_project_root() Path #
Returns the root directory of the project
- src.utils.ignore_warning(*args, **kwargs)#
Decorator function for suppressing warnings during a function call
- src.utils.initialise_queue(target_func: ~typing.Callable = <function serialise_from_queue>, *target_func_args) tuple #
Initialise the objects we need for caching through multiprocessing
- Args:
target_func (Callable, optional): target function for the worker process, defaults to serialise_from_queue *target_func_args: arguments passed to target_func
- Returns:
tuple
- src.utils.iqr_filter(arr: array, low: int = 25, high: int = 75, mult: float = 1.5, fill_nans: bool = False) ndarray #
Simple IQR-based range filter that subsets array b where q1(b) - 1.5 * iqr(b) < b[n] < q3(b) + 1.5 * iqr(b)
- Parameters:
arr (np.array): the array of values to clean low (int, optional): the lower quantile to use, defaults to 25 high (int, optional): the upper quantile to use, defaults to 75 mult (float, optional): the amount to multiply the IQR by, defaults to 1.5 fill_nans (bool, optional): replace cleaned values with np.nan, such that the array shape remains the same
- Returns:
np.array
- src.utils.load_annotations_from_files(dirpath: str)#
Loads a single track from loose files generated in src.utils.generate_corpus_files
- src.utils.load_corpus_from_files(dirpath: str) list #
Loads an entire folder of tracks as OnsetMaker instances
- src.utils.load_csv(fpath: str = 'r../../data/processed', fname: str = 'processing_results') dict #
Simple wrapper around json.load that catches errors when working on the same file in multiple threads
- src.utils.load_json(fpath: str = 'r../../data/processed', fname: str = 'processing_results.json') dict #
Simple wrapper around json.load that catches errors when working on the same file in multiple threads
- src.utils.remove_punctuation(s: str) str #
Removes punctuation from a given input string s
- src.utils.retry(exception, tries=4, delay=3, backoff=2) Callable #
Retry calling the decorated function using an exponential backoff.
- src.utils.return_function_kwargs(func) list #
Returns a list of keyword arguments accepted by a given function
- src.utils.save_csv(obj, fpath: str, fname: str) None #
Simple wrapper around csv.DictWriter with protections to assist in multithreaded access
- src.utils.save_json(obj: dict, fpath: str, fname: str) None #
Simple wrapper around json.dump with protections to assist in multithreaded access
- src.utils.serialise_from_queue(item_queue, fpath: str) None #
Iteratively append items in a queue to a single file. Process dies when NoneType added to queue
- Args:
item_queue: the multiprocessing.Manager.Queue instance to draw items from fpath (str): the filepath to save items to (file will be created if it does not exist)
- Returns:
None
- src.utils.serialise_object(obj: object, fpath: str, fname: str, use_pickle: bool = False) None #
Wrapper around dill.dump that takes in an object, directory, and filename, and creates a serialised object
- src.utils.try_get_kwarg_and_remove(kwarg: str, kwargs: dict, default_=False) Any #
Try and get an argument from a kwargs dictionary, remove after getting, and return the value (or a default).
- Arguments:
kwarg (str): the argument to attempt to get from the kwargs dictionary kwargs (dict): the dictionary of keyword arguments default_ (bool, optional): the value to return if kwarg is not found in kwargs, defaults to None
- Returns:
Any: the value returned from kwargs, or a default
- src.utils.unserialise_object(fpath: str, use_pickle: bool = False, _ext: str = 'p') list #
Simple wrapper that unserialises an iterable pickle object using pickle or dill and returns it