Exemplo n.º 1
0
        'nibble': 0x90
    }, 0x47], 6, 'a', 5e-8),  # sweep.train_adsr
    ([{
        'nibble': 0x90
    }, 0x47], 6, 'r', 5e-5),
    ([{
        'nibble': 0x90
    }, 0x47], 7, 'm', 0.2),  # sweep.train_oracle
    ([{
        'nibble': 0x90
    }, 0x47], 8, 'r', 1e-5),  # sweep.adsr
])
harp1.oracle.m(1 / 12)
harp2.oracle.m(0 / 4)
liner = dlal.Liner()
lpf = dlal.Lpf()
reverb = dlal.Reverb()
delay = dlal.Delay(11025, gain_y=0.3, gain_i=1)
lim = dlal.Lim(hard=1, soft=0.9, soft_gain=0.3)
buf = dlal.Buf()
tape = dlal.Tape(1 << 17)

voices = [
    drum,
    shaker1,
    shaker2,
    burgers,
    bass,
    arp,
    harp1,
    harp2,
Exemplo n.º 2
0
'A vocoder built around stft, sinbank, and noisebank.'

import dlal

import time

# components
audio = dlal.Audio(driver=True)
comm = dlal.Comm()
audio.add(audio)

lpf1 = dlal.Lpf(0.99)
lpf2 = dlal.Lpf(0.99)
peak_lo = dlal.Peak(name='peak_lo')
oracle_lo = dlal.Oracle(m=20, format=('set', '%'), name='oracle_lo')
hpf1 = dlal.Hpf()
hpf2 = dlal.Hpf()
peak_hi = dlal.Peak(name='peak_hi')
oracle_hi = dlal.Oracle(m=2e4, format=('set', '%'), name='oracle_hi')

stft = dlal.Stft(512)
sinbank = dlal.Sinbank(44100 / 512)
noisebank = dlal.Noisebank()
gain_tone = dlal.Gain(name='gain_tone')
gain_noise = dlal.Gain(name='gain_noise')
mul = dlal.Mul(1)
buf_tone = dlal.Buf(name='buf_tone')
buf_noise = dlal.Buf(name='buf_noise')

buf = dlal.Buf()
tape = dlal.Tape(1 << 17)
Exemplo n.º 3
0
        self.digitar.stay_on(True)

#===== init =====#
audio = dlal.Audio(driver=True)
comm = dlal.Comm()
liner = dlal.Liner()

violin1 = Violin('violin1')
violin2 = Violin('violin2')
violin3 = Violin('violin3')
cello = Violin('cello')
bass = Violin('bass')
harp1 = Harp('harp1')
harp2 = Harp('harp2')

lpf1 = dlal.Lpf(freq=200)
bow_buf = dlal.Buf(name='bow_buf')

lpf2 = dlal.Lpf(freq=800)
delay1 = dlal.Delay(15000, gain_y=0.4)
delay2 = dlal.Delay(21000, gain_y=0.2)
reverb = dlal.Reverb(0.8)
lim = dlal.Lim(1, 0.9, 0.3)
buf = dlal.Buf()
tape = dlal.Tape(1 << 17)

#===== commands =====#
#----- liner -----#
liner.load('assets/midis/audiobro4.mid', immediate=True)
liner.advance(float(sys_arg(1) or 0))