Hey, I’ve looked around a bit whether my questions was asked before, but I couldn’t see it … so …
I’ve written some functions of my own which I’d like to use in multiple projects. So, I save those functions to a dedicated file
MyFuncs.rb. Now I’m trying to include or load that fie.
Sounds easy, but how to do that?
load_buffer /path/to/MyFuncs.rb-> this will completely replace the current buffer - not what I want.
- using Ruby’s native
require-> this will lead to error "undefined method
define". I guess the included file does not know about the SonicPi system and its functions.
- In one project, it says "GUI Error: buffer full … use
load_file", but also there’s no such function
load_file. So how can I break things up properly?