# Warning - I reshuffled some wav files

**URL:** <https://forum.toplap.org/t/warning-i-reshuffled-some-wav-files/566>\
**Category:** TidalCycles\
**Created:** [10 June 2019 07:37 UTC](https://forum.toplap.org/t/warning-i-reshuffled-some-wav-files/566 "2019-06-10T07:37:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![yaxu](https://forum.toplap.org/user_avatar/forum.toplap.org/yaxu/32/3_2.png) [@yaxu](https://forum.toplap.org/u/yaxu)\
**Post date:** [10 June 2019 07:37 UTC](https://forum.toplap.org/t/warning-i-reshuffled-some-wav-files/566/1 "2019-06-10T07:37:27Z")

</div>

I _think_ this will only affect linux users, but there were some inconsistencies in how wav files were being sorted, so I’ve renamed some files to remove ambiguity. As a result, the following might map to different sounds:

```nohighlight
auto birds east gretsch h if jungbass mash2 mute peri popkick print speakspell speechless toys trump ul

```

More details:

> <https://github.com/musikinformatik/SuperDirt/issues/131>
>
> It seems that given a folder with files \`kicksnare.wav\` and \`kick.wav\`, linux ba…sed systems sort the former first, and others sort the latter first. Probably because other systems ignore the extension when sorting. This means \`d1 $ sound "gretsch:13"\` gives a kick on some systems, and a kick-snare on others.
> 
> I made a quick script for finding problem folders:
> \`\`\`bash
> \#!/bin/bash
> for d in \*/ ; do
> diff \<(ls $d|tr ' ' '\_'|xargs basename -s.wav -a|sort) \<(ls $d|tr ' ' '\_'|sort|xargs basename -s.wav -a) \>/dev/null
> if \[$? -ne 0 \]; then
> echo "$d has a problem.."
> fi
> done
> \`\`\`
> There's quite a few:
> \`\`\`
> auto/ birds/ east/ gretsch/ h/ if/ jungbass/ mash2/ mute/ peri/ popkick/ print/ speakspell/ speechless/ toys/ trump/ ul/
> \`\`\`
> 
> Not sure of the best approach to a fix - by renaming the files to make sorting unambiguous, by fixing superdirt to sort one way or the other, or maybe this is a bug in supercollider.

---

<div class="post-metadata">

**Author:** ![khoparzi](https://forum.toplap.org/letter_avatar_proxy/v4/letter/k/c37758/32.png) [@khoparzi](https://forum.toplap.org/u/khoparzi)\
**Post date:** [10 June 2019 23:13 UTC](https://forum.toplap.org/t/warning-i-reshuffled-some-wav-files/566/2 "2019-06-10T23:13:37Z")

</div>

I’ve been numbering my files for all my custom sample folders exactly like this for a while. It also lets me quickly find specific sounds in the studio without having to sit and count the output from `ls -l`.

BTW does this mean we should all update our SuperDirt?

---

<div class="post-metadata">

**Author:** ![yaxu](https://forum.toplap.org/user_avatar/forum.toplap.org/yaxu/32/3_2.png) [@yaxu](https://forum.toplap.org/u/yaxu)\
**Post date:** [13 June 2019 14:50 UTC](https://forum.toplap.org/t/warning-i-reshuffled-some-wav-files/566/3 "2019-06-13T14:50:00Z")

</div>

@khoparzi It shouldn’t make a difference if you’re using mac os, I don’t know about Windows. Probably worth updating dirt-samples if you’re on linux.
