Alexandre B A Villares 🐍 · @villares
1013 followers · 2793 posts · Server ciberlandia.pt

I have created this discussion at the forum... To collect examples, If anyone else wants to post other experiments...

github.com/py5coding/py5genera

wink wink @kantel @TomLarrow @ericof @rzeta0

#py5 #python #pyaudio #creativecoding

Last updated 2 years ago

Alexandre B A Villares 🐍 · @villares
1011 followers · 2777 posts · Server ciberlandia.pt

Tomorrow or maybe during the week I should read this tutorial mixing and ... k3no.medium.com/integrating-py

#python #pyaudio #pysimplegui

Last updated 2 years ago

Alexandre B A Villares 🐍 · @villares
1010 followers · 2776 posts · Server ciberlandia.pt

As usual, I have no idea of what I'm doing 😂​ + microphone listening

#python #processing #py5 #pyaudio

Last updated 2 years ago

Holly A. Gultiano · @axoaxonic
79 followers · 160 posts · Server synapse.cafe

Tone generation with turns out to be relatively simple. I found this short code on a blog raw.githubusercontent.com/make

which can be tweaked fairly intuitively (er, for me, someone who has been playing music for over 20 years): change "samples" number for different length files, add more for loops for different sequences, use different functions for different waveforms.

Since the waveforms are generated by values in lists being packed into byte sequences, I imagine someone could use spike data (maybe transformed a bit to be in range [-128, 127]) instead of something that generates a sinewave or whatever.

My original idea was to have the spikes trigger a wav file to be played, to make a spiking drum machine, which seems possible with , , or a module called playsound, but I realized it would require stitching them together and also generating silence, so I went for the simpler method that's more like a synthesizer

#python #pygame #pyaudio

Last updated 2 years ago