Skip to content

Note Ed.NOTE_EIGHTH, typo #9

Description

@PSLLSP

Note Ed.NOTE_EIGHTH has typo and is defined as:

    "Ed.NOTE_EIGHT":     250,

Documentation is correct, it lists Ed.NOTE_EIGHTH.
https://meetedison.com/content/EdPy-app-documentation-guide.pdf

It is problem when man uses on-line editor (https://www.edpyapp.com), the smart assistant suggests Ed.NOTE_EIGHTH but compiler later reports error that Ed.NOTE_EIGHTH has no value defined...

Demo:

#-------------Setup----------------

import Ed

Ed.EdisonVersion = Ed.V2

Ed.DistanceUnits = Ed.CM
Ed.Tempo = Ed.TEMPO_MEDIUM

#--------Your code below-----------

Ed.PlayTone(Ed.NOTE_C_7, Ed.NOTE_EIGHT)  # this can be compiled but value is wrong
while Ed.ReadMusicEnd() == Ed.MUSIC_NOT_FINISHED: pass
Ed.TimeWait(1, Ed.TIME_SECONDS)

Ed.PlayTone(Ed.NOTE_C_7, Ed.NOTE_EIGHTH)  # this is correct but compiler reports error
while Ed.ReadMusicEnd() == Ed.MUSIC_NOT_FINISHED: pass
Ed.TimeWait(1, Ed.TIME_SECONDS)

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions