4 Commits
v1.0 ... v1.0.1

Author SHA1 Message Date
2ae030df92 Fixed warning. 2014-10-08 19:49:21 -05:00
dff0b993d3 Update build.xml 2014-10-08 19:45:40 -05:00
c56a664a2a Changed compilation instructions. 2014-10-08 19:43:35 -05:00
544c15be1d Now supporting smaller durations. 2014-10-08 19:40:27 -05:00
3 changed files with 5 additions and 3 deletions

View File

@ -6,7 +6,7 @@ FreqSample is a tool made in Java that will play a frequency.
### Compiling
Make sure you have the JDK installed along with Apache Ant. Then go to the root directory of this project and run:
```
$ ant jar
$ ant
```
### Contributing

View File

@ -11,7 +11,7 @@
<target name="compile" >
<mkdir dir="${classes.dir}" />
<javac srcdir="${src.dir}" destdir="${classes.dir}" />
<javac includeantruntime="false" srcdir="${src.dir}" destdir="${classes.dir}" />
</target>
<target name="jar" depends="compile" >
@ -22,4 +22,6 @@
</manifest>
</jar>
</target>
<target name="main" depends="jar" />
</project>

View File

@ -35,7 +35,7 @@ public class Generator {
ByteBuffer cBuf = ByteBuffer.allocate(line.getBufferSize());
int ctSamplesTotal = SAMPLE_RATE * (int)(msecs / 1000);
int ctSamplesTotal = (int)(SAMPLE_RATE * msecs / 1000);
while(ctSamplesTotal > 0) {
double fCycleInc = fFreq/SAMPLE_RATE;