MCPcopy Create free account

hub / github.com/cwitkowitz/amt-tools / functions

Functions459 in github.com/cwitkowitz/amt-tools

Methodfinalize_output
Convert loss-friendly output into actual symbolic transcription. Parameters ---------- raw_output : Tensor (B x T x
amt_tools/models/common.py:443
Methodfinalize_output
Convert loss-friendly output into actual symbolic transcription. Parameters ---------- raw_output : Tensor (B x T x
amt_tools/models/common.py:586
Functionfind_pitch_bounds_stacked_notes
Determine the minimum and maximum pitch for each slice of stacked notes. Parameters ---------- stacked_notes : dict Dictionary
amt_tools/tools/utils.py:945
Methodforward
Perform the main processing steps for TabCNN. Parameters ---------- feats : Tensor (B x T x C x F x W) Inp
amt_tools/models/tabcnn.py:137
Methodforward
Perform the main processing steps for the transcription model. Parameters ---------- feats : Tensor (B x ...)
amt_tools/models/common.py:125
Methodforward
Perform the main processing steps for the output layer. Parameters ---------- feats : Tensor (see child class for ex
amt_tools/models/common.py:255
Methodforward
Perform the main processing steps for the softmax groups. Parameters ---------- feats : Tensor (B x T x F)
amt_tools/models/common.py:343
Methodforward
Perform the main processing steps for the output layer. Parameters ---------- feats : Tensor (B x T x F) I
amt_tools/models/common.py:515
Methodforward
Perform the main processing steps for Onsets & Frames (V2). Parameters ---------- feats : Tensor (B x C x T x F)
amt_tools/models/onsetsframes.py:229
Methodforward
Feed features through the acoustic model. Parameters ---------- in_feats : Tensor (B x C x T x F) Input fe
amt_tools/models/onsetsframes.py:428
Methodforward
Feed features through the music language model. Parameters ---------- in_feats : Tensor (B x T x E) Input
amt_tools/models/onsetsframes.py:505
Methodforward
Feed features through the music language model. Parameters ---------- in_feats : Tensor (B x 1 x E) Input
amt_tools/models/onsetsframes.py:623
Functionframify_activations
Chunk activations into overlapping frames along the last dimension. Parameters ---------- activations : ndarray Provided activ
amt_tools/tools/utils.py:2922
Methodget_active_stacked_multi_pitch
Obtain the estimator's active notes as a stacked multi pitch array. Returns ---------- stacked_multi_pitch : ndarray
amt_tools/transcribe.py:649
Methodget_active_stacked_notes
Obtain the estimator's active notes as stacked notes. Parameters ---------- current_time : float or None (Optional)
amt_tools/transcribe.py:669
Methodget_current_device
Obtain information about the device currently chosen. Returns ---------- device : dict Device information
amt_tools/features/stream.py:373
Methodget_default_key
Default key for multi pitch activations.
amt_tools/transcribe.py:320
Methodget_default_key
Default key for note estimates.
amt_tools/transcribe.py:413
Methodget_default_key
Default key for pitch lists.
amt_tools/transcribe.py:972
Methodget_default_key
Default key for onsets activation maps.
amt_tools/transcribe.py:1292
Methodget_default_key
Default key for offsets activation maps.
amt_tools/transcribe.py:1332
Methodget_default_key
This should not be called directly on a ComboEvaluator.
amt_tools/evaluate.py:597
Methodget_default_key
Default key for loss.
amt_tools/evaluate.py:671
Methodget_default_key
Default key for multi pitch activation maps.
amt_tools/evaluate.py:787
Methodget_default_key
Default key for notes.
amt_tools/evaluate.py:929
Methodget_default_key
Default key for pitch lists.
amt_tools/evaluate.py:1069
Methodget_default_key
Default key for tablature.
amt_tools/evaluate.py:1218
Methodget_default_key
Default key for tablature.
amt_tools/evaluate.py:1303
Methodget_dof_midi_range
Obtain the instrument's range of MIDI pitches across each degree of freedom. Returns ---------- pitch_ranges : ndarr
amt_tools/tools/instrument.py:163
Methodget_expected_frames
Determine the number of frames the module will return for a piece of audio. Parameters ---------- audio : nd
amt_tools/features/waveform.py:43
Methodget_expected_frames
Determine the number of frames the module will return for a piece of audio. Parameters ---------- audio : nd
amt_tools/features/vqt.py:102
Methodget_feature_size
Helper function to access dimensionality of features. Returns ---------- feature_size : int Dimensionality
amt_tools/features/hvqt.py:170
Methodget_feature_size
Helper function to access dimensionality of features. Returns ---------- feature_size : int Dimensionality
amt_tools/features/waveform.py:187
Methodget_feature_size
Helper function to access dimensionality of features. Returns ---------- feature_size : int Dimensionality
amt_tools/features/power.py:59
Methodget_feature_size
Helper function to access dimensionality of features. Returns ---------- feature_size : int Dimensionality
amt_tools/features/stft.py:79
Methodget_feature_size
Helper function to access dimensionality of features.
amt_tools/features/common.py:303
Functionget_frame_times
Determine the start time of each frame for given audio parameters Parameters ---------- duration : float Total length (secon
amt_tools/tools/utils.py:3295
Methodget_hop_length
Helper function to access hop length. Returns ---------- hop_length : int or float Number of samples betwe
amt_tools/features/common.py:274
Methodget_loss
Compute the cross entropy softmax loss for each group independently. Parameters ---------- estimated : Tensor (B x T
amt_tools/models/common.py:369
Methodget_loss
Compute the binary cross entropy loss for each key independently. Parameters ---------- estimated : Tensor (B x T x
amt_tools/models/common.py:541
Methodget_midi_path
Get the path to the annotations of a track. Parameters ---------- track : string MAESTRO track name
amt_tools/datasets/MAESTRO.py:114
Methodget_num_channels
Helper function to access number of feature channels. Returns ---------- num_channels : int Number of inde
amt_tools/features/common.py:288
Methodget_num_frets
Determine how many frets are supported by this profile. Returns ---------- num_frets : int Number of frets
amt_tools/tools/instrument.py:291
Methodget_pitch
Get the MIDI pitch for a given string and fret. Parameters ---------- string : int String to query
amt_tools/tools/instrument.py:207
Functionget_resample_idcs
Obtain indices to resample from a set of original times to a set of target times using nearest neighbor interpolation. Parameters --
amt_tools/tools/utils.py:3120
Methodget_sample_range
Determine the range of audio samples which will produce features with a given number of frames. This will inevitably fall ont
amt_tools/features/hvqt.py:85
Methodget_sample_range
Determine the range of audio samples which will produce features with a given number of frames. Parameters ---------
amt_tools/features/waveform.py:68
Methodget_sample_range
Determine the range of audio samples which will produce features with a given number of frames. Parameters ---------
amt_tools/features/combo.py:57
Methodget_sample_rate
Helper function to access sampling rate. Returns ---------- sample_rate : int or float Presumed sampling r
amt_tools/features/common.py:260
Functionget_tag
Simple helper function to create a tag for saving a file if one does not already exist. This is useful because in some places we don't know
amt_tools/tools/utils.py:3881
Methodget_times
Determine the time, in seconds, associated with each frame. Parameters ---------- audio : ndarray Mono-cha
amt_tools/features/hvqt.py:148
Methodget_times
Determine the time, in seconds, associated with each frame. Parameters ---------- audio: ndarray Mono-chan
amt_tools/features/waveform.py:155
Methodget_times
Determine the time, in seconds, associated with each frame. This is the default behavior. It can be overridden. Parameters
amt_tools/features/common.py:232
Methodget_times
Determine the time, in seconds, associated with frame. Parameters ---------- audio: ndarray Mono-channel a
amt_tools/features/combo.py:124
Methodget_track_dir
Parent class MAPS has and uses this method. It is overridden here to squash the MAPS functionality if the function were called from
amt_tools/datasets/MAESTRO.py:80
Methodget_tracks
Get the tracks associated with a dataset partition. Parameters ---------- split : string Name of the parti
amt_tools/datasets/GuitarSet.py:32
Methodget_tracks
Get the tracks associated with a dataset partition. Parameters ---------- split : string Name of the parti
amt_tools/datasets/MAESTRO.py:33
Methodget_valid_positions
Get all the possible fretboard positions for a given MIDI pitch. Parameters ---------- midi_pitch : int MI
amt_tools/tools/instrument.py:233
Methodget_wav_path
Get the path to the audio of a track. Parameters ---------- track : string MAESTRO track name Ret
amt_tools/datasets/MAESTRO.py:94
Functionglobal_toolbar_disable
Change default matplotlib parameter so no toolbar is added to plots.
amt_tools/tools/visualize.py:38
Functioninhibit_activations
Remove any activations within a specified time window following a previous activation. TODO - this is extremely slow for non-sparse activati
amt_tools/tools/utils.py:2987
Functioninterpolate_gaps
Linearly interpolate between gaps in a one-dimensional array. Parameters ---------- arr : ndarray One-dimensional array ga
amt_tools/tools/utils.py:3072
Methodload
Load the ground-truth from memory or generate it from scratch. Parameters ---------- track : string Name o
amt_tools/datasets/GuitarSet.py:64
Methodload
amt_tools/datasets/combo.py:43
Functionload_dict_npz
Simple helper function to load a NumPy zip file. Parameters ---------- path : string Path to load the NumPy zip file Retu
amt_tools/tools/utils.py:3484
Functionload_duration_jams
Helper function to load a JAMS file and extract the duration. Parameters ---------- jams_path : string Path to JAMS file to re
amt_tools/tools/io.py:235
Functionload_normalize_audio
Load audio from a file and normalize it. Parameters ---------- wav_path : string Path to audio file to read fs : int or fl
amt_tools/tools/io.py:50
Functionload_notes_jams
Helper function to load a JAMS file and extract the notes. Parameters ---------- jams_path : string Path to JAMS file to read
amt_tools/tools/io.py:186
Functionload_notes_midi
Load all MIDI notes from a MIDI file, keeping track of sustain pedal activity. TODO - make sustain pedal stuff optional? TODO - break thi
amt_tools/tools/io.py:426
Functionload_pitch_list_jams
Helper function to load a JAMS file and extract a pitch list. Parameters ---------- jams_path : string Path to JAMS file to re
amt_tools/tools/io.py:393
Functionload_stacked_notes_jams
Helper function to load a JAMS file and extract the stacked notes. Parameters ---------- jams_path : string Path to JAMS file
amt_tools/tools/io.py:134
Functionload_stacked_pitch_list_jams
Helper function to load a JAMS file and extract a stacked pitch list. Parameters ---------- jams_path : string Path to JAMS fi
amt_tools/tools/io.py:331
Functionlogistic_to_stacked_multi_pitch
View logistic activations as a stacked multi pitch array. Parameters ---------- logistic : ndarray or tensor (..., N x T) Arra
amt_tools/tools/utils.py:1818
Functionlogistic_to_tablature
View logistic activations as tablature class membership. Parameters ---------- logistic : tensor (..., N x T) Array of distinc
amt_tools/tools/utils.py:2153
Functionmulti_pitch_to_notes
Decode a multi pitch array into loose MIDI note groups. Parameters ---------- multi_pitch : ndarray (F x T) Discrete pitch act
amt_tools/tools/utils.py:369
Functionnotes_to_stacked_notes
Convert a collection of notes into a dictionary of stacked notes. Parameters ---------- pitches : ndarray (N) Array of pitches
amt_tools/tools/utils.py:719
Functionoffset_notes
Add a semitone offset to note groups. Parameters ---------- pitches : ndarray (N) Array of pitches corresponding to notes
amt_tools/tools/utils.py:586
Methodon_press
Function called when a key is pressed. Parameters ---------- key : pynput.keyboard.Key Key which was press
amt_tools/features/stream.py:606
Methodon_release
Function called when a key is released. Parameters ---------- key : pynput.keyboard.Key Key which was rele
amt_tools/features/stream.py:618
Functiononsets_frames_run
(sample_rate, hop_length, num_frames, iterations, checkpoints, batch_size, learning_rate
examples/papers/of_2.py:77
Functiononsets_frames_run
(sample_rate, hop_length, num_frames, iterations, checkpoints, batch_size, learning_rate
examples/papers/of_1.py:77
Functionpack_pitch_list
Package together the loose times and observations of a pitch list in a save-friendly format. Parameters ---------- times : ndarray (
amt_tools/tools/utils.py:1296
Functionpack_stacked_representation
Package together the key-value pairs of a stacked representation in a save-friendly format. Parameters ---------- stacked_representa
amt_tools/tools/utils.py:3368
Functionplot_notes
Static function for plotting note groups. TODO - make compatible w/ real-time note plotting like other visualization functions Paramete
amt_tools/tools/visualize.py:1194
Methodpost_proc
Calculate loss and finalize model output. Parameters ---------- batch : dict Dictionary including model ou
amt_tools/models/tabcnn.py:186
Methodpost_proc
Calculate loss and finalize model output. Parameters ---------- batch : dict Dictionary including model ou
amt_tools/models/onsetsframes.py:278
Methodpre_proc
Perform necessary pre-processing steps for the transcription model. Parameters ---------- batch : dict Dic
amt_tools/models/tabcnn.py:100
Methodpre_proc
Perform necessary pre-processing steps for the transcription model. Parameters ---------- batch : dict Dic
amt_tools/models/onsetsframes.py:67
Methodprime_frame_buffer
Add a specified amount of empty frames to the buffer. Parameters ---------- amount : int Number of empty f
amt_tools/features/stream.py:176
Methodprocess_audio
Get the VQT features stacked across harmonics for a piece of audio. Parameters ---------- audio : ndarray
amt_tools/features/hvqt.py:107
Methodprocess_audio
Chop the audio in frames according to window and hop length. Parameters ---------- audio : ndarray Mono-ch
amt_tools/features/waveform.py:121
Methodprocess_audio
Get the signal power for each frame of a piece of audio. Parameters ---------- audio : ndarray Mono-channe
amt_tools/features/power.py:31
Methodprocess_audio
Get the spectrogram features for a piece of audio. Parameters ---------- audio : ndarray Mono-channel audi
amt_tools/features/stft.py:42
Methodprocess_audio
Get the Mel Spectrogram features for a piece of audio. Parameters ---------- audio : ndarray Mono-channel
amt_tools/features/mel.py:40
Methodprocess_audio
Get features for a piece of audio. Parameters ---------- audio : ndarray Mono-channel audio
amt_tools/features/common.py:169
Methodprocess_audio
Get the features for a piece of audio. Parameters ---------- audio : ndarray Mono-channel audio R
amt_tools/features/combo.py:86
Methodprocess_track
Process the track independently using each estimator. Parameters ---------- raw_output : dict Dictionary c
amt_tools/transcribe.py:108
Methodprocess_track
Very similar to parent method, except file is written after results are calculated for each evaluator and packaged into a single dict
amt_tools/evaluate.py:620
Methodquery_finished
Determine if the stream has finished.
amt_tools/features/stream.py:114
Functionremove_activation_blips
Remove blips (single-frame positives) in activations. Parameters ---------- activations : ndarray Provided activations Re
amt_tools/tools/utils.py:3042
← previousnext →301–400 of 459, ranked by callers