|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Hey everybody,
I've got a wierd idea and I want to try it out in Java. This is not for the FIRST competetion, but just for fun. I have heard that in Java, we can produce any sound with a given frequency. Can somebody help me out with this. I want to try it out. I want to make an instrument in which we can press different keys to produce different sounds. Thanks, in advance. |
|
#2
|
||||
|
||||
|
Re: Making sound in JAVA
Look into the Javax.sound classes.
|
|
#3
|
||||
|
||||
|
Re: Making sound in JAVA
I've never looked into creating sound in JAVA. However I do know its possible to create a system beep, or something close to it. Just use a \7 as you would a \n for a line return.
Example: public class beep { public static void main (String[] args) { System.out.print("\7"); } } |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| need help with post production we lost sound | horsefarmer | 3D Animation and Competition | 2 | 19-02-2003 21:26 |
| Java Books | Yan Wang | Programming | 1 | 27-12-2002 16:26 |
| Making an entrance... | Hymnson | Championship Event | 0 | 16-04-2002 22:20 |
| Teams with cool sound system on their robot... | Lethi86 | Regional Competitions | 2 | 18-03-2002 01:35 |
| No Java for XP | Kyle Fenton | Chit-Chat | 21 | 23-07-2001 20:15 |