# Function of the week nominations

**URL:** <https://uzu.lurk.org/t/function-of-the-week-nominations/1090>\
**Category:** Function of the Week\
**Created:** [21 May 2020 11:47 UTC](https://uzu.lurk.org/t/function-of-the-week-nominations/1090 "2020-05-21T11:47:12Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![yaxu](https://uzu.lurk.org/user_avatar/uzu.lurk.org/yaxu/32/2_2.png) [@yaxu](https://uzu.lurk.org/u/yaxu)\
**Post date:** [21 May 2020 11:47 UTC](https://uzu.lurk.org/t/function-of-the-week-nominations/1090/1 "2020-05-21T11:47:13Z")

</div>

I thought it would be good to have a 'function of the week', where we pick a function to look at in detail, and how it fits with other functions. If you'd like to understand a Tidal function more, or share your experiments with it, then please add your nomination below!

---

<div class="post-metadata">

**Author:** ![bohrbug](https://uzu.lurk.org/user_avatar/uzu.lurk.org/bohrbug/32/1609_2.png) [@bohrbug](https://uzu.lurk.org/u/bohrbug)\
**Post date:** [21 May 2020 13:23 UTC](https://uzu.lurk.org/t/function-of-the-week-nominations/1090/2 "2020-05-21T13:23:03Z")

</div>

FOTW#2 - swingBy

---

<div class="post-metadata">

**Author:** ![geikha](https://uzu.lurk.org/user_avatar/uzu.lurk.org/geikha/32/2701_2.png) [@geikha](https://uzu.lurk.org/u/geikha)\
**Post date:** [21 May 2020 13:39 UTC](https://uzu.lurk.org/t/function-of-the-week-nominations/1090/3 "2020-05-21T13:39:02Z")

</div>

`spread` or `weave` (and variations) would be nice

---

<div class="post-metadata">

**Author:** ![nuntxaku](https://uzu.lurk.org/user_avatar/uzu.lurk.org/nuntxaku/32/1205_2.png) [@nuntxaku](https://uzu.lurk.org/u/nuntxaku)\
**Post date:** [21 May 2020 18:30 UTC](https://uzu.lurk.org/t/function-of-the-week-nominations/1090/4 "2020-05-21T18:30:58Z")

</div>

Snowball

---

<div class="post-metadata">

**Author:** ![ben](https://uzu.lurk.org/user_avatar/uzu.lurk.org/ben/32/362_2.png) [@ben](https://uzu.lurk.org/u/ben)\
**Post date:** [21 May 2020 19:04 UTC](https://uzu.lurk.org/t/function-of-the-week-nominations/1090/5 "2020-05-21T19:04:26Z")

</div>

`ur` -- though I do see that it's a topic in the coming weeks.

---

<div class="post-metadata">

**Author:** ![lannzach](https://uzu.lurk.org/user_avatar/uzu.lurk.org/lannzach/32/3519_2.png) [@lannzach](https://uzu.lurk.org/u/lannzach)\
**Post date:** [21 May 2020 19:04 UTC](https://uzu.lurk.org/t/function-of-the-week-nominations/1090/6 "2020-05-21T19:04:35Z")

</div>

would also love to understand `snowball` better

---

<div class="post-metadata">

**Author:** ![abalone1969](https://uzu.lurk.org/user_avatar/uzu.lurk.org/abalone1969/32/209_2.png) [@abalone1969](https://uzu.lurk.org/u/abalone1969)\
**Post date:** [21 May 2020 19:15 UTC](https://uzu.lurk.org/t/function-of-the-week-nominations/1090/7 "2020-05-21T19:15:53Z")

</div>

:t zoom  
cool, this thread brought me to the list [https://tidalcycles.org/index.php/All\_the\_functions](https://tidalcycles.org/index.php/All_the_functions)  
an example from there

```haskell
d1 $ every 4 (zoom (0.25, 0.75)) $ sound "bd*2 hh*3 [sn bd]*2 drum"

```

and a flip by me 🙂

```haskell
d1 $ every 7 (zoom (0.15, 0.95)) $ loopAt 2 $ chop 3 $ sound "break:18"

```

could even add something like this...

```haskell
d2 $ s "808cy:3*4"
   # gain (range 0.6 0.8 rand)

```

---

<div class="post-metadata">

**Author:** ![mattia.paterna](https://uzu.lurk.org/user_avatar/uzu.lurk.org/mattia.paterna/32/112_2.png) [@mattia.paterna](https://uzu.lurk.org/u/mattia.paterna)\
**Post date:** [21 May 2020 22:54 UTC](https://uzu.lurk.org/t/function-of-the-week-nominations/1090/8 "2020-05-21T22:54:33Z")

</div>

`wchoose [("lindenmayer", 0.3), ("runMarkov", 42)]`

(I think I stated the preference quite clearly.)

---

<div class="post-metadata">

**Author:** ![gnozo](https://uzu.lurk.org/user_avatar/uzu.lurk.org/gnozo/32/100_2.png) [@gnozo](https://uzu.lurk.org/u/gnozo)\
**Post date:** [29 May 2020 00:44 UTC](https://uzu.lurk.org/t/function-of-the-week-nominations/1090/9 "2020-05-29T00:44:15Z")

</div>

i also vote for `snowball` !

---

<div class="post-metadata">

**Author:** ![gablezman](https://uzu.lurk.org/user_avatar/uzu.lurk.org/gablezman/32/336_2.png) [@gablezman](https://uzu.lurk.org/u/gablezman)\
**Post date:** [4 June 2020 14:45 UTC](https://uzu.lurk.org/t/function-of-the-week-nominations/1090/10 "2020-06-04T14:45:32Z")

</div>

Mask 👹

---

<div class="post-metadata">

**Author:** ![pyrrhic](https://uzu.lurk.org/user_avatar/uzu.lurk.org/pyrrhic/32/1563_2.png) [@pyrrhic](https://uzu.lurk.org/u/pyrrhic)\
**Post date:** [21 December 2020 23:31 UTC](https://uzu.lurk.org/t/function-of-the-week-nominations/1090/11 "2020-12-21T23:31:01Z")

</div>

Bring back FOTW pls!!

---

<div class="post-metadata">

**Author:** ![yaxu](https://uzu.lurk.org/user_avatar/uzu.lurk.org/yaxu/32/2_2.png) [@yaxu](https://uzu.lurk.org/u/yaxu)\
**Post date:** [22 December 2020 18:30 UTC](https://uzu.lurk.org/t/function-of-the-week-nominations/1090/12 "2020-12-22T18:30:35Z")

</div>

Ok will have a think! Any new nominations?

---

<div class="post-metadata">

**Author:** ![gamar3is](https://uzu.lurk.org/user_avatar/uzu.lurk.org/gamar3is/32/3020_2.png) [@gamar3is](https://uzu.lurk.org/u/gamar3is)\
**Post date:** [22 December 2020 20:14 UTC](https://uzu.lurk.org/t/function-of-the-week-nominations/1090/13 "2020-12-22T20:14:56Z")

</div>

How about `while`? There was some talk about it recently, and it seems versatile enough for a closer look

---

<div class="post-metadata">

**Author:** ![pyrrhic](https://uzu.lurk.org/user_avatar/uzu.lurk.org/pyrrhic/32/1563_2.png) [@pyrrhic](https://uzu.lurk.org/u/pyrrhic)\
**Post date:** [22 December 2020 23:30 UTC](https://uzu.lurk.org/t/function-of-the-week-nominations/1090/14 "2020-12-22T23:30:10Z")

</div>

Possibilities of `when` do peak my interest.

---

<div class="post-metadata">

**Author:** ![crashingbooth](https://uzu.lurk.org/user_avatar/uzu.lurk.org/crashingbooth/32/1619_2.png) [@crashingbooth](https://uzu.lurk.org/u/crashingbooth)\
**Post date:** [23 December 2020 11:45 UTC](https://uzu.lurk.org/t/function-of-the-week-nominations/1090/15 "2020-12-23T11:45:40Z")

</div>

both `inside` and `outside` are not obvious, but are so powerful

---

<div class="post-metadata">

**Author:** ![yaxu](https://uzu.lurk.org/user_avatar/uzu.lurk.org/yaxu/32/2_2.png) [@yaxu](https://uzu.lurk.org/u/yaxu)\
**Post date:** [23 December 2020 11:52 UTC](https://uzu.lurk.org/t/function-of-the-week-nominations/1090/16 "2020-12-23T11:52:24Z")

</div>

Did we not cover `while` in the course around binary patterns? If not that's a definite. `inside`/`outside` also excellent suggestions. I might flip a coin. It might have to be after the 25th now but will be before the new year! We should also do a general q+a session  
Oh and I can't remember what `when` does but will look into that too!

---

<div class="post-metadata">

**Author:** ![pyrrhic](https://uzu.lurk.org/user_avatar/uzu.lurk.org/pyrrhic/32/1563_2.png) [@pyrrhic](https://uzu.lurk.org/u/pyrrhic)\
**Post date:** [23 December 2020 18:17 UTC](https://uzu.lurk.org/t/function-of-the-week-nominations/1090/17 "2020-12-23T18:17:51Z")

</div>

`When` offers a conditional possibilities:

Only **when** the given test function returns `True` the given pattern transformation is applied. The test function will be called with the current cycle as a number.

`d1 $ when ((elem '4').show) (striate 4) $ sound "hh hc"`

It would be interesting to learn what conditions could be inserted instead of `((elem '4').show)`
