Language…
9 users online: Gamet2004, Gasterus155,  GlitchCat7, Nowieso, ShadowBoxer_Sandshrew, skyekun, Soarinho, SuperRomhackingNoob37, Tulip Time Scholarship Games - Guests: 74 - Bots: 123
Users: 68,084 (2,169 active)
Latest user: elmer

How to Insert Looped .WAV Samples

Custom MusicSamples

  • Pages:
  • 1
  • 2

Two questions:

- Is it possible to play the first part of a sample normal and then start the loop?

- Is there a limitation of the WAV size, because I get the message error in the WAV file, when I try to insert larger ones?
---------------
Originally posted by Nic Nac
- Is it possible to play the first part of a sample normal and then start the loop?


That's...kind of the whole point of this tutorial.

Originally posted by Nic Nac
- Is there a limitation of the WAV size, because I get the message error in the WAV file, when I try to insert larger ones?


Yes, there is, though I'm not sure how long it is. It's usually best to keep your samples under 1 second long.
I should get a new layout.

Probably won't, though.

Originally posted by Kipernal
Originally posted by Nic Nac
- Is it possible to play the first part of a sample normal and then start the loop?


That's...kind of the whole point of this tutorial.


I don't know if you understood me right. If I want to play the sample till the middle and from there I want to loop till the end, so the first part plays only once and second part loops. How would I do this? Because in OpenMPT when you type in a start and end value it will do exactly this, but if you convert it, it starts from the start value and will never play the part before.
---------------
Originally posted by Nic Nac
I don't know if you understood me right. If I want to play the sample till the middle and from there I want to loop till the end, so the first part plays only once and second part loops. How would I do this? Because in OpenMPT when you type in a start and end value it will do exactly this, but if you convert it, it starts from the start value and will never play the part before.


That's what this tutorial describes, though. I can't imagine why a sample would start playing from the loop point, though. This might sound like a stupid question, but you are saving the .WAV correctly, right? (i.e. saving the entire thing, not just the portion that loops)
I should get a new layout.

Probably won't, though.

Originally posted by Kipernal
Originally posted by Nic Nac
I don't know if you understood me right. If I want to play the sample till the middle and from there I want to loop till the end, so the first part plays only once and second part loops. How would I do this? Because in OpenMPT when you type in a start and end value it will do exactly this, but if you convert it, it starts from the start value and will never play the part before.


That's what this tutorial describes, though. I can't imagine why a sample would start playing from the loop point, though. This might sound like a stupid question, but you are saving the .WAV correctly, right? (i.e. saving the entire thing, not just the portion that loops)


Well, I click on the save sample button in the samples tab in OpenMPT. One point I didn't really understand though was that you have to cut off the part after the end loop (does it mean when the end point is at the end of the sample you can skip this).
---------------
Originally posted by Nic Nac
Well, I click on the save sample button in the samples tab in OpenMPT. One point I didn't really understand though was that you have to cut off the part after the end loop (does it mean when the end point is at the end of the sample you can skip this).


Think of it this way: In your sample, you have the intro, the part that loops after the intro plays, and then all the stuff after the looping part that you don't need. Delete all the stuff after the looping part and then save the sample.
I should get a new layout.

Probably won't, though.
Well, I might try looping .WAV samples again, so I'll be making use of this. Question, though: Is there any way to do step 6 besides just trial and error (with a few thousand possible values, no less) until it sounds right?

----------------

I'm working on a hack! Check it out here. Progress: 64/95 levels.
'fraid not, at least that I know of. If you're really having issues, however, you can try playing around with the "Crossfade between loop start and loop end to create seamless sample loops" button (it's found on the far right, on the same line as the "Import Sample" button. This won't work well at all with extremely short samples, but it has the potential to work for larger ones.
I should get a new layout.

Probably won't, though.
...Well, this just sucks. I did everything okay, and, while it did work, no matter what I did, I could not get a sample out of it that wasn't obscenely large (3 KB would be pushing it, and this one was more like 14). The sample in question doesn't even seem like it should be all that hard to loop. So...I might just have to give up on this.

----------------

I'm working on a hack! Check it out here. Progress: 64/95 levels.
Did you check the playback rate from your sample? Anything above 32 KHz would be unnecessary because the maximum playback rate from the SNES is that. Are you sure both your loop point and the actual size in samples of your sample are dividable by 16? Because snesbrr.exe will always try to make a properly working BRR sample, if your loop point or end point (size) aren't dividable by 16 it will start multiplying the size of the sample until it hits a point where it can divide those by 16, which is most likely what happened to you.
Well, I just tried changing the playback rate to 32000 instead of 44100 and the file size turned out to be exactly the same. And yes, the sample start point and the total file size are both divisible by 16. It's pretty hopeless.

----------------

I'm working on a hack! Check it out here. Progress: 64/95 levels.
Originally posted by imamelia
Well, I just tried changing the playback rate to 32000 instead of 44100 and the file size turned out to be exactly the same. And yes, the sample start point and the total file size are both divisible by 16. It's pretty hopeless.


I think that the problem is OpenMPT. I used this tutorial approximately a year ago and I was creating samples for a long time, but one day I updated the program and not a single sample was working.
I think that the program now uses a strange format for the wavs header.
Now I use wavesaur to edit audio and to find the loop point, although it isn't as easeful as OpenMPT...

EDIT: Well, it looks like it is not thing of the tool. A friend could make samples with OpenMPT without problems... Then what am I doing wrong?!
  • Pages:
  • 1
  • 2

Custom MusicSamples