Skip to content

Commit

Permalink
Fix notes
Browse files Browse the repository at this point in the history
  • Loading branch information
Hung Nguyen Viet committed Mar 18, 2018
1 parent c99cb9d commit da65b18
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 6 additions & 4 deletions pomop/pomop.py
Expand Up @@ -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)

Expand Down Expand Up @@ -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))
Expand All @@ -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__":
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -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',
Expand Down

0 comments on commit da65b18

Please sign in to comment.