Csound Csound-dev Csound-tekno Search About

[Csnd] Microphone signal

Date2019-07-19 06:39
FromEnrico Francioni <00000005323c8739-dmarc-request@LISTSERV.HEANET.IE>
Subject[Csnd] Microphone signal
Hi everyone. 

Any idea on this little / big problem? 

I'm working with CsoundQt-d-py-html-cs6 (with Csound 6.12, on a MacBook Pro retina, macOsMojave 10.14.5) and I'm trying to get the audio signal of a microphone interfaced with an iConnectAUDIO4+ sound card connected to the notebook; I take the headphone output from the iConnectAUDIO4+ sound card. 
I'm using JackPilot to overcome the latency problem of a few seconds after the Run (as I was told to do a few months ago ...). 

[No problem, however, if, with the same hardware and software settings, I send out signals of other nature (oscillators, audio files...)]. 

*...the code's very simple…:* 

 
 
 
 

sr = 44100 
ksmps = 128 
nchnls = 1 
0dbfs = 1 


instr 1 

a1	in 
out	a1 

endin 


 
 

i1	0	3600 

 
 

* 

*This is the message from the Console:* 

STARTING FILE 
Creating options 
Creating orchestra 
closing tag 
Creating score 
rtaudio: JACK module enabled 
Elapsed time at end of orchestra compile: real: 0.002s, CPU: 0.002s 
sorting score ... 
        ... done 
Elapsed time at end of score sort: real: 0.002s, CPU: 0.002s 
midi channel 1 using instr 1 
midi channel 2 using instr 1 
midi channel 3 using instr 1 
midi channel 4 using instr 1 
midi channel 5 using instr 1 
midi channel 6 using instr 1 
midi channel 7 using instr 1 
midi channel 8 using instr 1 
midi channel 9 using instr 1 
midi channel 10 using instr 1 
midi channel 11 using instr 1 
midi channel 12 using instr 1 
midi channel 13 using instr 1 
midi channel 14 using instr 1 
midi channel 15 using instr 1 
midi channel 16 using instr 1 
0dBFS level = 1.0 
orch now loaded 
audio buffered in 512 sample-frame blocks 
reading 1024-byte blks of shorts from adc (RAW) 
system sr: 44100.000000 
Jack input ports: 
 0: adc0 (dac:system:capture_1) 
 1: adc1 (dac:system:capture_2) 
 2: adc2 (dac:system:capture_3) 
 3: adc3 (dac:system:capture_4) 
 4: adc4 (dac:system:capture_5) 
 5: adc5 (dac:system:capture_6) 
 6: adc6 (dac:system:capture_7) 
 7: adc7 (dac:system:capture_8) 
 8: adc8 (dac:test_out.csd:output1) 
connecting channel 0 to system:capture_1 
Jack output ports: 
 0: dac0 (dac:system:playback_1) 
 1: dac1 (dac:system:playback_2) 
 2: dac2 (dac:system:playback_3) 
 3: dac3 (dac:system:playback_4) 
 4: dac4 (dac:system:playback_5) 
 5: dac5 (dac:system:playback_6) 
 6: dac6 (dac:system:playback_7) 
 7: dac7 (dac:system:playback_8) 
 8: dac8 (dac:test_out.csd:input1) 
connecting channel 0 to system:playback_1 
writing 512 sample blks of 64-bit floats to dac 
SECTION 1: 
new alloc for instr 1: 
WARNING: rtjack: xrun in real time audio 
inactive allocs returned to freespace 
end of score.	  overall amps:  0.00000 
           overall samples out of range:        0 
0 errors in performance 
Elapsed time at end of performance: real: 77.160s, CPU: 2.929s 
6637 512 sample blks of 64-bit floats written to dac 



THANKS! 
Enrico 

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2019-07-19 07:08
Fromjoachim heintz
SubjectRe: [Csnd] Microphone signal
hi enrico -

can you try
a1 inch 1
(if you use channel 1) instead?

the "in" opcode is for another purpose, i think.

best -
	joachim



On 19/07/19 07:39, Enrico Francioni wrote:
> Hi everyone.
>
> Any idea on this little / big problem?
>
> I'm working with CsoundQt-d-py-html-cs6 (with Csound 6.12, on a MacBook Pro retina, macOsMojave 10.14.5) and I'm trying to get the audio signal of a microphone interfaced with an iConnectAUDIO4+ sound card connected to the notebook; I take the headphone output from the iConnectAUDIO4+ sound card.
> I'm using JackPilot to overcome the latency problem of a few seconds after the Run (as I was told to do a few months ago ...).
>
> [No problem, however, if, with the same hardware and software settings, I send out signals of other nature (oscillators, audio files...)].
>
> *...the code's very simple…:*
>
> 
> 
> 
> 
>
> sr = 44100
> ksmps = 128
> nchnls = 1
> 0dbfs = 1
>
>
> instr 1
>
> a1	in
> out	a1
>
> endin
>
>
> 
> 
>
> i1	0	3600
>
> 
> 
>
> *
>
> *This is the message from the Console:*
>
> STARTING FILE
> Creating options
> Creating orchestra
> closing tag
> Creating score
> rtaudio: JACK module enabled
> Elapsed time at end of orchestra compile: real: 0.002s, CPU: 0.002s
> sorting score ...
>         ... done
> Elapsed time at end of score sort: real: 0.002s, CPU: 0.002s
> midi channel 1 using instr 1
> midi channel 2 using instr 1
> midi channel 3 using instr 1
> midi channel 4 using instr 1
> midi channel 5 using instr 1
> midi channel 6 using instr 1
> midi channel 7 using instr 1
> midi channel 8 using instr 1
> midi channel 9 using instr 1
> midi channel 10 using instr 1
> midi channel 11 using instr 1
> midi channel 12 using instr 1
> midi channel 13 using instr 1
> midi channel 14 using instr 1
> midi channel 15 using instr 1
> midi channel 16 using instr 1
> 0dBFS level = 1.0
> orch now loaded
> audio buffered in 512 sample-frame blocks
> reading 1024-byte blks of shorts from adc (RAW)
> system sr: 44100.000000
> Jack input ports:
>  0: adc0 (dac:system:capture_1)
>  1: adc1 (dac:system:capture_2)
>  2: adc2 (dac:system:capture_3)
>  3: adc3 (dac:system:capture_4)
>  4: adc4 (dac:system:capture_5)
>  5: adc5 (dac:system:capture_6)
>  6: adc6 (dac:system:capture_7)
>  7: adc7 (dac:system:capture_8)
>  8: adc8 (dac:test_out.csd:output1)
> connecting channel 0 to system:capture_1
> Jack output ports:
>  0: dac0 (dac:system:playback_1)
>  1: dac1 (dac:system:playback_2)
>  2: dac2 (dac:system:playback_3)
>  3: dac3 (dac:system:playback_4)
>  4: dac4 (dac:system:playback_5)
>  5: dac5 (dac:system:playback_6)
>  6: dac6 (dac:system:playback_7)
>  7: dac7 (dac:system:playback_8)
>  8: dac8 (dac:test_out.csd:input1)
> connecting channel 0 to system:playback_1
> writing 512 sample blks of 64-bit floats to dac
> SECTION 1:
> new alloc for instr 1:
> WARNING: rtjack: xrun in real time audio
> inactive allocs returned to freespace
> end of score.	  overall amps:  0.00000
>            overall samples out of range:        0
> 0 errors in performance
> Elapsed time at end of performance: real: 77.160s, CPU: 2.929s
> 6637 512 sample blks of 64-bit floats written to dac
>
>
>
> THANKS!
> Enrico
>
> Csound mailing list
> Csound@listserv.heanet.ie
> https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
> Send bugs reports to
>         https://github.com/csound/csound/issues
> Discussions of bugs and features can be posted here
>

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2019-07-19 11:07
FromEnrico Francioni <00000005323c8739-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] Microphone signal
thanks joachim,

I had already tried with
/a1 inch 1
/
but the result was the same: no output signal.

My problem arises when I use the iConnectAUDIO4 + and JackPilot sound card
...
When instead I manage everything from Note book, the problem does not exist.
I do not understand…



--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here

Date2019-07-19 16:43
FromEnrico Francioni <00000005323c8739-dmarc-request@LISTSERV.HEANET.IE>
SubjectRe: [Csnd] Microphone signal
…I'm sorry,

the problem was due to the configuration of the software (iConnectivity
iConfig - Version: 4.2.7) of the (twisted) sound card (iConnectAUDIO4 +) and
the address at the output of the signals (Patchbay).
Everything seems to work better even with JackOSX.

…best!
Enrico



--
Sent from: http://csound.1045644.n5.nabble.com/Csound-General-f1093014.html

Csound mailing list
Csound@listserv.heanet.ie
https://listserv.heanet.ie/cgi-bin/wa?A0=CSOUND
Send bugs reports to
        https://github.com/csound/csound/issues
Discussions of bugs and features can be posted here