Hopefully this is a good place for this, but in watching https://www.youtube.com/watch?v=4914y-jnd6I almost every step is raising questions I’m having a little trouble finding answers to.
funken_beat coming from (looks like basically all the samples)? Pre-loaded from another buffer?
do you use sonicpi to build samples or some other (or various other) means?
what’s the second integer arg to sample doing? (why doesn’t the “lang” help section even mention it, or further where should I be looking on github for the code level definitions on the main buffer DSL?)
where can I define my own snippet templates? (you mentioned this isn’t doc’d yet, so maybe I can just hold tight on that one, but looks awesome)
what device are we hearing when you trigger notes through
@samaaron if you’d like to use these as material for Friday’s live stream or answer here. Whatever works best for you. Love your work and hope to run into you in Helsinki airport again some time
I can at least answer this question. The samples he is using are from a sample library that he has imported into Sonic Pi. The first variable name (ie funken_beat) is the variable name that he has given to the path to this folder of samples. The second integer you are referring to is the number that sample is in terms of the order of samples in the folder. For example, funken_beat, 8 would mean the sample is coming from the funken_beat path folder and the sample being played is the 8th sample in that folder.
This is all documented in the built in Help tutorials under Sample Packs:
Hope that helps.
Technically it would be the 9th sample in the folder as the index is zero-based…
Ahhh! I read that but failed to remember it apparently Thanks!
Is there a place I should PR a doc update along these lines?
Hey @matschaffer, thanks for the questions! I hope I can shed some light on them:
funken_beat coming from” - these are both functions which resolve to strings representing paths to directories of samples. So instead of typing
sample "/foo/bar/baz" I can type
“do you use sonicpi to build samples” - not quite sure what you mean by ‘build samples’, but I buy and download sample packs from my favourite artists and also with specific themes and work with them in my performances. This is all done by hand (i.e. creating well-named nested directories of wav files).
“what’s the second integer arg to sample doing?” this is documented in detail in the lang section for
sample. I’m surprised you think it isn’t documented. Where were you looking?
“where can I define my own snippet templates” - you’re correct, this feature isn’t completed or documented yet. This might help you get started though: https://github.com/samaaron/sonic-pi/issues/587
"what device are we hearing when you trigger notes through
midi" - I’m using both a Moog Minitaur and Waldorf Streichfett which are triggered by calls to
midi and their audio is fed into my sound card and made audible with
Very happy to go into more detail on any of these things in Friday’s Patreon live interactive stream
“buy” is the answer. I was wondering if maybe you used sonic-pi to build interesting sounds, exported those and were using the results as samples to layer things together. But guess not in this case
I was looking at the screenshot in Questions from Sam’s Jun 27th practice session - maybe I’m too used to reading ruby stuff like (random example) https://www.rubydoc.info/gems/knife-solo/KnifeSolo/SshCommand#run_portable_mkdir_p-instance_method where an optional 2nd arg would show up at the top where the method signature is documented. Looks like the index stuff is quite a bit further down in that doc.
Not super likely I’ll make the live stream, but hope to one of these weeks and will definitely watch the recording. Thanks for doing those!
the problem with
sample is that it’s far from a regular Ruby method It’s actually very flexible and non-standard in terms of how it accepts and manages its arguments. If you have any ideas on how I might improve the docs, I’d love to know though…
Gotcha. Looks like searching for the docs helped me find it https://github.com/samaaron/sonic-pi/blob/b0db5c727900b1aa55423c4c76bcbc3946720d97/app/server/ruby/lib/sonicpi/lang/sound.rb#L2946 and I can see why a regular rubydoc wouldn’t quite cut it here
Will read through it a bit more carefully and PR if anything comes to mind. Thanks!
Wow and free too? Thanks @benjamin!
The “kit” feature is also pretty awesome.
I’ve added it to the list of Free Samples Libraries