feat(examples): add example playing sointu tracks from Python (#108)

* Added Python code example.
* Added pyinstaller build.
* Clarified debugging steps in README.md.
* Added linux implementation.
* Cosmetics.
* Updated README with correct steps.
This commit is contained in:
Alexander Kraus
2023-10-11 08:37:00 +02:00
committed by GitHub
parent f5eeabe5f3
commit 94589eb2eb
9 changed files with 619 additions and 0 deletions

View File

@ -0,0 +1,16 @@
from sointu import (
play_song,
playback_position,
playback_finished,
sample_rate,
track_length,
)
from sys import exit
if __name__ == '__main__':
play_song()
while not playback_finished():
print("Playback time:", playback_position() / sample_rate())
exit(0)