XML Feeds

.

[java-dev] Re: How efficient is coding objects using Java?

volker böhm vboehm at gmx.ch
Fri Oct 26 09:45:06 MDT 2007


hi adam,
the reason why your code is slow is not due to the language (at least  
not entirely), but to the fact that you try to calculate
the square difference function in the time domain. in the nested for- 
loops you are doing a lot of calculations...
this wouldn't be efficient in C either.
but using FFT you can easily calculate the auto-correlation much  
quicker.
i believe that's the trick other yin-pitchtrackers use.

volker.



On 25 Oct 2007, at 15:19, Adam Stark wrote:

> Hi Topher,
>
> Thanks for your replies. It would be great if you could have a look  
> at my code. I have attached the java file. The function causing the  
> problems is the pitch_YIN function.
>
> I also have one more question which is about C coding Max/MSP  
> objects - so far, all the examples I have seen so far in C have  
> been massively complex, uncommented and unexplained. The Java  
> equivalent is so simple. Is there a simple C example somewhere or a  
> good guide? Or is it generally complicated?
>
> I'm very very appreciative of your help,
>
> Thanks
>
> Adam
> <pitch_YIN.java>
> _______________________________________________
> java-dev mailing list
> java-dev at cycling74.com
> http://www.cycling74.com/mailman/listinfo/java-dev



More information about the java-dev mailing list