From jsyn at music.columbia.edu Tue Jun 12 23:50:09 2007 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Wed Jun 13 05:05:24 2007 Subject: [jsyn] Displaying a trace. Message-ID: <11092348.post@talk.nabble.com> Hi JSyn Users, I'm just starting out with JSyn, (and also with Java), but its so far so good. I got JSyn working from the examples and tutorials without too much of a hassle. Now I need to draw an oscilloscope view of the output signal in a java app. I have noticed the SynthScope which seems to be what I need, but I'm thinking that I would rather want to get the image data directly, and use that together with anything else I may want to add. I.e. to have more control over the display. The WaveTrace and WaveDisplay classes also seem to be handy. As I'm relatively new to java and JSyn I'm searching for examples of how to get the image data from a signal to display on a java component (e.g. JPanel). If anyone can help me with an example or just point me in the right direction, it will be greatly appreciated. Thanks -- View this message in context: http://www.nabble.com/Displaying-a-trace.-tf3912415.html#a11092348 Sent from the music.columbia.edu - JSyn mailing list archive at Nabble.com. From jsyn at music.columbia.edu Wed Jun 13 15:02:10 2007 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Wed Jun 13 15:02:14 2007 Subject: [jsyn] Displaying a trace. In-Reply-To: <11092348.post@talk.nabble.com> References: <11092348.post@talk.nabble.com> Message-ID: <46703F32.8080002@softsynth.com> > As I'm relatively new to java and JSyn I'm searching for examples of > how to get the image data from a signal to display on a java > component (e.g. JPanel). First you need to capture audio data. Queue a SynthSample to a SampleWriter_16F1 to record a buffer full of audio. Then read() the data as shorts from the sample. If you are using Swing then make a subclass of JComponent and override the paint() method to draw the data. Convert the audio data to x and y values and then call: g.drawLine( previousX, previousY, x, y ); Thank you, Phil Burk --------------------------------------- SoftSynth, Audio Research and Development http://www.softsynth.com/ 75 Pleasant Lane, San Rafael, CA, 94901 USA Phone/FAX: 1-415-453-4320 --------------------------------------- From jsyn at music.columbia.edu Sun Jun 17 12:47:06 2007 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Sun Jun 17 12:47:13 2007 Subject: [jsyn] Displaying a trace. [OT] In-Reply-To: <46703F32.8080002@softsynth.com> References: <11092348.post@talk.nabble.com> <46703F32.8080002@softsynth.com> Message-ID: <4226F0C9-12FC-4FFB-A347-043575D68327@nyu.edu> This is very off-topic, but I love the way Phil always says Thank You, Phil Burk after he has provided complete, concise, detailed help even for the most vague questions. The irony always makes me laugh. Thank YOU, Phil! best, kevin On Jun 13, 2007, at 3:02 PM, jsyn@music.columbia.edu wrote: > >> As I'm relatively new to java and JSyn I'm searching for examples of >> how to get the image data from a signal to display on a java >> component (e.g. JPanel). > > First you need to capture audio data. Queue a SynthSample to a > SampleWriter_16F1 to record a buffer full of audio. Then read() the > data as shorts from the sample. > > If you are using Swing then make a subclass of JComponent and > override the paint() method to draw the data. Convert the audio > data to x and y values and then call: > > g.drawLine( previousX, previousY, x, y ); > > Thank you, > Phil Burk > --------------------------------------- > SoftSynth, Audio Research and Development > http://www.softsynth.com/ > 75 Pleasant Lane, San Rafael, CA, 94901 USA > Phone/FAX: 1-415-453-4320 > --------------------------------------- > _______________________________________________ > JSyn mailing list > JSyn@music.columbia.edu > To change digest mode or to make other administrative changes visit: > http://music.columbia.edu/mailman/listinfo/jsyn From jsyn at music.columbia.edu Wed Jun 20 05:45:50 2007 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Wed Jun 20 05:46:24 2007 Subject: [jsyn] Displaying a trace. [OT] In-Reply-To: <4226F0C9-12FC-4FFB-A347-043575D68327@nyu.edu> References: <11092348.post@talk.nabble.com> <46703F32.8080002@softsynth.com> <4226F0C9-12FC-4FFB-A347-043575D68327@nyu.edu> Message-ID: <11210162.post@talk.nabble.com> Phil, Thank you for the reply. It is much appreciated. I got the display working and am currently busy trying non-real time processing. I think I may have some questions on how to set it up but I will first try to figure it out and then ask some (hopefully less vague) questions. music.columbia.edu - JSyn mailing list wrote: > > This is very off-topic, but I love the way Phil always says > > Thank You, > Phil Burk > > after he has provided complete, concise, detailed help even for the > most vague questions. The irony always makes me laugh. Thank YOU, Phil! > Kevin, my apologies for posting a vague question; I'm sure it will become easier to be more specific once I've mastered the likes of JSyn, Java and Eclipse (all in one go). I'll try my best! Thanks again. -- View this message in context: http://www.nabble.com/Displaying-a-trace.-tf3912415.html#a11210162 Sent from the music.columbia.edu - JSyn mailing list archive at Nabble.com. From jsyn at music.columbia.edu Thu Jun 28 04:57:08 2007 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Thu Jun 28 04:57:11 2007 Subject: [jsyn] Limited audio device friendly name. In-Reply-To: <11210162.post@talk.nabble.com> References: <11092348.post@talk.nabble.com> <46703F32.8080002@softsynth.com> <4226F0C9-12FC-4FFB-A347-043575D68327@nyu.edu> <11210162.post@talk.nabble.com> Message-ID: <11339439.post@talk.nabble.com> Hi Phil, I am currently enumerating the list of audio devices available, similar to the example TJ_Devices.java using AudioDevice.getName(index). However, the result returned seems to be only 31 characters long (at max). While getting the friendly names is really useful, having them limited makes it only almost useful. What should I do (or do differently) if I want to return the full name? Do you know where the limit exists, because from what I gather in the AudioDevice class, the length of the buffer is actually 256? Could it possibly be hardware/OS related? Any help is appreciated. Thanks, Etienne. -- View this message in context: http://www.nabble.com/Displaying-a-trace.-tf3912415.html#a11339439 Sent from the music.columbia.edu - JSyn mailing list archive at Nabble.com. From jsyn at music.columbia.edu Fri Jun 29 16:30:52 2007 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Fri Jun 29 16:30:56 2007 Subject: [jsyn] Compressing audio Message-ID: Hi, I am working in a project and I would like to to the following: 1)People will download a java web start application and set up the audio 2) The software will grab short audio fragments from the microphone and will send them over the internet to a server 3) In the server size a set of stuff will happen with the audio off- line. Sending a compressed version of the audio is much better than sending the wav files. I do not think jsyn can encode ogg or mp3 files or any other format. Do you guys know a pure-java audio encoder? Any help will be appreciated. Thanks! Hugo From jsyn at music.columbia.edu Sat Jun 30 01:36:43 2007 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Sat Jun 30 01:35:37 2007 Subject: [jsyn] Compressing audio In-Reply-To: References: Message-ID: <4685EBEB.8000604@softsynth.com> What you are describing is similar to our ListenUp product: www.javasonics.com ListenUp can record audio in a browser, compress it using Speex, and upload it to a server. Thank you, Phil Burk --------------------------------------- SoftSynth, Audio Research and Development http://www.softsynth.com/ 75 Pleasant Lane, San Rafael, CA, 94901 USA Phone/FAX: 1-415-453-4320 --------------------------------------- jsyn@music.columbia.edu wrote: > Hi, > I am working in a project and I would like to to the following: > > 1)People will download a java web start application and set up the audio > 2) The software will grab short audio fragments from the microphone and > will send them over the internet to a server > 3) In the server size a set of stuff will happen with the audio off-line. > > Sending a compressed version of the audio is much better than sending > the wav files. I do not think jsyn can encode ogg or mp3 files or any > other format. Do you guys know a pure-java audio encoder? > Any help will be appreciated. > > Thanks! > > Hugo > > _______________________________________________ > JSyn mailing list > JSyn@music.columbia.edu > To change digest mode or to make other administrative changes visit: > http://music.columbia.edu/mailman/listinfo/jsyn > > From jsyn at music.columbia.edu Sat Jun 30 03:40:39 2007 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Sat Jun 30 03:40:42 2007 Subject: [jsyn] Compressing audio In-Reply-To: References: Message-ID: <33160.80.176.151.208.1183189239.squirrel@europa.cse.dmu.ac.uk> > Hi, > I am working in a project and I would like to to the following: > > 1)People will download a java web start application and set up the audio > 2) The software will grab short audio fragments from the microphone > and will send them over the internet to a server > 3) In the server size a set of stuff will happen with the audio off- > line. > An alternative to MP3 might be to use Ogg Vorbis files. These are not patented, and there is software/libraries available which are free to use. See: http://vorbis.com/software/#java From jsyn at music.columbia.edu Sat Jun 30 14:48:51 2007 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Sat Jun 30 14:48:55 2007 Subject: [jsyn] Compressing audio In-Reply-To: <33160.80.176.151.208.1183189239.squirrel@europa.cse.dmu.ac.uk> References: <33160.80.176.151.208.1183189239.squirrel@europa.cse.dmu.ac.uk> Message-ID: <4ECCA107-3013-4B0B-9586-BBB20B16933E@u.washington.edu> I tough about using Ogg Vorbis but as far as I know and I can see there are not pure-java Ogg Vorbis encoders. Only decoders. Javasonics seems as a good alternative. This artistic project involves also sending video therefore I am wondering how hard would be to integrate the javasonics audio part with a video grabber -> video compressor -> send the video to a server. I am researching the Java Multimedia Framework with its streaming capabilities but JMF seems to be dead since 2004. Any comment appreciate it! best Hugo On Jun 30, 2007, at 12:40 AM, jsyn@music.columbia.edu wrote: >> Hi, >> I am working in a project and I would like to to the following: >> >> 1)People will download a java web start application and set up the >> audio >> 2) The software will grab short audio fragments from the microphone >> and will send them over the internet to a server >> 3) In the server size a set of stuff will happen with the audio off- >> line. >> > > An alternative to MP3 might be to use Ogg Vorbis files. These are not > patented, and there is software/libraries available which are free > to use. > > See: http://vorbis.com/software/#java > > _______________________________________________ > JSyn mailing list > JSyn@music.columbia.edu > To change digest mode or to make other administrative changes visit: > http://music.columbia.edu/mailman/listinfo/jsyn