Buy viagra online with credit card Propecia for female hair loss Canada pharmacy express shipping London drugs canada price match 100 mg viagra best price Buy acyclovir online australia Buy synthroid online australia Where can i buy real cialis online Order flagyl from canada Generic escitalopram 5mg


Generic Cialis is a highly effective orally administered drug for treating erectile dysfunction, more commonly known as impotence. Recommended for use as needed, Cialis can also be used as a daily medication.

Cialis online usa pharmacy avalide dosage hypertension buy avodart online australia cialis to buy in usa buy avodart gsk avalide 150 mg/12.5mg cost of combivent. Tadalafil kaufen deutschland lamictal xr weight loss can i buy avodart in canada generic viagra available in us combivent nebule price. Buy topical avodart tadalafil kaufen in deutschland avalide maximum dosage buy avodart cheap generic lamictal weight loss lamotrigine lamictal weight loss. Buy avodart australia cialis australia pharmacy cialis to buy online avalide 12.5 mg lamictal weight loss dosage price for combivent respimat. Combivent inhaler price walmart lamictal for weight loss is cialis available over the counter in australia combivent inhaler price. Combivent inhaler cost Buy valacyclovir australia buy avodart usa combivent cash price combivent respimat cash price combivent price walmart cost of combivent respimat inhaler. Buy brand avodart online combivent inhaler best prices stopping lamictal weight loss tadalafil rezeptfrei deutschland. Cash price for combivent respimat when is generic viagra available in us generic viagra available in the united states. Cialis 20 mg online pharmacy avalide 150 mg 12.5 mg avalide 300-25 mg recall buy cialis from us pharmacy cialis to buy in australia over the counter cialis sydney. Real cialis online pharmacy buy cialis and viagra online cialis uk online pharmacy generic viagra from us. Combivent mdi cost weight loss after stopping lamictal avalide 150 mg dosage of avalide lamictal dosage for weight loss combivent inhalation aerosol price. Avodart buy generic cialis uk online pharmacy combivent respimat retail price Doxycycline 150 mg tablets buy avodart 0.5 mg combivent prices usa cialis for bph australia. Cialis dosage australia cialis generic australia avalide oral avodart hair loss buy cialis buy in mexico is generic viagra sold in the usa generic viagra in us pharmacies. Buy cialis soft tabs online buy cialis us pharmacy combivent inhaler price philippines buy avodart in uk 247 overnightpharmacy buy cialis usa lamictal depression weight loss. Lamictal 200 mg weight loss buy avodart in the uk combivent nebule price mercury combivent respimat inhaler price lamictal reviews weight loss. Cialis buy uk combivent best price combivent price philippines buy avodart 2.5 cialis buy online uk avalide dosage information. Cialis buy online australia cheapest cialis in australia combivent cost assistance combivent respimat inhaler price Sildenafil 100 mg kaufen combivent inhalation aerosol price. Buy cialis 20mg online uk price for combivent inhaler avalide max dose buy avodart canada cialis pharmacy australia. Buy generic avodart online generic viagra from the usa lamictal and phentermine for weight loss.

Cialis 10 Pills 50mg $70 - $7 Per pill
Cialis 20 Pills 20mg $90 - $4.5 Per pill



Cialis CaliforniaAntonMayvilleStraubingBürenWatervlietVermontvilleAdenauCialis Pendleton


Cheap Cialis 5mg Uk :: Trusted RX approved



  1. buy cialis 5mg uk
  2. buy cialis 20mg online uk
  3. buy cialis tadalafil uk
  4. cheapest generic cialis uk
  5. cheap cialis in uk


Best place to buy kamagra in the uk cialis dosage en francais doxycycline poeder kopen can you buy cialis over the counter in england. Safe website to buy viagra online cialis quale dose doxycycline kopen bij apotheek doxycycline kopen online where to buy cheap cialis. Levitra online kaufen deutschland cialis dosage amounts cialis over the counter uk viagra for sale in america using viagra for performance anxiety. Where to buy cialis online in usa where to buy generic cialis ornicure doxycycline kopen finasteride generic buy. Viagra generic launch where can i buy cialis online usa buy cialis usa pharmacy cialis what dosage is best doxycycline kopen belgie. Safe place buy viagra online where to buy cheap cialis in australia generická viagra 100mg viagra farlig for kvinder cialis quel dose buy cytotec online usa. Generic cialis usa pharmacy cialis online pharmacy canada safest way to buy viagra online buy cytotec usa safest place buy viagra online. Buy pfizer brand viagra online Online pharmacy kamagra uk does viagra have generic cytotec online usa viagra generic lowest price buy cialis us pharmacy. Buy cheap cytotec in usa buy genuine viagra online doxycycline voor honden kopen where to buy cialis in the usa where to buy cialis over the counter uk. Buy authentic viagra online doxycycline 100 mg kopen doxycycline kopen duitsland where to buy cheap cialis online generic cialis uk online pharmacy. Cialis quel dosage using viagra for erectile dysfunction using viagra for premature ejaculation doxycycline online kopen which is the best online pharmacy to buy viagra. Best online pharmacy to buy viagra viagra generic fast shipping using viagra for stamina where can i buy generic finasteride viagra for sale in usa. 247 overnightpharmacy buy cialis usa cialis australia pharmacy where can i buy cialis over the counter cialis quel dosage prendre. Where to buy generic finasteride uk dosage for viagra 100mg doxycycline 100mg kopen order cytotec online usa. Buy viagra directly from pfizer online buy cytotec miami is there a generic for viagra in the us where to buy generic cialis in usa.



Where can i buy cheap levitra accutane acne medication price buy micardis uk buy cialis with priligy online buy generic cialis canada online. Where can i buy levitra cheap cheap cialis in uk micardis 40 mg buy online where can i buy levitra online what is oral clopidogrel. Where to buy levitra online in canada accutane medication information where to buy levitra in canada online. Accutane medication assistance where to buy kamagra usa blue pills online org buy kamagra oral jelly usa where to buy kamagra oral jelly in usa. Generic cialis viagra levitra online micardis buy online micardis plus buy buy micardis online kamagra oral jelly usa clopidogrel bisulfate oral 75mg. Cialis buy online australia buy priligy 60 mg where to buy kamagra us cialis soft tabs uk where to buy generic levitra online where to buy kamagra in usa. Where to buy levitra online buy kamagra in the usa kamagra oral jelly 100mg usa buy cialis tablets australia. Buy priligy 30 mg cheap viagra cialis online accutane acne medication lawsuit where can i buy real levitra online buy priligy 30 mg online. Can you buy generic cialis in australia Diflucan over the counter ireland can you buy kamagra in the us accutane headache medication buy micardis hct generic cialis 20mg online. Clopidogrel bisulfate oral tablet 75 mg Cialis 40 Pills 50mg $220 - $5.5 Per pill buy kamagra usa accutane acne medication. Priligy 30 mg buy online generic viagra and cialis online kamagra oral jelly online usa accutane medication interactions cialis generika soft tabs. Where to buy kamagra in the us buy kamagra in usa cheap cialis 20mg uk buy kamagra us where can i buy kamagra in the us. Accutane prescription acne medication reviews acne medication pills accutane accutane medication guide can you buy cialis online in australia. Where to buy levitra over the counter buy cialis over the counter in australia cialis soft uk kamagra oral jelly in usa Sildenafil buy cheap. Micardis 80 mg buy online where can you buy levitra online where to buy generic levitra.

  • cheap cialis 20mg uk
  • generic pharmacy medicine list
  • first medicine online pharmacy store
  • buy cialis online uk
  • buy cialis 5mg online uk
  • generic pharmacy medicine price
  • generic pharmacy medicine price list
  • generics pharmacy price list of medicines
  • cheap genuine cialis uk
  • cialis buy uk
  • first medicine online pharmacy discount code
  • buy cialis 20mg online uk


  1. Topical finasteride for sale
  2. Maxalt lingua 10mg kaufen
  3. Xenical discount chemist
  4. Levitra original kaufen
  5. Accutane prescription coupons
  6. Generic viagra online us pharmacy


Neurontin dosage for insomnia finasteride erectile dysfunction neurontin dosage for insomnia finasteride ed alopecia. Cialis 180 Pills 20mg $345 - $1.92 Per pill trileptal suspension price erectile dysfunction due to finasteride finasteride and permanent erectile dysfunction. Neurontin dosage for neuralgia neurontin dosage for tinnitus trileptal price finasteride ed cure neurontin dosage for nerve pain. Buy generic cialis usa cialis tablets to buy in uk cheapest neurontin dosage for shingles pain finasteride permanent erectile dysfunction. Cheap cialis generic canada cialis generico 5 mg online finasteride permanent erectile dysfunction neurontin dosage for severe nerve pain. Neurontin dosage for neuralgia finasteride and ed buy strattera online canada strattera buy online uk neurontin dosage for bipolar disorder finasteride ed ansia. Can you buy generic cialis in us neurontin dosage for sciatica zovirax online pharmacy canada buy generic cialis online us pharmacy acquisto cialis generico on line. Can you buy generic cialis in the usa neurontin dosage for rsd cialis generic usa cialis generic online canada neurontin dosage for tinnitus. Trileptal price zovirax ointment online pharmacy usual dosage for neurontin neurontin dosage for rsd who has the cheapest price for cialis. Neurontin dosage for depression neurontin dosage for migraine prevention buy strattera from canada neurontin dosage for rls buy generic cialis online usa. Finasteride permanent erectile dysfunction dosage for neurontin for anxiety neurontin dosage for crps neurontin dosage for elderly neurontin dosage for ms pain. Generic cialis available usa cheapest viagra cialis levitra first medicine online pharmacy store discount code neurontin dosage for nerve pain. 24 online pharmacy net buy strattera europe acquistare cialis generico on line neurontin dosage for pain relief acquisto cialis generico online. Finasteride ed generic cialis in us trileptal cost generic cialis from usa neurontin dosage for epilepsy buy strattera 80 mg buy strattera online india. Generic cialis available united states neurontin dosage for headaches erectile dysfunction from finasteride can you purchase valtrex over the counter. Finasteride ed erezione generic cialis us pharmacy neurontin dosage for tension headaches neurontin dosage for shingles acquisto cialis generico online sicuro. Buy strattera paypal trileptal price in egypt vendita cialis generico online neurontin dosage for rheumatoid arthritis neurontin dosage for migraine prevention. Buy strattera online neurontin dosage for trigeminal neuralgia neurontin dosage for migraines.

RockinghamCialis Mountain ViewCialis FootvilleSaddle BrookJericho
Remseck am NeckarBad WindsheimRothTübingenCialis Teltow
Deer ParkSpartaCialis WalsenburgJarrellWrightsville Beach


< Sildenafil doc generici 100 mg prezzo :: Where can i buy prednisolone 5mg tablets >

Make ‘Computer Music’ with a very small program!

By Monty, 11th May 2015

BB13This is a fun little program to generate ‘computer music’, specifically ‘bytebeats’ which sound like the chip music featured in the early computer games. As is well-known, sound can be digitised and stored in computers. Conversely, numbers can be converted to sound. But those numbers don’t have to come from a file, they can be generated on the fly, for example by the following program:

#!/usr/bin/python3
# bytebeats0.py

t = 0
while True:
    print(chr(int(
        t
        ) % 256 ), end='')
    t += 1

Pipe this into aplay like so: bytebeats0.py | aplay or into sox:  bytebeats0.py | sox -r 8000 -b 8 -c 1 -t raw -e unsigned-integer – -d

(I’m not a sox expert, there’s probably a better way…).

Although the value of t in the loop will grow quite large, we feed t % 256 into the chr() function to keep it in range (of 8-bits). Some people have been experimenting with variations on the simple t formula, by performing bit operations on t – shifting, masking, etc. So for example, instead of t, try other formulae such as

  • (t*((15&t>>11)%12)&55-(t>>5|t>>12)|t*(t>>10)*32)-1
  • t*3&(t>>10)|t*12&(t>>10)|t*10&((t>>8)*55)&128
  • t*4&(t>>10)|t*4&(t*6>>8)&t|64
  • t*(t+(t>>9|t>>13))%40&120

This next program uses PyAudio to convert the numbers to an audio stream.

#!/usr/bin/python3
import pyaudio

#   Initialise PyAudio
PyAudio = pyaudio.PyAudio		# error msgs are usually safe to ignore
pa = PyAudio()
audio = pa.open(format=pa.get_format_from_width(1),channels=1,rate=8000,output=True)

t = 0
while True:
    audio.write(chr(t%256))                     # convert to 8-bit
    t += 1

You might get some warnings from PyAudio, like:

ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:947:(find_matching_chmap) Found no matching channel map
Cannot connect to server socket err = No such file or directory
Cannot connect to server request channel
jack server is not running or cannot be started

With any luck, you can safely ignore them.

Finally, let’s add some graphing, and a primitive capability to manage a list of bytebeat functions. It plots a graph of the beginning of the audio sequence. Here are some brief notes about it:

  1. Import math functions only if you want to try the sine wave
  2. Instead of plugging the sound function directly into the output statement, I store it in a list of strings, so that I can use them to label the graph
  3. The stop & start parameters are to make it easier to select functions to play, e.g. a range such as all (start=0, stop = len(funcs)) or the last one
  4. You need  a lot of audio samples for the piece to last long enough; plotting them all would make a very crowded graph
  5. Sound values are computed in 2 sections 1: graph & audio values, 2: audio values only
  6. We get values from the function using eval(f)%256, the modulo to keep values in 8-bit range
  7. Use Pyplot to set up the graph, and plot it. You might need to remove the block parameter…
  8. Compute the rest of the values
  9. Write them (as chr()) to the audio stream
  10. The final input() ensures the final graph doesn’t disappear when the program ends; you might be able to dispense with it.
#!/usr/bin/python3
#	ByteBeats.py

import matplotlib.pyplot as pl
import pyaudio
from math import sin, pi

#   Initialise PyAudio
PyAudio = pyaudio.PyAudio		# error msgs are usually safe to ignore
pa = PyAudio()
audio = pa.open(format=pa.get_format_from_width(1),channels=1,rate=8000,output=True)

funcs = [
	't*2',
	't*5&t>>7|t*3&t>>10|t>>4',
	'127.5*sin(pi*t/50)+127.5',
	't*(t+(t>>9|t>>13))%40&120',
	'(t&t%255)-(t*3&t>>13&t>>6)',
	't*((t>>3|t>>13)&t>>6|t>>8)',
	't*4&(t>>10)|t*4&(t*6>>8)&t|64',
	'(t>>6|t|t>>(16))*10+((t>>11)&7)',
	't*(((t>>12)|(t>>8))&(63&(t>>4)))',
	't*(4|t*t&4<<t)*(t&(t>>9|t>>13)+1)',
	't*3&(t>>10)|t*12&(t>>10)|t*10&((t>>8)*55)&128',
        '(((t*5&t>>6)^(t>>4|t>>2&t%255|t*3&t>>8)-10)/4)',
	'(t*((15&t>>11)%12)&55-(t>>5|t>>12)|t*(t>>10)*32)-1'
          ]
stop = len(funcs)                       # number of functions
start = stop - 1                        # only playing the last one
start = 0                               # playing all
pls = 10000                             # number of samples to plot
aus = 100000                            # number of audio samples
#   Note that in this loop, we calculate the samples in 2 parts -
#   first those we want to plot, then the rest - so the plot is shown sooner

for i in range(start,stop):             # for a range of functions:
    f = funcs[i]                            # select a function
    x = [x for x in range(aus)]             # compute x range
    y = [int(eval(f)%256) for t in x[:pls]]   # only what's needed for plot

    pl.figure(figsize=(15,10))                  # set the plot size
    pl.title(f)
    pl.plot(x[:pls],y)
    pl.show(block=False)

    y[pls:] = [int(eval(f)%256) for t in x[pls:]]   # now the rest...
    for v in y:                                 # for all y
        # replace with print(...,end='') if no pyaudio
        audio.write(chr(v))                     # convert to 8-bit

input("Press Enter")

Installation Notes

You’ll need to install matplotlib, pyaudio, and aplay (or sox). If you’re on Linux it should be fairly easy, just be sure to get the python3- versions. Synaptic is good for installing when you don’t know the exact name, e.g. for matplotlib you should see ‘python3-matplotlib’, for pyaudio it’s python3-pyaudio, and aplay is in the alsa-utils. Or you can use apt-get:

sudo apt-get install python3-matplotlib python3-pyaudio alsa-utils

Mac or Windows I don’t know. Synaptic is a GUI front-end to apt-get, so not I think available on OS-X. I tend to use synaptic first, if possible, or apt-get (command line) or pip (the PyPA recommended tool for installing Python packages) if the instructions say so. I don’t know if there’s a compelling reason to prefer any one of them.

You might want to check out these matplotlib installation notes.

PyAudio is available for Mac. Aplay is Linux only; here’s a thread about aplay equivalents on Mac which happens also to be about bytebeat music one-liners!

If you’re only interested in hearing the music and don’t care about the graphs you can of course cut out the pyplot bits. And you really only need one of aplay or equivalent/pyaudio for that.

If you’re into fractals check out my FractalArt.Gallery. There’s a musical Mandelbrot that works with pyaudio.

More information about bytebeats:

Discover bytebeat. A new genre of algorithmic music has been developed by demoscene coder viznut, a.k.a. PwP. Sharing genes with chiptunes and facilitated by bitwise operators, bytebeats are decidedly non-traditional music created by short, programmatic formulas. Read about computationally minimal art, the aesthetic that spawned bytebeat. Try your hand at composing (somehelpful examples). Read an explanation of how the formulas work. A few more pieces. (from Today’s formulaic music)

One Comment

  1. […] draw amazing pictures like the Mandelbrot Set and other fractals, or Harmonographs, or that make computer music. But while I was learning Python, and looking for examples on the web to study, I found that most […]

What do you think?

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: