2016-11-28 2 views
2

오버톤에서 USB 마이크를 어떻게 사용할 수 있습니까? 다음은 일반 3.5mm의 마이크를 사용하는 예입니다클로저 오버톤으로 USB 마이크 캡처

(ns insane-noises.vocoder) 
(use 'overtone.live) 

(def a (buffer 2048)) 
(def b (buffer 2048)) 

(demo 5 
     (let [input (sound-in 0); mic 
      src (white-noise) ; synth - try replacing this with other sound sources 
      formed (pv-mul (fft a input) (fft b src)) 
      audio (ifft formed)] 
      (pan2 (* 0.1 audio)))) 

내가 (사운드 0) 0 1, 2, 3 ... 변화를 시도 - 아무것도 작동하지 않습니다. 내 마이크가 skype 등의 모든 응용 프로그램에서 잘 작동합니다.

답변

0

방금 ​​재생 해 보았습니다. 간헐적으로 만 작동합니다. 나는 나를 배음과 SuperCollider라는 사이의 OSC 통신을 볼 수 있도록의 REPL에서

(event-debug-on) 

을 달렸다.

overtone.core를 사용하고 외부 서버에 연결하는지, overtone.live를 사용하는지에 따라 두 가지 방식으로 실패합니다. overtone.live와

, 나는 잘 버퍼를 할당,하지만 난 데모 기능을 실행할 때, 내가 얻을 : 기본 청소 배음과 관련된 사건의 무리에 의해 다음

event: [:overtone :osc-msg-received] (:msg {:path "/done", :type-tag "s", :args ("/d_recv")}) 

event: "/done" (:path "/done" :args ("/d_recv")) 

event: [:overtone :osc-msg-received] (:msg {:path "/synced", :type-tag "i", :args (18)}) 

event: "/synced" (:path "/synced" :args (18)) 

zombified - calling shutdown handler 
event: [:overtone :osc-msg-received] (:msg {:path "/n_go", :type-tag "iiiii", :args (34 7 -1 -1 0)}) 

event: "/n_go" (:path "/n_go" :args (34 7 -1 -1 0)) 

event: [:overtone :node-created 34] ({:node #<synth-node[live]: beatboxchad-l394/audition-synth 34>}) 

... 노드 및 그룹과 같은 종료 및 종료 부분. 만약 당신이 overtone.live에서 같은 출력을 얻지 못한다면, 나는 나의 JACK 세팅 또는 무엇인가에 관한 문제를 해결할 무언가가 있다는 것을 알게 될 것이다.

외부 서버에 연결된 overtone.core를 사용하면 간헐적으로 작동합니다.

작동 할 때, 나는 다음과 같은 이벤트 얻을 :

실패

event: [:overtone :osc-msg-received] (:msg {:path "/d_removed", :type-tag "s", :args ("beatboxchad-l394/audition-synth"), :src-host "localhost.localdomain", :src-port 57110}) 

event: "/d_removed" (:path "/d_removed" :args ("beatboxchad-l394/audition-synth")) 

event: [:overtone :osc-msg-received] (:msg {:path "/done", :type-tag "s", :args ("/d_recv"), :src-host "localhost.localdomain", :src-port 57110}) 

event: "/done" (:path "/done" :args ("/d_recv")) 

event: [:overtone :osc-msg-received] (:msg {:path "/synced", :type-tag "i", :args (71), :src-host "localhost.localdomain", :src-port 57110}) 

event: "/synced" (:path "/synced" :args (71)) 

event: [:overtone :osc-msg-received] (:msg {:path "/n_go", :type-tag "iiiii", :args (114 7 -1 -1 0), :src-host "localhost.localdomain", :src-port 57110}) 

event: "/n_go" (:path "/n_go" :args (114 7 -1 -1 0)) 

event: [:overtone :node-created 114] ({:node #<synth-node[live]: beatboxchad-l394/audition-synth 114>}) 

event: [:overtone :osc-msg-received] (:msg {:path "/n_end", :type-tag "iiiii", :args (114 7 -1 -1 0), :src-host "localhost.localdomain", :src-port 57110}) 

event: "/n_end" (:path "/n_end" :args (114 7 -1 -1 0)) 

event: [:overtone :node-destroyed 114] ({:node #<synth-node[destroyed]: beatboxchad-l394/audition-synth 114>}) 
, 나는 다음을 얻을 수를 :

event: [:overtone :osc-msg-received] (:msg {:path "/d_removed", :type-tag "s", :args ("beatboxchad-l394/audition-synth"), :src-host "localhost.localdomain", :src-port 57110}) 

event: "/d_removed" (:path "/d_removed" :args ("beatboxchad-l394/audition-synth")) 

event: [:overtone :osc-msg-received] (:msg {:path "/done", :type-tag "s", :args ("/d_recv"), :src-host "localhost.localdomain", :src-port 57110}) 

event: "/done" (:path "/done" :args ("/d_recv")) 

event: [:overtone :osc-msg-received] (:msg {:path "/synced", :type-tag "i", :args (72), :src-host "localhost.localdomain", :src-port 57110}) 

event: "/synced" (:path "/synced" :args (72)) 

event: [:overtone :osc-msg-received] (:msg {:path "/fail", :type-tag "ss", :args ("/s_new" "duplicate node ID"), :src-host "localhost.localdomain", :src-port 57110}) 

event: "/fail" (:path "/fail" :args ("/s_new" "duplicate node ID")) 

이 서버와의 OSC 통신 고장처럼 보이는 - 어딘가에서 노드 ID가 올바르게 증가하지 않습니다.

시도 할 때 어떤 측면에서 얻습니까?

+0

"대답"에 대한 의견이 있으면 대신 사과해야합니까? –