|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
|
|
|
Re: Number of Devices into a listregarding question 1, i still think that this information should be
included in the printout in a way that can be easily parsed by a regexp and in a format that is used across all platforms (sc3 on windows already prints ins and outs but in a different way than the mac formatting). see: http://lists.create.ucsb.edu/pipermail/sc-dev/2007-January/011389.html http://lists.create.ucsb.edu/pipermail/sc-users/2007-September/ 036476.html i posted a modified SC_CoreAudio.cpp back then but can't find it in the archives now. ciao, -sciss- Am 08.07.2008 um 11:37 schrieb Dan Stowell: > 2008/7/8 Neil Cosgrove <neil_cosgrove@...>: >> good work fella! thankyou. i don't quite understand how it works >> but it >> does. there should be something to do this in the standard release >> i think. >> >> 1. so now how do i found out how many in's and out's these devices >> have? >> >> 2. and also i know you can do: server.options.device = >> "Soundflower (16ch)"; >> but how would you get the input from "Built-in Input" and output to >> "Soundflower (16ch)" for exasmple? > > Not possible at the moment - we're working on it right at the moment > though. However you can do it by creating an "Aggregate Device" in > your Mac's settings - use the "Audio MIDI Setup" app to do that. > > Dan > > > >>> Date: Mon, 7 Jul 2008 20:46:06 +0200 >>> From: andre@... >>> To: sc-users@... >>> Subject: Re: [sc-users] Number of Devices into a list >>> >>> Es war der 07.07.2008 19:35 Uhr, als Neil Cosgrove nicht widerstehen >>> konnte, >>> folgende Gedanken dem Netz anzuvertrauen: >>> >>>> >>>> Hi all, >>>> >>>> Does any know of a way to get all the audio devices on a system >>>> as their >>>> sting >>>> id's into a list? >>>> >>>> ie ["Built-in Microphone", "Built-in Input","Built-in >>>> Output","Soundflower >>>> (2ch)","Soundflower (16ch)"] >>> >>> >>> I've written a class for that: >>> >>> // ---------------------------- >>> AudioDevices { >>> classvar <devices; >>> >>> *initClass { >>> this.scan; >>> } >>> >>> *scan { >>> var pipe, line, n, x; >>> >>> devices = List.new; >>> pipe = Pipe.new("./scsynth -u 57119 ", "r"); >>> >>> line = pipe.getLine; >>> while({line.contains("Number of Devices:").not }, { line = >>> pipe.getLine; >>> }); >>> n = line.split($:)[1].asInteger; >>> n.do ({ line = pipe.getLine; x = line.split($:)[1]; >>> devices.add(x.copyRange(2, x.size - 2) ) }); >>> pipe.close; >>> >>> devices = devices.asArray; >>> this.post; >>> } >>> >>> *post { >>> "--------------------------------------".postln; >>> ("found" + devices.size + "audio devices:").postln; >>> devices.do { arg d, i; ("\t" + i + ":" + "\""++d++"\"").postln; }; >>> "--------------------------------------".postln; >>> } >>> >>> } >>> // ---------------------------- >>> >>> to get the list just call AudioDevices.devices >>> >>> >>> >>> best >>> >>> Andre >>> >>> >>> -------------------------------------------------- >>> Andre Bartetzki >>> http://www.bartetzki.de >>> mailto:andre@... >>> >>> Tel +49-(0)30-92375877 >>> VoIP +49-(0)30-38108677 >>> Fax +49-(0)30-38108678 >>> >>> Skype bartetzki >>> http://www.myspace.com/andrebartetzki >>> -------------------------------------------------- >>> >>> >>> _______________________________________________ >>> sc-users mailing list >>> sc-users@... >>> http://lists.create.ucsb.edu/mailman/listinfo/sc-users >> >> ________________________________ >> Get Hotmail on your Mobile! Try it Now! >> _______________________________________________ >> sc-users mailing list >> sc-users@... >> http://lists.create.ucsb.edu/mailman/listinfo/sc-users >> >> > > > > -- > http://www.mcld.co.uk > > _______________________________________________ > sc-users mailing list > > > info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/ > MusicTechnology/880 > archive: http://www.listarc.bham.ac.uk/marchives/sc-users/ > search: http://www.listarc.bham.ac.uk/lists/sc-users/search/ _______________________________________________ sc-users mailing list info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880 archive: http://www.listarc.bham.ac.uk/marchives/sc-users/ search: http://www.listarc.bham.ac.uk/lists/sc-users/search/ |
|
|
RE: Number of Devices into a listi'm really not criticizing but i am surprised its not there already. it would have been one of the first things i would have done. in anticipation. neil : ) > From: contact@... > Subject: Re: [sc-users] Number of Devices into a list > Date: Tue, 8 Jul 2008 11:58:42 +0200 > To: sc-users@... > > regarding question 1, i still think that this information should be > included in the printout in a way that can be easily parsed by a > regexp and in a format that is used across all platforms (sc3 on > windows already prints ins and outs but in a different way than the > mac formatting). > > see: > http://lists.create.ucsb.edu/pipermail/sc-dev/2007-January/011389.html > http://lists.create.ucsb.edu/pipermail/sc-users/2007-September/ > 036476.html > > i posted a modified SC_CoreAudio.cpp back then but can't find it in > the archives now. > > ciao, -sciss- > > > Am 08.07.2008 um 11:37 schrieb Dan Stowell: > > > 2008/7/8 Neil Cosgrove <neil_cosgrove@...>: > >> good work fella! thankyou. i don't quite understand how it works > >> but it > >> does. there should be something to do this in the standard release > >> i think. > >> > >> 1. so now how do i found out how many in's and out's these devices > >> have? > >> > >> 2. and also i know you can do: server.options.device = > >> "Soundflower (16ch)"; > >> but how would you get the input from "Built-in Input" and output to > >> "Soundflower (16ch)" for exasmple? > > > > Not possible at the moment - we're working on it right at the moment > > though. However you can do it by creating an "Aggregate Device" in > > your Mac's settings - use the "Audio MIDI Setup" app to do that. > > > > Dan > > > > > > > >>> Date: Mon, 7 Jul 2008 20:46:06 +0200 > >>> From: andre@... > >>> To: sc-users@... > >>> Subject: Re: [sc-users] Number of Devices into a list > >>> > >>> Es war der 07.07.2008 19:35 Uhr, als Neil Cosgrove nicht widerstehen > >>> konnte, > >>> folgende Gedanken dem Netz anzuvertrauen: > >>> > >>>> > >>>> Hi all, > >>>> > >>>> Does any know of a way to get all the audio devices on a system > >>>> as their > >>>> sting > >>>> id's into a list? > >>>> > >>>> ie ["Built-in Microphone", "Built-in Input","Built-in > >>>> Output","Soundflower > >>>> (2ch)","Soundflower (16ch)"] > >>> > >>> > >>> I've written a class for that: > >>> > >>> // ---------------------------- > >>> AudioDevices { > >>> classvar <devices; > >>> > >>> *initClass { > >>> this.scan; > >>> } > >>> > >>> *scan { > >>> var pipe, line, n, x; > >>> > >>> devices = List.new; > >>> pipe = Pipe.new("./scsynth -u 57119 ", "r"); > >>> > >>> line = pipe.getLine; > >>> while({line.contains("Number of Devices:").not }, { line = > >>> pipe.getLine; > >>> }); > >>> n = line.split($:)[1].asInteger; > >>> n.do ({ line = pipe.getLine; x = line.split($:)[1]; > >>> devices.add(x.copyRange(2, x.size - 2) ) }); > >>> pipe.close; > >>> > >>> devices = devices.asArray; > >>> this.post; > >>> } > >>> > >>> *post { > >>> "--------------------------------------".postln; > >>> ("found" + devices.size + "audio devices:").postln; > >>> devices.do { arg d, i; ("\t" + i + ":" + "\""++d++"\"").postln; }; > >>> "--------------------------------------".postln; > >>> } > >>> > >>> } > >>> // ---------------------------- > >>> > >>> to get the list just call AudioDevices.devices > >>> > >>> > >>> > >>> best > >>> > >>> Andre > >>> > >>> > >>> -------------------------------------------------- > >>> Andre Bartetzki > >>> http://www.bartetzki.de > >>> mailto:andre@... > >>> > >>> Tel +49-(0)30-92375877 > >>> VoIP +49-(0)30-38108677 > >>> Fax +49-(0)30-38108678 > >>> > >>> Skype bartetzki > >>> http://www.myspace.com/andrebartetzki > >>> -------------------------------------------------- > >>> > >>> > >>> _______________________________________________ > >>> sc-users mailing list > >>> sc-users@... > >>> http://lists.create.ucsb.edu/mailman/listinfo/sc-users > >> > >> ________________________________ > >> Get Hotmail on your Mobile! Try it Now! > >> _______________________________________________ > >> sc-users mailing list > >> sc-users@... > >> http://lists.create.ucsb.edu/mailman/listinfo/sc-users > >> > >> > > > > > > > > -- > > http://www.mcld.co.uk > > > > _______________________________________________ > > sc-users mailing list > > > > > > info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/ > > MusicTechnology/880 > > archive: http://www.listarc.bham.ac.uk/marchives/sc-users/ > > search: http://www.listarc.bham.ac.uk/lists/sc-users/search/ > > > _______________________________________________ > sc-users mailing list > > > info (subscribe and unsubscribe): http://swiki.hfbk-hamburg.de:8888/MusicTechnology/880 > archive: http://www.listarc.bham.ac.uk/marchives/sc-users/ > search: http://www.listarc.bham.ac.uk/lists/sc-users/search/ Get Messenger on your Mobile! Get it now! |
| Free Forum Powered by Nabble | Forum Help |