pulsar-tidalcycles icon indicating copy to clipboard operation
pulsar-tidalcycles copied to clipboard

Sound browser sample numbering does not match superdirt

Open cleary opened this issue 5 years ago • 2 comments

In the new sound browser, if a sample has special characters in it's filename the reference index of the sample in the browser does not match the sample played by superdirt.

Simple example on pluck:1

Please note, this also affects the vscode extension, but is not resolved: https://github.com/kindohm/vscode-tidalcycles/issues/17

cleary avatar Oct 24 '20 20:10 cleary

I checked... Seems like javascript order follows the "ASCII" sort, so, the files

'BS A#2 PI.wav'
'BS A1 PI.wav'

are already sorted, because the # is smaller than any number.

But, don't know in other OS, but in linux the same two files are ordered, at OS level as:

'BS A1 PI.wav'
'BS A#2 PI.wav'

SuperDirt doesn't apply a particular order, but it inherits it from the OS.

The possible solutions are:

  • force plugin to use OS sorting
  • force superdirt to use ASCII sorting

The first will be the best for me, but we should verify how to apply that sorting rules.

ndr-brt avatar Oct 26 '20 10:10 ndr-brt

Yes it woudl be good to resolve this. There's an issue open here: https://github.com/musikinformatik/SuperDirt/issues/131

yaxu avatar Oct 26 '20 10:10 yaxu