kometbomb / klystrack

A chiptune tracker
http://kometbomb.github.io/klystrack/
Other
487 stars 28 forks source link

Samples Won't Load #306

Open PixiIized opened 3 months ago

PixiIized commented 3 months ago

When I try to load my samples into the wavetable, no matter what I do it says "Could not open Wave!". Please advise.

LTVA1 commented 3 months ago

It only supports .wav files

PixiIized commented 3 months ago

I know that, that's what I'm loading.

LTVA1 commented 3 months ago

Hm, then it's a bug. You use Windows or Linux? Also I would like to see the files you failed to load

PixiIized commented 3 months ago

Currently I'm on Windows, and github apparently doesn't support .WAV files, so I can't attach them

LTVA1 commented 3 months ago

Hm, I am on Windows too and I never had this issue. Maybe you can compile the debug version and see what console says?

PixiIized commented 3 months ago

Unfortunately my only experience with consoles is game development and VS Code, so I don’t know how to do that.

LTVA1 commented 3 months ago

Okay, then I will check in a few days on my side. I remember all the wav files I tried working properly. Even the stupidly large ones.

PixiIized commented 3 months ago

Is there any anywhere that tells me how to compile the debug version? I need to experiment with sampling some more. In addition, all .wav files I tried were snare drums, if that makes any sense

kometbomb commented 3 months ago

The default build config is debug. Just go make. make release is what builds the symbol-stripped release version.

kometbomb commented 3 months ago

Also, the .wav import only supports PCM wave files. If there's any other codec (compression) being used then it will not work.

PixiIized commented 3 months ago

I see. The codec being used might be the problem. Is there any way for me to determine what compression type is being used in a given .wav file? Cause I got all of the .wav samples from Sample Focus

PixiIized commented 3 months ago

I have solved the issue, although the solution was not very clear. I don't know if this is a bug on my side, or if you all assumed I was already doing this, but Klystrack will only accept my samples if they have a bit depth of 16 bits UPDATE: Never mind. It's not the bit depth. I have found a site that gives me important info about my files, I will analyze from there

PixiIized commented 3 months ago

All the files have essentially the same properties... I have no idea what to do, I have found a grand total of two samples that Klystrack will accept, and one of them was generated in Klystrack, then exported and reimported as an experiment

PixiIized commented 3 months ago

I think I've finally figured it out... if the .WAV audio file has "comment" metadata, Klystracker won't accept. This is very strange, and you may want to look into it.

LTVA1 commented 3 months ago

Klystrack does not fully support RIFF format chunks iirc. That's why it may fail with comments metadata

PixiIized commented 3 months ago

Exactly what metadata is part of the RIFF format chunks? Cause the some of the working .WAV have "album" and "artist" metadata.