pycomposer.truesampler package

Submodules

pycomposer.truesampler.bar_gram_true_sampler module

class pycomposer.truesampler.bar_gram_true_sampler.BarGramTrueSampler(bar_gram, midi_df_list, batch_size=20, seq_len=10, time_fraction=0.1, conditional_flag=True)[source]

Bases: pygan.true_sampler.TrueSampler

Sampler which draws samples from the true distribution of MIDI files.

draw()[source]

Draws samples from the true distribution.

Returns:np.ndarray of samples.

pycomposer.truesampler.bar_true_sampler module

class pycomposer.truesampler.bar_true_sampler.BarTrueSampler(midi_df_list, batch_size=20, seq_len=10, time_fraction=0.1, min_pitch=24, max_pitch=108, conditional_flag=True)[source]

Bases: pygan.true_sampler.TrueSampler

Sampler which draws samples from the true distribution of MIDI files.

draw()[source]

Draws samples from the true distribution.

Returns:np.ndarray of samples.

pycomposer.truesampler.midi_true_sampler module

class pycomposer.truesampler.midi_true_sampler.MidiTrueSampler(midi_df_list, batch_size=20, seq_len=10, time_fraction=0.1, min_pitch=24, max_pitch=108)[source]

Bases: pygan.true_sampler.TrueSampler

Sampler which draws samples from the true distribution of MIDI files.

draw()[source]

Draws samples from the true distribution.

Returns:np.ndarray of samples.

Module contents