Skip to content

change_note_duration(): NameError: global name 'valid_beat_duration' is not defined #122

@GoogleCodeExporter

Description

@GoogleCodeExporter
What steps will reproduce the problem?
1. calling change_note_duration()

    ...
    cur_beat = track.bars[-1].current_beat
    track.bars[-1].place_notes(note, value_left)
    track.bars[-1].change_note_duration(cur_beat, unit.get_value())
    ...

2. run script
3. track.bars[-1].change_note_duration(cur_beat, unit.get_value())
  File "/Library/Python/2.7/site-packages/mingus/containers/Bar.py", line 135, in change_note_duration
    if valid_beat_duration(to):
NameError: global name 'valid_beat_duration' is not defined


Please provide any additional information below.

line 135 of Bar.y is:
     if valid_beat_duration(to):
it chould be:
     if _meter.valid_beat_duration(to):

Original issue reported on code.google.com by [email protected] on 23 Apr 2013 at 9:57

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions