Git Product home page Git Product logo

musthe's Issues

How refactor project to a standard python package?

I was wondering about that because I wanna put on Arch Linux Repository and provide too a simple command line interface to do some cool stuff like:

> musthe scale c-major
C D E F G A B

How about that?

Exception: Could not parse the note: C#######################4

>>> from musthe.musthe import *
>>> scale(Note('F'), 'locrian')
Traceback (most recent call last):
  File "<input>", line 1, in <module>
    scale(Note('F'), 'locrian')
  File "[...]/musthe/musthe/musthe.py", line 26, in scale
    return [note] + [note+Interval(i) for i in scales[scale_name]]
  File "[...]/musthe/musthe/musthe.py", line 26, in <listcomp>
    return [note] + [note+Interval(i) for i in scales[scale_name]]
  File "[...]/musthe/musthe/musthe.py", line 118, in __add__
    return Note(new_note_tone+accidental+str(new_note_octave))
  File "[...]/musthe/musthe/musthe.py", line 57, in __init__
    raise Exception('Could not parse the note: '+note)
Exception: Could not parse the note: C#######################4

why is 12.

%12 because it wraps in B->C and starts over.

why is 12.

and

" e.g. the fifth of

E is: (E F G A) B."

what it's meaning?

thanks for your answer.

C# != Db

>>> Note('C#4') == Note('Db4') 
False

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.