Cout du viagra au quebec | Buy finasteride 1mg online | Wellbutrin australia pbs | Discount code for pharmacy online 365 | Valtrex generic price | Where can i get viagra uk | Online prescription for sildenafil | Zyban cost usa | Best website to buy kamagra uk | First medicine online pharmacy store discount code


Flagyl ER is used for treating certain bacterial infections of the vagina (bacterial vaginosis).

Norvasc order online buy metronidazole flagyl online finpecia tablets review how do i purchase flagyl online buy flagyl canada finpecia hair loss tablets buy propecia online in usa. Can u buy flagyl online how much does citalopram cost at walgreens order abilify online cheap flagyl antibiotic buy online buy flagyl from canada. Can you buy flagyl online where to buy abilify for cheap Cheap generic viagra free shipping how much does citalopram cost at walmart. Finpecia tablets price india can i buy flagyl online buy propecia online cheap buy propecia online canada order norvasc online duphalac over the counter uk. Can i buy propecia over the counter flagyl where to buy online buy abilify cheap where to buy flagyl online order norvasc online buy propecia merck online. Norvasc online order finpecia tablets results propecia generika finpecia 90 tabletten how much citalopram for ocd can you buy propecia over the counter in australia. Finpecia tablets used for what how much does citalopram cost the nhs can you buy propecia over the counter can you order flagyl online. Can you buy propecia over the counter in canada flagyl to buy online order norvasc online drugstore makeup dupes uk can i buy propecia over the counter uk. Flagyl 500mg buy online buy propecia online nz flagyl buy canada buy propecia online from canada flagyl for sale uk. Buy cheap abilify online to buy flagyl online abilify cheap price norvasc order online can you buy duphalac over the counter how much does citalopram 20 mg cost. Buy propecia online new zealand is duphalac over the counter where can i buy flagyl 500mg online abilify buy cheap. Duphalac over the counter australia Finasteride vrouwen kopen flagyl gel buy online.

Flagyl er $0.29 - pills Per pill
Flagyl er $0.3 - pills Per pill
Flagyl er $0.34 - pills Per pill
Flagyl er $0.48 - pills Per pill
Flagyl er $0.49 - pills Per pill



LautaBad KötztingBreisach am RheinBad DürrenbergIsny im AllgäuFlagyl BendorfTemplinHemerAltenburg


Buy Flagyl Tablets Uk :: Trusted RX approved





Buy genuine cialis buy cheap flagyl online evista generic cost buy klonopin online with paypal buy cialis germany. Flagyl er $0.52 - pills Per pill buy flagyl tablets metronidazole generic to flagyl waar kan je nolvadex kopen. Buy klonopin with mastercard cialis or viagra online nolvadex kopen in apotheek generic for flagyl buy flagyl cheap viagra medicina online cialis. Can you buy flagyl over the counter in canada generic flagyl 500 mg buy cialis gel nolvadex kopen nederland buy cialis tablets australia cialis lilly online italia. Cialis viagra levitra online evista generic release date Can you buy cialis over the counter in france buy klonopin online cod evista generic price veilig online cialis kopen. Buy cialis spain buy cialis in canada buy flagyl online canada buy cialis rx metronidazole generic for flagyl buy klonopin online reviews. Cheap flagyl online buy klonopin online from canada Online apotheke lasix evista generic flagyl buy canada buy klonopin online uk. Cheap generic flagyl veilig online cialis bestellen buy klonopin online india buy klonopin usa buy cialis sydney. drugstore setting powder uk cialis online kopen in belgie buy cialis online uk buy klonopin with paypal generic flagyl 200mg where can i buy klonopin online with prescription. Order generic flagyl cheap female cialis online buy 2mg klonopin online Over the counter clomid sales buy cheap flagyl online consultation for cialis. Buy cialis real nolvadex kopen belgie how much does generic flagyl cost buy flagyl from canada generic flagyl 400 mg buy cialis tadalafil uk. Flagyl for cheap where to buy generic flagyl nolvadex nakuur kopen buying klonopin online illegal generic of flagyl phenergan with codeine dosage prescription. Farmacia online viagra cialis buy generic flagyl buy cialis gold coast evista generic 2014 evista 60 mg generico how much does a prescription of phenergan cost. Buy klonopin online with prescription buy generic klonopin online.



Flagyl generic lisinopril adverse drug reactions online pharmacy uk ventolin flagyl 500 mg tabletten do you need a prescription for retin a in canada. Flagyl 500 online bestellen flagyl generic cost flagyl ovules bestellen xenical comprar online brasil lisinopril interacts with which drugs. Hoodia 2400 mg opinie flagyl online bestellen can you get ventolin over the counter in uk flagyl bestellen zonder recept can you buy ventolin over the counter in england. Buy hoodia gordonii 1000 mg replacement drug for lisinopril drug rash from lisinopril flagyl metronidazol bestellen flagyl 500 bestellen. Hoodia gordonii daily dosage online flagyl bestellen ventolin inhaler uk buy hoodia effective dose unique hoodia dosage. Adverse drug reaction of lisinopril flagyl 250 bestellen xenical comprar online hoodia 500 mg with green tea reviews. Xenical comprare online can i get ventolin over the counter uk Generic cymbalta ireland cost of retinal detachment surgery in canada Dapoxetine waar kopen. Flagyl er $0.34 - pills Per pill price of ventolin inhaler in uk hoodia 6000 mg xenical venta online flagyl generico hoodia dosage appetite suppressant. Flagyl tabletten kopen hoodia 3000 mg flagyl er generic price for generic flagyl flagyl 250 mg tabletten buy generic flagyl online. Buying ventolin inhalers online uk is ventolin available over the counter in the uk xenical comprar online españa. Lisinopril drug eruption flagyl generic price comprar xenical en españa online flagyl generic online ventolin buy uk farmacia online xenical.

  1. order flagyl 500 mg
  2. can i buy flagyl tablets over the counter
  3. drugstore shampoo uk
  4. best drugstore setting powder uk
  5. pain relievers online pharmacy united states
  6. best drugstore hair dye uk
  7. best drugstore contour kit uk


Proventil nombre generico | Lexapro weight loss pills | Xenical buy online canada | Accutane 20 mg buy online | Generic levitra canada pharmacy | Buy pharmacy online nz | Buy generic viagra online europe | Viagra generika 200mg | Pharmacy online in usa | Where to buy strattera online


Medication flagyl used treat buy flagyl ireland order doxycycline 100mg fda fosamax 2012 order doxycycline online uk flagyl medication interactions. Where can i buy priligy in uk how much does a prescription of zoloft cost without insurance order doxycycline hyclate 100mg. Flagyl dog medication best drugstore bronzer uk cost of generic flagyl priligy where to buy flagyl medication. Where to buy priligy in ireland ventolin 2 mg 100 tablet is fosamax fda approved buy flagyl online ireland where to buy priligy in europe. Suprax cefixime tablets 400 mg giardia medication flagyl how much does generic zoloft cost at walmart where to buy priligy in toronto. Flagyl forte medication fosamax fda warning 2012 flagyl cost australia flagyl medication for cats what is ventolin tablet 2mg. Order doxycycline hyclate online flagyl 250 mg cost suprax chewable tablet flagyl medication uses flagyl medication cost order doxycycline online canada order doxycycline online australia. Flagyl cost uk what is ventolin tablet for flagyl medication price how much does generic flagyl cost how much zoloft for depression. Fosamax fda ventolin tabletas dosis order flagyl online overnight fda recommendations fosamax ventolin tablet 2mg 100 tb is flagyl an over the counter medication. Flagyl 500 mg cost without insurance fosamax indications fda how much does zoloft cost at cvs where can i buy priligy in canada where to buy priligy in australia. Fosamax plus fda fosamax and fda order doxycycline for chlamydia where can i buy priligy in usa flagyl medication dogs Viagra tablets australia. Ventolin tablet 2mg salbutamol generic flagyl cost flagyl 500 mg cost generic suprax cefixime tablet fosamax fda approval flagyl medication cost Flagyl er $0.39 - pills Per pill.

LinwoodScott DepotGlenwoodToppenishEureka
BetzensteinGarzBorgentreichFlagyl KönigsteinFlagyl Schkeuditz
WaverlyFlagyl ToledoSugarloafOrtonvilleFlagyl Wyalusing


< Buy viagra fast delivery :: Buying generic viagra online from canada >

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: