IPB

Welcome Guest ( Log In | Register )

3 Pages V  < 1 2 3  
Reply to this topicStart new topic
Development of ABC/HR for Java, Split from "Closing listening-tests.info"
Arnold B. Kruege...
post Apr 8 2010, 04:23
Post #51





Group: Members
Posts: 3797
Joined: 29-October 08
From: USA, 48236
Member No.: 61311



QUOTE (david@sicnarf.com @ Apr 7 2010, 14:19) *
forgot to mention: i'm using Version 0.53a from rpp3po's link.
i'm eager to get this running and do some abx tests. this program seems promising. maybe i can debug the playback issue.. although i don't have much java audio coding experience.


I'm no Java guru, but the dump/traceback looks to me like some problem connecting up with the audio card.
Go to the top of the page
+Quote Post
Arnold B. Kruege...
post Apr 10 2010, 18:28
Post #52





Group: Members
Posts: 3797
Joined: 29-October 08
From: USA, 48236
Member No.: 61311



QUOTE (david@sicnarf.com @ Apr 7 2010, 14:19) *
forgot to mention: i'm using Version 0.53a from rpp3po's link.
i'm eager to get this running and do some abx tests. this program seems promising. maybe i can debug the playback issue.. although i don't have much java audio coding experience.


Doesn't seem to work with 24 bit .wav files.
Go to the top of the page
+Quote Post
googlebot
post Apr 10 2010, 18:43
Post #53





Group: Members
Posts: 698
Joined: 6-March 10
Member No.: 78779



I guess the code is build around Java's old sound system: the Java Sound Audio Engine, which doesn't support anything higher than 16 bit. If someone would rewrite the output code to employ the newer (since JDK 1.5) Direct Audio Device mixer with SourceDataLines, the only limits are those of the output device. I could have a look at it, but in my spare free time I'm working on a high quality, multi-platform stream switching library, right now. Improving old legacy code might even deserve higher respect, but writing your own stuff from scratch is certainly more fun... smile.gif

This post has been edited by googlebot: Apr 10 2010, 19:08
Go to the top of the page
+Quote Post
Arnold B. Kruege...
post Apr 10 2010, 21:09
Post #54





Group: Members
Posts: 3797
Joined: 29-October 08
From: USA, 48236
Member No.: 61311



QUOTE (googlebot @ Apr 10 2010, 13:43) *
I guess the code is build around Java's old sound system: the Java Sound Audio Engine, which doesn't support anything higher than 16 bit. If someone would rewrite the output code to employ the newer (since JDK 1.5) Direct Audio Device mixer with SourceDataLines, the only limits are those of the output device. I could have a look at it, but in my spare free time I'm working on a high quality, multi-platform stream switching library, right now. Improving old legacy code might even deserve higher respect, but writing your own stuff from scratch is certainly more fun... smile.gif


On the plus side, the rpp3po Java ABC/hr-ABX 1.6 code generates far fewer transisents while switching than what we've seen here lately.
Go to the top of the page
+Quote Post
ernstblaauw
post Aug 7 2010, 23:43
Post #55





Group: Members
Posts: 53
Joined: 26-January 04
Member No.: 11529



What's the status of ABC/HR? If nobody is currently working on it, I can maybe give it a try. I did learn Java on my university, but I do not have any experiences with audio. So, I would be happy if someone can assist me:
- where can I find a proper explanation of the depreciated and current audio API from Java?
- which files should be altered? Only PlaybackThread.java?

I won't promise anything, but maybe I can give it a shot this week (I guess I can spend some hours).
Go to the top of the page
+Quote Post
Kamedo2
post Jul 10 2014, 19:16
Post #56





Group: Members
Posts: 220
Joined: 16-November 12
From: Kyoto, Japan
Member No.: 104567



abchr_java_0.53a_src.zip ABXResultsPanel.java line 89
CODE
            guessingField.setText(p<0.001?"<0.001":Float.toString(((int)(p*1000))/1000.0f));
            guessingField.setBackground(p<=0.01?Color.GREEN:(p<=0.05?Color.YELLOW:Color.RED));

This yields a p-value with additional zero. For example, when the accurate p-value is 0.0078125, the text will say "0.0070".

Also, Color.RED is hard for protanopia to read the black text.
CODE
            guessingField.setBackground(p<=0.01?new Color(0,255,144):(p<=0.05?new Color(255,255,80):new Color(255,88,64)));


The improved color version is the bottom. This is easier to read, although the change is minimal.

And the explanation "Prob. you were guessing" is misleading. I'd say: "Prob. you were just lucky" or simply "p-value".
Go to the top of the page
+Quote Post
Kamedo2
post Jul 12 2014, 21:40
Post #57





Group: Members
Posts: 220
Joined: 16-November 12
From: Kyoto, Japan
Member No.: 104567



abchr_java_0.53a_src.zip ABXResultsPanel.java line 90
I improved the color to be readable for all.
CODE
            guessingField.setBackground(p<=0.01?(new Color(0,232,192)):(p<=0.05?(new Color(255,248,0)):(new Color(255,80,32))));


Go to the top of the page
+Quote Post

3 Pages V  < 1 2 3
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 19th September 2014 - 09:25