... | @@ -124,7 +124,7 @@ Edit > Paste |
... | @@ -124,7 +124,7 @@ Edit > Paste |
|
Track 1 is now duplicated in track 2 with an initial delay equal to the loop duration as shown in Figure 10.
|
|
Track 1 is now duplicated in track 2 with an initial delay equal to the loop duration as shown in Figure 10.
|
|
|
|
|
|
![010_paste_track](uploads/ea4791a06b59f6de0f86fdd112100810/010_paste_track.png)
|
|
![010_paste_track](uploads/ea4791a06b59f6de0f86fdd112100810/010_paste_track.png)
|
|
**Figure 10. Track 1 duplicated in track 2
|
|
**Figure 10. Track 1 duplicated in track 2**
|
|
|
|
|
|
Notice that the second instance of the distinctive part of the waveform in track 1 that we found earlier lines up with the first instance of that distinctive part in track 2.
|
|
Notice that the second instance of the distinctive part of the waveform in track 1 that we found earlier lines up with the first instance of that distinctive part in track 2.
|
|
|
|
|
... | @@ -133,12 +133,12 @@ If the markers placed earlier weren't in the exact same spot in each loop, then |
... | @@ -133,12 +133,12 @@ If the markers placed earlier weren't in the exact same spot in each loop, then |
|
Check to see if track 1 lines up with track 2. If they are lined up, then skip this next step. Figure 11 shows an example of track 1 not lining up with track 2 as indicated by the red arrow.
|
|
Check to see if track 1 lines up with track 2. If they are lined up, then skip this next step. Figure 11 shows an example of track 1 not lining up with track 2 as indicated by the red arrow.
|
|
|
|
|
|
![011_misalignment](uploads/a5b85d80c18706a177e66d5467ee93cf/011_misalignment.png)
|
|
![011_misalignment](uploads/a5b85d80c18706a177e66d5467ee93cf/011_misalignment.png)
|
|
**Figure 11. Misalignment of tracks 1 and 2
|
|
**Figure 11. Misalignment of tracks 1 and 2**
|
|
|
|
|
|
Find a distinctive part of the waveform and zoom in as much as you can such that the distinctive part is still visible in both tracks 1 and 2. Make a selection that starts from the distinctive part in track 1 and ends at the distinctive part of track 2 as shown in Figure 12.
|
|
Find a distinctive part of the waveform and zoom in as much as you can such that the distinctive part is still visible in both tracks 1 and 2. Make a selection that starts from the distinctive part in track 1 and ends at the distinctive part of track 2 as shown in Figure 12.
|
|
|
|
|
|
![012_select_adjustment](uploads/493006b40b4e6aeb04580f500a02151b/012_select_adjustment.png)
|
|
![012_select_adjustment](uploads/493006b40b4e6aeb04580f500a02151b/012_select_adjustment.png)
|
|
**Figure 12. Finding the offset between tracks 1 and 2
|
|
**Figure 12. Finding the offset between tracks 1 and 2**
|
|
|
|
|
|
Look at the length of the selection as shown at the bottom of the window (in this example it is 373 samples). Write this number down, as we are going to adjust the amount of silence at the beginning of track 2 by this amount. It is important to note whether track 1 is delayed relative to track 2 (in which case we need to add to the beginning silence in track 2) or whether track 2 is delayed relative to track 1 (in which case we need to subtract from the silence in track 2). In this example track 1 is delayed, so we will be adding 373 samples of silence to track 2.
|
|
Look at the length of the selection as shown at the bottom of the window (in this example it is 373 samples). Write this number down, as we are going to adjust the amount of silence at the beginning of track 2 by this amount. It is important to note whether track 1 is delayed relative to track 2 (in which case we need to add to the beginning silence in track 2) or whether track 2 is delayed relative to track 1 (in which case we need to subtract from the silence in track 2). In this example track 1 is delayed, so we will be adding 373 samples of silence to track 2.
|
|
|
|
|
... | @@ -178,7 +178,7 @@ Now press the backspace key to remove the current selection from track 2. |
... | @@ -178,7 +178,7 @@ Now press the backspace key to remove the current selection from track 2. |
|
You should now be able to zoom in to where you were before and see that tracks 1 and 2 are now in alignment as shown in Figure 14.
|
|
You should now be able to zoom in to where you were before and see that tracks 1 and 2 are now in alignment as shown in Figure 14.
|
|
|
|
|
|
![014_alignment_fixed](uploads/f7bb503b473093e907fa552f7dd55ab8/014_alignment_fixed.png)
|
|
![014_alignment_fixed](uploads/f7bb503b473093e907fa552f7dd55ab8/014_alignment_fixed.png)
|
|
**Figure 14. Corrected alignment of tracks 1 and 2
|
|
**Figure 14. Corrected alignment of tracks 1 and 2**
|
|
|
|
|
|
### Finding the Loop Start
|
|
### Finding the Loop Start
|
|
|
|
|
... | @@ -298,6 +298,6 @@ Obviously the values to use for your music file will differ. |
... | @@ -298,6 +298,6 @@ Obviously the values to use for your music file will differ. |
|
Figure 26 shows the metadata dialog with values entered for LOOPSTART and LOOPEND. It isn't necessary to enter LOOPLENGTH since the other values provide all of the needed info.
|
|
Figure 26 shows the metadata dialog with values entered for LOOPSTART and LOOPEND. It isn't necessary to enter LOOPLENGTH since the other values provide all of the needed info.
|
|
|
|
|
|
![026_add_metadata](uploads/a63976f8b263059bbe9af70f2c7cdd5e/026_add_metadata.png)
|
|
![026_add_metadata](uploads/a63976f8b263059bbe9af70f2c7cdd5e/026_add_metadata.png)
|
|
**Figure 26. Metadata tags entered
|
|
**Figure 26. Metadata tags entered**
|
|
|
|
|
|
The last step is to put the exported OGG file in the "musics" folder of your Solarus project then open the project in the quest editor. Find the music file in the quest tree sidebar on the left, right-click it and select "Add to quest as music...". Then click the play selected music button in the toolbar at the top to test it to see if it loops correctly. |
|
The last step is to put the exported OGG file in the "musics" folder of your Solarus project then open the project in the quest editor. Find the music file in the quest tree sidebar on the left, right-click it and select "Add to quest as music...". Then click the play selected music button in the toolbar at the top to test it to see if it loops correctly. |
|
|
|
\ No newline at end of file |