SFXR clone using Pygame and Cython
Project description
pyfxr
Sound effects generation for Python, compatible with Pygame and Pyglet.
Pygame Usage
# Set mixer to 44kHz mono
pygame.mixer.pre_init(44100, channels=1)
# Generate a sound
tone = pygame.mixer.Sound(
buffer=pyfxr.pluck(duration=1.0, pitch='A4')
)
# Play it
tone.play()
Pyglet Usage
# Generate a sound
explosion = pyglet.media.StaticSource(pyfxr.explosion())
# Play it
explosion.play()
GUI
A Pygame GUI is in development, to explore the feature set and create music!
This can be run with python main.py
.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyfxr-0.1.0.tar.gz
(86.3 kB
view hashes)
Built Distributions
pyfxr-0.1.0-cp38-cp38-win32.whl
(49.5 kB
view hashes)
pyfxr-0.1.0-cp37-cp37m-win32.whl
(48.5 kB
view hashes)
pyfxr-0.1.0-cp36-cp36m-win32.whl
(48.4 kB
view hashes)
pyfxr-0.1.0-cp35-cp35m-win32.whl
(47.9 kB
view hashes)
Close
Hashes for pyfxr-0.1.0-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 90d8a6e4cbf8183babb346d6a04e4b3a6954b02a2c11376bee532d71132b2f33 |
|
MD5 | a6af82c4670aa90b9b84f001898c749d |
|
BLAKE2b-256 | 8432baa6ea2771162f7f7d82916b86c8e5ef77ee94026ad9b85a50f7dd80e23b |
Close
Hashes for pyfxr-0.1.0-cp38-cp38-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2c3e7802ee54fe0a2303cb342322e90a57301242e7976eea201eb549f104d0e7 |
|
MD5 | 3bf841f0b7871c6e3e02b09bfa47de49 |
|
BLAKE2b-256 | 1d5b870bcab18f703874b2e520cd8534072fe289f03714252995a185a4fa1bf2 |
Close
Hashes for pyfxr-0.1.0-cp38-cp38-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 98800c12c6ba325839cfff4825bc387febeecd9717132092ec4ca5dd3b6bbf79 |
|
MD5 | 018242a7c55691508628e1762ed2dba2 |
|
BLAKE2b-256 | 9347e9960edfcdd1bf9aa90622ef2ab845f0232fda071d308c264ce42d9cacfd |
Close
Hashes for pyfxr-0.1.0-cp38-cp38-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 172b6c3b6719111d9ed8ad7b404688fd252eadb62481cf83a62c536cbb74a383 |
|
MD5 | 682d78ca31bdba1de8688102f5af0835 |
|
BLAKE2b-256 | 99be1f3d22aefe6c4b5df09af81889231bf8dda2729f21b834b8fc6068f7f343 |
Close
Hashes for pyfxr-0.1.0-cp37-cp37m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 298235e461de976e4310ee289c51637dd6d72d33cf885d82d46525fb0d862c51 |
|
MD5 | 7f05c6579432a195c0ac5a75cf488d29 |
|
BLAKE2b-256 | a433e33673944cd956d7e310c66b2319fab2211404917008173653072ca2531a |
Close
Hashes for pyfxr-0.1.0-cp37-cp37m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | afc432ff6435980227006ad508a091dc3836a73087f57bf6849ff75ea35d3a48 |
|
MD5 | 8e3f27ae6e85de995a0078651aeca690 |
|
BLAKE2b-256 | 632b0b44ea09053b137fe3b35a73824ad9eebb583217970652a85b3f9181352a |
Close
Hashes for pyfxr-0.1.0-cp37-cp37m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9e862ecd7104d3b1df5653561e02cc2d3229bbabf92f286bedf282795559a60 |
|
MD5 | 4c8f4daeeb996bad3ad1e75e87de0e5e |
|
BLAKE2b-256 | 295bcc3a363b41c47518a11da3868b91a142d98c0b433054a54dba8be8b8ff8c |
Close
Hashes for pyfxr-0.1.0-cp37-cp37m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29ffad1558bddfb4bb0643eb2efc7d0e9a7e9e6a8d8f3b1e45b216f77445bd2d |
|
MD5 | 7be535e38a9740cb987e10f0d7acb218 |
|
BLAKE2b-256 | e2e73b54fb326c17adf19877235f407ab971b04b930d139fd08fbf71fe358ebb |
Close
Hashes for pyfxr-0.1.0-cp37-cp37m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 835f2a1afbbcc557c0510a629be0fcbea904455510a6ef60ccd06b432f25436a |
|
MD5 | dc3c523a02a49ae03f9bd9aa4172c467 |
|
BLAKE2b-256 | 2e8cafd25953d1e3e1e825f0ca11e5a2f43db41da669fc1224c6d2193fc031a3 |
Close
Hashes for pyfxr-0.1.0-cp36-cp36m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a05efb923ff9b94e04354ac79bb297f55294908d938ba01f6d087e91b76616bd |
|
MD5 | de798b4ac3653d53899b7263ae2f64e6 |
|
BLAKE2b-256 | 778e76e7f97bd77be061618bac2901c28e728dde07dfda6beb657b7f2bd576e6 |
Close
Hashes for pyfxr-0.1.0-cp36-cp36m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e153f1b75322d5b5141778d6d9832142e27e3bc9983068f28523a20a4f5d92eb |
|
MD5 | dfcb751daaab72fee4f6bcc7ff4e3be8 |
|
BLAKE2b-256 | 8223600721f2495b956c71f20a09971f6a9848f17ccf92766ccebaee93c71373 |
Close
Hashes for pyfxr-0.1.0-cp36-cp36m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04fae3b19a56111b642008634cfa27d799567b4ac86df77dd0e6d2d776a6c788 |
|
MD5 | 3538f36331cc2b376382dac5df49656a |
|
BLAKE2b-256 | 2c1e3d45b97085c1c3fe92a39a2674a794f5a23397f5ec0e1ff9be085d25276f |
Close
Hashes for pyfxr-0.1.0-cp36-cp36m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b1e862fa08fcb9c6cf3875873656f85805534e849d075c861e4b344dc701c0c |
|
MD5 | 09a97d117bcea6fd55c4031d11a7f067 |
|
BLAKE2b-256 | 6658ef6a38e1bfe1824bb9197d84d2b7691676ee0eccd2db0ce7d71f34fc818a |
Close
Hashes for pyfxr-0.1.0-cp36-cp36m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ee6476547ff8ecb5ebc49ade53e9da963f0b1771c8ef415be6b713e94f2a0e45 |
|
MD5 | 039fe2fa60125af6654382f36c931b7c |
|
BLAKE2b-256 | 3bcd01638285d6987d7e088897f9fceb1ff068e04ddba413483a483cb73e397f |
Close
Hashes for pyfxr-0.1.0-cp35-cp35m-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd304f4be2e79e8db898e2f8654ac708effd05d1dacdeeb1b70ca0e006bac518 |
|
MD5 | 64ee4af89dcc64d0beca5d5373ad6e5a |
|
BLAKE2b-256 | 393f9659ffe19147ac9ddf9fd3db644fd80af1b1c3db0bf5b41ea09448ca13c1 |
Close
Hashes for pyfxr-0.1.0-cp35-cp35m-win32.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29a6fc4f83aa4be8ee8f93272a409473a173bc348078a35ff179d7006b2ed764 |
|
MD5 | 6abd05d1741467615189816c5ea296ed |
|
BLAKE2b-256 | b835eceb3fb8cb0d1b2c4861ed117eddada5a1b6f78eb407c8a9504546595b66 |
Close
Hashes for pyfxr-0.1.0-cp35-cp35m-manylinux1_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 357664f8b6b7517cc1bf445f239a4de304f9146bd955ccec8e43f2925c051d0a |
|
MD5 | b2db9a34c708207b6d962f59997f15df |
|
BLAKE2b-256 | 3fc5451a9d09680305662f3a506f7df9a2f3aeef370de19d862c00c46996eaf3 |
Close
Hashes for pyfxr-0.1.0-cp35-cp35m-manylinux1_i686.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 012a78cd94d528e5ad730d894c709562efcfa1cd0dc5eea88d9aa6b95d8104b4 |
|
MD5 | f87731fd8e321ea8e45c828326b17438 |
|
BLAKE2b-256 | 9735e6a4c14cb0598a82fe44fa66e5d8e0d2e9706645dbd02e84d52729dbcb3a |
Close
Hashes for pyfxr-0.1.0-cp35-cp35m-macosx_10_9_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 40dee63fdd667deb3db8a6b3d5db29fc87f7145f58494b04e13442ab0d2eda98 |
|
MD5 | 88dd2de2692ba2380086035fc2888d23 |
|
BLAKE2b-256 | 93bc5d5a5571672a04b35102836abd288c18b9d2fa45977105ea57a943d028fa |