Created
January 8, 2014 07:36
-
-
Save danilobellini/8313126 to your computer and use it in GitHub Desktop.
"AudioLazy Band Show" Python Nordeste 2014 talk proposal description
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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