From jsyn at music.columbia.edu Tue Sep 23 11:40:49 2008 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Tue Sep 23 11:41:04 2008 Subject: [jsyn] Re: Wire problem: can't connect objects on OSX 10.5 In-Reply-To: <829D84B2-9881-4630-B91B-3E99FF7CB273@venus.dti.ne.jp> References: <829D84B2-9881-4630-B91B-3E99FF7CB273@venus.dti.ne.jp> Message-ID: <48D90E01.2060109@mail.rockefeller.edu> Has this been fixed or a workaround found? Thanks Nick D jsyn@music.columbia.edu wrote: > Hi, I've been having the exact same problem - was waiting to see if > someone would get the same symptoms! > > I have tried on multiple computers and get the same problem, so I am > now pretty sure it's a design issue. > > Have no problem on computers running 10.4. > > Best, > > Wataru Itoh > > >> Date: Fri, 28 Mar 2008 20:10:49 -0400 >> From: jsyn@music.columbia.edu >> Subject: [jsyn] Wire problem: can't connect objects on OSX 10.5 >> To: jsyn@music.columbia.edu >> Message-ID: <50E95C54-3148-4C70-A5E0-0197015F692B@gmail.com> >> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes >> >> Hi, I'm having a problem with Wire where I can't connect objects >> together. Patch cables do not appear when I drag. I can add objects, >> but not connect them. I'm using the .zip distribution of Wire from >> the softsynth site. >> >> Is anyone else having this problem? >> >> thanks, >> Peter McCulloch > _______________________________________________ > 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 Tue Sep 23 14:02:36 2008 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Tue Sep 23 14:02:47 2008 Subject: [jsyn] Re: Wire problem: can't connect objects on OSX 10.5 In-Reply-To: <48D90E01.2060109@mail.rockefeller.edu> References: <829D84B2-9881-4630-B91B-3E99FF7CB273@venus.dti.ne.jp> <48D90E01.2060109@mail.rockefeller.edu> Message-ID: yes, I have the same problem! thanks Luis _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx From jsyn at music.columbia.edu Tue Sep 23 14:03:19 2008 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Tue Sep 23 14:03:31 2008 Subject: [jsyn] Re: Wire problem: can't connect objects on OSX 10.5 In-Reply-To: <48D90E01.2060109@mail.rockefeller.edu> References: <829D84B2-9881-4630-B91B-3E99FF7CB273@venus.dti.ne.jp> <48D90E01.2060109@mail.rockefeller.edu> Message-ID: <48D92F67.8060200@softsynth.com> Hello, >>> Hi, I'm having a problem with Wire where I can't connect objects >>> together. Patch cables do not appear when I drag. >> Have no problem on computers running 10.4. I did some testing and determined that the bug occurs with Java 1.4 and 1.5 but not with Java 1.3. Evidently Max OS X 10.5 (Leopard) uses a later version of Java by default. I only have Mac OS X 10.4 but I was able to reproduce the bug by using the later version of java. I will work on fixing this bug for Java 10.5 and release a fix. In the meantime here is a workaround. 1) Download this file: http://www.softsynth.com/jsyn/developers/archives/runwire.command.zip 2) Move the "runwire.command.zip" file to your "wire10_mac_osx" folder. 3) Double click on "runwire.command.zip" to unzip it. 4) Double click on the new file "runwire.command" and it should run wire in about 10 seconds. If it does not run then please send me the printout from the shell window so I can debug the path problem. 5) Try connecting some units. It should work. 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 Tue Sep 23 14:04:15 2008 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Tue Sep 23 14:04:55 2008 Subject: [jsyn] Re: Wire problem: can't connect objects on OSX 10.5 In-Reply-To: References: <829D84B2-9881-4630-B91B-3E99FF7CB273@venus.dti.ne.jp> <48D90E01.2060109@mail.rockefeller.edu> Message-ID: <48D92F9F.8070302@mail.rockefeller.edu> My current workaround is Parallels Desktop and Windows XP running on my Intel Mac. Wire is happy there. Nick jsyn@music.columbia.edu wrote: > yes, I have the same problem! > thanks > Luis > > _________________________________________________________________ > News, entertainment and everything you care about at Live.com. Get it now! > http://www.live.com/getstarted.aspx_______________________________________________ > 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 Tue Sep 23 18:34:56 2008 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Tue Sep 23 18:35:10 2008 Subject: [jsyn] Re: Wire problem: can't connect objects on OSX 10.5 In-Reply-To: <48D92F67.8060200@softsynth.com> References: <829D84B2-9881-4630-B91B-3E99FF7CB273@venus.dti.ne.jp> <48D90E01.2060109@mail.rockefeller.edu> <48D92F67.8060200@softsynth.com> Message-ID: <48D96F10.9040600@mail.rockefeller.edu> Hi Phil Thanks for the quick response as always. Mine is a new machine so I guess I do not have the older Java 1.3 on it (?) Here's the shell stuff: Last login: Tue Sep 23 14:56:14 on ttys000 /Users/nick/Desktop/wire10_mac_osx\ 11-45-30/runwire.command ; exit; Nicks-Macbook-Pro:~ nick$ /Users/nick/Desktop/wire10_mac_osx\ 11-45-30/runwire.command ; exit; Run Wire using old version of Java to avoid bug in 1.4 and 1.5 lrwxr-xr-x 1 root wheel 74 May 5 00:45 /usr/bin/java -> /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java /Users/nick/Desktop/wire10_mac_osx 11-45-30/runwire.command: line 11: /System/Library/Frameworks/JavaVM.framework/Versions/1.3/Commands/java: No such file or directory logout [Process completed] Thanks Nick D jsyn@music.columbia.edu wrote: > Hello, > > >>> Hi, I'm having a problem with Wire where I can't connect objects > >>> together. Patch cables do not appear when I drag. > >> Have no problem on computers running 10.4. > > I did some testing and determined that the bug occurs with Java 1.4 > and 1.5 but not with Java 1.3. Evidently Max OS X 10.5 (Leopard) uses > a later version of Java by default. I only have Mac OS X 10.4 but I > was able to reproduce the bug by using the later version of java. > > I will work on fixing this bug for Java 10.5 and release a fix. > > In the meantime here is a workaround. > > 1) Download this file: > http://www.softsynth.com/jsyn/developers/archives/runwire.command.zip > > 2) Move the "runwire.command.zip" file to your "wire10_mac_osx" folder. > > 3) Double click on "runwire.command.zip" to unzip it. > > 4) Double click on the new file "runwire.command" and it should run > wire in about 10 seconds. If it does not run then please send me the > printout from the shell window so I can debug the path problem. > > 5) Try connecting some units. It should work. > > 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 Tue Sep 23 18:41:46 2008 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Tue Sep 23 18:42:01 2008 Subject: [jsyn] JSyn and Eclipse Message-ID: <48D970AA.5000907@mail.rockefeller.edu> Does anyone know why some OSX machines require jsyn.jar to be added to an Eclipse project's libraries and others do not? In my Java Music Systems class about 1/3 of my students need to explicitely point to the jar (add external jar in java build path) In all cases the jar is found in Java/extensions Something odd, is that after sampling the location of jsyn.jar on various machine on which the the JSyn plug-in was installed, I found that the install location varies from machine to machine /Library/Java/extensions /Systems/Library/Java/extensions /Users//Library/Java/extensions Maybe eclipse only sees it if it's in one of these three locations (maybe /System/...)? Thoughts? Nick From jsyn at music.columbia.edu Tue Sep 23 18:42:13 2008 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Tue Sep 23 18:42:28 2008 Subject: [jsyn] Re: Wire problem: can't connect objects on OSX 10.5 In-Reply-To: <48D96F10.9040600@mail.rockefeller.edu> References: <829D84B2-9881-4630-B91B-3E99FF7CB273@venus.dti.ne.jp> <48D90E01.2060109@mail.rockefeller.edu> <48D92F67.8060200@softsynth.com> <48D96F10.9040600@mail.rockefeller.edu> Message-ID: <48D970C5.8000805@softsynth.com> OK, thanks for the report. I'll try to find a workaround for this in a day or two. It appears something broke in Java 1.4 and 1.5. 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 Phil > > Thanks for the quick response as always. > > Mine is a new machine so I guess I do not have the older Java 1.3 on it > (?) Here's the shell stuff: > Last login: Tue Sep 23 14:56:14 on ttys000 > /Users/nick/Desktop/wire10_mac_osx\ 11-45-30/runwire.command ; exit; > Nicks-Macbook-Pro:~ nick$ /Users/nick/Desktop/wire10_mac_osx\ > 11-45-30/runwire.command ; exit; > Run Wire using old version of Java to avoid bug in 1.4 and 1.5 > lrwxr-xr-x 1 root wheel 74 May 5 00:45 /usr/bin/java -> > /System/Library/Frameworks/JavaVM.framework/Versions/Current/Commands/java > /Users/nick/Desktop/wire10_mac_osx 11-45-30/runwire.command: line 11: > /System/Library/Frameworks/JavaVM.framework/Versions/1.3/Commands/java: > No such file or directory > logout > > [Process completed] > > Thanks > Nick D > > jsyn@music.columbia.edu wrote: >> Hello, >> >> >>> Hi, I'm having a problem with Wire where I can't connect objects >> >>> together. Patch cables do not appear when I drag. >> >> Have no problem on computers running 10.4. >> >> I did some testing and determined that the bug occurs with Java 1.4 >> and 1.5 but not with Java 1.3. Evidently Max OS X 10.5 (Leopard) uses >> a later version of Java by default. I only have Mac OS X 10.4 but I >> was able to reproduce the bug by using the later version of java. >> >> I will work on fixing this bug for Java 10.5 and release a fix. >> >> In the meantime here is a workaround. >> >> 1) Download this file: >> http://www.softsynth.com/jsyn/developers/archives/runwire.command.zip >> >> 2) Move the "runwire.command.zip" file to your "wire10_mac_osx" folder. >> >> 3) Double click on "runwire.command.zip" to unzip it. >> >> 4) Double click on the new file "runwire.command" and it should run >> wire in about 10 seconds. If it does not run then please send me the >> printout from the shell window so I can debug the path problem. >> >> 5) Try connecting some units. It should work. >> >> 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 > _______________________________________________ > 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 Tue Sep 23 19:50:39 2008 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Tue Sep 23 18:49:11 2008 Subject: [jsyn] JSyn and Eclipse In-Reply-To: <48D970AA.5000907@mail.rockefeller.edu> Message-ID: Don't have a real answer but I too noticed this recently. After setting up Eclipse with a JSYN project on a new Macbook pro running OS 10..3 I didn't need to explicitly add the jar to the path of the project - I did on my old G4 titanium powerbook OS 10.3.9 laptop. The location of the jsyn.jar after install I believe was different on these machines for what it's worth - a change based on a different OS? C>T> On 9/23/08 5:41 PM, "jsyn@music.columbia.edu" wrote: > Does anyone know why some OSX machines require jsyn.jar to be added to > an Eclipse project's libraries and others do not? > In my Java Music Systems class about 1/3 of my students need to > explicitely point to the jar (add external jar in java build path) > In all cases the jar is found in Java/extensions > > Something odd, is that after sampling the location of jsyn.jar on > various machine on which the the JSyn plug-in was installed, I found > that the install location varies from machine to machine > /Library/Java/extensions > /Systems/Library/Java/extensions > /Users//Library/Java/extensions > > Maybe eclipse only sees it if it's in one of these three locations > (maybe /System/...)? Thoughts? > Nick > _______________________________________________ > 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 Tue Sep 23 19:09:18 2008 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Tue Sep 23 19:09:29 2008 Subject: [jsyn] JSyn and Eclipse In-Reply-To: <48D970AA.5000907@mail.rockefeller.edu> References: <48D970AA.5000907@mail.rockefeller.edu> Message-ID: <48D9771E.7030507@softsynth.com> The new JSyn plugin installer first tries to install in: /Users//Library/Java/extensions then it tries: /Library/Java/extensions Both should work with Eclipse. You may need to restart Eclipse after installing the plugin. The "/Systems/Library/Java/extensions" should only be for system JAR files. If it is in there then it may be an old installation. Some discussion of the extensions here: http://today.java.net/pub/a/today/2005/04/26/extending.html To help debug this, please print the system properties: System.getProperty( "java.ext.dirs" ) and System.getProperty( "java.library.path" ) 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: > Does anyone know why some OSX machines require jsyn.jar to be added to > an Eclipse project's libraries and others do not? > In my Java Music Systems class about 1/3 of my students need to > explicitely point to the jar (add external jar in java build path) > In all cases the jar is found in Java/extensions > > Something odd, is that after sampling the location of jsyn.jar on > various machine on which the the JSyn plug-in was installed, I found > that the install location varies from machine to machine > /Library/Java/extensions > /Systems/Library/Java/extensions > /Users//Library/Java/extensions > > Maybe eclipse only sees it if it's in one of these three locations > (maybe /System/...)? Thoughts? > Nick > _______________________________________________ > 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 Fri Sep 26 05:41:33 2008 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Fri Sep 26 05:41:44 2008 Subject: [jsyn] controling multi-channel output Message-ID: I'm in the process of building an interactive audio-based art installation which consists of multiple speakers controlled by a single computer. The speakers need to play different audio files separately at different times. I am currently using a MOTU 828 connected to my mac-book pro through a firewire cable. It seems like I should be able to control 8 multiple mono channels using jsyn, but am running into a variety of difficulties. I had thought that the obvious solution would be to use the mixer class, but that does not seem to support external hardware. For some reason, it does not see the 8 output channels that the MOTU provides. I was able to control specific output channels from my computer using the channelOut function as a part of the synthesizer. However, this means I must load the .wav files as midi samples, which also poses difficulties. At this stage, I am wondering if to ditch java and just use pd or max/msp. Or alternatively, use multiple sound cards instead of the MOTU828. Any suggestions would be highly appreciated. I can also attach my code if anyone thinks it is relevant. thanks! -- Gilad portfolio: http://giladlotan.com thoughts: http://giladlotan.com/blog activism: http://www.globalvoicesonline.org/author/gilad-lotan/ From jsyn at music.columbia.edu Fri Sep 26 06:34:57 2008 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Fri Sep 26 06:35:15 2008 Subject: [jsyn] controling multi-channel output In-Reply-To: References: Message-ID: <48DCBAD1.6020901@mail.rockefeller.edu> JSyn is capable of sending to multiple output channels For multiple outputs you can use multiple ChannelOuts which are a mono versions of LineOut. http://www.softsynth.com/jsyn/docs/autodocs/com/softsynth/jsyn/ChannelOut.html The Mixer class is just a convenience for mixing signals together; it's not a virtual interface to your hardware. Nick jsyn@music.columbia.edu wrote: > I'm in the process of building an interactive audio-based art installation > which consists of multiple speakers controlled by a single computer. The > speakers need to play different audio files separately at different times. I > am currently using a MOTU 828 connected to my mac-book pro through a > firewire cable. It seems like I should be able to control 8 multiple mono > channels using jsyn, but am running into a variety of difficulties. > > I had thought that the obvious solution would be to use the mixer class, but > that does not seem to support external hardware. For some reason, it does > not see the 8 output channels that the MOTU provides. I was able to control > specific output channels from my computer using the channelOut function as a > part of the synthesizer. However, this means I must load the .wav files as > midi samples, which also poses difficulties. > > At this stage, I am wondering if to ditch java and just use pd or max/msp. > Or alternatively, use multiple sound cards instead of the MOTU828. Any > suggestions would be highly appreciated. > I can also attach my code if anyone thinks it is relevant. > > thanks! > From jsyn at music.columbia.edu Sat Sep 27 22:27:21 2008 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Sat Sep 27 22:27:34 2008 Subject: [jsyn] controling multi-channel output In-Reply-To: <48DCBAD1.6020901@mail.rockefeller.edu> References: <48DCBAD1.6020901@mail.rockefeller.edu> Message-ID: Thanks for your answer Nick. But I am still running into problems when trying to output an .aiff file to a specific channel. When I use the LineOut function, my sample plays fine. But when I use channelOut I get no output. here's my code: =============> Synth.startEngine(0); Synth.requestVersion( 142 ); SynthContext synthContext= new SynthContext(); synthContext.initialize(); // load sound sample try { stream = new FileInputStream(fileName); } catch (FileNotFoundException e1) { // TODO Auto-generated catch block e1.printStackTrace(); } try { sample = new SynthSampleAIFF(synthContext); sample.load(stream); } catch (IOException e) { System.err.println("IO: "+e); } sampler = new SampleReader_16V1(synthContext); //lineOut = new LineOut(); int outDeviceID = 3; // MOTU 828 int inDeviceID = 0; // INTERNAL MAC BOOK PRO MICROPHONE int outMax = AudioDevice.getMaxOutputChannels(outDeviceID); int inMax = AudioDevice.getMaxInputChannels(inDeviceID); int numDevices = AudioDevice.getNumDevices(); System.out.println(outDeviceID+":"+outMax+"--"+inDeviceID+":"+inMax+"--"+numDevices); synthContext.start( Synth.FLAG_NON_REAL_TIME, 44100.0f, inDeviceID, inMax, outDeviceID, outMax ); System.out.println("started context"); // USING CHANNEL OUT ChannelOut channelOut = new ChannelOut(synthContext,5); channelOut.start(); sampler.amplitude.set(0.9); sampler.rate.set(44100.0); sampler.start(); sampler.output.connect( channelOut.input ); sampler.samplePort.queueOn(sample); Synth.sleepForTicks(2000); sampler.samplePort.queueOff(sample); =================================== On Fri, Sep 26, 2008 at 3:34 AM, wrote: > JSyn is capable of sending to multiple output channels > For multiple outputs you can use multiple ChannelOuts which are a mono > versions of LineOut. > > http://www.softsynth.com/jsyn/docs/autodocs/com/softsynth/jsyn/ChannelOut.html > > The Mixer class is just a convenience for mixing signals together; it's not > a virtual interface to your hardware. > > Nick > > jsyn@music.columbia.edu wrote: > >> I'm in the process of building an interactive audio-based art installation >> which consists of multiple speakers controlled by a single computer. The >> speakers need to play different audio files separately at different times. >> I >> am currently using a MOTU 828 connected to my mac-book pro through a >> firewire cable. It seems like I should be able to control 8 multiple mono >> channels using jsyn, but am running into a variety of difficulties. >> >> I had thought that the obvious solution would be to use the mixer class, >> but >> that does not seem to support external hardware. For some reason, it does >> not see the 8 output channels that the MOTU provides. I was able to >> control >> specific output channels from my computer using the channelOut function as >> a >> part of the synthesizer. However, this means I must load the .wav files as >> midi samples, which also poses difficulties. >> >> At this stage, I am wondering if to ditch java and just use pd or max/msp. >> Or alternatively, use multiple sound cards instead of the MOTU828. Any >> suggestions would be highly appreciated. >> I can also attach my code if anyone thinks it is relevant. >> >> thanks! >> >> > _______________________________________________ > 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 > -- Gilad portfolio: http://giladlotan.com thoughts: http://giladlotan.com/blog activism: http://www.globalvoicesonline.org/author/gilad-lotan/ From jsyn at music.columbia.edu Sat Sep 27 23:32:59 2008 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Sat Sep 27 23:33:25 2008 Subject: [jsyn] controling multi-channel output In-Reply-To: References: <48DCBAD1.6020901@mail.rockefeller.edu> Message-ID: <48DEFAEB.9080302@mail.rockefeller.edu> Hello Gilad Please try compiling and running TJ_Devices.java (source included with JSyn SDK) It will bring up a gui with which you can select your different audio devices and sends a test signal to them. Thanks Nick jsyn@music.columbia.edu wrote: > Thanks for your answer Nick. > But I am still running into problems when trying to output an .aiff file to > a specific channel. When I use the LineOut function, my sample plays fine. > But when I use channelOut I get no output. > > here's my code: > =============> > > Synth.startEngine(0); > Synth.requestVersion( 142 ); > SynthContext synthContext= new SynthContext(); > synthContext.initialize(); > > // load sound sample > try { > stream = new FileInputStream(fileName); > } catch (FileNotFoundException e1) { > // TODO Auto-generated catch block > e1.printStackTrace(); > } > > try > { > sample = new SynthSampleAIFF(synthContext); > sample.load(stream); > > } catch (IOException e) { > System.err.println("IO: "+e); > } > > sampler = new SampleReader_16V1(synthContext); > //lineOut = new LineOut(); > > int outDeviceID = 3; // MOTU 828 > int inDeviceID = 0; // INTERNAL MAC BOOK PRO MICROPHONE > int outMax = AudioDevice.getMaxOutputChannels(outDeviceID); > int inMax = AudioDevice.getMaxInputChannels(inDeviceID); > > int numDevices = AudioDevice.getNumDevices(); > > System.out.println(outDeviceID+":"+outMax+"--"+inDeviceID+":"+inMax+"--"+numDevices); > > synthContext.start( Synth.FLAG_NON_REAL_TIME, 44100.0f, inDeviceID, > inMax, outDeviceID, outMax ); > System.out.println("started context"); > > // USING CHANNEL OUT > ChannelOut channelOut = new ChannelOut(synthContext,5); > channelOut.start(); > > sampler.amplitude.set(0.9); > sampler.rate.set(44100.0); > sampler.start(); > sampler.output.connect( channelOut.input ); > sampler.samplePort.queueOn(sample); > Synth.sleepForTicks(2000); > sampler.samplePort.queueOff(sample); > > =================================== > > > On Fri, Sep 26, 2008 at 3:34 AM, wrote: > > >> JSyn is capable of sending to multiple output channels >> For multiple outputs you can use multiple ChannelOuts which are a mono >> versions of LineOut. >> >> http://www.softsynth.com/jsyn/docs/autodocs/com/softsynth/jsyn/ChannelOut.html >> >> The Mixer class is just a convenience for mixing signals together; it's not >> a virtual interface to your hardware. >> >> Nick >> >> jsyn@music.columbia.edu wrote: >> >> >>> I'm in the process of building an interactive audio-based art installation >>> which consists of multiple speakers controlled by a single computer. The >>> speakers need to play different audio files separately at different times. >>> I >>> am currently using a MOTU 828 connected to my mac-book pro through a >>> firewire cable. It seems like I should be able to control 8 multiple mono >>> channels using jsyn, but am running into a variety of difficulties. >>> >>> I had thought that the obvious solution would be to use the mixer class, >>> but >>> that does not seem to support external hardware. For some reason, it does >>> not see the 8 output channels that the MOTU provides. I was able to >>> control >>> specific output channels from my computer using the channelOut function as >>> a >>> part of the synthesizer. However, this means I must load the .wav files as >>> midi samples, which also poses difficulties. >>> >>> At this stage, I am wondering if to ditch java and just use pd or max/msp. >>> Or alternatively, use multiple sound cards instead of the MOTU828. Any >>> suggestions would be highly appreciated. >>> I can also attach my code if anyone thinks it is relevant. >>> >>> thanks! >>> >>> >>> >> _______________________________________________ >> 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 Sun Sep 28 00:13:53 2008 From: jsyn at music.columbia.edu (jsyn@music.columbia.edu) Date: Sun Sep 28 00:14:04 2008 Subject: [jsyn] controling multi-channel output In-Reply-To: <48DEFAEB.9080302@mail.rockefeller.edu> References: <48DCBAD1.6020901@mail.rockefeller.edu> <48DEFAEB.9080302@mail.rockefeller.edu> Message-ID: Nick - TJ_Devices works on my setup. But I've managed to find my problem. Has to do with calling Synth.startEngine(0); in addition to SynthContext.start(0,...). When I only start SynthContext, my code works perfectly! I'll post the complete code online when am done with the project. cheers Gilad On Sat, Sep 27, 2008 at 8:32 PM, wrote: > Hello Gilad > Please try compiling and running TJ_Devices.java (source included with JSyn > SDK) > It will bring up a gui with which you can select your different audio > devices and sends a test signal to them. > Thanks > > Nick > > jsyn@music.columbia.edu wrote: > >> Thanks for your answer Nick. >> But I am still running into problems when trying to output an .aiff file >> to >> a specific channel. When I use the LineOut function, my sample plays fine. >> But when I use channelOut I get no output. >> >> here's my code: >> =============> >> >> Synth.startEngine(0); >> Synth.requestVersion( 142 ); >> SynthContext synthContext= new SynthContext(); >> synthContext.initialize(); >> >> // load sound sample >> try { >> stream = new FileInputStream(fileName); >> } catch (FileNotFoundException e1) { >> // TODO Auto-generated catch block >> e1.printStackTrace(); >> } >> >> try >> { >> sample = new SynthSampleAIFF(synthContext); >> sample.load(stream); >> >> } catch (IOException e) { >> System.err.println("IO: "+e); >> } >> >> sampler = new SampleReader_16V1(synthContext); >> //lineOut = new LineOut(); >> >> int outDeviceID = 3; // MOTU 828 >> int inDeviceID = 0; // INTERNAL MAC BOOK PRO MICROPHONE >> int outMax = AudioDevice.getMaxOutputChannels(outDeviceID); >> int inMax = AudioDevice.getMaxInputChannels(inDeviceID); >> >> int numDevices = AudioDevice.getNumDevices(); >> >> >> System.out.println(outDeviceID+":"+outMax+"--"+inDeviceID+":"+inMax+"--"+numDevices); >> >> synthContext.start( Synth.FLAG_NON_REAL_TIME, 44100.0f, >> inDeviceID, >> inMax, outDeviceID, outMax ); >> System.out.println("started context"); >> >> // USING CHANNEL OUT >> ChannelOut channelOut = new ChannelOut(synthContext,5); >> channelOut.start(); >> >> sampler.amplitude.set(0.9); >> sampler.rate.set(44100.0); >> sampler.start(); >> sampler.output.connect( channelOut.input ); >> sampler.samplePort.queueOn(sample); >> Synth.sleepForTicks(2000); >> sampler.samplePort.queueOff(sample); >> >> =================================== >> >> >> On Fri, Sep 26, 2008 at 3:34 AM, wrote: >> >> >> >>> JSyn is capable of sending to multiple output channels >>> For multiple outputs you can use multiple ChannelOuts which are a mono >>> versions of LineOut. >>> >>> >>> http://www.softsynth.com/jsyn/docs/autodocs/com/softsynth/jsyn/ChannelOut.html >>> >>> The Mixer class is just a convenience for mixing signals together; it's >>> not >>> a virtual interface to your hardware. >>> >>> Nick >>> >>> jsyn@music.columbia.edu wrote: >>> >>> >>> >>>> I'm in the process of building an interactive audio-based art >>>> installation >>>> which consists of multiple speakers controlled by a single computer. The >>>> speakers need to play different audio files separately at different >>>> times. >>>> I >>>> am currently using a MOTU 828 connected to my mac-book pro through a >>>> firewire cable. It seems like I should be able to control 8 multiple >>>> mono >>>> channels using jsyn, but am running into a variety of difficulties. >>>> >>>> I had thought that the obvious solution would be to use the mixer class, >>>> but >>>> that does not seem to support external hardware. For some reason, it >>>> does >>>> not see the 8 output channels that the MOTU provides. I was able to >>>> control >>>> specific output channels from my computer using the channelOut function >>>> as >>>> a >>>> part of the synthesizer. However, this means I must load the .wav files >>>> as >>>> midi samples, which also poses difficulties. >>>> >>>> At this stage, I am wondering if to ditch java and just use pd or >>>> max/msp. >>>> Or alternatively, use multiple sound cards instead of the MOTU828. Any >>>> suggestions would be highly appreciated. >>>> I can also attach my code if anyone thinks it is relevant. >>>> >>>> thanks! >>>> >>>> >>>> >>>> >>> _______________________________________________ >>> 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 >>> >>> >>> >> >> >> >> >> > _______________________________________________ > 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 > -- Gilad portfolio: http://giladlotan.com thoughts: http://giladlotan.com/blog activism: http://www.globalvoicesonline.org/author/gilad-lotan/