Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Polochon-street/bliss-rs
/ functions
Functions
372 in github.com/Polochon-street/bliss-rs
⨍
Functions
372
◇
Types & classes
52
↓ 41 callers
Function
setup_test_library
()
src/library.rs:1834
↓ 20 callers
Method
as_ref
(&self)
src/playlist.rs:492
↓ 14 callers
Method
base_config
(&self)
src/library.rs:394
↓ 14 callers
Method
do_
(&mut self, chunk: &[f32])
src/misc.rs:46
↓ 12 callers
Function
_library_song_from_database
( connection: MutexGuard<Connection>, song_path: &str, )
src/library.rs:2259
↓ 12 callers
Method
base_config_mut
(&mut self)
src/library.rs:398
↓ 12 callers
Method
do_
* Compute all the descriptors' value for the given chunk. * * After using this on all the song's chunks, you can call * `get_centroid`,
src/timbral.rs:152
↓ 12 callers
Function
test_file
Get the path to the given test file.
benches/common/mod.rs:45
↓ 11 callers
Method
as_arr1
Return an ndarray `Array1` representing the analysis' features. Particularly useful if you want to make a custom distance metric.
src/song/mod.rs:343
↓ 11 callers
Method
write
This default impl is what requires the `Serialize` supertrait Write the configuration to a file using [AppConfigTrait::serialize_config]. This method
src/library.rs:253
↓ 10 callers
Method
get_value
(&mut self)
src/misc.rs:51
↓ 9 callers
Method
get_values
* Get the song's interval features. * * Return the 6 pitch class set categories, as well as the major, minor, * diminished and augmente
src/chroma.rs:97
↓ 8 callers
Function
_test_decode
(path: &Path, expected_hash: u32)
src/song/decoder/symphonia.rs:447
↓ 8 callers
Method
as_ref
(&self)
src/library.rs:472
↓ 8 callers
Method
do_
* Compute and store the chroma of a signal. * * Passing a full song here once instead of streaming smaller parts of the * song will gre
src/chroma.rs:73
↓ 7 callers
Function
_test_decode
(path: &Path, expected_hash: u32)
src/song/decoder/ffmpeg.rs:380
↓ 7 callers
Method
feature_count
Number of features for this version (usable in const contexts).
src/lib.rs:164
↓ 6 callers
Method
analyze_paths_convert_extra_info
Analyze and store all songs in `paths_extra_info`, along with some extra, user-specified metadata, that can't directly be serializable, or that need i
src/library.rs:1182
↓ 6 callers
Method
as_vec
Return a `Vec<f32>` representing the analysis' features. Particularly useful if you want iterate through the values to store them somewhere.
src/song/mod.rs:351
↓ 6 callers
Function
dedup_playlist_custom_distance
Remove duplicate songs from a playlist, in place, using a custom distance metric. Two songs are considered duplicates if they either have the same, n
src/playlist.rs:358
↓ 6 callers
Function
nzus
(i: usize)
src/library.rs:1821
↓ 6 callers
Method
playlist_from_custom
Build a playlist of `playlist_length` items from a set of already analyzed song(s) in the library `initial_song_paths`, using distance metric `distanc
src/library.rs:800
↓ 6 callers
Function
stft
(signal: &[f32], window_length: usize, hop_length: usize)
src/utils.rs:26
↓ 5 callers
Function
closest_to_songs
Return a playlist made of songs as close as possible to `selected_songs` from the pool of songs in `candidate_songs`, using the `distance` metric to q
src/playlist.rs:256
↓ 5 callers
Function
dedup_playlist
Remove duplicate songs from a playlist, in place. Two songs are considered duplicates if they either have the same, non-empty title and artist name,
src/playlist.rs:338
↓ 5 callers
Method
next
(&mut self)
src/playlist.rs:281
↓ 5 callers
Function
song
(decoder: DecoderVTable)
benches/descriptors.rs:14
↓ 5 callers
Method
store_song
Store a [Song] in the database, overidding any existing song with the same path by that one.
src/library.rs:1539
↓ 5 callers
Method
update_library_convert_extra_info
Analyze and store all songs in `paths_extra_info` that haven't been already analyzed, as well as handling extra, user-specified metadata, that can't d
src/library.rs:995
↓ 4 callers
Method
as_ref
(&self)
src/song/mod.rs:79
↓ 4 callers
Method
do_
(&mut self, chunk: &[f32])
src/temporal.rs:50
↓ 4 callers
Function
estimate_tuning
( sample_rate: u32, spectrum: &Array2<f64>, n_fft: usize, resolution: f64, bins_per_octave
src/chroma.rs:361
↓ 4 callers
Method
get_centroid
* Compute score related to the * [spectral centroid](https://en.wikipedia.org/wiki/Spectral_centroid) values, * obtained after repeatedly ca
src/timbral.rs:56
↓ 4 callers
Method
get_flatness
* Compute score related to the * [spectral flatness](https://en.wikipedia.org/wiki/Spectral_flatness) values, * obtained after repeatedly ca
src/timbral.rs:107
↓ 4 callers
Method
get_rolloff
* Compute score related to the spectral roll-off values, obtained * after repeatedly calling `do_` on all of the song's chunks. * * Spe
src/timbral.rs:80
↓ 4 callers
Method
update_library
Analyze and store all songs in `paths` that haven't been already analyzed, re-analyzing songs with newer feature versions if there was an update of bl
src/library.rs:890
↓ 4 callers
Function
variance_based_weight_matrix
Given a set of seed feature vectors, compute a diagonal Mahalanobis weight matrix where dimensions with low variance (seeds agree) get high weight, an
src/playlist.rs:173
↓ 4 callers
Function
vec_quadratic_peak_pos
Quadratic interpolation for peak position Transcribed from aubio/src/mathutils.c:486-498
src/aubio.rs:578
↓ 4 callers
Function
vec_weight
Element-wise multiplication (weight)
src/aubio.rs:812
↓ 3 callers
Method
analyze_paths
Analyze and store all songs in `paths`. Use this function if you don't have any extra data to bundle with each song. If your library contains CUE fi
src/library.rs:1097
↓ 3 callers
Method
build
(&'a self, vectors: &[Array1<f32>])
src/playlist.rs:46
↓ 3 callers
Function
chroma_filter
All the functions below are more than heavily inspired from librosa"s code: https://github.com/librosa/librosa/blob/main/librosa/feature/spectral.py#L
src/chroma.rs:197
↓ 3 callers
Function
chroma_interval_features
Functions below are Rust versions of python notebooks by AudioLabs Erlang (https://www.audiolabs-erlangen.de/resources/MIR/FMP/C0/C0.html)
src/chroma.rs:137
↓ 3 callers
Function
chroma_stft
( sample_rate: u32, spectrum: &mut Array2<f64>, n_fft: usize, n_chroma: u32, tuning: f64,
src/chroma.rs:393
↓ 3 callers
Function
convolve
(input: &Array1<f64>, kernel: &Array1<f64>)
src/utils.rs:132
↓ 3 callers
Method
distance
(&self, vector: &Array1<f32>)
src/playlist.rs:57
↓ 3 callers
Function
hz_to_octs_inplace
( frequencies: &mut Array1<f64>, tuning: f64, bins_per_octave: u32, )
src/utils.rs:119
↓ 3 callers
Method
normalize
(&self, value: f32)
src/utils.rs:74
↓ 3 callers
Function
normalize_feature_sequence
(feature: &Array2<f64>)
src/chroma.rs:177
↓ 3 callers
Function
pip_track
( sample_rate: u32, spectrum: &Array2<f64>, n_fft: usize, )
src/chroma.rs:269
↓ 3 callers
Function
reflect_pad
(array: &[f32], pad: usize)
src/utils.rs:11
↓ 3 callers
Method
songs_from_album
Get a LibrarySong from a given album title. This will return all songs with corresponding bliss "album" tag, and will order them by track number.
src/library.rs:1374
↓ 3 callers
Function
vec_max_elem
Additional helper functions for BeatTracking Find index of maximum element in slice Matches C aubio's fvec_max_elem behavior: - Iterates through all e
src/aubio.rs:789
↓ 2 callers
Function
_generate_basic_song
(path: Option<String>)
src/library.rs:2395
↓ 2 callers
Function
_generate_library_song
(path: Option<String>)
src/library.rs:2420
↓ 2 callers
Method
_songs_from_statement
Get songs from a songs / features statement. BEWARE that the two songs and features query MUST be the same
src/library.rs:1292
↓ 2 callers
Method
album_playlist_from
Make a playlist of `number_albums` albums closest to the album with title `album_title`. The playlist starts with the album with `album_title`, and co
src/library.rs:845
↓ 2 callers
Method
analyze_paths_extra_info
Analyze and store all songs in `paths_extra_info`, along with some extra metadata serializable, and known before song analysis. Updates the value of
src/library.rs:1146
↓ 2 callers
Function
bin_to_freq
Convert frequency bin to frequency (Hz) This is a direct transcription of aubio's aubio_bintofreq function from src/mathutils.c - `bin` Frequency bi
src/aubio.rs:68
↓ 2 callers
Method
create_song
( &self, analysis: BlissResult<Analysis>, current_track: &Track, duration: Dur
src/cue.rs:171
↓ 2 callers
Method
decode
(path: &std::path::Path)
src/song/decoder/symphonia.rs:413
↓ 2 callers
Method
delete_path
Delete a song with path `song_path` from the database. Errors out if the song is not in the database.
src/library.rs:1690
↓ 2 callers
Method
delete_paths
Delete a set of songs with paths `song_paths` from the database. Will return Ok(count) even if less songs than expected were deleted from the databas
src/library.rs:1720
↓ 2 callers
Method
do_result
Compute spectral descriptor value - matches aubio's do_result() API
src/aubio.rs:96
↓ 2 callers
Function
extract_interval_features
(chroma: &Array2<f64>, templates: &Array2<i32>)
src/chroma.rs:157
↓ 2 callers
Function
geometric_mean
Only works for input of size 256 (or at least of size a multiple of 8), with values belonging to [0; 2^65]. This finely optimized geometric mean court
src/utils.rs:101
↓ 2 callers
Method
get_failed_songs
Return all the songs that failed the analysis.
src/library.rs:1666
↓ 2 callers
Method
get_values_version_1
(&mut self)
src/chroma.rs:128
↓ 2 callers
Method
index
(&self, index: AnalysisIndex)
src/song/mod.rs:275
↓ 2 callers
Function
mahalanobis_distance_builder
Return a Mahalanobis distance function, usable with the "standard" playlist-making functions provided here such as [closest_to_songs] and [song_to_son
src/playlist.rs:129
↓ 2 callers
Function
mean
(input: &[T])
src/utils.rs:66
↓ 2 callers
Function
pitch_tuning
Only use this with strictly positive `frequencies`.
src/chroma.rs:334
↓ 2 callers
Method
playlist_from
Build a playlist of `playlist_length` items from a set of already analyzed songs in the library at `song_path`. It uses the ExentedIsolationForest sc
src/library.rs:760
↓ 2 callers
Method
process_sample
Apply filter to one sample
src/aubio.rs:639
↓ 2 callers
Method
reset
Reset filter state
src/aubio.rs:654
↓ 2 callers
Function
run_update_convert_extra_info_test
(delete_everything_else: bool)
src/library.rs:3483
↓ 2 callers
Method
song_paths
Get all songs in the player library
examples/library.rs:74
↓ 2 callers
Method
song_paths_info
Get all songs in the player library, along with the extra info one would want to store along with each song.
examples/library_extra_info.rs:76
↓ 2 callers
Function
song_to_song
Return an iterator of sorted songs from `candidate_songs` using the `distance` metric and ordering by the smallest distance between each song. If the
src/playlist.rs:309
↓ 2 callers
Method
songs_from_library
Retrieve all songs which have been analyzed with the bliss version specified in the configuration. Returns an error if one or several songs have a di
src/library.rs:1351
↓ 2 callers
Method
store_failed_song
Store an errored [Song] in the SQLite database. If there already is an existing song with that path, replace it by the latest failed result.
src/library.rs:1634
↓ 2 callers
Method
to_song_with_options
(&self, analysis_options: AnalysisOptions)
src/song/decoder.rs:74
↓ 2 callers
Method
update_library_extra_info
Analyze and store all songs in `paths_extra_info` that haven't already been analyzed, along with some extra metadata serializable, and known before so
src/library.rs:951
↓ 2 callers
Method
update_library_with_options
Analyze and store all songs in `paths` that haven't been already analyzed, with analysis options (including features version). If the features version
src/library.rs:925
↓ 1 callers
Function
_basic_song_from_database
(connection: MutexGuard<Connection>, song_path: &str)
src/library.rs:2336
↓ 1 callers
Method
analyze_paths_with_options
Analyze and store all songs in `paths`, setting analysis options such as features version and the number and cores. Be careful not to analyze some son
src/library.rs:1122
↓ 1 callers
Method
checkstate
Check beat tracking state and update bp Transcribed from aubio/src/tempo/beattracking.c:338-461
src/aubio.rs:1098
↓ 1 callers
Function
closest_album_to_group
Return a list of albums in a `pool` of songs that are similar to songs in `group`, discarding songs that don't belong to an album. It basically makes
src/playlist.rs:415
↓ 1 callers
Function
config_local_dir
()
src/library.rs:1763
↓ 1 callers
Function
data_local_dir
()
src/library.rs:1758
↓ 1 callers
Function
db_spl
Compute dB SPL (10 * log10 of mean energy) Transcribed from aubio/src/mathutils.c:609-612
src/aubio.rs:1270
↓ 1 callers
Method
do_filtfilt
Apply filtfilt (forward-backward zero-phase filter) Transcribed from aubio/src/temporal/filter.c:77-93
src/aubio.rs:663
↓ 1 callers
Function
euclidean_distance
Return the [euclidean distance](https://en.wikipedia.org/wiki/Euclidean_distance#Higher_dimensions) between two vectors.
src/playlist.rs:65
↓ 1 callers
Function
feature_array1_to_array
(f: &Array1<f32>)
src/playlist.rs:223
↓ 1 callers
Method
files
List all BlissCueFile from a BlissCue.
src/cue.rs:126
↓ 1 callers
Method
get_bpm
Get current BPM estimate Transcribed from aubio/src/tempo/beattracking.c:424-431
src/aubio.rs:1233
↓ 1 callers
Method
get_songs
Get all songs from a BlissCueFile, using Song::analyze, each song being located using the sample_array and the timestamp delimiter.
src/cue.rs:208
↓ 1 callers
Method
get_thresholded
Get current thresholded value
src/aubio.rs:773
↓ 1 callers
Function
is_silence
Silence detection (returns true if dB SPL < threshold) Transcribed from aubio/src/mathutils.c:615-618
src/aubio.rs:1276
↓ 1 callers
Function
level_lin
Compute mean energy (sum of squares / length) Transcribed from aubio/src/mathutils.c:328-340
src/aubio.rs:1260
next →
1–100 of 372, ranked by callers