# Knit function not working on Sonic Tau

**URL:** https://in-thread.sonic-pi.net/t/knit-function-not-working-on-sonic-tau/10026
**Category:** Support, Help & Resources
**Created:** [July 25, 2026, 2:36am UTC](https://in-thread.sonic-pi.net/t/knit-function-not-working-on-sonic-tau/10026 "2026-07-25T02:36:41Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![cazarim](https://avatars.discourse-cdn.com/v4/letter/c/ea666f/32.png) [@cazarim](https://in-thread.sonic-pi.net/u/cazarim)
#### Post date: [July 25, 2026, 2:36am UTC](https://in-thread.sonic-pi.net/t/knit-function-not-working-on-sonic-tau/10026/1 "2026-07-25T02:36:41Z")

</div>

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

---

<div class="post-metadata">

### Author: ![technoabu](https://dub1.discourse-cdn.com/flex017/user_avatar/in-thread.sonic-pi.net/technoabu/32/3101_2.png) [@technoabu](https://in-thread.sonic-pi.net/u/technoabu)
#### Post date: [July 25, 2026, 1:28pm UTC](https://in-thread.sonic-pi.net/t/knit-function-not-working-on-sonic-tau/10026/2 "2026-07-25T13:28:11Z")

</div>

> [@cazarim](#):
>
> live\_loop :rhythm do
> 
> sample knit(:bd\_haus, 3, :sn\_dolf, 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.

---

<div class="post-metadata">

### Author: ![cazarim](https://avatars.discourse-cdn.com/v4/letter/c/ea666f/32.png) [@cazarim](https://in-thread.sonic-pi.net/u/cazarim)
#### Post date: [July 25, 2026, 2:11pm UTC](https://in-thread.sonic-pi.net/t/knit-function-not-working-on-sonic-tau/10026/3 "2026-07-25T14:11:53Z")

</div>

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)
