Jump to content


Photo
- - - - -

Timing and Looping OGGs with LoopTuner

Music OGG Loops

  • Please log in to reply
5 replies to this topic

#1 Lone Wolf

Lone Wolf

    Tsundere

  • Early Adopter
  • 248 posts
  • Primarily UsesRMVX Ace
  • First LanguageEnglish

Posted 06 April 2012 - 09:04 PM

The most widely known means of looping OGGs in the Western RM community involves Audacity and a bunch of waiting. There is a better way.

The open-source visual novel engine Kirikiri (used by Fate/stay night, among others), includes an application called Loop Tuner. Loop Tuner is an application built for setting up precise loops in OGG music files. And did I mention it's free? But it's in Japanese, so if you're not confident in your ability to figure out a foreign-language GUI, this guide is for you.

First, go to the above link and grab "kr2_232r2.zip" from the downloads section (Ctrl+F if you need to). Save and extract wherever.

Once you've gotten the archive extracted, browse to "kirikiri2\tools" and run "krkrlt.exe." I won't walk you through opening an audio file, it's the same as any Windows application.

Once your OGG is loaded, your window should look something like this:
Posted Image
It looks a lot like Audacity (which stole its interface from an old program called WaveEdit).

"But Wolf, where'd that arrow come from?" That's a loop. You create one by pressing the button marked A in the screenshot above. It will place two red dashed lines, indicating a loop. Drag the lines around to set up a preliminary loop, keeping in mind that the start of the loop redirects to the position at the end of the arrow. (If you create two or three by mistake, the X button will let you delete them. That's part of the Kirikiri-specific functionality that won't do anything in RPG Maker.)

The play controls also work a lot like Audacity. There are four buttons, Stop, Play from Beginning, Play From Cursor, and Ignore Loops. Don't worry so much about the last one. "Play From Cursor" means playback will start form wherever you last clicked in the waveform, and any loops set will be observed. Keep messing with your loop until it sounds about right.

When you're close (off by about a second or so), double click the loop arrow (it will turn green) and another box will pop up.
Posted Image

This window lets you fine tune your loop by matching the start and end points (blue and red). The buttons at C let you nudge the waveforms left and right (you can also drag the waves themselves). The buttons at D will play the first few seconds before and after your loop. Try to overlap the waves as much as possible, and use the playback buttons to preview your loop. You can also zoom out if you need to.

A perfect loop looks like this:
Posted Image
Getting your song to loop this perfectly probably won't happen unless it was very specifically encoded to do so (this one is from a different file). It's most important to match up the red part right after the loop as much as possible. So long as you don't loop in the middle of a peak, the human ear won't be able to tell the difference. When it sounds about right, press OK, then hit the Save button.

NOTE: Save does not write loop points into your OGG. Loop Tuner is freaking magical, but not that magical.

There's one more step, and it involves opening the ".sli" file Loop Tuner just generated in the folder with your OGG. Don't be afraid, it's only a text file with a fancy extension:
Posted Image
The only two values that matter for RPG Maker purposes are the "From" and "To" values. "From" is the end of the loop. "To" is where the loop redirects. So your LOOPSTART value is the exact number in "To", while your LOOPLENGTH value is "From" minus "To", the length of the loop. Use Calculator to save yourself some headache.

How you embed the values is up to you. I prefer using Winamp's media info editor, because you can just add them like this:
Posted Image

Save the tags and put the OGG file in your game's "Audio\BGM" folder. So long as you entered the right numbers, you now have a 100% compatible looped OGG to rival the RTP.

#2 Repflez

Repflez

    Lives in the New Content page

  • Members
  • 2 posts
  • Primarily UsesRMXP
  • First LanguageSpanish

Posted 06 April 2012 - 10:08 PM

Never heard of that tool before. I used Audacity for creating the loops before so this will become very handy for me (And easier)
Placeholder signature.

#3 - Aërendyll -

- Aërendyll -

    Member

  • Members
  • 19 posts
  • LocationThe Netherlands
  • Primarily UsesRMVX Ace
  • First LanguageDutch / Aenese

Posted 08 April 2012 - 02:15 PM

Oh man, this tutorial is exactly what I needed! I had been having trouble with looping music that wasn't looped beforehand in RPG Maker recently, but now it works flawlessly!

Thanks a ton for this great tutorial~

#4 Emzie

Emzie

    I'm just lazy >_>

  • Members
  • 432 posts
  • LocationNo one cares.
  • Primarily UsesRMVX
  • First LanguageFilipino

Posted 15 April 2012 - 05:37 AM

wow..this is a great tutorial.....too bad i'm using FLStudio :(

Current Project:

 

gamebannerr.png
 

Currently doing:

Spoiler

 

Check out my useless stuff >_>

Spoiler

#5 - Aërendyll -

- Aërendyll -

    Member

  • Members
  • 19 posts
  • LocationThe Netherlands
  • Primarily UsesRMVX Ace
  • First LanguageDutch / Aenese

Posted 16 April 2012 - 03:40 PM

wow..this is a great tutorial.....too bad i'm using FLStudio :(



The engine that this tool comes with is open source, though... Which means it's 100% free (to use, at least?). I have bought FL Studio before myself, but looping music is way easier in this little tool, which is made specifically for it. I'd say download it and give it a shot. :3

Edited by - Aërendyll -, 16 April 2012 - 03:40 PM.


#6 KarjamP

KarjamP

    Newbie

  • Members
  • 2 posts
  • Primarily UsesN/A
  • First LanguageEnglish

Posted 03 April 2013 - 02:47 PM

Necro'd just to say that the fact that the software's GPL'd means that a fan translation of the Kirikiri engine is bound to happen.

 

http://tlwiki.org/in...iriKiri2.2FKAG3

 

This includes a translated version of the loop tuner!

 

Sadly, it doesn't appear to be fully translated, but at least it's easier to navigate.


Edited by KarjamP, 03 April 2013 - 02:49 PM.






Also tagged with one or more of these keywords: Music, OGG, Loops

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users