Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Conchylicultor/MusicGenerator
/ functions
Functions
185 in github.com/Conchylicultor/MusicGenerator
⨍
Functions
185
◇
Types & classes
43
Method
__init__
Args: args: parameters of the model
deepmusic/modules/learningratepolicy.py:25
Method
__init__
Args: args: parameters of the model
deepmusic/modules/learningratepolicy.py:59
Method
__init__
Args: args: parameters of the model
deepmusic/modules/learningratepolicy.py:116
Method
__init__
Args: args: parameters of the model
deepmusic/modules/encoder.py:32
Method
__init__
Args: args: parameters of the model
deepmusic/modules/encoder.py:67
Method
__init__
Args: args: parameters of the model
deepmusic/modules/encoder.py:141
Method
__len__
Return the absolute tick when the last note end Note that the length is recomputed each time the function is called
deepmusic/songstruct.py:100
Method
_convert_array2song
Create a new song from a numpy array A note will be created for each non empty case of the array. The song will contain a single track, and u
deepmusic/musicdata.py:218
Method
_convert_song2array
Convert a given song to a numpy multi-dimensional array (piano roll) The song is temporally normalized, meaning that all ticks and duration w
deepmusic/musicdata.py:189
Method
_convert_to_piano_rolls
Create songs from the decoder outputs. Reshape the list of outputs to list of piano rolls Args: outputs (List[np.array]):
deepmusic/musicdata.py:337
Method
_lr_cst
Just a constant learning rate
deepmusic/model_old.py:181
Method
_lr_cst
Just a constant learning rate
deepmusic/modules/learningratepolicy.py:89
Method
_lr_step
Every decay period, the learning rate is divided by 2
deepmusic/model_old.py:186
Method
_lr_step
Every decay period, the learning rate is divided by 2
deepmusic/modules/learningratepolicy.py:94
Method
build
Initialize the weights of the model
deepmusic/modules/decoder.py:39
Method
build
Initialize the weights of the model
deepmusic/modules/decoder.py:132
Method
build
Initialize the weights of the model
deepmusic/modules/decoder.py:175
Method
build
Initialize the weights of the model
deepmusic/modules/encoder.py:39
Method
build
Initialize the weights of the model
deepmusic/modules/encoder.py:105
Method
build
Initialize the weights of the model
deepmusic/modules/encoder.py:148
Method
build_next
In case of a generator (batches non precomputed), compute the batch given the batch id passed Args: batch: the current te
deepmusic/modules/batchbuilder.py:84
Method
build_placeholder_input
Create a placeholder compatible with the batch input Allow to control the dimensions Return: tf.placeholder: the placehol
deepmusic/modules/batchbuilder.py:96
Method
build_placeholder_target
Create a placeholder compatible with the target Allow to control the dimensions Return: tf.placeholder: the placeholder f
deepmusic/modules/batchbuilder.py:104
Function
extract_files
Recursively extract all files from a given directory
utils.py:28
Method
gen_input
(i)
deepmusic/modules/batchbuilder.py:244
Method
gen_next_samples
Generator over the mini-batch training samples Warning: the last samples will be ignored if the number of batch does not match the number
deepmusic/modules/batchbuilder.py:459
Method
gen_next_samples
Generator over the mini-batch training samples Warning: the last samples will be ignored if the number of batch does not match the number
deepmusic/modules/batchbuilder.py:529
Method
gen_target
(i)
deepmusic/modules/batchbuilder.py:252
Method
generate
Args: target(Bool): is true if the bach also need to generate the target
deepmusic/modules/batchbuilder.py:234
Method
get_batches_test
Return the batches which initiate the RNN when generating The initial batches are loaded from a json file containing the first notes of the s
deepmusic/modules/batchbuilder.py:564
Method
get_cell
Predict the next keyboard state Args: prev_keyboard (?): the previous keyboard configuration prev_state_enco (?): the
deepmusic/modules/decoder.py:49
Method
get_cell
Simple 1 hidden layer perceptron See parent class for arguments details
deepmusic/modules/decoder.py:143
Method
get_cell
deepmusic/modules/decoder.py:196
Method
get_cell
Predict the next keyboard state Args: prev_keyboard (tf.Tensor): the previous keyboard configuration prev_state (Tupl
deepmusic/modules/encoder.py:48
Method
get_cell
Predict the next keyboard state Args: prev_keyboard (tf.Tensor): the previous keyboard configuration prev_state (Tupl
deepmusic/modules/encoder.py:74
Method
get_cell
a RNN encoder See parent class for arguments details
deepmusic/modules/encoder.py:115
Method
get_cell
a RNN encoder See parent class for arguments details
deepmusic/modules/encoder.py:156
Method
get_input_dim
Return the input dimension Return: int:
deepmusic/modules/batchbuilder.py:157
Method
get_input_dim
deepmusic/modules/batchbuilder.py:265
Method
get_input_type
()
deepmusic/midiconnector.py:256
Method
get_learning_rate
Return the learning rate associated at the current training step Args: glob_step (int): Number of iterations since the beginning
deepmusic/modules/learningratepolicy.py:31
Method
get_learning_rate
Return the learning rate associated at the current training step Args: glob_step (int): Number of iterations since the beginning
deepmusic/modules/learningratepolicy.py:99
Method
get_list
Compute the batches for the current epoch Is called twice (for training and testing) Args: dataset (list[Objects]): the t
deepmusic/modules/batchbuilder.py:73
Method
get_list
(self, dataset)
deepmusic/modules/batchbuilder.py:489
Method
get_module_id
()
deepmusic/modules/decoder.py:119
Method
get_module_id
()
deepmusic/modules/decoder.py:161
Method
get_module_id
Return the unique id associated with the builder Ultimately, the id will be used for saving/loading the dataset, and as parameter arg
deepmusic/modules/batchbuilder.py:64
Method
get_module_id
()
deepmusic/modules/batchbuilder.py:276
Method
get_module_id
()
deepmusic/modules/batchbuilder.py:486
Method
get_module_id
()
deepmusic/modules/loopprocessing.py:50
Method
get_module_id
()
deepmusic/modules/loopprocessing.py:104
Method
get_module_id
()
deepmusic/modules/learningratepolicy.py:113
Method
get_module_id
()
deepmusic/modules/learningratepolicy.py:138
Method
get_module_id
()
deepmusic/modules/learningratepolicy.py:148
Method
get_module_id
()
deepmusic/modules/encoder.py:64
Method
get_module_id
()
deepmusic/modules/encoder.py:94
Method
get_module_id
()
deepmusic/modules/encoder.py:138
Method
get_modules_ids
Return the list of added modules Useful for instance for the command line parser Returns: list[str]: the list of modules
deepmusic/modulemanager.py:52
Method
get_op
Return the chosen labels from the softmax distribution Allows to reconstruct the song
deepmusic/modules/loopprocessing.py:39
Method
get_policies
Return the list of the different modes Useful when parsing the command lines arguments
deepmusic/model_old.py:61
Method
get_policies
Return the list of the different modes Useful when parsing the command lines arguments
deepmusic/model_old.py:140
Method
get_policies
Return the list of the different modes Useful when parsing the command lines arguments
deepmusic/modules/learningratepolicy.py:49
Function
get_rnn_cell
Return RNN cell, constructed from the parameters Args: args: the rnn parameters scope_name (str): encapsulate variables Retur
deepmusic/tfutils.py:59
Method
init_state
Return the initial cell state
deepmusic/modules/decoder.py:44
Method
init_state
Return the initial cell state
deepmusic/modules/decoder.py:191
Method
init_state
Return the initial cell state
deepmusic/modules/encoder.py:43
Method
init_state
Return the initial cell state
deepmusic/modules/encoder.py:110
Method
init_state
Return the initial cell state
deepmusic/modules/encoder.py:152
Method
linear_policy
(step)
deepmusic/model_old.py:106
Method
linear_policy
(step)
deepmusic/model.py:107
Method
load_file
Extract data from midi file Args: filename (str): a valid midi file Return: Song: a song object containing th
deepmusic/midiconnector.py:59
Method
loop_rnn
Loop function used to connect one output of the rnn to the next input. Will re-adapt the output shape to the input one. This
deepmusic/model_old.py:280
Method
loop_rnn
Loop function used to connect one output of the rnn to the next input. The previous input and returned value have to be from the same sha
deepmusic/model.py:195
Method
output_size
(self)
deepmusic/keyboardcell.py:45
Method
process_batch
Create the batch associated with the song Called when generating songs to create the initial input batch Args: raw_song (
deepmusic/modules/batchbuilder.py:136
Method
process_song
Apply some pre-processing to the songs so the song already get the right input representation. Do it once globally for all songs
deepmusic/modules/batchbuilder.py:113
Function
project_fct
Project the output of the decoder into the note space Args: X (tf.Tensor): input value
deepmusic/tfutils.py:47
Method
project_note
(X)
deepmusic/model_old.py:269
Method
reconstruct_batch
Create the song associated with the network output Args: output (list[np.Array]): The ouput of the network (size batch_size*outpu
deepmusic/modules/batchbuilder.py:146
Method
reconstruct_song
Reconstruct the original raw song from the preprocessed data We should have: reconstruct_song(process_song(my_song)) == my_song
deepmusic/modules/batchbuilder.py:124
Function
rename_files
Rename all files of the given directory following some rules
utils.py:45
Function
single_layer_perceptron
Single layer perceptron Project X on the output dimension Args: shape: a tuple (input dim, output dim) scope_name (str): enca
deepmusic/tfutils.py:23
Method
state_size
(self)
deepmusic/keyboardcell.py:41
Method
step
Forward/training step operation. Does not perform run on itself but just return the operators to do so. Those have then to be run by the
deepmusic/model_old.py:347
Method
write_song
Save the song on disk Args: song (Song): a song object containing the tracks and melody filename (str): the path were
deepmusic/midiconnector.py:205
← previous
101–185 of 185, ranked by callers