pycomposer.noisesampler package

Submodules

pycomposer.noisesampler.bar_gram_noise_sampler module

class pycomposer.noisesampler.bar_gram_noise_sampler.BarGramNoiseSampler(bar_gram, midi_df_list, batch_size=20, seq_len=10, time_fraction=0.1, min_pitch=24, max_pitch=108)[source]

Bases: pygan.noise_sampler.NoiseSampler

Generate samples based on the noise prior by distribution of MIDI files.

channel

getter

generate()[source]

Generate noise samples.

Returns:np.ndarray of samples.
get_channel()[source]

getter

get_program_list()[source]

getter

program_list

getter

set_readonly(value)[source]

setter

pycomposer.noisesampler.bar_noise_sampler module

class pycomposer.noisesampler.bar_noise_sampler.BarNoiseSampler(midi_df_list, batch_size=20, seq_len=10, time_fraction=0.1, min_pitch=24, max_pitch=108)[source]

Bases: pygan.noise_sampler.NoiseSampler

Generate samples based on the noise prior by distribution of MIDI files.

channel

getter

generate()[source]

Generate noise samples.

Returns:np.ndarray of samples.
get_channel()[source]

getter

get_program_list()[source]

getter

program_list

getter

set_readonly(value)[source]

setter

pycomposer.noisesampler.midi_noise_sampler module

class pycomposer.noisesampler.midi_noise_sampler.MidiNoiseSampler(batch_size=20, seq_len=10, min_pitch=24, max_pitch=108)[source]

Bases: pygan.noise_sampler.NoiseSampler

Generate samples based on the noise prior by Gauss distribution.

generate()[source]

Generate noise samples.

Returns:np.ndarray of samples.

Module contents