feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change
on this file since e5757cf was
1094f52,
checked in by Paul Brossier <piem@piem.org>, 15 years ago
|
created interfaces directory, moved java there and added new python draft interface
|
-
Property mode set to
100644
|
File size:
461 bytes
|
Line | |
---|
1 | // main.java |
---|
2 | |
---|
3 | public class main { |
---|
4 | static { |
---|
5 | System.loadLibrary("aubiowrapper"); |
---|
6 | } |
---|
7 | |
---|
8 | public static void main(String argv[]) { |
---|
9 | float freq = (float)440.; |
---|
10 | float midi = aubiowrapper.aubio_freqtomidi( (float)440.); |
---|
11 | if (midi != (float) 69.0) { |
---|
12 | throw new Error((String) "Error: aubio_freqtomidi(440.) != 69.", null); |
---|
13 | } |
---|
14 | System.out.print(freq); |
---|
15 | System.out.print(" Hz corresponds to midi note "); |
---|
16 | System.out.println(midi); |
---|
17 | } |
---|
18 | } |
---|
19 | |
---|
Note: See
TracBrowser
for help on using the repository browser.