Yado_tech

旅館+ITとはなんぞ

supercolliderから音が出なかった。

PythonでFoxDotをインストールして使おうと思ったらバックグラウンドのSuperColliderから音が出なかった。 OS: Ubuntu 18.04 USBアンプ使用

SuperColliderServerOptions.devices;としてみたら

ERROR: A primitive was not bound. 0 711
Instance of Method {    (0x5576a0a4a6c0, gc=01, fmt=00, flg=11, set=04)
  instance variables [15]
    raw1 : Float 0.000000   00000000 0080000C
    raw2 : Float 0.000000   00000300 03020003
    code : instance of Int8Array (0x5576a0a4a9c0, size=4, set=2)
    selectors : nil
    constants : nil
    prototypeFrame : instance of Array (0x5576a0a4a900, size=3, set=2)
    context : nil
    argNames : instance of SymbolArray (0x5576a0a4a840, size=3, set=2)
    varNames : nil
    sourceCode : nil
    ownerClass : class Meta_ServerOptions (0x5576a0a40e00)
    name : Symbol 'prListDevices'
    primitiveName : Symbol '_ListAudioDevices'
    filenameSymbol : Symbol '/usr/share/SuperCollider/SCClassLibrary/Common/Control/Server.sc'
    charPos : Integer 4472
}
ERROR: Primitive 'none' failed.
Failed.
RECEIVER:
   nil
CALL STACK:
    MethodError:reportError   0x5576a20b4f78
        arg this = <instance of PrimitiveFailedError>
    Nil:handleError   0x5576a2086318
        arg this = nil
        arg error = <instance of PrimitiveFailedError>
    Thread:handleError   0x5576a20b2f78
        arg this = <instance of Thread>
        arg error = <instance of PrimitiveFailedError>
    Object:throw   0x5576a1ffe618
        arg this = <instance of PrimitiveFailedError>
    Object:primitiveFailed   0x5576a20b1498
        arg this = nil
    Interpreter:interpretPrintCmdLine   0x5576a2073758
        arg this = <instance of Interpreter>
        var res = nil
        var func = <instance of Function>
        var code = "ServerOptions.devices;"
        var doc = nil
        var ideClass = <instance of Meta_ScIDE>
    Process:interpretPrintCmdLine   0x5576a208d1a8
        arg this = <instance of Main>
^^ The preceding error dump is for ERROR: Primitive 'none' failed.
Failed.
RECEIVER: nil

というメッセージが出た。USBのアンプ使ってるからかな?とは思うもののとりあえず色々してみた。

ぐぐってみたらココと同じ症状だった。

stackoverflow.com

多分オーディオコントロールがJackというものを使わないといけないらしい。

ということで具体的にやったこと。

sudo usermod -aG [YOURNAME] audioする。←これはいるのかわからない

qjackctlを起動する

設定のところを

f:id:devilmakelie:20190824000533p:plain

として

開始ボタンを押した。

f:id:devilmakelie:20190824000928p:plain

この状態でSuperCollider起動してFoxDot起動したらうまく音がなった。