Looping melody

Number of reiterations and loop point for soundchip music (except OUT, ZXAY, PSG and EPSG) both are defined in "List's Item Adjusting" dialog box by Time and Loop members. Time field includes on itself all number of reiterations. In this version of Ay_Emul OUT, ZXAY, PSG and EPSG files always loop to the begin.

Suppose Ay_Emul automatically determined the duration and loop point of the module and entered them in the Time and Loop fields, respectively. Then this will be the real duration of the module. With this data, the module will be played once from start to finish.

If you'll manually enter the value of the Time field, then two options are possible. If the entered value is less than the real duration, then the module will be played once from the beginning and will not be played to the end. If the entered value is greater than the real duration, the module will be played from beginning to end, and will be repeated from the loop point until the specified number of VBL (interrupts) in the Time field is played.

If you manually enter the loop point, it should be borne in mind that this value is actually used only for playing YM and VTX files. For other formats, it is of a reference nature (if automatic filling), since Ay_Emul loops either to the position specified in the module or to the begin, if the loop point is not provided by format (for example, for AY, AYM and SNDH everything is decided by the native player built into these files).

If Loop button of main window is in pushed state then the melody will be played infinitely. After real end of the melody Progress slider is stoped, but playing and time counting are continued. If playing is simply repeats (for some formats), then thumb of Progress bar jumps to corresponding position.

Looping can not be applied to CD audio tracks in current version.