Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5077

Python • Re: Using numpy to create a sine wave with complete cycles

$
0
0
Thanks.

Code:

duration = round(frequency * duration * 2, 0) / frequency / 2
It seems to smooth out the sound quite bit.

Statistics: Posted by tpyo kingg — Sun Feb 11, 2024 10:16 am



Viewing all articles
Browse latest Browse all 5077

Trending Articles