I tested the code below (which is presented in the documentation), but it does not run on the editor:
live_loop :rhythm do
sample knit(:bd_haus, 3, :sn_dolf, 1).tick
sleep 0.25
end
There’s an error message:
unknown sample :
I tried to edit the code but the same error kept appearing:
use_bpm 123
live_loop :rhythm do
sample knit(:ambi_piano, 3, :elec_beep, 1).tick
sleep 0.25
end
knit(:ambi_piano, 3, :elec_beep, 1) in fact is equivalent to de following ring (ring :bd_haus, :bd_haus, :bd_haus, :sn_dolf).
Verify that the samples :bd_haus and :sn_dolf exists on your system (you can see the full list by typing sample followed by a space). If they don’t exist, you can replace it with any of the ones that appear in your installation.
Actually I used Sonic Tau (online, on Chrome). All samples work when I use structures like
sample (ring :bd_haus, :ambi_piano).tick
Even if ring( ring :sample1, :sample1, :sample2, :sample2).tick is equivalent, it is not very handy and should be working anyway. As I told above, it is a bug on Sonic Tau cuz the system recognize the samples but does not the folowwing structure:
sample (knit :samplename, number)