# How to log current slice

**URL:** <https://uzu.lurk.org/t/how-to-log-current-slice/3246>\
**Category:** TidalCycles\
**Tags:** questions\
**Created:** [June 14, 2021, 11:57am UTC](https://uzu.lurk.org/t/how-to-log-current-slice/3246 "2021-06-14T11:57:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![delaudio](https://uzu.lurk.org/user_avatar/uzu.lurk.org/delaudio/32/1583_2.png) [@delaudio](https://uzu.lurk.org/u/delaudio)\
**Post date:** [June 14, 2021, 11:57am UTC](https://uzu.lurk.org/t/how-to-log-current-slice/3246/1 "2021-06-14T11:57:10Z")

</div>

Hi!  
I'm thinking about "djing" with tidal.  
With a pattern like this one:

```haskell
do
  let l = 16
  let st = "t!16"
  let sl = "0..15"
  d1
    $ loopAt 4
    $ struct st
    $ slice l sl
    $ sound "party-music:0" # legato 1

```

I'd like to print to the console the slice which is currently playing, so I understand when it's time to evaluate a new block of code.  
Something like `d1: 1/16`, `d1: 2/16` would be enough.  
Do you know how to achieve it?  
I've tried with every and print but it doesn't work.  
Thank you!
