I just updated YummyFillings.rb to v1.1.1, adding vibrato and tremolo effects. Here’s the link to github:
For those unfamiliar, YummyFillings is a bunch of functions designed to make life easier in sonic pi. It provides musical functions such as envelopes, lfos, trancegates, arpeggiation, strums, stutter effects, etc. It also provides some useful programming tools, including array/hash manipulation, logic tools, etc. And it allows complex arrangements, managing the threading for you.
Enjoy!
Hi, total newbie here. Your work looks fantastic and like it will do many of the tasks I was trying to do with longwinded code. I’m running Sonic Pi on Windows and copied the file path for eval_file as directed; however, I get the following error;
Runtime Error: [buffer 7, line 2] - Thread death!
Unable to run file - no file found with path: C:/Program Files/Sonic Pi/app/gui/qt/build/Release/YummyYummyFillings.rb (IOError)
Oh, that’s after I updated from 4.4 to the latest. It gave a similar error before but the path was shorter. The path to the file is;
“C:\Yummy\YummyFillings.rb”
I tried searching using a browser and a Chat AI app for why that type of erro is thrown but I haven’t been able to work it out. I also tried putting the file in the Sonic Pi directory and it threw the same error but with a longer path string.
I’m out of my depth with this one. Does anyone have any ideas please?
Can you post the entire contents of the buffer that’s throwing the error?
It may be a backslash vs. forward slash thing – ruby (the underlying language for sonic pi) doesn’t like backslashes for file paths, so you might try specifying your path as “C:/Yummy/YummyFillings.rb” instead of the backslash version.
Can you please copy the exact code you’re running, so I can try reproducing the problem?
It seems to be a problem with correctly identifying the location of the file in a way that ruby understands. It seems like it’s trying to interpret the filename as a regular expression instead of a file path.
So please just copy the entire contents of the sonic pi buffer (the edit window), and put it in a message here.
Sorry for taking a while. It’s really wierd, your suggestion of;
eval_file “C:/Yummy/YummyFillings.rb”
works when I type it out but not when I copy and paste. Guessing it’s something to do with formatting that I can’t see. Feel a bit stupid really that it took me so long to try that!
Thank you so much for all your help. You’ve obviously put a ton of work into this project!