From da65b18227115119cc6d4e7e38dfe4a3208d868a Mon Sep 17 00:00:00 2001 From: Hung Nguyen Viet Date: Mon, 19 Mar 2018 05:53:33 +0700 Subject: [PATCH] Fix notes --- pomop/pomop.py | 10 ++++++---- setup.py | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/pomop/pomop.py b/pomop/pomop.py index f73123b..036088a 100644 --- a/pomop/pomop.py +++ b/pomop/pomop.py @@ -62,10 +62,10 @@ def get_note(note, length=None): noise_output = wave.open(filename, 'wb') noise_output.setparams((2, 2, 44100, 0, 'NONE', 'not compressed')) - A6 = 261.63 # c4 - B6 = 293.66 # d4 - C7 = 329.63 # e4 - wv_data = b"".join([get_note(n) for n in [A6, B6, C7]]) + C4 = 261.63 + D4 = 293.66 + E4 = 329.63 + wv_data = b"".join([get_note(n) for n in [C4, D4, E4]]) noise_output.writeframes(wv_data) @@ -163,6 +163,7 @@ def cli(): start = datetime.datetime.now() notify_start(start, sound=sound_ntf, browser=browser_ntf) + print('Pomop started at {}'.format(start)) for minute in range(length, 0, -1): print("{}: remaining {} minutes".format(APP_NAME, minute)) @@ -172,6 +173,7 @@ def cli(): end = datetime.datetime.now() notify_end(start=start, end=end, sound=sound_ntf, browser=browser_ntf) + print('Pomop finished at {}'.format(end)) if __name__ == "__main__": diff --git a/setup.py b/setup.py index 6ef4791..eda1d27 100644 --- a/setup.py +++ b/setup.py @@ -10,7 +10,7 @@ setup( name='pomop', - version='0.1.3', + version='0.1.4', description='(Poor man) pomodoro technique for productivity', long_description=open('README.rst').read(), author='Viet Hung Nguyen',