MCPcopy Create free account

hub / github.com/Conchylicultor/MusicGenerator / functions

Functions185 in github.com/Conchylicultor/MusicGenerator

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
Methodbuild
Initialize the weights of the model
deepmusic/modules/decoder.py:39
Methodbuild
Initialize the weights of the model
deepmusic/modules/decoder.py:132
Methodbuild
Initialize the weights of the model
deepmusic/modules/decoder.py:175
Methodbuild
Initialize the weights of the model
deepmusic/modules/encoder.py:39
Methodbuild
Initialize the weights of the model
deepmusic/modules/encoder.py:105
Methodbuild
Initialize the weights of the model
deepmusic/modules/encoder.py:148
Methodbuild_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
Methodbuild_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
Methodbuild_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
Functionextract_files
Recursively extract all files from a given directory
utils.py:28
Methodgen_input
(i)
deepmusic/modules/batchbuilder.py:244
Methodgen_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
Methodgen_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
Methodgen_target
(i)
deepmusic/modules/batchbuilder.py:252
Methodgenerate
Args: target(Bool): is true if the bach also need to generate the target
deepmusic/modules/batchbuilder.py:234
Methodget_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
Methodget_cell
Predict the next keyboard state Args: prev_keyboard (?): the previous keyboard configuration prev_state_enco (?): the
deepmusic/modules/decoder.py:49
Methodget_cell
Simple 1 hidden layer perceptron See parent class for arguments details
deepmusic/modules/decoder.py:143
Methodget_cell
deepmusic/modules/decoder.py:196
Methodget_cell
Predict the next keyboard state Args: prev_keyboard (tf.Tensor): the previous keyboard configuration prev_state (Tupl
deepmusic/modules/encoder.py:48
Methodget_cell
Predict the next keyboard state Args: prev_keyboard (tf.Tensor): the previous keyboard configuration prev_state (Tupl
deepmusic/modules/encoder.py:74
Methodget_cell
a RNN encoder See parent class for arguments details
deepmusic/modules/encoder.py:115
Methodget_cell
a RNN encoder See parent class for arguments details
deepmusic/modules/encoder.py:156
Methodget_input_dim
Return the input dimension Return: int:
deepmusic/modules/batchbuilder.py:157
Methodget_input_dim
deepmusic/modules/batchbuilder.py:265
Methodget_input_type
()
deepmusic/midiconnector.py:256
Methodget_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
Methodget_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
Methodget_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
Methodget_list
(self, dataset)
deepmusic/modules/batchbuilder.py:489
Methodget_module_id
()
deepmusic/modules/decoder.py:119
Methodget_module_id
()
deepmusic/modules/decoder.py:161
Methodget_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
Methodget_module_id
()
deepmusic/modules/batchbuilder.py:276
Methodget_module_id
()
deepmusic/modules/batchbuilder.py:486
Methodget_module_id
()
deepmusic/modules/loopprocessing.py:50
Methodget_module_id
()
deepmusic/modules/loopprocessing.py:104
Methodget_module_id
()
deepmusic/modules/learningratepolicy.py:113
Methodget_module_id
()
deepmusic/modules/learningratepolicy.py:138
Methodget_module_id
()
deepmusic/modules/learningratepolicy.py:148
Methodget_module_id
()
deepmusic/modules/encoder.py:64
Methodget_module_id
()
deepmusic/modules/encoder.py:94
Methodget_module_id
()
deepmusic/modules/encoder.py:138
Methodget_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
Methodget_op
Return the chosen labels from the softmax distribution Allows to reconstruct the song
deepmusic/modules/loopprocessing.py:39
Methodget_policies
Return the list of the different modes Useful when parsing the command lines arguments
deepmusic/model_old.py:61
Methodget_policies
Return the list of the different modes Useful when parsing the command lines arguments
deepmusic/model_old.py:140
Methodget_policies
Return the list of the different modes Useful when parsing the command lines arguments
deepmusic/modules/learningratepolicy.py:49
Functionget_rnn_cell
Return RNN cell, constructed from the parameters Args: args: the rnn parameters scope_name (str): encapsulate variables Retur
deepmusic/tfutils.py:59
Methodinit_state
Return the initial cell state
deepmusic/modules/decoder.py:44
Methodinit_state
Return the initial cell state
deepmusic/modules/decoder.py:191
Methodinit_state
Return the initial cell state
deepmusic/modules/encoder.py:43
Methodinit_state
Return the initial cell state
deepmusic/modules/encoder.py:110
Methodinit_state
Return the initial cell state
deepmusic/modules/encoder.py:152
Methodlinear_policy
(step)
deepmusic/model_old.py:106
Methodlinear_policy
(step)
deepmusic/model.py:107
Methodload_file
Extract data from midi file Args: filename (str): a valid midi file Return: Song: a song object containing th
deepmusic/midiconnector.py:59
Methodloop_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
Methodloop_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
Methodoutput_size
(self)
deepmusic/keyboardcell.py:45
Methodprocess_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
Methodprocess_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
Functionproject_fct
Project the output of the decoder into the note space Args: X (tf.Tensor): input value
deepmusic/tfutils.py:47
Methodproject_note
(X)
deepmusic/model_old.py:269
Methodreconstruct_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
Methodreconstruct_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
Functionrename_files
Rename all files of the given directory following some rules
utils.py:45
Functionsingle_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
Methodstate_size
(self)
deepmusic/keyboardcell.py:41
Methodstep
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
Methodwrite_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
← previous101–185 of 185, ranked by callers