You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from ev3dev import ev3 as ev3dev
ev3dev.Sound.tone(100,100).wait()
# or
ev3dev.Sound.tone([(100,100)]).wait()
this should only play one tone, but plays two instead. The beep command that is generated is '/usr/bin/beep -n -f 100 -l 100' while '/usr/bin/beep -f 100 -l 100' works. The bug is that '-n' should only be used for the next tone. PR coming.
Activity
The '-n' arg in beep should not be used for the first tone.
The '-n' arg in beep should not be used for the first tone.
ddemidov commentedon Nov 7, 2015
Thanks for confirming this! I thought something was wrong with the sound.
Changing this line to
and initializing args in line 2353 should do the trick.
ddemidov commentedon Nov 7, 2015
Oops, you did that already.
ensonic commentedon Nov 7, 2015
Jep, just send a PR.