Skip to content

sound.tone is broken #82

Closed
Closed

Description

@ensonic
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

  1. added 2 commits that reference this issue on Nov 7, 2015
    7b91bb4
    bb64b63
  2. ddemidov commented on Nov 7, 2015

    @ddemidov
    Member

    Thanks for confirming this! I thought something was wrong with the sound.
    Changing this line to

                return Sound.beep(' -n '.join([beep_args(*t) for t in tone_sequence]))

    and initializing args in line 2353 should do the trick.

  3. ddemidov commented on Nov 7, 2015

    @ddemidov
    Member

    Oops, you did that already.

  4. ensonic commented on Nov 7, 2015

    @ensonic
    ContributorAuthor

    Jep, just send a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions