YummyFillings v 1.1.1

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!

6 Likes

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?

Thank you.

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.

1 Like

Harry… you are soooo gooood at this. Love your work :slight_smile: and thanks you for sharing.

Glad you like it! Just trying to give back to a great community for a great platform.

1 Like

Thanks for helping. I tried the backslash switch and got the following error;

Syntax Error: [buffer 7, line 2]

unknown regexp options - YyFllg

[Line 2]: eval_file “C:/Yummy/YummyFillings.rb”

Full error read out for the original attempt;

Runtime Error: [buffer 7, line 2] - Thread death!

Unable to run file - no file found with path: C:/WINDOWS/System32/YummyYummyFillings.rb (IOError)

C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/lang/core.rb:527:in `eval_file’

workspace_seven:2:in `block (2 levels) in __spider_eval’

C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/runtime.rb:957:in `eval’

C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/runtime.rb:957:in `block (2 levels) in __spider_eval’

C:/Program Files/Sonic Pi/app/server/ruby/lib/sonicpi/runtime.rb:1202:in `block (2 levels) in __in_thread’

Thanks again. Really appreciate your work and support!

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.

Oh sorry. It’s literally just the first example you included. Thanks.

So did you get it working?

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!

Wow, that is weird!
I’m glad you found a solution.
I uploaded some bug fixes yesterday, please download the latest & greatest.
Have fun!

1 Like