Re: New tools in the OSDK
Posted: Sat Dec 20, 2014 12:19 pm
I want to ask a question about mym-player
Is there an option to play the tune just once?
When I load a music data and give the command to play it ( i.e. CALL#5600 ) it plays the tune again and again until I call #5603
It could be done by calculating the play time and than stopping it but I wonder if I can play it just once..
Also, is it possible to start playing the tune located in certain memory locations? Such as, I can load a big sound data containing music into the memory starting from #6700, and use machine code to play predefined data such as backround music, music to play when player in the game fails etc. Think of "super mario" game. Music plays during the game, and when the player is died it plays the death effect. This could be done also by loading the data from the disc everytime from different files when needed but slows down the gameplay or demo..
I am asking this also because, in previous version of mymplayer you shared, the player uses music data located after #7600 , now its using the data after #6700 . I have some musics converted according to previous version and located in #7600..
In conclusion, I am thinking of a music play command having parameters such as where is the music data in memory, how many time to play it etc.. such as
!TUNE #6700,1
OR
DOKE 0,#7000:POKE 2,1:CALL#5600 ( --> play the sound data located on #7000 just once )
Another parameter might be how long data to use or how long music to play in miliseconds..
By this way, different small sound datas can be loaded in different parts of memory and they can be called when they are needed seperately.
Another request is about the size of converted music datas.
Is it possible to make YM2MYM.EXE truncate the data and stop if music is too long ? There are some long .YM musics . When it convert it to TAP file, and load it on oric, the data is so huge, reaching the screen memory and even character definition . Maybe YM2MYM can produce .TAP file where data is not exceed after #A000 . ı know there's an option to define file size but this is just for "not" using big sized files.
I hope I could have expressed the idea..
Is there an option to play the tune just once?
When I load a music data and give the command to play it ( i.e. CALL#5600 ) it plays the tune again and again until I call #5603
It could be done by calculating the play time and than stopping it but I wonder if I can play it just once..
Also, is it possible to start playing the tune located in certain memory locations? Such as, I can load a big sound data containing music into the memory starting from #6700, and use machine code to play predefined data such as backround music, music to play when player in the game fails etc. Think of "super mario" game. Music plays during the game, and when the player is died it plays the death effect. This could be done also by loading the data from the disc everytime from different files when needed but slows down the gameplay or demo..
I am asking this also because, in previous version of mymplayer you shared, the player uses music data located after #7600 , now its using the data after #6700 . I have some musics converted according to previous version and located in #7600..
In conclusion, I am thinking of a music play command having parameters such as where is the music data in memory, how many time to play it etc.. such as
!TUNE #6700,1
OR
DOKE 0,#7000:POKE 2,1:CALL#5600 ( --> play the sound data located on #7000 just once )
Another parameter might be how long data to use or how long music to play in miliseconds..
By this way, different small sound datas can be loaded in different parts of memory and they can be called when they are needed seperately.
Another request is about the size of converted music datas.
Is it possible to make YM2MYM.EXE truncate the data and stop if music is too long ? There are some long .YM musics . When it convert it to TAP file, and load it on oric, the data is so huge, reaching the screen memory and even character definition . Maybe YM2MYM can produce .TAP file where data is not exceed after #A000 . ı know there's an option to define file size but this is just for "not" using big sized files.
I hope I could have expressed the idea..