Coder Social home page Coder Social logo

avantol13 / mgen Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 25.1 MB

Generate randomized musical compositions based on probabilities.

License: GNU General Public License v3.0

Python 94.94% Batchfile 2.62% Shell 2.45%
music music-theory music-composition music-notation music-composer random generator generators

mgen's People

Contributors

avantol13 avatar dependabot-support avatar

Stargazers

 avatar

Watchers

 avatar  avatar

mgen's Issues

key is sometimes None

Choice of musical key will sometimes result in None, resulting in an error when trying to strip spaces from the key using .replace()

Check edge cases for key choice.

a minor key causes issue with bar.determine_progression from mingus


-------------------------- Music Generator Output -------------------------

Time Signature: (4, 4)
Key: a
Scale: ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'A']
Progression: ['I', 'V', 'vi', 'iii']
--------------------------------- Bar 0 ----------------------------------
Melody Timing: [[8], [4], [4], [16, 16, 16, 16], [16, 16]]
Chosen Notes: ['E', 'D', 'A', None, 'A', None, 'G', 'G', 'D']
TESTING STUFF...
[[0.0, ['E']], [0.125, ['D']], [0.375, ['A']], [0.6875, ['A']], [0.8125, ['G']], [0.875, ['G']], [0.9375, ['D']]]
Traceback (most recent call last):
File "C:\Users\TheGoobster\Documents\GitHub\music_generator\main.py", line 120, in
main()
File "C:\Users\TheGoobster\Documents\GitHub\music_generator\main.py", line 102, in main
melody_track = create.create_melody_track(num_bars, config['key'], time_signature)
File "C:\Users\TheGoobster\Documents\GitHub\music_generator\music_generator\create.py", line 61, in create_melody_track
print(bar_to_add.determine_progression(shorthand=True))
File "C:\Users\TheGoobster\Documents\GitHub\music_generator\mingus\containers\bar.py", line 197, in determine_progression
self.key.key, shorthand)])
File "C:\Users\TheGoobster\Documents\GitHub\music_generator\mingus\core\progressions.py", line 151, in determine
(interval_type, interval) = intervals.determine(key, name).split(' ')
File "C:\Users\TheGoobster\Documents\GitHub\music_generator\mingus\core\intervals.py", line 356, in determine
n1 = notes.fifths.index(note1[0])
ValueError: 'a' is not in list

Dependabot can't evaluate your Python dependency files

Dependabot can't evaluate your Python dependency files.

As a result, Dependabot couldn't check whether any of your dependencies are out-of-date.

The error Dependabot encountered was:

InstallationError("Invalid requirement: 'GNU GENERAL PUBLIC LICENSE'\n",)

You can mention @dependabot in the comments below to contact the Dependabot team.

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.