Hi everyone,
Not sure if this website is still looked at, but I thought I would post my question anyway - in some of Sam Aaron’s live coding videos (e.g. Outrun) he uses the syntax:
sample ebit_bass, "120","Cm",1, lpf: 100,amp: 5
I was wondering what all the arguments were? I understand lpf and amp but I didn’t know you could have other arguments for samples.
I assume these are special samples, but could I take my own samples that could take args like this?
There’s nothing extraordinary about the samples that Sam was playing with - just a collection that he had on his computer.
The same functionality has been available in Sonic Pi since version 2.10 - so you can definitely do a similar thing with your own samples.
The syntax you see is explained in section 3.7 of the built in tutorial - (or see http://sonic-pi.net/tutorial#section-3-7).
Basically, it’s a way to select a collection of samples that you might have on your computer, and filter this, to play from a potentially narrowed down range of them, even playing a sample at a specific index in the resulting list.
Yes, well, sometimes it is rather quiet for a week or so and then again loads of postings. But you can be sure that what you write will be noticed! And, according to my experience, most questions will finally be answered even if it takes some time…