mirror of
https://github.com/vsariola/sointu.git
synced 2025-05-28 03:10:24 -04:00
* Added Python code example. * Added pyinstaller build. * Clarified debugging steps in README.md. * Added linux implementation. * Cosmetics. * Updated README with correct steps.
17 lines
302 B
Python
17 lines
302 B
Python
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)
|