JAudio Player by Yuuto at 9:47 AM EDT on October 14, 2012
As I wrote in another thread I'm currently writing a player for the BMS sequences used in Twilight Princess (I don't know if it works with the sequences of other games, too). My analysis of the sample & instrument banks is nearly finished so the program can play any sample a sequence needs, but I haven't figured out the envelope data yet, so the playback sound very unnatural when the release time is 0. Does anyone know how to inerpret these values?

Beside this there are some oher problems. I need a microsecond timer for use in C# that doesn't have too much CPU usage (the one I use takes 25% on each core!) and whose interval can be changed after the timer has started.
And the program crashes sometimes, but I'm sure this can be fixed easily.

It would be great if someone has knowledge in these things.

edited 11:17 AM EDT October 14, 2012
by henke37 at 11:44 AM EDT on October 14, 2012
Why do you need such a high precision timer?
by Yuuto at 12:57 PM EDT on October 14, 2012
All sequences have a resolution of 120 ticks per beat. A sequence with a tempo of 120 bpm would require an interval length of 4.1667 ms. I tried a timer with a resolution of 1 ms, but it only accepted integral values so it was very imprecise.

The problem with the crashes is fixed, I now use SharpDX instead of SlimDX.

edited 11:51 PM EDT October 14, 2012
Alpha Version by Yuuto at 9:04 PM EDT on October 31, 2012
The timer problem was actually easier to fix than I thought ^^

JAudio Player v1.0 Alpha

This is an unfinished version of the player. To use it you have to specify the path that contains Z2Sound.baa and the subdirectory Waves. The player can't decode the .aw files yet, so the Waves directory must contain the extracted/decoded .wav files (use wsyster for that).

Issues and things I haven't implemented yet:
- Envelopment (somehow the biggest problem)
Since I can't read the envelope data from the instrument banks and I did'nt implement default values yet, the samples stop (or start, depending on the samples) abruptly, which results in an unnatural sound and unlovely crackling.
- Looping. The files only play once.
- Vibrato
- Dynamic tracks. e_goma01 and e_variant don't play at all because there occurs an error while parsing the header (dynamic sequences have a very complicated one). The other dynamic seqs seem to play correctly apart from the pause between the different parts (the player can't jump to a specific one). Due to this long pauses some parts run at the wrong tempo like in field_link_day.
- Memory. The player gains increasingly memory but doesn't release it.
- Individual problems. Some problems only appear in a single file, e.g. the remix samples in e_zant play two octaves higher than they should (I fixed that manually, as a temporary solution).
- Pan. Compared with the recorded songs the percussion has sometimes a wrong position (e.g. event01).

edited 9:21 PM EDT October 31, 2012
by bxaimc at 11:11 PM EDT on October 31, 2012
Hats off to you good sir. I've yet to try it out but I commend you for your progress :O
by maxton at 9:12 PM EST on November 13, 2012
Wow, thanks Yuuto!

Minor issue though... I can't get it to work.

I'm running Windows 7 x64 and after I choose the folder containing Z2Sound.baa and the waves, a message pops up stating "Cannot write to the registry key". If I try to do anything after this it crashes.

Are you using the registry to save directory settings? The only reason that I think I could be getting this error is if you compiled it for a different version of windows.

Also, are you planning on releasing your source code?
by Yuuto at 8:53 AM EST on November 16, 2012
Yes I use the registry for saving the directory. I didn't expect any problem with that. Maybe it's better to write a file to the AppData folder.

I compiled it for .NET Framework 4.0 on Windows 7 for x86 and x64.
I now moved to Windows 8 and saw that it doesn't work, so I have to build two versions, one for Windows 7 and its predecessors and another one for Windows 8.

I discovered some other issues. The velocity and volume values were interpreted incorrectly which caused some notes to be too loud. It now works for most of the sequences though there are still some I'm not entirely satisfied with. Furthermore tracks that use reverb/echo are too silent.

The biggest problems are still the encoding of the .aw files and the envelope data. Maybe someone could help with that. And these are only the most important ones, the other ones I mentioned in my last post still exist, too. The only things I fixed are the velocity/volume values and the memory bug.

To be honest I didn't think about releasing the source code yet. But when I look at all the issue the player currently has this idea is not that bad. Maybe I should upload it on an open source platform as a public project?
by hcs at 12:01 PM EST on November 16, 2012
Yes please!
Source Code by Yuuto at 11:05 AM EST on November 17, 2012
Okay, I finally managed to upload the project on CodePlex:

JAudio Player

Any help on the player is welcomed!
by the_audio_ripper at 10:08 PM EST on January 12, 2013
It cracked.
by peronmls at 5:17 PM EST on January 13, 2013
I get this error after loading Z2Sound.baa

"HRESLUT: [0x80040154], Module: [Unknown], ApiCode:
[Unknown/Unknown], Message: Class not register"

I get this every time I launch it and when I try to load a BMS it crashes.

I know this is in Alpha stages but just letting you know.
by Yuuto at 10:16 AM EST on January 14, 2013
Make sure you are using the right version (Windows 7 and previous or Windows 8) and you have the DirectX runtime (June 2010) installed.
When I upload the new version there won't be anymore two separate programs for Win7/8.
by peronmls at 1:11 PM EST on January 14, 2013
Yes I'm running 7 x64 though I didn't see separate versions.


Go to Page 0

Search this thread

Show all threads

Reply to this thread:

User Name Tags:

bold: [b]bold[/b]
italics: [i]italics[/i]
emphasis: [em]emphasis[/em]
underline: [u]underline[/u]
small: [small]small[/small]
Link: [url=http://www.google.com]Link[/url]

[img=https://www.hcs64.com/images/mm1.png]
Password
Subject
Message

HCS Forum Index
Halley's Comet Software
forum source