kopia lustrzana https://github.com/pimoroni/pimoroni-pico
Galactic Unicorn: Fix audio test linting.
rodzic
52a107e6d6
commit
1357cb876d
|
@ -747,17 +747,17 @@ while True:
|
|||
decay=0.300,
|
||||
sustain=0,
|
||||
release=0,
|
||||
volume=12000/65535)
|
||||
volume=12000 / 65535)
|
||||
channel2.configure(waveforms=Channel.NOISE,
|
||||
attack=0.005,
|
||||
decay=0.010,
|
||||
sustain=16000/65535,
|
||||
sustain=16000 / 65535,
|
||||
release=0.100,
|
||||
volume=0)
|
||||
channel3.configure(waveforms=Channel.NOISE,
|
||||
attack=0.005,
|
||||
decay=0.005,
|
||||
sustain=8000/65535,
|
||||
sustain=8000 / 65535,
|
||||
release=0.040,
|
||||
volume=0)
|
||||
channel4.configure(waveforms=Channel.SQUARE,
|
||||
|
@ -846,33 +846,33 @@ while True:
|
|||
channel0.configure(waveforms=Channel.TRIANGLE + Channel.SQUARE,
|
||||
attack=0.016,
|
||||
decay=0.168,
|
||||
sustain=0xafff/65535,
|
||||
sustain=0xafff / 65535,
|
||||
release=0.168,
|
||||
volume=10000/65535)
|
||||
volume=10000 / 65535)
|
||||
channel1.configure(waveforms=Channel.SINE + Channel.SQUARE,
|
||||
attack=0.038,
|
||||
decay=0.300,
|
||||
sustain=0,
|
||||
release=0,
|
||||
volume=12000/65535)
|
||||
volume=12000 / 65535)
|
||||
channel2.configure(waveforms=Channel.NOISE,
|
||||
attack=0.005,
|
||||
decay=0.010,
|
||||
sustain=16000/65535,
|
||||
sustain=16000 / 65535,
|
||||
release=0.100,
|
||||
volume=18000/65535)
|
||||
volume=18000 / 65535)
|
||||
channel3.configure(waveforms=Channel.NOISE,
|
||||
attack=0.005,
|
||||
decay=0.005,
|
||||
sustain=8000/65535,
|
||||
sustain=8000 / 65535,
|
||||
release=0.040,
|
||||
volume=8000/65535)
|
||||
volume=8000 / 65535)
|
||||
channel4.configure(waveforms=Channel.SQUARE,
|
||||
attack=0.010,
|
||||
decay=0.100,
|
||||
sustain=0,
|
||||
release=0.500,
|
||||
volume=12000/65535)
|
||||
volume=12000 / 65535)
|
||||
if not synthing:
|
||||
beat = 0
|
||||
next_beat()
|
||||
|
|
Ładowanie…
Reference in New Issue