Page 1 of 1

Please improve module music support

Posted: Thu Jul 30, 2015 12:14 am
by Dither
Hi guys. I love PB and appreciate all the work you have put into it. Now a little bit of complaining, I'm sorry. :cry:

I would love to use XM files in a game but the existing commands give very imprecise or broken results.

For example, printing the result from GetMusicPosition will report a change in the pattern position about a second before the next pattern has actually started playing. GetRowPosition shows the numbers jumping by many digits at a time, again, always ahead of the audio.

On the flip side, SetMusicPosition gives a delayed response. So if your module has played to the end of its final pattern and you want to loop back to an earlier pattern, the transition won't be seamless. Also, in my experience, no matter which position is chosen it always goes back to zero. So this command seems not to work as intended (I have tried it on multiple systems with the same result).

Similarly, there is a delay before MusicVolume changes take effect. And fades do not sound very smooth.

So my wish is for the Music (module) commands to be as precise and functional as the Sound commands, so I don't have to convert my XM files to big MP3s.

Re: Please improve module music support

Posted: Fri Sep 02, 2016 8:30 am
by ar-s
+1 I love that lib but..

SetMusicPosition() works wrong
GetMusicPosition() and MusicVolume() => very long delay
GetRowPosition() reports 5 by 5 rows (0,5,10...)

ToDo :
- It will be great if you could could had GetMusicLenght() function to know the number of pattern from a music.
- That could be also good to get a return for each sound on each column. We could make a kind of spectrum with that.

Thanks by advance to inprove that great lib.