# Connect to external speakers

**URL:** <https://forum.toplap.org/t/connect-to-external-speakers/836>\
**Category:** Foxdot\
**Created:** [28 September 2019 16:58 UTC](https://forum.toplap.org/t/connect-to-external-speakers/836 "2019-09-28T16:58:36Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![rokr44](https://forum.toplap.org/letter_avatar_proxy/v4/letter/r/ecd19e/32.png) [@rokr44](https://forum.toplap.org/u/rokr44)\
**Post date:** [28 September 2019 16:58 UTC](https://forum.toplap.org/t/connect-to-external-speakers/836/1 "2019-09-28T16:58:36Z")

</div>

How do I connect FoxDot and Supercollider to any Bluetooth speakers

---

<div class="post-metadata">

**Author:** ![juni](https://forum.toplap.org/letter_avatar_proxy/v4/letter/j/c57346/32.png) [@juni](https://forum.toplap.org/u/juni)\
**Post date:** [23 November 2019 13:11 UTC](https://forum.toplap.org/t/connect-to-external-speakers/836/2 "2019-11-23T13:11:20Z")

</div>

I’m in the same with raspberry pi…

---

<div class="post-metadata">

**Author:** ![ryan](https://forum.toplap.org/letter_avatar_proxy/v4/letter/r/a8b319/32.png) [@ryan](https://forum.toplap.org/u/ryan)\
**Post date:** [24 November 2019 17:04 UTC](https://forum.toplap.org/t/connect-to-external-speakers/836/3 "2019-11-24T17:04:07Z")

</div>

From what I remember, you need to set your computer’s default speakers to the bluetooth ones, then boot SuperCollider and FoxDot and it should work (Windows). I think it’s a bit more complicated for Mac/Linux, but it’s a SuperCollider issue so if that doesn’t work I would try asking on the SuperCollider forum. [This StackOverflow post](https://stackoverflow.com/questions/25044345/supercollider-not-audible-on-headphone) might be useful if you are running Linux.

---

<div class="post-metadata">

**Author:** ![yangzhang8805](https://forum.toplap.org/user_avatar/forum.toplap.org/yangzhang8805/32/604_2.png) [@yangzhang8805](https://forum.toplap.org/u/yangzhang8805)\
**Post date:** [7 February 2020 23:33 UTC](https://forum.toplap.org/t/connect-to-external-speakers/836/4 "2020-02-07T23:33:41Z")

</div>

Hello, Ryan: Again, first of all, I believe that it belongs to SuperCollider issue. Since the way Foxdot is designed to synchronized with Supercollider and Python, we can not switch the audio set up directly through Foxdot. Overall, I don’t have any issue with internal speaker, but when I switch to the bluetooth speaker, after I switching all default sound setups on Mac, and found out there are some necessary changes need to be made through Supercollider. (Please see the attached image) I am brand new to SuperCollider, then figure out it would be necessary to gain more knowledge about that since to bring your laptop go anywhere to connecting any bluetooth speakers for live coding should be part of our plans in near the future.🙂 Kindly let me know how to change the number of input channels on Supercolliders. Many thanks!

 ![Screen Shot 2020-02-07 at 3.23.13 PM](https://forum.toplap.org/uploads/thirdsite/original/1X/84783574da8345082c5956cbccc91837129c6e1f.png)

Best regards,

Yang Zhang

---

<div class="post-metadata">

**Author:** ![jamshark70](https://forum.toplap.org/letter_avatar_proxy/v4/letter/j/47e85d/32.png) [@jamshark70](https://forum.toplap.org/u/jamshark70)\
**Post date:** [8 February 2020 15:35 UTC](https://forum.toplap.org/t/connect-to-external-speakers/836/5 "2020-02-08T15:35:25Z")

</div>

> [@yangzhang8805](#):
>
> found out there are some necessary changes need to be made through Supercollider

You need to go into Audio MIDI setup (mac app) and change the default input and output devices’ sample rates are the same.

This is a very common error encountered by Mac users because, for some unexplainable reason, Mac configures the input and output devices with different sample rates by default.

Alternately, you could try `s.options.sampleRate = 44100` before booting the SC server. Should work, sometimes doesn’t (in which case, use Audio MIDI Setup).

> Kindly let me know how to change the number of input channels on Supercolliders

`s.options.numInputBusChannels = 4` for 4 channels, before booting.

hjh

---

<div class="post-metadata">

**Author:** ![yangzhang8805](https://forum.toplap.org/user_avatar/forum.toplap.org/yangzhang8805/32/604_2.png) [@yangzhang8805](https://forum.toplap.org/u/yangzhang8805)\
**Post date:** [8 February 2020 20:55 UTC](https://forum.toplap.org/t/connect-to-external-speakers/836/6 "2020-02-08T20:55:35Z")

</div>

@jamshark70: thank you very much for your clear instruction! Finally, it sounds:-). I hope this can save Ryan’s time for those common audio setup issues. By the way, if you have more experience concerning how to import your own audio samples and would like to hear your original sound without interfering. It will be greatly appreciated if you have share your experience here! Anyway, many thanks  
and have a nice weekend!

Best regards.

Yang

---

<div class="post-metadata">

**Author:** ![jamshark70](https://forum.toplap.org/letter_avatar_proxy/v4/letter/j/47e85d/32.png) [@jamshark70](https://forum.toplap.org/u/jamshark70)\
**Post date:** [9 February 2020 02:53 UTC](https://forum.toplap.org/t/connect-to-external-speakers/836/7 "2020-02-09T02:53:12Z")

</div>

> [@yangzhang8805](#):
>
> By the way, if you have more experience concerning how to import your own audio samples and would like to hear your original sound without interfering. It will be greatly appreciated if you have share your experience here!

I don’t have experience with that – I’m not a FoxDot user. I saw a SuperCollider question and thought I could help with it, that’s all.

hjh

---

<div class="post-metadata">

**Author:** ![yangzhang8805](https://forum.toplap.org/user_avatar/forum.toplap.org/yangzhang8805/32/604_2.png) [@yangzhang8805](https://forum.toplap.org/u/yangzhang8805)\
**Post date:** [11 February 2020 18:32 UTC](https://forum.toplap.org/t/connect-to-external-speakers/836/8 "2020-02-11T18:32:50Z")

</div>

@jamshark70: no problem, and greatly appreciate your help!

Best regards,

Yang

---

<div class="post-metadata">

**Author:** ![parisac](https://forum.toplap.org/letter_avatar_proxy/v4/letter/p/c2a13f/32.png) [@parisac](https://forum.toplap.org/u/parisac)\
**Post date:** [4 March 2020 01:34 UTC](https://forum.toplap.org/t/connect-to-external-speakers/836/9 "2020-03-04T01:34:23Z")

</div>

Hi all,

I’ve been having a blast with FoxDot on my Ubuntu 18.04 LTS machine. Unfortunately, I can’t get SuperCollider working with my bluetooth headphones (the stackoverflow post referenced above and the comments above confused me). My wife is getting pissed since I’m making a lot of sounds haha. Any advice would be immensely appreciated.

Kind regards,  
Alex

---

<div class="post-metadata">

**Author:** ![jamshark70](https://forum.toplap.org/letter_avatar_proxy/v4/letter/j/47e85d/32.png) [@jamshark70](https://forum.toplap.org/u/jamshark70)\
**Post date:** [4 March 2020 02:56 UTC](https://forum.toplap.org/t/connect-to-external-speakers/836/10 "2020-03-04T02:56:42Z")

</div>

> [@parisac](#):
>
> Unfortunately, I can’t get SuperCollider working with my bluetooth headphones (the stackoverflow post referenced above and the comments above confused me).

I had looked into this once. It’s a Jack problem rather than a SC problem.

PulseAudio supports BT audio fairly well (though I found that I couldn’t use BT audio and wifi at the same time).

SC’s audio path is scsynth → Jack → ALSA → hardware driver, bypassing Pulse.

There is a way to expose a BT audio device within ALSA, and Jack can in principle connect to that. In practice, I had to set the hardware block size extremely high, and it still wasn’t stable. I could use it for about 15 minutes, and then Jack would hang and require measures ranging from killing processes up to rebooting.

TL;DR you’ll need wired earpieces, I’m afraid. There isn’t a good solution.

hjh

---

<div class="post-metadata">

**Author:** ![claude](https://forum.toplap.org/user_avatar/forum.toplap.org/claude/32/63_2.png) [@claude](https://forum.toplap.org/u/claude)\
**Post date:** [4 March 2020 12:34 UTC](https://forum.toplap.org/t/connect-to-external-speakers/836/11 "2020-03-04T12:34:32Z")

</div>

You can run JACK with a dummy backend and use PulseAudio bridge:  
[https://mathr.co.uk/blog/2018-10-23\_jack\_on\_top\_of\_pulseaudio.html](https://mathr.co.uk/blog/2018-10-23_jack_on_top_of_pulseaudio.html)  
I haven’t tested it with SC or BT, but I don’t see any reason why it wouldn’t work. You need to adjust the loopback sink listed to your system:

```auto
pactl list sinks | grep Name

```

And restart PA after configuration:

```auto
pulseaudio --kill
pulseaudio --start

```

---

<div class="post-metadata">

**Author:** ![parisac](https://forum.toplap.org/letter_avatar_proxy/v4/letter/p/c2a13f/32.png) [@parisac](https://forum.toplap.org/u/parisac)\
**Post date:** [5 March 2020 01:24 UTC](https://forum.toplap.org/t/connect-to-external-speakers/836/12 "2020-03-05T01:24:40Z")

</div>

@jamshark70 and @claude:

Thanks for looking into this for me, I did go out and buy 10 dollar wired skull candy headphones from CVS and they work well enough to appease the wife.

Was fiddling with QJackCTL and a package that allows JACK to play with Pulse Audio, will report back if I get it working:

https://docs.fedoraproject.org/en-US/Fedora/15/html/Musicians\_Guide/sect-Musicians\_Guide-Integrating\_PulseAudio\_with\_JACK.html

---

<div class="post-metadata">

**Author:** ![jamshark70](https://forum.toplap.org/letter_avatar_proxy/v4/letter/j/47e85d/32.png) [@jamshark70](https://forum.toplap.org/u/jamshark70)\
**Post date:** [5 March 2020 02:07 UTC](https://forum.toplap.org/t/connect-to-external-speakers/836/13 "2020-03-05T02:07:20Z")

</div>

The usual way (which you’ll get from the Fedora site) of integrating Jack and Pulse results in these signal paths:

- scsynth \> Jack
- other apps \> PulseAudio \> Jack
- Jack mixes it all down \> ALSA \> hardware

To get scsynth audio to your bt earphones, you need:

- scsynth \> Jack \> PulseAudio \> loopback for output
- other apps \> PulseAudio
- PulseAudio mixes it all down \> Bluetooth

Tbh I didn’t know the latter was possible. It’s interesting but I don’t see myself spending a lot of time on it. (I ended up getting some cheap wired ones myself, also for the mic.)

hjh
