Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
"AudioLazy Band Show" Python Nordeste 2014 talk proposal description
# -*- coding: utf-8 -*-
# Created on Wed Jan 8 04:03:53 2014
# @author: Danilo J. S. Bellini
# Python Nordeste 2014 talk proposal description
# http://2014.pythonnordeste.org/
# Type it in IPython Shell.
# Using this as a script would need to replace lazy_band assignment to
# something like "import pylab as lazy_band"
"""
AudioLazy Band Show
"""
from audiolazy import *
contents = """
Som
Música
Voz
Pedaleira
Synth
Afinador
TempoReal
PythonPuro
DSP(DigitalSignalProcessing)!
""".split()
s, Hz = sHz(44100)
hp = highpass(400 * Hz)
lazy_band = hp.plot()
contents.pop(1).endswith("a") # Truly
lazy_band.show()
freq = str2freq("Ax3") * Hz
dur = 2 * s
snd = saw_table(freq) * line(dur)
with AudioIO(True) as player:
player.play(hp(snd))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment