Code Monkey home page Code Monkey logo

20210303-polyphony's People

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

20210303-polyphony's Issues

`"Thread death! undefined method 'note' for Polyphony::Settings:Module"`

I'm interested in experimenting with this polyphony project, but as the title describes: I get the following error when attempting to load and run the polyphony script according to the readme:

`"Thread death!  undefined method `note' for Polyphony::Settings:Module"`

/Users/ethan/repos/20210303-polyphony/settings.rb:20:in `<module:Settings>'
/Users/ethan/repos/20210303-polyphony/settings.rb:5:in `<module:Polyphony>'
/Users/ethan/repos/20210303-polyphony/settings.rb:1:in `<top (required)>'
/Users/ethan/repos/20210303-polyphony/polyphony.rb:21:in `load'
/Users/ethan/repos/20210303-polyphony/polyphony.rb:21:in `block in <top (required)>'
/Users/ethan/repos/20210303-polyphony/polyphony.rb:20:in `each'
/Users/ethan/repos/20210303-polyphony/polyphony.rb:20:in `<top (required)>'

This is with v0.4.1, using a Sonic Pi dev build based on v4.0-beta-4, Ruby 2.7.2.

Any ideas about how to fix it?

Use modules and require_relative

Hi! Awesome work. Looking forward to learn a lot from you :)

As a friendly suggestion I think you could use require_relative, modules and include instead of eval_file in your project.

Check out Petal extension for Sonic Pi (https://github.com/siaflab/petal). Petal has a really nice project structure and i personally learned a lot from it.

I used similar project structure in my project Ziffers (https://github.com/amiika/ziffers), but its more hacky and not very rubular.

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.