Motu 828mk3 with AudioIn

View: New views
7 Messages — Rating Filter:   Alert me  

Motu 828mk3 with AudioIn

by almoka :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, i want to use AudioIn.ar but not with my internal mic, i want to use my motu's mic but when i conect the collider don't register the signal, who can i do? and this is my code and my post

(
SynthDef(\violin,{|out=9|
                        Out.ar(out,AudioIn.ar(1))
                        }).send(s)
                        )
                       
a=Synth(\violin)

(
SynthDef(\Allpass,{|gate=1|
    var sen,env;
       sen=In.ar(9);
          12.do{ sen=AllpassN.ar(sen,0.2,0.09.rand,1.2)};
          sen;
           env=EnvGen.kr(Env.asr(1,0.4,2),gate,doneAction:2);
              Out.ar(0,sen*env)
              }).send(s)
);

y=Synth(\Allpass)
y.set(\gate, 0)

Using vector unit: no
Number of Devices: 5
   0 : "Built-in Microphone"
   1 : "Built-in Input"
   2 : "Built-in Output"
   3 : "MOTU 828mk3"
   4 : "Audio-in Built"

"Audio-in Built" Input Device
   Streams: 8
      0  channels 2
      1  channels 2
      2  channels 8
      3  channels 2
      4  channels 2
      5  channels 2
      6  channels 8
      7  channels 8

"Audio-in Built" Output Device
   Streams: 7
      0  channels 2
      1  channels 8
      2  channels 2
      3  channels 2
      4  channels 2
      5  channels 8
      6  channels 8

<-SC_CoreAudioDriver::Setup world 00224440
SC_AudioDriver: numSamples=512, sampleRate=44100.000000
->SC_CoreAudioDriver::DriverStart
start   UseSeparateIO?: 0
<-SC_CoreAudioDriver::DriverStart
SuperCollider 3 server ready..
PublishPortToRendezvous 0 5855
notification is on

Re: Motu 828mk3 with AudioIn

by Dan Stowell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi -

You need to set the MOTU as your preferred device. Run the following
line BEFORE you boot the sever:

   s.options.device_("MOTU 828mk3");


HTH
Dan


2008/7/2 almoka <kalvarezunam@...>:

>
> Hi, i want to use AudioIn.ar but not with my internal mic, i want to use my
> motu's mic but when i conect the collider don't register the signal, who can
> i do? and this is my code and my post
>
> (
> SynthDef(\violin,{|out=9|
>                        Out.ar(out,AudioIn.ar(1))
>                        }).send(s)
>                        )
>
> a=Synth(\violin)
>
> (
> SynthDef(\Allpass,{|gate=1|
>    var sen,env;
>       sen=In.ar(9);
>          12.do{ sen=AllpassN.ar(sen,0.2,0.09.rand,1.2)};
>          sen;
>           env=EnvGen.kr(Env.asr(1,0.4,2),gate,doneAction:2);
>              Out.ar(0,sen*env)
>              }).send(s)
> );
>
> y=Synth(\Allpass)
> y.set(\gate, 0)
>
> Using vector unit: no
> Number of Devices: 5
>   0 : "Built-in Microphone"
>   1 : "Built-in Input"
>   2 : "Built-in Output"
>   3 : "MOTU 828mk3"
>   4 : "Audio-in Built"
>
> "Audio-in Built" Input Device
>   Streams: 8
>      0  channels 2
>      1  channels 2
>      2  channels 8
>      3  channels 2
>      4  channels 2
>      5  channels 2
>      6  channels 8
>      7  channels 8
>
> "Audio-in Built" Output Device
>   Streams: 7
>      0  channels 2
>      1  channels 8
>      2  channels 2
>      3  channels 2
>      4  channels 2
>      5  channels 8
>      6  channels 8
>
> <-SC_CoreAudioDriver::Setup world 00224440
> SC_AudioDriver: numSamples=512, sampleRate=44100.000000
> ->SC_CoreAudioDriver::DriverStart
> start   UseSeparateIO?: 0
> <-SC_CoreAudioDriver::DriverStart
> SuperCollider 3 server ready..
> PublishPortToRendezvous 0 5855
> notification is on
>
> --
> View this message in context: http://www.nabble.com/Motu-828mk3-with-AudioIn-tp18241063p18241063.html
> Sent from the Supercollider - User mailing list archive at Nabble.com.
>
>
> _______________________________________________
> 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/
>



--
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/

Re: Motu 828mk3 with AudioIn

by almoka :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

ok i do it but the problem is the same

Server.local.options.device = "MOTU 828mk3";
Server.internal.options.device = "MOTU 828mk3";
s.options.device_("MOTU 828mk3")
s.boot

booting 57110
localhost
Using vector unit: no
Number of Devices: 5
   0 : "Built-in Microphone"
   1 : "Built-in Input"
   2 : "Built-in Output"
   3 : "MOTU 828mk3"
   4 : "Audio-in Built"

"MOTU 828mk3" Input Device
   Streams: 7
      0  channels 2
      1  channels 8
      2  channels 2
      3  channels 2
      4  channels 2
      5  channels 8
      6  channels 8

"MOTU 828mk3" Output Device
   Streams: 6
      0  channels 8
      1  channels 2
      2  channels 2
      3  channels 2
      4  channels 8
      5  channels 8

<-SC_CoreAudioDriver::Setup world 002244A0
SC_AudioDriver: numSamples=512, sampleRate=44100.000000
->SC_CoreAudioDriver::DriverStart
start   UseSeparateIO?: 0
<-SC_CoreAudioDriver::DriverStart
SuperCollider 3 server ready..
PublishPortToRendezvous 0 5855
notification is on


2008/7/2 Dan Stowell <danstowell@...>:
Hi -

You need to set the MOTU as your preferred device. Run the following
line BEFORE you boot the sever:

  s.options.device_("MOTU 828mk3");


HTH
Dan


2008/7/2 almoka <kalvarezunam@...>:
>
> Hi, i want to use AudioIn.ar but not with my internal mic, i want to use my
> motu's mic but when i conect the collider don't register the signal, who can
> i do? and this is my code and my post
>
> (
> SynthDef(\violin,{|out=9|
>                        Out.ar(out,AudioIn.ar(1))
>                        }).send(s)
>                        )
>
> a=Synth(\violin)
>
> (
> SynthDef(\Allpass,{|gate=1|
>    var sen,env;
>       sen=In.ar(9);
>          12.do{ sen=AllpassN.ar(sen,0.2,0.09.rand,1.2)};
>          sen;
>           env=EnvGen.kr(Env.asr(1,0.4,2),gate,doneAction:2);
>              Out.ar(0,sen*env)
>              }).send(s)
> );
>
> y=Synth(\Allpass)
> y.set(\gate, 0)
>
> Using vector unit: no
> Number of Devices: 5
>   0 : "Built-in Microphone"
>   1 : "Built-in Input"
>   2 : "Built-in Output"
>   3 : "MOTU 828mk3"
>   4 : "Audio-in Built"
>
> "Audio-in Built" Input Device
>   Streams: 8
>      0  channels 2
>      1  channels 2
>      2  channels 8
>      3  channels 2
>      4  channels 2
>      5  channels 2
>      6  channels 8
>      7  channels 8
>
> "Audio-in Built" Output Device
>   Streams: 7
>      0  channels 2
>      1  channels 8
>      2  channels 2
>      3  channels 2
>      4  channels 2
>      5  channels 8
>      6  channels 8
>
> <-SC_CoreAudioDriver::Setup world 00224440
> SC_AudioDriver: numSamples=512, sampleRate=44100.000000
> ->SC_CoreAudioDriver::DriverStart
> start   UseSeparateIO?: 0
> <-SC_CoreAudioDriver::DriverStart
> SuperCollider 3 server ready..
> PublishPortToRendezvous 0 5855
> notification is on
>
> --
> View this message in context: http://www.nabble.com/Motu-828mk3-with-AudioIn-tp18241063p18241063.html
> Sent from the Supercollider - User mailing list archive at Nabble.com.
>
>
> _______________________________________________
> 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/
>



--
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/



--
Katya A. Alvarez Molina
Centro Multimedia CENART

Re: Motu 828mk3 with AudioIn

by Dan Stowell :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

OK, try changing

  y=Synth(\Allpass)

to

  y=Synth(\Allpass, target: a, addAction: \addAfter)

You need to make sure that your fx synth is happening after your
source synth, the above should do it. (There's a helpfile called
"Order of execution" which explains a lot more about this.)

HTH
Dan


2008/7/2 Katja Alvarez <kalvarezunam@...>:

> ok i do it but the problem is the same
>
> Server.local.options.device = "MOTU 828mk3";
> Server.internal.options.device = "MOTU 828mk3";
> s.options.device_("MOTU 828mk3")
> s.boot
>
> booting 57110
> localhost
> Using vector unit: no
> Number of Devices: 5
>    0 : "Built-in Microphone"
>    1 : "Built-in Input"
>    2 : "Built-in Output"
>    3 : "MOTU 828mk3"
>    4 : "Audio-in Built"
>
> "MOTU 828mk3" Input Device
>    Streams: 7
>       0  channels 2
>       1  channels 8
>       2  channels 2
>       3  channels 2
>       4  channels 2
>       5  channels 8
>       6  channels 8
>
> "MOTU 828mk3" Output Device
>    Streams: 6
>       0  channels 8
>       1  channels 2
>       2  channels 2
>       3  channels 2
>       4  channels 8
>       5  channels 8
>
> <-SC_CoreAudioDriver::Setup world 002244A0
> SC_AudioDriver: numSamples=512, sampleRate=44100.000000
> ->SC_CoreAudioDriver::DriverStart
> start   UseSeparateIO?: 0
> <-SC_CoreAudioDriver::DriverStart
> SuperCollider 3 server ready..
> PublishPortToRendezvous 0 5855
> notification is on
>
>
> 2008/7/2 Dan Stowell <danstowell@...>:
>>
>> Hi -
>>
>> You need to set the MOTU as your preferred device. Run the following
>> line BEFORE you boot the sever:
>>
>>   s.options.device_("MOTU 828mk3");
>>
>>
>> HTH
>> Dan
>>
>>
>> 2008/7/2 almoka <kalvarezunam@...>:
>> >
>> > Hi, i want to use AudioIn.ar but not with my internal mic, i want to use
>> > my
>> > motu's mic but when i conect the collider don't register the signal, who
>> > can
>> > i do? and this is my code and my post
>> >
>> > (
>> > SynthDef(\violin,{|out=9|
>> >                        Out.ar(out,AudioIn.ar(1))
>> >                        }).send(s)
>> >                        )
>> >
>> > a=Synth(\violin)
>> >
>> > (
>> > SynthDef(\Allpass,{|gate=1|
>> >    var sen,env;
>> >       sen=In.ar(9);
>> >          12.do{ sen=AllpassN.ar(sen,0.2,0.09.rand,1.2)};
>> >          sen;
>> >           env=EnvGen.kr(Env.asr(1,0.4,2),gate,doneAction:2);
>> >              Out.ar(0,sen*env)
>> >              }).send(s)
>> > );
>> >
>> > y=Synth(\Allpass)
>> > y.set(\gate, 0)
>> >
>> > Using vector unit: no
>> > Number of Devices: 5
>> >   0 : "Built-in Microphone"
>> >   1 : "Built-in Input"
>> >   2 : "Built-in Output"
>> >   3 : "MOTU 828mk3"
>> >   4 : "Audio-in Built"
>> >
>> > "Audio-in Built" Input Device
>> >   Streams: 8
>> >      0  channels 2
>> >      1  channels 2
>> >      2  channels 8
>> >      3  channels 2
>> >      4  channels 2
>> >      5  channels 2
>> >      6  channels 8
>> >      7  channels 8
>> >
>> > "Audio-in Built" Output Device
>> >   Streams: 7
>> >      0  channels 2
>> >      1  channels 8
>> >      2  channels 2
>> >      3  channels 2
>> >      4  channels 2
>> >      5  channels 8
>> >      6  channels 8
>> >
>> > <-SC_CoreAudioDriver::Setup world 00224440
>> > SC_AudioDriver: numSamples=512, sampleRate=44100.000000
>> > ->SC_CoreAudioDriver::DriverStart
>> > start   UseSeparateIO?: 0
>> > <-SC_CoreAudioDriver::DriverStart
>> > SuperCollider 3 server ready..
>> > PublishPortToRendezvous 0 5855
>> > notification is on
>> >
>> > --
>> > View this message in context:
>> > http://www.nabble.com/Motu-828mk3-with-AudioIn-tp18241063p18241063.html
>> > Sent from the Supercollider - User mailing list archive at Nabble.com.
>> >
>> >
>> > _______________________________________________
>> > 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/
>> >
>>
>>
>>
>> --
>> 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/
>
>
>
> --
> Katya A. Alvarez Molina
> Centro Multimedia CENART



--
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/

Re: Motu 828mk3 with AudioIn

by almoka :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

ok i have my Synth.after(s,\nada)  but the problem is the same



2008/7/2 Dan Stowell <danstowell@...>:
OK, try changing

 y=Synth(\Allpass)

to

 y=Synth(\Allpass, target: a, addAction: \addAfter)

You need to make sure that your fx synth is happening after your
source synth, the above should do it. (There's a helpfile called
"Order of execution" which explains a lot more about this.)

HTH
Dan


2008/7/2 Katja Alvarez <kalvarezunam@...>:
> ok i do it but the problem is the same
>
> Server.local.options.device = "MOTU 828mk3";
> Server.internal.options.device = "MOTU 828mk3";
> s.options.device_("MOTU 828mk3")
> s.boot
>
> booting 57110
> localhost
> Using vector unit: no
> Number of Devices: 5
>    0 : "Built-in Microphone"
>    1 : "Built-in Input"
>    2 : "Built-in Output"
>    3 : "MOTU 828mk3"
>    4 : "Audio-in Built"
>
> "MOTU 828mk3" Input Device
>    Streams: 7
>       0  channels 2
>       1  channels 8
>       2  channels 2
>       3  channels 2
>       4  channels 2
>       5  channels 8
>       6  channels 8
>
> "MOTU 828mk3" Output Device
>    Streams: 6
>       0  channels 8
>       1  channels 2
>       2  channels 2
>       3  channels 2
>       4  channels 8
>       5  channels 8
>
> <-SC_CoreAudioDriver::Setup world 002244A0
> SC_AudioDriver: numSamples=512, sampleRate=44100.000000
> ->SC_CoreAudioDriver::DriverStart
> start   UseSeparateIO?: 0
> <-SC_CoreAudioDriver::DriverStart
> SuperCollider 3 server ready..
> PublishPortToRendezvous 0 5855
> notification is on
>
>
> 2008/7/2 Dan Stowell <danstowell@...>:
>>
>> Hi -
>>
>> You need to set the MOTU as your preferred device. Run the following
>> line BEFORE you boot the sever:
>>
>>   s.options.device_("MOTU 828mk3");
>>
>>
>> HTH
>> Dan
>>
>>
>> 2008/7/2 almoka <kalvarezunam@...>:
>> >
>> > Hi, i want to use AudioIn.ar but not with my internal mic, i want to use
>> > my
>> > motu's mic but when i conect the collider don't register the signal, who
>> > can
>> > i do? and this is my code and my post
>> >
>> > (
>> > SynthDef(\violin,{|out=9|
>> >                        Out.ar(out,AudioIn.ar(1))
>> >                        }).send(s)
>> >                        )
>> >
>> > a=Synth(\violin)
>> >
>> > (
>> > SynthDef(\Allpass,{|gate=1|
>> >    var sen,env;
>> >       sen=In.ar(9);
>> >          12.do{ sen=AllpassN.ar(sen,0.2,0.09.rand,1.2)};
>> >          sen;
>> >           env=EnvGen.kr(Env.asr(1,0.4,2),gate,doneAction:2);
>> >              Out.ar(0,sen*env)
>> >              }).send(s)
>> > );
>> >
>> > y=Synth(\Allpass)
>> > y.set(\gate, 0)
>> >
>> > Using vector unit: no
>> > Number of Devices: 5
>> >   0 : "Built-in Microphone"
>> >   1 : "Built-in Input"
>> >   2 : "Built-in Output"
>> >   3 : "MOTU 828mk3"
>> >   4 : "Audio-in Built"
>> >
>> > "Audio-in Built" Input Device
>> >   Streams: 8
>> >      0  channels 2
>> >      1  channels 2
>> >      2  channels 8
>> >      3  channels 2
>> >      4  channels 2
>> >      5  channels 2
>> >      6  channels 8
>> >      7  channels 8
>> >
>> > "Audio-in Built" Output Device
>> >   Streams: 7
>> >      0  channels 2
>> >      1  channels 8
>> >      2  channels 2
>> >      3  channels 2
>> >      4  channels 2
>> >      5  channels 8
>> >      6  channels 8
>> >
>> > <-SC_CoreAudioDriver::Setup world 00224440
>> > SC_AudioDriver: numSamples=512, sampleRate=44100.000000
>> > ->SC_CoreAudioDriver::DriverStart
>> > start   UseSeparateIO?: 0
>> > <-SC_CoreAudioDriver::DriverStart
>> > SuperCollider 3 server ready..
>> > PublishPortToRendezvous 0 5855
>> > notification is on
>> >
>> > --
>> > View this message in context:
>> > http://www.nabble.com/Motu-828mk3-with-AudioIn-tp18241063p18241063.html
>> > Sent from the Supercollider - User mailing list archive at Nabble.com.
>> >
>> >
>> > _______________________________________________
>> > 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/
>> >
>>
>>
>>
>> --
>> 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/
>
>
>
> --
> Katya A. Alvarez Molina
> Centro Multimedia CENART



--
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/



--
Katya A. Alvarez Molina
Centro Multimedia CENART

Re: Motu 828mk3 with AudioIn

by James Harkins-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Jul 2, 2008 at 1:39 PM, Katja Alvarez <kalvarezunam@...> wrote:
> ok i have my Synth.after(s,\nada)  but the problem is the same

9 is probably too low a bus number for your AudioIn synth. If you do this:

b = Bus.audio(s, 1);

The bus number (b.index) will most likely be 16.

If this is the case, your AudioIn synth is writing onto a hardware
input bus - where it will be immediately forgotten because of incoming
audio input from CoreAudio.

Private bus indices should be >= s.options.numOutputBusChannels +
s.options.numInputBusChannels

hjh


--
James Harkins /// dewdrop world
jamshark70@...
http://www.dewdrop-world.net

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal." -- Whitman

_______________________________________________
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: Motu 828mk3 with AudioIn

by bbarros :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

Try SoundIn with bus 0 (it should be your first audio input) and then increase it if it still doesn't work.


Bernardo


2008/7/2 James Harkins <jamshark70@...>:
On Wed, Jul 2, 2008 at 1:39 PM, Katja Alvarez <kalvarezunam@...> wrote:
> ok i have my Synth.after(s,\nada)  but the problem is the same

9 is probably too low a bus number for your AudioIn synth. If you do this:

b = Bus.audio(s, 1);

The bus number (b.index) will most likely be 16.

If this is the case, your AudioIn synth is writing onto a hardware
input bus - where it will be immediately forgotten because of incoming
audio input from CoreAudio.

Private bus indices should be >= s.options.numOutputBusChannels +
s.options.numInputBusChannels

hjh


--
James Harkins /// dewdrop world
jamshark70@...
http://www.dewdrop-world.net

"Come said the Muse,
Sing me a song no poet has yet chanted,
Sing me the universal." -- Whitman

_______________________________________________
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/

LightInTheBox - Buy quality products at wholesale price