Exemplo n.º 1
0
def diapason_bass(midi_in,beat,temperament,velocity):
    midi=midi_in
    plr = make_addtive_resonance(qCorrect=1.0, rollOff=3.0, saturate=0.5, power=1.1, post=None, limit = True, flat = True, seed = -30)
    notes1=Player.play(
        midi,
        beat,
        temperament,
        voice=plr,
        bend=False,
        mellow=False,
        velocity_correct=velocity*1.5,
        flat_env=True,
        quick_factor=1.25,
        pure=True,
        pan = 0.2
    )
    notes2=Player.play(
        midi,
        beat,
        temperament,
        voice=plr,
        bend=False,
        mellow=False,
        velocity_correct=velocity*0.25,
        flat_env=True,
        quick_factor=1.0,
        pure=True,
        pitch_shift=4.0,
        pan = 0.8
    )
    left1,right1 = post_process(notes1)
    left2,right2 = post_process(notes2)
    return sf.FixSize(mix(left1,left2)),sf.FixSize(mix(right1,right2))
Exemplo n.º 2
0
def distant(midi_in,beat,temperament,velocity):
    notes1=Player.play(
        midi_in,
        beat,
        temperament,
        voice=distant_wind,
        bend=True,
        mellow=False,
        velocity_correct=velocity*1.5,
        flat_env=True,
        quick_factor=1.5,
        pan = -1
    )
    return post_process(notes1)
Exemplo n.º 3
0
def soft_flute(midi_in,beat,temperament,velocity):
    midi=midi_in
    plr = make_addtive_resonance(qCorrect=2.0, rollOff=3.0, saturate=0.00, power=1.001, post=tremulus_flute_filter, flat=True, harmonics=[1,3,5,7,9,11], seed=-45)
    notes1=Player.play(
        midi,
        beat,
        temperament,
        voice=plr,
        bend=False,
        mellow=False,
        velocity_correct=velocity*1.0,
        flat_env=True,
        quick_factor=0.25,
        pure=True,
        pan = -1
    )
    
    plr = make_addtive_resonance(qCorrect=4.0, rollOff=6.0, saturate=0.0, power=1.00, post=None, harmonics=[1, 3, 5], seed=-45)
    notes2=Player.play(
        midi,
        beat,
        temperament,
        voice=plr,
        bend=False,
        mellow=False,
        velocity_correct=velocity*0.15,
        flat_env=True,
        quick_factor=0.50,
        pure=True,
        pitch_shift=2.0,
        pan = 0.5
    )
    
    left1, right1 = post_process_echo(notes1)
    left2, right2 = post_process_echo(notes2)
    return sf.FixSize(mix(left1, left2)),sf.FixSize(mix(right1, right2))
Exemplo n.º 4
0
def oboe_lead(midi_in,beat,temperament,velocity):
    plr = make_addtive_resonance(qCorrect=2.0, rollOff=1.5, saturate=0.1, power=1.4, post=oboe_filter)
    notes1=Player.play(
        midi_in,
        beat,
        temperament,
        voice=plr,
        bend=False,
        mellow=False,
        velocity_correct=velocity*1.5,
        flat_env=True,
        quick_factor=0.5,
        pure=True,
        pan = -1
    )
    return post_process_tremolate(notes1)
Exemplo n.º 5
0
def string(midi_in,beat,temperament,velocity):
    l = 512
    plr = make_addtive_resonance(qCorrect=2.0, rollOff=1.5, power=1.0, post=violin_filter)
    notes1=Player.play(
        midi_in,
        beat,
        temperament,
        voice=plr,
        bend=True,
        mellow=False,
        velocity_correct=velocity*1.5,
        flat_env=True,
        quick_factor=1.0,
        pan = -1
    )
    return post_process(notes1)
Exemplo n.º 6
0
def distant_bass(midi_in,beat,temperament,velocity):
    l = 512
    plr = make_addtive_resonance(qCorrect=1.0, rollOff=2.0, saturate=0.5, power=1.1)
    notes1=Player.play(
        midi_in,
        beat,
        temperament,
        voice=plr,
        bend=False,
        mellow=False,
        velocity_correct=velocity,
        flat_env=True,
        quick_factor=1.5,
        pure=True,
        pan = -1
    )
    return post_process(notes1)