def make(name: str = "ONE", gender=True, group=0, sub_group0=0): return ( segments.FreeStyleCP( "{}_0".format(name), ambitus_maker=ambitus.SymmetricalRanges( ji.r(4, 1), ji.r(12, 5), ji.r(9, 4) ), group=(group, sub_group0, 0), start_harmony=harmony.find_harmony("A", True, 0, tuple([]), gender=gender), energy_per_voice=(5.7, 9, 9), weight_range=(0.35, 1), decision_type="random", gender=gender, n_bars=2, duration_per_bar=11, start=0, dynamic_range_of_voices=(0.2, 0.6), anticipation_time=2.75, overlaying_time=3.25, cp_add_dissonant_pitches_to_nth_voice=(False, False, False), cp_constraints_interpolation=[], glitter_include_dissonant_pitches=False, pteq_engine_per_voice=( pteq.mk_dreamy_pte( empty_attack_dynamic_maker=infit.Value(0), modulator=(ornamentations.SoftLineGlissandoMaker(),), # convert_dissonant_tones2glissandi=True, ), pteq.mk_dreamy_pte( empty_attack_dynamic_maker=infit.Value(0), modulator=(ornamentations.SoftLineGlissandoMaker(),), # convert_dissonant_tones2glissandi=True, ), pteq.mk_dreamy_pte( empty_attack_dynamic_maker=infit.Value(0), modulator=(ornamentations.SoftLineGlissandoMaker(),), # convert_dissonant_tones2glissandi=True, ), ), speech_init_attributes={}, include_glitter=True, include_diva=False, include_natural_radio=True, include_percussion=False, radio_silent_channels=(1, 3, 5), radio_samples=( "pbIII/samples/radio/carolina/3.wav", "pbIII/samples/radio/carolina/1.wav", ), radio_n_changes=1, radio_average_volume=0.385, radio_shadow_time=0.2, radio_min_volume=0.925, ), segments.DensityBasedThreeVoiceCP( "{}_1".format(name), ambitus_maker=ambitus.SymmetricalRanges( ji.r(16, 5), ji.r(5, 2), ji.r(8, 5) ), group=(group, sub_group0, 1), start_harmony=harmony.find_harmony("A", True, 0, (0,), gender=gender), density_per_voice=(0, 0.6, 0.6), gender=gender, n_bars=1, duration_per_bar=10, start=1.25, dynamic_range_of_voices=(0.15, 0.45), anticipation_time=1.5, overlaying_time=1.5, cp_constraints_harmonic=( counterpoint.constraints.HR_forbid_too_empty_harmonies(1, [0]), ), cp_constraints_interpolation=[], # cp_add_dissonant_pitches_to_nth_voice=(False, False, False), cp_add_dissonant_pitches_to_nth_voice=(True, True, True), pteq_engine_per_voice=( pteq.mk_super_dreamy_pte( empty_attack_dynamic_maker=infit.Value(0), modulator=( ornamentations.SoftLineGlissandoMaker( maxima_glissando_duration=0.35, maxima_glissando_size=180 ), ), convert_dissonant_tones2glissandi=True, ), pteq.mk_super_dreamy_pte( empty_attack_dynamic_maker=infit.Value(0), modulator=( ornamentations.SoftLineGlissandoMaker( maxima_glissando_duration=0.35, maxima_glissando_size=180 ), ), convert_dissonant_tones2glissandi=True, ), pteq.mk_super_dreamy_pte( empty_attack_dynamic_maker=infit.Value(0), modulator=( ornamentations.SoftLineGlissandoMaker( maxima_glissando_duration=0.35, maxima_glissando_size=180 ), ), convert_dissonant_tones2glissandi=True, ), ), speech_init_attributes={}, include_glitter=True, include_diva=False, include_natural_radio=True, include_percussion=False, radio_silent_channels=(1, 3, 5), radio_samples=( "pbIII/samples/radio/carolina/3.wav", "pbIII/samples/radio/carolina/1.wav", ), radio_n_changes=0, radio_average_volume=0.2, radio_shadow_time=0.175, radio_min_volume=0.875, glitter_include_dissonant_pitches=False, ), segments.DensityBasedThreeVoiceCP( "{}_2".format(name), ambitus_maker=ambitus.SymmetricalRanges(ji.r(6, 1), ji.r(5, 2), ji.r(9, 4)), group=(group, sub_group0, 2), start_harmony=harmony.find_harmony("A", True, 0, (0,), gender=gender), density_per_voice=(0.775, 1, 1), gender=gender, n_bars=3, duration_per_bar=7, start=4.5, dynamic_range_of_voices=(0.1, 0.2), anticipation_time=1.25, overlaying_time=1.25, cp_add_dissonant_pitches_to_nth_voice=(False, False, True), cp_constraints_harmonic=( counterpoint.constraints.HR_forbid_too_empty_harmonies(1, [0]), ), cp_constraints_interpolation=[], glitter_include_dissonant_pitches=False, pteq_engine_per_voice=( pteq.mk_dreamy_pte( fxp='"pbIII/fxp/VibraphoneV-BHumanizednostretching.fxp"', preset=None, empty_attack_dynamic_maker=infit.Value(0), ), pteq.mk_dreamy_pte( empty_attack_dynamic_maker=infit.Value(0), modulator=( ornamentations.SoftLineGlissandoMaker( maxima_glissando_duration=0.35, maxima_glissando_size=180 ), ), ), pteq.mk_dreamy_pte( empty_attack_dynamic_maker=infit.Value(0), modulator=( ornamentations.SoftLineGlissandoMaker( maxima_glissando_duration=0.35, maxima_glissando_size=180 ), ), ), ), speech_init_attributes={}, include_glitter=True, include_diva=False, include_natural_radio=True, include_percussion=True, percussion_engine_per_voice=( percussion.Rhythmizer( voice_meters2occupy=(0, 1, 2), sample_maker=infit.Cycle( ( percussion.Sample( path=infit.Cycle(globals.SAM_CYMBALS_BIG_CLOSE), pitch_factor=infit.Uniform(0.5, 2), distortion=infit.Uniform(0.05, 0.3), ), percussion.Sample( path=infit.Cycle(globals.SAM_CYMBALS_MIDDLE_CLOSE_LOUD), pitch_factor=infit.Uniform(0.5, 2), distortion=infit.Uniform(0.04, 0.5), ), ) ), likelihood_range=(0.1, 0.7), volume_range=(0.1, 0.8), ignore_beats_occupied_by_voice=False, ), percussion.Rhythmizer( voice_meters2occupy=(1,), sample_maker=infit.Cycle( ( percussion.Sample( path=infit.Cycle(globals.SAM_CYMBALS_BIG_CLOSE), pitch_factor=infit.Uniform(0.5, 2), resonance_filter_frequency=infit.Uniform(5000, 9000), resonance_filter_bandwidth=infit.Uniform(200, 700), ), percussion.Sample( path=infit.Cycle(globals.SAM_CYMBALS_MIDDLE_CLOSE_LOUD), pitch_factor=infit.Uniform(0.5, 2), ), ) ), likelihood_range=(0.1, 0.7), volume_range=(0.1, 0.8), ignore_beats_occupied_by_voice=False, ), percussion.Rhythmizer( voice_meters2occupy=(2,), sample_maker=infit.Cycle( ( percussion.Sample( path=infit.Cycle(globals.SAM_CYMBALS_BIG_CLOSE), pitch_factor=infit.Uniform(0.5, 2), resonance_filter_frequency=infit.Uniform(1000, 3000), resonance_filter_bandwidth=infit.Uniform(90, 200), ), percussion.Sample( path=infit.Cycle(globals.SAM_CYMBALS_MIDDLE_CLOSE_LOUD), pitch_factor=infit.Uniform(0.5, 2), resonance_filter_frequency=infit.Uniform(1000, 3000), resonance_filter_bandwidth=infit.Uniform(90, 200), ), ) ), likelihood_range=(0.1, 0.7), volume_range=(0.1, 0.8), ignore_beats_occupied_by_voice=False, ), ), radio_silent_channels=(1, 3, 5), radio_samples=( "pbIII/samples/radio/carolina/3.wav", "pbIII/samples/radio/carolina/1.wav", ), radio_n_changes=1, radio_average_volume=0.285, radio_shadow_time=0.2, radio_min_volume=0.925, ), )
def make(name: str = "ONE", gender=False, group=0, sub_group0=1): return ( segments.DensityBasedRhythmicCP( "{}_1".format(name), ambitus_maker=ambitus.SymmetricalRanges(ji.r(16, 5), ji.r(5, 2), ji.r(8, 5)), group=(group, sub_group0, 1), start_harmony=harmony.find_harmony("A", True, 0, (0, ), gender=gender), density_per_voice=(0, 0.6, 0.6), gender=gender, n_bars=1, duration_per_bar=10, start=-3, dynamic_range_of_voices=(0.15, 0.45), anticipation_time=1.5, overlaying_time=1.5, cp_constraints_harmonic=( counterpoint.constraints.HR_forbid_too_empty_harmonies(1, [0]), ), cp_constraints_interpolation=[], cp_add_dissonant_pitches_to_nth_voice=(True, True, True), pteq_engine_per_voice=( pteq.mk_super_dreamy_pte( empty_attack_dynamic_maker=infit.Value(0), modulator=( ornamentations.SoftLineGlissandoMaker( maxima_glissando_duration=0.35, maxima_glissando_size=180), ), convert_dissonant_tones2glissandi=True, ), pteq.mk_super_dreamy_pte( empty_attack_dynamic_maker=infit.Value(0), modulator=( ornamentations.SoftLineGlissandoMaker( maxima_glissando_duration=0.35, maxima_glissando_size=180), ), convert_dissonant_tones2glissandi=True, ), pteq.mk_super_dreamy_pte( empty_attack_dynamic_maker=infit.Value(0), modulator=( ornamentations.SoftLineGlissandoMaker( maxima_glissando_duration=0.35, maxima_glissando_size=180), ), convert_dissonant_tones2glissandi=True, ), ), speech_init_attributes={}, include_glitter=True, include_diva=False, include_natural_radio=True, include_percussion=False, radio_silent_channels=(1, 3, 5), radio_samples=( "pbIII/samples/radio/carolina/3.wav", "pbIII/samples/radio/carolina/1.wav", ), radio_n_changes=0, radio_average_volume=0.2, radio_shadow_time=0.175, radio_min_volume=0.875, glitter_include_dissonant_pitches=False, ), # segments.DensityBasedRhythmicCP( # "{}_2".format(name), # ambitus_maker=ambitus.SymmetricalRanges(ji.r(6, 1), ji.r(5, 2), ji.r(9, 4)), # group=(group, sub_group0, 2), # start_harmony=harmony.find_harmony("A", True, 0, (0,), gender=gender), # density_per_voice=(0.775, 1, 1), # gender=gender, # n_bars=3, # duration_per_bar=7, # start=4.5, # dynamic_range_of_voices=(0.1, 0.2), # anticipation_time=1.25, # overlaying_time=1.25, # cp_add_dissonant_pitches_to_nth_voice=(False, False, True), # cp_constraints_harmonic=( # counterpoint.constraints.HR_forbid_too_empty_harmonies(1, [0]), # ), # cp_constraints_interpolation=[], # glitter_include_dissonant_pitches=False, # pteq_engine_per_voice=( # pteq.mk_dreamy_pte( # fxp='"pbIII/fxp/VibraphoneV-BHumanizednostretching.fxp"', # preset=None, # empty_attack_dynamic_maker=infit.Value(0), # ), # pteq.mk_dreamy_pte( # empty_attack_dynamic_maker=infit.Value(0), # modulator=( # ornamentations.SoftLineGlissandoMaker( # maxima_glissando_duration=0.35, maxima_glissando_size=180 # ), # ), # ), # pteq.mk_dreamy_pte( # empty_attack_dynamic_maker=infit.Value(0), # modulator=( # ornamentations.SoftLineGlissandoMaker( # maxima_glissando_duration=0.35, maxima_glissando_size=180 # ), # ), # ), # ), # speech_init_attributes={}, # include_glitter=True, # include_diva=False, # include_natural_radio=True, # include_percussion=True, # percussion_engine_per_voice=( # percussion.Rhythmizer( # voice_meters2occupy=(0,), # sample_maker=infit.Cycle( # ( # percussion.Sample( # path=infit.Cycle(globals.SAM_CYMBALS_MIDDLE_CLOSE_LOUD), # pitch_factor=infit.Uniform(1, 4), # distortion=infit.Uniform(0, 0.1), # ), # percussion.Sample( # path=infit.Cycle(globals.SAM_CYMBALS_BIG_CLOSE), # pitch_factor=infit.Uniform(0.25, 2), # distortion=infit.Uniform(0, 0.1), # ), # ) # ), # volume_range=(0.1, 0.8), # likelihood_range=(0.4, 1), # ignore_beats_occupied_by_voice=False, # ), # percussion.Rhythmizer( # voice_meters2occupy=(1,), # sample_maker=infit.Cycle( # ( # percussion.Sample( # path=infit.Cycle(globals.SAM_CYMBALS_MIDDLE_CLOSE_LOUD), # pitch_factor=infit.Uniform(0.5, 2), # glissando_duration=infit.Uniform(0, 0.5), # glissando_direction=infit.Cycle((True, False)), # glissando_offset=infit.Uniform(0, 0.1), # glissando_size=infit.Uniform(1, 1.2), # ), # percussion.Sample( # path=infit.Cycle(globals.SAM_CYMBALS_BIG_CLOSE), # pitch_factor=infit.Uniform(0.5, 2), # glissando_duration=infit.Uniform(0, 0.5), # glissando_direction=infit.Cycle((True, False)), # glissando_offset=infit.Uniform(0, 0.1), # glissando_size=infit.Uniform(1, 1.15), # ), # ) # ), # likelihood_range=(0.4, 1), # volume_range=(0.1, 0.8), # ignore_beats_occupied_by_voice=False, # ), # percussion.Rhythmizer( # voice_meters2occupy=(2,), # sample_maker=infit.Cycle( # ( # percussion.Sample( # path=infit.Cycle(globals.SAM_CYMBALS_BIG_CLOSE), # pitch_factor=infit.Uniform(0.5, 2), # ), # percussion.Sample( # path=infit.Cycle( # globals.SAM_CYMBALS_MIDDLE_CLOSE_QUIET # ), # pitch_factor=infit.Uniform(0.5, 2), # ), # ) # ), # likelihood_range=(0.4, 1), # volume_range=(0.1, 0.8), # ignore_beats_occupied_by_voice=False, # ), # ), # radio_silent_channels=(1, 3, 5), # radio_samples=( # "pbIII/samples/radio/carolina/3.wav", # "pbIII/samples/radio/carolina/1.wav", # ), # radio_n_changes=1, # radio_average_volume=0.285, # radio_shadow_time=0.2, # radio_min_volume=0.925, # ), )
def make(name: str = "ONE", gender=False, group=0, sub_group0=0): return ( # with activity level segments.FreeStyleCP( "{}_0".format(name), ambitus_maker=ambitus.SymmetricalRanges(ji.r(3, 2), ji.r(3, 1), ji.r(5, 4)), decision_type="activity", energy_per_voice=(7, 10, 6), weight_range=(4, 10), metrical_numbers=(12, 6, 18), silence_decider_per_voice=( infit.ActivityLevel(1), infit.ActivityLevel(1), infit.ActivityLevel(1), ), group=(group, sub_group0, 2), start_harmony=harmony.find_harmony("A", True, 0, tuple([]), gender=gender), gender=gender, n_bars=3, duration_per_bar=10, start=2, dynamic_range_of_voices=(0.2, 0.45), anticipation_time=0.2, overlaying_time=0.25, cp_add_dissonant_pitches_to_nth_voice=(False, True, False), glitter_include_dissonant_pitches=True, pteq_engine_per_voice=( pteq.mk_super_dreamy_pte( empty_attack_dynamic_maker=infit.Value(0.2), fxp='"pbIII/fxp/VibraphoneV-BHumanizednostretching.fxp"', preset=None, sustain_pedal=1, ), pteq.mk_dreamy_pte( modulator=(ornamentations.SoftLineGlissandoMaker(), ), empty_attack_dynamic_maker=infit.Value(0.2), ), pteq.mk_dreamy_pte( empty_attack_dynamic_maker=infit.Value(0.2)), ), percussion_engine_per_voice=( percussion.Rhythmizer( voice_meters2occupy=(0, ), sample_maker=infit.Cycle(( percussion.Sample( path=infit.Cycle( globals.SAM_KENDANG_LOW_LOW_FAR_MALLET), frequency=globals.SAM_KENDANG_LOW_LOW_FAR_MALLET. information["frequency"], pitch_factor=infit.Cycle((0.5, 1, 0.25, 1)), distortion=infit.Uniform(0, 1), ), percussion.Sample( path=infit.Cycle( globals.SAM_KENDANG_HIGH_LOW_FAR_MALLET), frequency=globals.SAM_KENDANG_HIGH_LOW_FAR_MALLET. information["frequency"], pitch_factor=infit.Cycle((0.5, 1, 0.25, 1)), distortion=infit.Uniform(0, 1), ), )), likelihood_range=(0.3, 1), volume_range=(0.1, 0.8), ignore_beats_occupied_by_voice=False, ), percussion.Rhythmizer( voice_meters2occupy=(1, ), sample_maker=infit.Cycle(( percussion.Sample( path=infit.Cycle( globals.SAM_KENDANG_LOW_LOW_FAR_MALLET), frequency=globals.SAM_KENDANG_LOW_LOW_FAR_MALLET. information["frequency"], pitch_factor=infit.Cycle((0.5, 0.5, 1, 0.25, 1)), ), percussion.Sample( path=infit.Cycle( globals.SAM_KENDANG_HIGH_LOW_FAR_MALLET), frequency=globals.SAM_KENDANG_HIGH_LOW_FAR_MALLET. information["frequency"], pitch_factor=infit.Cycle((0.5, 1, 0.25, 1)), distortion=infit.Uniform(0, 1), ), )), likelihood_range=(0.3, 1), volume_range=(0.1, 0.8), ignore_beats_occupied_by_voice=False, ), percussion.Rhythmizer( voice_meters2occupy=(2, ), sample_maker=infit.Cycle(( percussion.Sample( path=infit.Cycle( globals.SAM_KENDANG_LOW_LOW_FAR_MALLET), frequency=globals.SAM_KENDANG_LOW_LOW_FAR_MALLET. information["frequency"], pitch_factor=infit.Cycle((0.5, 1, 0.25, 1)), distortion=infit.Uniform(0, 1), ), percussion.Sample( path=infit.Cycle( globals.SAM_KENDANG_HIGH_LOW_FAR_MALLET), frequency=globals.SAM_KENDANG_HIGH_LOW_FAR_MALLET. information["frequency"], pitch_factor=infit.Cycle((0.5, 1, 0.25, 1)), ), percussion.Sample( path=infit.Cycle( globals.SAM_KENDANG_HIGH_LOW_FAR_HAND), frequency=globals.SAM_KENDANG_HIGH_LOW_FAR_HAND. information["frequency"], pitch_factor=infit.Cycle((1, 1, 0.5, 1)), ), )), likelihood_range=(0.3, 1), volume_range=(0.1, 0.8), ignore_beats_occupied_by_voice=False, ), ), speech_init_attributes={}, include_glitter=True, include_diva=False, include_natural_radio=True, voices_overlaying_time=5, radio_silent_channels=(1, 3, 5), radio_samples=( "pbIII/samples/radio/carolina/3.wav", "pbIII/samples/radio/carolina/1.wav", ), radio_n_changes=1, radio_average_volume=0.095, radio_shadow_time=0.085, radio_min_volume=0.825, ), )
def make(name: str = "ONE", gender=False, group=0, sub_group0=1): return ( segments.FreeStyleCP( "{}_chords0".format(name), ambitus_maker=ambitus.SymmetricalRanges(ji.r(1, 1), ji.r(3, 1), ji.r(5, 4)), energy_per_voice=(6, 7, 7), weight_range=(0, 6), silence_decider_per_voice=( infit.ActivityLevel(0), infit.ActivityLevel(0), infit.ActivityLevel(0), ), group=(group, sub_group0, 0), start_harmony=harmony.find_harmony("A", True, 0, tuple([]), gender=gender), gender=gender, n_bars=1, duration_per_bar=22, start=4, metrical_numbers=(12, 12, 12), dynamic_range_of_voices=(0.6, 0.8), anticipation_time=0.2, overlaying_time=1.25, cp_add_dissonant_pitches_to_nth_voice=(True, True, False), pteq_engine_per_voice=( pteq.mk_super_dreamy_pte( empty_attack_dynamic_maker=infit.Value(0.1)), pteq.mk_super_dreamy_pte( empty_attack_dynamic_maker=infit.Value(0.1)), pteq.mk_super_dreamy_pte( empty_attack_dynamic_maker=infit.Value(0.1)), ), percussion_engine_per_voice=( percussion.Rhythmizer( voice_meters2occupy=(0, ), likelihood_range=(0.1, 0.6), volume_range=(0.1, 0.8), ignore_beats_occupied_by_voice=True, seed=100, ), percussion.Rhythmizer( voice_meters2occupy=(1, ), # likelihood_range=(0.1, 0.8), likelihood_range=(0, 0.1), volume_range=(0.1, 1), ignore_beats_occupied_by_voice=True, seed=1000, ), percussion.Rhythmizer( voice_meters2occupy=(2, ), sample_maker=infit.Cycle(( percussion.Sample( path=infit.Cycle(globals.SAM_SPEECH_SPACE), pitch_factor=infit.Uniform(0.9, 1.2), ), percussion.Sample( path=infit.Cycle(globals.SAM_SPEECH_TIME), pitch_factor=infit.Uniform(0.9, 1.2), ), )), # likelihood_range=(1, 0.2), likelihood_range=(0, 0.1), volume_range=(0.1, 0.3), ignore_beats_occupied_by_voice=True, ), ), include_glitter=False, include_diva=False, include_natural_radio=False, include_percussion=False, radio_silent_channels=(1, 5), radio_samples=( "pbIII/samples/radio/carolina/3.wav", "pbIII/samples/radio/carolina/1.wav", ), radio_n_changes=2, radio_average_volume=0.1, radio_shadow_time=0.2, radio_min_volume=0.825, # speech_init_attributes={ # "speech0": { # "start": 5.85, # "duration": 22.5, # "sound_engine": speech.Sampler( # "pbIII/samples/speech/ghost_dance/ghost_dance_quote0_noise_reduction0.wav", # volume=0.58, # ), # }, # "speech2": { # "start": 3, # "duration": 37.5, # "sound_engine": speech.Sampler( # globals.SAM_SPEECH_IAN_CURTIS[2], volume=1 # ), # }, # }, ), segments.FreeStyleCP( "{}_chords1".format(name), ambitus_maker=ambitus.SymmetricalRanges(ji.r(1, 1), ji.r(3, 1), ji.r(5, 4)), energy_per_voice=(3, 2, 2), weight_range=(0, 6), silence_decider_per_voice=( infit.ActivityLevel(0), infit.ActivityLevel(0), infit.ActivityLevel(0), ), group=(group, sub_group0, 1), start_harmony=harmony.find_harmony("A", True, 0, tuple([]), gender=gender), gender=gender, n_bars=2, duration_per_bar=11, start=2, metrical_numbers=(6, 12, 18), dynamic_range_of_voices=(0.6, 0.8), anticipation_time=0.2, overlaying_time=1.25, cp_add_dissonant_pitches_to_nth_voice=(True, True, False), pteq_engine_per_voice=( pteq.mk_super_dreamy_pte( empty_attack_dynamic_maker=infit.Value(0.1)), pteq.mk_super_dreamy_pte( empty_attack_dynamic_maker=infit.Value(0.1)), pteq.mk_super_dreamy_pte( empty_attack_dynamic_maker=infit.Value(0.1)), ), percussion_engine_per_voice=( percussion.Rhythmizer( voice_meters2occupy=(0, ), sample_maker=infit.Cycle(( percussion.Sample( path=infit.Cycle( globals.SAM_KENDANG_LOW_LOW_FAR_MALLET), frequency=globals.SAM_KENDANG_LOW_LOW_FAR_MALLET. information["frequency"], pitch_factor=infit.Cycle((0.5, 1, 0.25, 1)), distortion=infit.Uniform(0, 1), ), percussion.Sample( path=infit.Cycle( globals.SAM_KENDANG_HIGH_LOW_FAR_MALLET), frequency=globals.SAM_KENDANG_HIGH_LOW_FAR_MALLET. information["frequency"], pitch_factor=infit.Cycle((0.5, 1, 0.25, 1)), distortion=infit.Uniform(0, 1), ), )), likelihood_range=(0.3, 1), volume_range=(0.1, 0.8), ignore_beats_occupied_by_voice=False, ), percussion.Rhythmizer( voice_meters2occupy=(1, ), sample_maker=infit.Cycle(( percussion.Sample( path=infit.Cycle( globals.SAM_KENDANG_LOW_LOW_FAR_MALLET), frequency=globals.SAM_KENDANG_LOW_LOW_FAR_MALLET. information["frequency"], pitch_factor=infit.Cycle((0.5, 0.5, 1, 0.25, 1)), ), percussion.Sample( path=infit.Cycle( globals.SAM_KENDANG_HIGH_LOW_FAR_MALLET), frequency=globals.SAM_KENDANG_HIGH_LOW_FAR_MALLET. information["frequency"], pitch_factor=infit.Cycle((0.5, 1, 0.25, 1)), distortion=infit.Uniform(0, 1), ), )), likelihood_range=(0.3, 1), volume_range=(0.1, 0.8), ignore_beats_occupied_by_voice=False, ), percussion.Rhythmizer( voice_meters2occupy=(2, ), sample_maker=infit.Cycle(( percussion.Sample( path=infit.Cycle( globals.SAM_KENDANG_LOW_LOW_FAR_MALLET), frequency=globals.SAM_KENDANG_LOW_LOW_FAR_MALLET. information["frequency"], pitch_factor=infit.Cycle((0.5, 1, 0.25, 1)), distortion=infit.Uniform(0, 1), ), percussion.Sample( path=infit.Cycle( globals.SAM_KENDANG_HIGH_LOW_FAR_MALLET), frequency=globals.SAM_KENDANG_HIGH_LOW_FAR_MALLET. information["frequency"], pitch_factor=infit.Cycle((0.5, 1, 0.25, 1)), ), percussion.Sample( path=infit.Cycle( globals.SAM_KENDANG_HIGH_LOW_FAR_HAND), frequency=globals.SAM_KENDANG_HIGH_LOW_FAR_HAND. information["frequency"], pitch_factor=infit.Cycle((1, 1, 0.5, 1)), ), )), likelihood_range=(0.3, 1), volume_range=(0.1, 0.8), ignore_beats_occupied_by_voice=False, ), ), include_glitter=False, include_diva=False, include_natural_radio=False, include_percussion=True, radio_silent_channels=(1, 5), radio_samples=( "pbIII/samples/radio/carolina/3.wav", "pbIII/samples/radio/carolina/1.wav", ), radio_n_changes=2, radio_average_volume=0.1, radio_shadow_time=0.2, radio_min_volume=0.825, # speech_init_attributes={ # "speech0": { # "start": 5.85, # "duration": 22.5, # "sound_engine": speech.Sampler( # "pbIII/samples/speech/ghost_dance/ghost_dance_quote0_noise_reduction0.wav", # volume=0.58, # ), # }, # "speech2": { # "start": 3, # "duration": 37.5, # "sound_engine": speech.Sampler( # globals.SAM_SPEECH_IAN_CURTIS[2], volume=1 # ), # }, # }, ), )
def make(name: str = "THREE", gender=False, group=0, sub_group0=2): return ( segments.Chord( "{}_Bell0".format(name), ambitus_maker=ambitus.SymmetricalRanges(ji.r(4, 1), ji.r(2, 1), ji.r(5, 4)), group=(group, sub_group0, 0), chord=harmony.find_harmony(name="A", idx=0, gender=gender), gender=gender, n_bars=1, duration_per_bar=5, start=-2, # start=0, dynamic_range_of_voices=(0.3, 0.4), voices_entry_delay_per_voice=(0.03, 0.07, 0.01), anticipation_time=4, overlaying_time=0, pteq_engine_per_voice=( pteq.mk_bright_bell( fxp='"pbIII/fxp/GlockenspielHumanizednostretching.fxp"', preset=None, empty_attack_dynamic_maker=infit.Value(0), ), pteq.mk_bright_bell( fxp='"pbIII/fxp/GlockenspielHumanizednostretching.fxp"', preset=None, empty_attack_dynamic_maker=infit.Value(0), ), pteq.mk_bright_bell( fxp='"pbIII/fxp/GlockenspielHumanizednostretching.fxp"', preset=None, empty_attack_dynamic_maker=infit.Value(0), ), ), speech_init_attributes={}, volume_envelope_per_track={ "glitterN01": interpolations.InterpolationLine([ interpolations.FloatInterpolationEvent(2, 0), interpolations.FloatInterpolationEvent(1, 0.5), interpolations.FloatInterpolationEvent(4, 1.1), interpolations.FloatInterpolationEvent(0, 0.1), ]), "glitterN02": interpolations.InterpolationLine([ interpolations.FloatInterpolationEvent(2, 0), interpolations.FloatInterpolationEvent(1, 0.5), interpolations.FloatInterpolationEvent(4, 1), interpolations.FloatInterpolationEvent(0, 0.1), ]), "glitterN12": interpolations.InterpolationLine([ interpolations.FloatInterpolationEvent(2, 0), interpolations.FloatInterpolationEvent(1, 0.5), interpolations.FloatInterpolationEvent(4, 1), interpolations.FloatInterpolationEvent(0, 0.1), ]), }, glitter_type="drone", glitter_wave_form_per_voice=("square", "sine", "sine"), glitter_register_per_voice=(3, 4, 4), glitter_volume_per_voice=(3.85, 4.5, 4.5), glitter_modulater_per_voice=(None, None, None), glitter_release_duration=4, glitter_attack_duration=4, include_glitter=True, include_diva=False, include_natural_radio=False, include_percussion=False, ), segments.FreeStyleCP( "{}_0".format(name), ambitus_maker=ambitus.SymmetricalRanges(ji.r(2, 1), ji.r(12, 5), ji.r(9, 5)), diva_engine_per_voice=( diva.FlageoletDivaMidiEngine, diva.FlageoletDivaMidiEngine, diva.FlageoletDivaMidiEngine, ), group=(group, sub_group0, 0), start_harmony=harmony.find_harmony("A", True, 0, tuple([]), gender=gender), energy_per_voice=(9, 10, 9), silence_decider_per_voice=( infit.ActivityLevel(2), infit.ActivityLevel(3), infit.ActivityLevel(3), ), weight_range=(5, 10), decision_type="activity", gender=gender, n_bars=3, duration_per_bar=12.75, start=-5, dynamic_range_of_voices=(0.175, 0.55), anticipation_time=2, overlaying_time=1.25, cp_add_dissonant_pitches_to_nth_voice=(False, True, True), cp_constraints_interpolation=( counterpoint.constraints.AP_tremolo( 0, add_tremolo_decider=infit.ActivityLevel(10), only_on_non_dissonant_pitches=False, define_tremolo_tones_as_dissonant=False, tremolo_size_generator_per_tone=infit.MetaCycle( (infit.Cycle, ((7, 12, 8, 15, 10, 8, 10), ))), ), counterpoint.constraints.AP_tremolo( 1, add_tremolo_decider=infit.ActivityLevel(8), only_on_non_dissonant_pitches=True, define_tremolo_tones_as_dissonant=False, tremolo_size_generator_per_tone=infit.MetaCycle( (infit.Cycle, ((7, 12, 8, 15, 10, 8, 10), ))), ), counterpoint.constraints.AP_tremolo( 2, add_tremolo_decider=infit.ActivityLevel(8), only_on_non_dissonant_pitches=True, define_tremolo_tones_as_dissonant=False, tremolo_size_generator_per_tone=infit.MetaCycle( (infit.Cycle, ((6, 9, 8, 12, 10, 8, 10, 13, 6, 4), ))), ), ), volume_envelope_per_track={ "voiceN0": interpolations.InterpolationLine([ interpolations.FloatInterpolationEvent(20, 1), interpolations.FloatInterpolationEvent(0, 1), ]) }, glitter_include_dissonant_pitches=False, voices_overlaying_time=2, pteq_engine_per_voice=( pteq.mk_soft_leading_overdrive_harp_pte( fxp='"pbIII/fxp/Harp_with_overdrive.fxp"', preset=None, sustain_pedal=1, modulator=(ornamentations.SoftLineGlissandoMaker(), ), ), pteq.mk_super_dreamy_pte( empty_attack_dynamic_maker=infit.Uniform(0.15, 0.3), modulator=(ornamentations.SoftLineGlissandoMaker(), ), convert_dissonant_tones2glissandi=True, ), pteq.mk_super_dreamy_pte( empty_attack_dynamic_maker=infit.Uniform(0.15, 0.3), modulator=(ornamentations.SoftLineGlissandoMaker(), ), convert_dissonant_tones2glissandi=True, ), ), percussion_engine_per_voice=( percussion.Rhythmizer( voice_meters2occupy=(0, ), sample_maker=infit.Cycle(( percussion.Sample( path=infit.Cycle( globals.SAM_KENDANG_HIGH_LOW_CLOSE_HAND), frequency=globals.SAM_KENDANG_HIGH_LOW_CLOSE_HAND. information["frequency"], pitch_factor=infit.Cycle((1, 2, 0.25, 1)), glissando_size=infit.Gaussian(0.8, 0.2), glissando_offset=0, glissando_direction=True, glissando_duration=infit.Uniform(0.1, 0.5), ), percussion.Sample( path=infit.Cycle( globals.SAM_KENDANG_LOW_LOW_CLOSE_HAND), frequency=globals.SAM_KENDANG_LOW_LOW_CLOSE_HAND. information["frequency"], pitch_factor=infit.Cycle((0.5, 1, 0.25, 1, 0.5)), glissando_size=infit.Gaussian(0.9, 0.1), glissando_offset=0, glissando_direction=True, glissando_duration=infit.Uniform(0.2, 0.5), ), percussion.Sample( path=infit.Cycle( globals.SAM_KENDANG_LOW_LOW_FAR_HAND), frequency=globals.SAM_KENDANG_LOW_LOW_FAR_HAND. information["frequency"], pitch_factor=infit.Cycle((1, 0.25, 1, 0.5)), glissando_size=infit.Gaussian(1.15, 0.2), glissando_offset=0, glissando_direction=True, glissando_duration=infit.Uniform(0.3, 0.5), ), )), likelihood_range=(0.1, 0.7), volume_range=(0.3, 0.45), ignore_beats_occupied_by_voice=False, ), percussion.Rhythmizer( voice_meters2occupy=(1, ), sample_maker=infit.Cycle(( percussion.Sample( path=infit.Cycle( globals.SAM_KENDANG_LOW_LOW_FAR_MALLET), frequency=globals.SAM_KENDANG_LOW_LOW_FAR_MALLET. information["frequency"], pitch_factor=infit.Cycle((0.5, 1, 0.25, 1, 0.5)), distortion=infit.Uniform(0, 1), glissando_size=infit.Gaussian(1.15, 0.1), glissando_offset=0, glissando_direction=True, glissando_duration=infit.Uniform(0.25, 0.5), ), percussion.Sample( path=infit.Cycle( globals.SAM_KENDANG_HIGH_LOW_FAR_MALLET), frequency=globals.SAM_KENDANG_HIGH_LOW_FAR_MALLET. information["frequency"], pitch_factor=infit.Cycle((1, 2, 0.25, 1)), distortion=infit.Uniform(0, 0.5), glissando_size=infit.Gaussian(0.9, 0.1), glissando_offset=0, glissando_direction=True, glissando_duration=infit.Uniform(0.25, 0.48), ), )), likelihood_range=(0.1, 0.655), volume_range=(0.45, 0.6), ignore_beats_occupied_by_voice=False, ), percussion.Rhythmizer( voice_meters2occupy=(2, ), sample_maker=infit.Cycle((percussion.Sample( path=infit.Cycle(globals.SAM_RADIO_ROEHRENRADIO_KEYS), pitch_factor=infit.Uniform(1.4, 2.75), distortion=infit.Uniform(0.3, 1), ), )), likelihood_range=(0.08, 0.26), volume_range=(0.54, 0.8), ignore_beats_occupied_by_voice=False, seed=39, ), ), speech_init_attributes={}, glitter_modulater_per_voice=(None, None, None), glitter_attack_duration=infit.Gaussian(1.9, 0.3), glitter_release_duration=infit.Gaussian(2, 0.2), include_glitter=True, include_diva=True, include_natural_radio=True, include_percussion=True, # radio_silent_channels=(0, 2, 4), radio_samples=( globals.SAM_RADIO_ROEHRENRADIO_FAR_KURZWELLE[0], globals.SAM_RADIO_ROEHRENRADIO_CLOSE_KURZWELLE[0], ), radio_n_changes=3, radio_average_volume=0.34, radio_shadow_time=0.02, radio_min_volume=0.7, radio_attack_duration=infit.Gaussian(2, 0.1), radio_release_duration=infit.Gaussian(5.2, 0.2), ), segments.FreeStyleCP( "{}_1".format(name), ambitus_maker=ambitus.SymmetricalRanges(ji.r(7, 4), ji.r(8, 3), ji.r(9, 7)), diva_engine_per_voice=( diva.FlageoletDivaMidiEngine, diva.FlageoletDivaMidiEngine, diva.FlageoletDivaMidiEngine, ), group=(group, sub_group0, 1), start_harmony=harmony.find_harmony("A", True, 0, tuple([]), gender=gender), energy_per_voice=(8.5, 5, 6), silence_decider_per_voice=( infit.ActivityLevel(1), infit.ActivityLevel(1), infit.ActivityLevel(1), ), weight_range=(0.5, 1), decision_type="random", random_seed=1000, gender=gender, n_bars=2, duration_per_bar=12.5, start=0.33, dynamic_range_of_voices=(0.185, 0.88), anticipation_time=1.5, overlaying_time=1.25, cp_add_dissonant_pitches_to_nth_voice=(False, True, True), cp_constraints_interpolation=( counterpoint.constraints.AP_tremolo( 0, add_tremolo_decider=infit.ActivityLevel(10), only_on_non_dissonant_pitches=False, define_tremolo_tones_as_dissonant=False, tremolo_size_generator_per_tone=infit.MetaCycle( (infit.Cycle, ((7, 12, 8, 15, 10, 8, 10), ))), ), counterpoint.constraints.AP_tremolo( 1, add_tremolo_decider=infit.ActivityLevel(9), only_on_non_dissonant_pitches=True, define_tremolo_tones_as_dissonant=False, tremolo_size_generator_per_tone=infit.MetaCycle( (infit.Cycle, ((7, 12, 8, 15, 10, 8, 10), ))), ), counterpoint.constraints.AP_tremolo( 2, add_tremolo_decider=infit.ActivityLevel(9), only_on_non_dissonant_pitches=True, define_tremolo_tones_as_dissonant=False, tremolo_size_generator_per_tone=infit.MetaCycle( (infit.Cycle, ((6, 9, 8, 12, 10, 8, 10, 13, 6, 4), ))), ), ), volume_envelope_per_track={ "voiceN0": interpolations.InterpolationLine([ interpolations.FloatInterpolationEvent(20, 1), interpolations.FloatInterpolationEvent(0, 1), ]) }, glitter_include_dissonant_pitches=False, voices_overlaying_time=2, pteq_engine_per_voice=( pteq.mk_soft_leading_overdrive_harp_pte( fxp='"pbIII/fxp/Harp_with_overdrive.fxp"', preset=None, sustain_pedal=1, ), pteq.mk_dreamy_pte( empty_attack_dynamic_maker=infit.Uniform(0.15, 0.3), modulator=(ornamentations.SoftLineGlissandoMaker(), ), convert_dissonant_tones2glissandi=True, ), pteq.mk_dreamy_pte( empty_attack_dynamic_maker=infit.Uniform(0.15, 0.3), modulator=(ornamentations.SoftLineGlissandoMaker(), ), convert_dissonant_tones2glissandi=True, ), ), percussion_engine_per_voice=( percussion.Rhythmizer( voice_meters2occupy=(0, ), sample_maker=infit.Cycle(( percussion.Sample( path=infit.Cycle( globals.SAM_KENDANG_HIGH_LOW_CLOSE_HAND), frequency=globals.SAM_KENDANG_HIGH_LOW_CLOSE_HAND. information["frequency"], pitch_factor=infit.Cycle((1, 2, 0.25, 1)), glissando_size=infit.Gaussian(0.8, 0.2), glissando_offset=0, glissando_direction=True, glissando_duration=infit.Uniform(0.1, 0.5), ), percussion.Sample( path=infit.Cycle( globals.SAM_KENDANG_LOW_LOW_CLOSE_HAND), frequency=globals.SAM_KENDANG_LOW_LOW_CLOSE_HAND. information["frequency"], pitch_factor=infit.Cycle((0.5, 1, 0.25, 1, 0.5)), glissando_size=infit.Gaussian(0.9, 0.1), glissando_offset=0, glissando_direction=True, glissando_duration=infit.Uniform(0.2, 0.5), ), percussion.Sample( path=infit.Cycle( globals.SAM_KENDANG_LOW_LOW_FAR_HAND), frequency=globals.SAM_KENDANG_LOW_LOW_FAR_HAND. information["frequency"], pitch_factor=infit.Cycle((1, 0.25, 1, 0.5)), glissando_size=infit.Gaussian(1.15, 0.2), glissando_offset=0, glissando_direction=True, glissando_duration=infit.Uniform(0.3, 0.5), ), )), likelihood_range=(0.15, 0.9), volume_range=(0.3, 0.45), ignore_beats_occupied_by_voice=False, ), percussion.Rhythmizer( voice_meters2occupy=(1, ), sample_maker=infit.Cycle(( percussion.Sample( path=infit.Cycle( globals.SAM_KENDANG_LOW_LOW_FAR_MALLET), frequency=globals.SAM_KENDANG_LOW_LOW_FAR_MALLET. information["frequency"], pitch_factor=infit.Cycle((0.5, 1, 0.25, 1, 0.5)), distortion=infit.Uniform(0, 1), glissando_size=infit.Gaussian(1.15, 0.1), glissando_offset=0, glissando_direction=True, glissando_duration=infit.Uniform(0.25, 0.5), ), percussion.Sample( path=infit.Cycle( globals.SAM_KENDANG_HIGH_LOW_FAR_MALLET), frequency=globals.SAM_KENDANG_HIGH_LOW_FAR_MALLET. information["frequency"], pitch_factor=infit.Cycle((1, 2, 0.25, 1)), distortion=infit.Uniform(0, 0.5), glissando_size=infit.Gaussian(0.9, 0.1), glissando_offset=0, glissando_direction=True, glissando_duration=infit.Uniform(0.25, 0.48), ), )), likelihood_range=(0.15, 0.855), volume_range=(0.45, 0.6), ignore_beats_occupied_by_voice=False, ), percussion.Rhythmizer( voice_meters2occupy=(2, ), sample_maker=infit.Cycle((percussion.Sample( path=infit.Cycle(globals.SAM_RADIO_ROEHRENRADIO_KEYS), pitch_factor=infit.Uniform(1.4, 2.75), distortion=infit.Uniform(0.3, 1), ), )), likelihood_range=(0.08, 0.26), volume_range=(0.54, 0.8), ignore_beats_occupied_by_voice=False, seed=39, ), ), speech_init_attributes={}, glitter_modulater_per_voice=(None, None, None), glitter_attack_duration=infit.Gaussian(1.9, 0.3), glitter_release_duration=infit.Gaussian(2, 0.2), include_glitter=True, include_diva=True, include_natural_radio=True, include_percussion=True, # radio_silent_channels=(0, 2, 4), radio_samples=( globals.SAM_RADIO_ROEHRENRADIO_FAR_KURZWELLE[0], globals.SAM_RADIO_ROEHRENRADIO_CLOSE_KURZWELLE[0], ), radio_n_changes=5, radio_average_volume=0.4, radio_shadow_time=0.02, radio_min_volume=0.8, radio_attack_duration=infit.Gaussian(2, 0.1), radio_release_duration=infit.Gaussian(5.2, 0.2), ), )