Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't hardcode the initial syllable #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

scottrobertwhittaker
Copy link

Hi Brandon! I've really enjoyed Cycles Per Instruction and playing with this program.

When I first invoked ./MumbleyMumbler.pl ./Model as specified in the README, the script spewed errors because it hardcoded an initial value of $syl that wasn't in ./Model; this caused getRandomFollower to fail because $model{$k} would be null.

This patch modifies the script to pick a random initial syllable from the model so we're guaranteed to have a following syllable. Thanks for taking a look — I'm really excited to play with this in my own music projects.

Instead, pick a random syllable from the currently-loaded model.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant