Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@danilobellini
Created January 8, 2014 07:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danilobellini/8313126 to your computer and use it in GitHub Desktop.
Save danilobellini/8313126 to your computer and use it in GitHub Desktop.
"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