Samples that loop in 'preview' (like SCWF)

I made a discovery that might help people that produce Single Cycle sample packs. What I found was

  • Factory Single Cycle Samples loop nicely when previewing on DT2
  • Third party Single Cycle Samples DO NOT loop when previewing (annoying)
  • some of my drum samples loop when previewing (really annoying)

I’ve figured out what triggers the loops, to the point where I have a utility the lets me add the looping feature to a file or remove it when needed.

The utility is by no means ready for prime-time yet, but I’m happy to share a more detailed explanation of manipulating the ‘smpl’ header on the WAV file to get the results, assuming there’s anyone who produces sample packs with single cycle waveforms who is interested. (Perhaps @mpiecora @Claid ? )

6 Likes

That actually sounds really interesting. I was making a bunch of SCWs yesterday so very much in the right headspace. :slight_smile:

Bookmarked

2 Likes

The essentials to make this work are

  • the WAV file header must have a ‘smpl’ chunk which is a standard RIFF/WAV metadata chunk defined in the MIDI Manufacturers Association spec. It describes how a sampler should play back the file.
  • the num_sample_loops in the ‘smpl’ chunk must be 1.
  • within the single loop record, the ‘type’ must be 0 indicating forward

If your code does that, you should get the sample looping in when previewing a sample.

EDIT: This was tested only on a DT2 at firmware 1.15A. If you then use the wav file on some other hardware or software, it may or may not result in looping, but, so long as you stick to the exact spec for ‘smpl’ chunk, it should probably not break anything.

4 Likes

you may consider adding a sample for download as reference with loop on and loop off

@Claid can I use one of your free samples for illustration as suggested?