Log In  

As per title. I've made a piece of music that uses all 64 patterns, but when using the export wav option, only the first 54 patterns are dumped to wav.

P#83126 2020-10-19 17:04

Is it exporting exactly just over 273 seconds? I've noticed that looping tracks cut off at that length - I'm guessing the .wav export stops at 32768 music ticks, each of which is 1/120 seconds.

You might have to export it in chunks and stitch them together in Audacity or something like that.

P#83131 2020-10-19 20:21

Exact file length is 4:31.952 according to WavePad.

P#83137 2020-10-19 21:14

Oh, huh - I thought 4:33 sounded familiar, but I just checked and mine are 4:31.952 as well.

...oh, I'd forgotten about this! I was looking at the .wav exports in Audacity a while ago and tried to measure how long a PICO-8 tick was and came up with 183 samples at 22050 Hz, which means each music tick takes 183 * 1/22050 seconds.

32768 ticks times 183/22050 seconds is just over 271.9521 seconds - my estimate was off by a second because, at least in the export, a music tick is not equal to exactly 1/120th of a second.

I was wondering how it'd work with a full track instead of a looping track, but it looks like either way, it caps at 32768 music ticks, or 4:31.952.

P#83149 2020-10-20 01:24

Okay, did a test - in version 0.2.1b on my Windows computer.

[sfx]

If I have exactly 32,768 ticks of one note followed by another note, then none of the second note shows up in the exported .wav ... but if I have 32,766 or 32,767 ticks before the new note, then at the very end of the exported .wav, the second note (here an octave higher) just begins to appear.

That's the limit - it's 32,768 music ticks, or a cumulative 1024 SPD length of SFX in a pattern.

P#83150 2020-10-20 01:45

[Please log in to post a comment]