Skip to content

gpenazzi/sona

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SONA

sona is a small code I wrote for fun to play noise generators in python. The idea is to have indefinite sound/noise generator which can be modified in real time using pyAudio as audio backend.

The generators can be played directly or they can through a threaded player. In this way we are able to change the attributes of the generator from the python console and modify the noise in real time.

Command line usage

For the available arguments:

$ sona --help

To generate a brown noise (default exponent 2.0);

$ sona colored_noise

Interactive usage

You can play a generator directly from console. For example, to play a pulse generator:

>>> import sona
>>> g = sona.PulseGenerator()  # The generator
>>> player = sona.Player(g)    # The player
>>> player.start()

Now the generator is playing. You can interact with it changing its attributes. For example:

>>> g.distance /= 2.0  # More frequent pulses

Stop the player:

>>> player.stop()

License

Sona is distributed under BSD license.

About

Small python sound(noise) generators, using pyaudio as backend

Resources

License

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages