Is Sonic Pi compatible with Windows 10?

Sonic Pi generates the following log when I attempt to run it in Windows 10

Sonic Pi Boot Error Report
==================


System Information
----------------

* Sonic Pi version: 3.2.2
* OS: Windows 10 Version 1903


GUI Log
-------

**`C:\Users\username\.sonic-pi\log\gui.log`**
```
[GUI] - Welcome to the Sonic Pi GUI
[GUI] - ===========================
[GUI] -                            
[GUI] - {d388b4e5-a408-4794-8b6f-543f112b882a}
[GUI] - Discovering port numbers...
[GUI] - Port entry server-listen-to-gui : 51235 : 51235
[GUI] - Port entry gui-send-to-server : 51235 : 51235
[GUI] - Port entry gui-listen-to-server : 51236 : 51236
[GUI] - Port entry server-send-to-gui : 51236 : 51236
[GUI] - Port entry scsynth : 51237 : 51237
[GUI] - Port entry scsynth-send : 51237 : 51237
[GUI] - Port entry osc-midi-out : 51238 : 51238
[GUI] - Port entry osc-midi-in : 51239 : 51239
[GUI] - Port entry server-osc-cues : 4560 : 4560
[GUI] - Port entry erlang-router : 51240 : 51240
[GUI] - Port entry websocket : 51241 : 51241
[GUI] - Detecting port numbers...
[GUI] - GUI listen to server port 51236
[GUI] -    port: 51236 [OK]
[GUI] - Server listen to gui port 51235
[GUI] -    port: 51235 [OK]
[GUI] - Server incoming OSC cues port 4560
[GUI] -    port: 4560 [OK]
[GUI] - Scsynth port 51237
[GUI] -    port: 51237 [OK]
[GUI] - Server send to GUI port 51236
[GUI] -    port: 51236 [OK]
[GUI] - GUI send to server port 51235
[GUI] -    port: 51235 [OK]
[GUI] - Scsynth send port 51237
[GUI] -    port: 51237 [OK]
[GUI] - Erlang router port 51240
[GUI] -    port: 51240 [OK]
[GUI] - OSC MIDI out port 51238
[GUI] -    port: 51238 [OK]
[GUI] - OSC MIDI in port 51239
[GUI] -    port: 51239 [OK]
[GUI] - Websocket port 51241
[GUI] -    port: 51241 [OK]
[GUI] - All ports OK
[GUI] - launching Sonic Pi Runtime Server:
[GUI] - Ruby server pid registered: 8360
[GUI] - hiding main window
[GUI] - initialising toolbar icons
[GUI] - setting up window structure
[GUI] - restoring scope states 
[GUI] - creating status bar
[GUI] - creating info panel
[GUI] - creating shortcuts
[GUI] - creating tool bar
[GUI] - initialising documentation window
[GUI] - wait for sync
[GUI] - waiting for Sonic Pi Server to boot...
[GUI] - starting UDP OSC Server on port 51236...
[GUI] - UDP OSC Server ready and listening
............................................................
[GUI] - Critical error! Could not boot Sonic Pi Server.
[GUI] - stopping UDP OSC Server...
[GUI] - Critical Error. Unable to connect to server..
[GUI] - UDP OSC Server no longer listening

```


Server Errors
-------------

**`C:\Users\username\.sonic-pi\log\server-errors.log`**
```

```


Server Output
-------------

**`C:\Users\username\.sonic-pi\log\server-output.log`**
```
Sonic Pi server booting...
This is version 3.2.0 running on Ruby 2.7.1.
The time is 2020-06-28 17:46:22 -0400
Using primary protocol: udp
Detecting port numbers...
Listen port: 51235
  - OK
Scsynth port: 51237
  - OK
Scsynth send port: 51237
  - OK
OSC cues port: 4560
  - OK
Erlang port: 51240
  - OK
OSC MIDI out port: 51238
  - OK
OSC MIDI in port: 51239
  - OK
Websocket port: 51241
  - OK
Opening UDP Server to listen to GUI on port: 51235
Started [12456] [-] "C:\Program Files\Sonic Pi\app\server\native\scsynth.exe"
-u 51237 -m 131072 -a 1024 -D 0 -R 0 -l 1 -i 16 -o 16 -U "C:/Program
Files/Sonic Pi/app/server/native/plugins/" -b 4096 -B 127.0.0.1 [-]
C:/Users/username/AppData/Local/Temp/sonic-pi-pids/12456

```


Scsynth Output
--------------

**`C:\Users\username\.sonic-pi\log\scsynth.log`**
```
# Starting SuperCollider 2020-06-28 17:46:23

Device options:
  - MME : Microsoft Sound Mapper - Input   (device #0 with 2 ins 0 outs)
  - MME : Microphone (High Definition Aud   (device #1 with 2 ins 0 outs)
  - MME : Microphone (Steam Streaming Mic   (device #2 with 8 ins 0 outs)
  - MME : Line (ZOOM U-44 Audio)   (device #3 with 4 ins 0 outs)
  - MME : Line In (Scarlett 18i6 USB)   (device #4 with 18 ins 0 outs)
  - MME : Microsoft Sound Mapper - Output   (device #5 with 0 ins 2 outs)
  - MME : Line Out (Scarlett 18i6 USB)   (device #6 with 0 ins 6 outs)
  - MME : Speakers (Steam Streaming Speak   (device #7 with 0 ins 8 outs)
  - MME : Speakers (Steam Streaming Micro   (device #8 with 0 ins 8 outs)
  - MME : 1 - Philips FTV (3- AMD High De   (device #9 with 0 ins 2 outs)
  - MME : Line (ZOOM U-44 Audio)   (device #10 with 0 ins 4 outs)
  - MME : Digital Audio (S/PDIF) (High De   (device #11 with 0 ins 2 outs)
  - MME : 3 - LG HDR 4K (3- AMD High Defi   (device #12 with 0 ins 2 outs)
  - MME : 5 - EB321HQU (3- AMD High Defin   (device #13 with 0 ins 2 outs)
  - Windows DirectSound : Primary Sound Capture Driver   (device #14 with 2 ins 0 outs)
  - Windows DirectSound : Microphone (High Definition Audio Device)   (device #15 with 2 ins 0 outs)
  - Windows DirectSound : Microphone (Steam Streaming Microphone)   (device #16 with 8 ins 0 outs)
  - Windows DirectSound : Line (ZOOM U-44 Audio)   (device #17 with 4 ins 0 outs)
  - Windows DirectSound : Line In (Scarlett 18i6 USB)   (device #18 with 18 ins 0 outs)
  - Windows DirectSound : Primary Sound Driver   (device #19 with 0 ins 2 outs)
  - Windows DirectSound : Line Out (Scarlett 18i6 USB)   (device #20 with 0 ins 6 outs)
  - Windows DirectSound : Speakers (Steam Streaming Speakers)   (device #21 with 0 ins 8 outs)
  - Windows DirectSound : Speakers (Steam Streaming Microphone)   (device #22 with 0 ins 8 outs)
  - Windows DirectSound : 1 - Philips FTV (3- AMD High Definition Audio Device)   (device #23 with 0 ins 2 outs)
  - Windows DirectSound : Line (ZOOM U-44 Audio)   (device #24 with 0 ins 4 outs)
  - Windows DirectSound : Digital Audio (S/PDIF) (High Definition Audio Device)   (device #25 with 0 ins 2 outs)
  - Windows DirectSound : 3 - LG HDR 4K (3- AMD High Definition Audio Device)   (device #26 with 0 ins 2 outs)
  - Windows DirectSound : 5 - EB321HQU (3- AMD High Definition Audio Device)   (device #27 with 0 ins 2 outs)
  - ASIO : Focusrite USB 2.0 Audio Driver   (device #28 with 18 ins 6 outs)
  - ASIO : ZOOM U-44 ASIO Driver   (device #29 with 4 ins 4 outs)
  - Windows WASAPI : Speakers (Steam Streaming Speakers)   (device #30 with 0 ins 2 outs)
  - Windows WASAPI : Speakers (Steam Streaming Microphone)   (device #31 with 0 ins 1 outs)
  - Windows WASAPI : 1 - Philips FTV (3- AMD High Definition Audio Device)   (device #32 with 0 ins 2 outs)
  - Windows WASAPI : Line (ZOOM U-44 Audio)   (device #33 with 0 ins 2 outs)
  - Windows WASAPI : Digital Audio (S/PDIF) (High Definition Audio Device)   (device #34 with 0 ins 2 outs)
  - Windows WASAPI : 3 - LG HDR 4K (3- AMD High Definition Audio Device)   (device #35 with 0 ins 2 outs)
  - Windows WASAPI : 5 - EB321HQU (3- AMD High Definition Audio Device)   (device #36 with 0 ins 2 outs)
  - Windows WASAPI : Line Out (Scarlett 18i6 USB)   (device #37 with 0 ins 2 outs)
  - Windows WASAPI : Microphone (Steam Streaming Microphone)   (device #38 with 1 ins 0 outs)
  - Windows WASAPI : Line (ZOOM U-44 Audio)   (device #39 with 2 ins 0 outs)
  - Windows WASAPI : Line In (Scarlett 18i6 USB)   (device #40 with 2 ins 0 outs)
  - Windows WASAPI : Microphone (High Definition Audio Device)   (device #41 with 2 ins 0 outs)
  - Windows WDM-KS : Microphone (HD Audio Microphone)   (device #42 with 2 ins 0 outs)
  - Windows WDM-KS : SPDIF Out (HD Audio SPDIF out)   (device #43 with 0 ins 2 outs)
  - Windows WDM-KS : Output (AMD HD Audio HDMI out #0)   (device #44 with 0 ins 2 outs)
  - Windows WDM-KS : Output (AMD HD Audio DP out #4)   (device #45 with 0 ins 2 outs)
  - Windows WDM-KS : Output (AMD HD Audio DP out #2)   (device #46 with 0 ins 2 outs)
  - Windows WDM-KS : Microphone (Steam Streaming Microphone Wave)   (device #47 with 8 ins 0 outs)
  - Windows WDM-KS : Speakers (Steam Streaming Microphone Wave)   (device #48 with 0 ins 8 outs)
  - Windows WDM-KS : Output (Scarlett 18i6 USB)   (device #49 with 0 ins 6 outs)
  - Windows WDM-KS : Input (Scarlett 18i6 USB)   (device #50 with 18 ins 0 outs)
  - Windows WDM-KS : Input (Steam Streaming Speakers Wave)   (device #51 with 8 ins 0 outs)
  - Windows WDM-KS : Speakers (Steam Streaming Speakers Wave)   (device #52 with 0 ins 8 outs)
  - Windows WDM-KS : Line (ZOOM U-44 Audio)   (device #53 with 0 ins 4 outs)
  - Windows WDM-KS : Line (ZOOM U-44 Audio)   (device #54 with 4 ins 0 outs)

Requested devices:
  In (matching device NOT found):
  - (null)
  Out (matching device NOT found):
  - (null)

Selecting default system input/output devices

Booting with:
  In: MME : Microphone (High Definition Aud
  Out: MME : Line Out (Scarlett 18i6 USB)
SC_PortAudioDriver: PortAudio failed at Pa_OpenStream with error: 'Unanticipated host error'
could not initialize audio.

```


Process Log
--------------

**`C:\Users\username\.sonic-pi\log\processes.log`**
```


Clearing pids: []
No pids to clear :-)
Started [8360] [-] "C:\Program Files\Sonic
Pi\app\gui\qt\build\Release\..\..\..\..\..\app\server\native\ruby\bin\ruby.exe"
--enable-frozen-string-literal -E utf-8 "C:\Program Files\Sonic
Pi\app\gui\qt\build\Release\..\..\..\..\..\app\server\ruby\bin\sonic-pi-server.rb"
-u 51235 51236 51237 51237 4560 51240 51238 51239 51241 [-] C:/Users/username/AppData/Local/Temp/sonic-pi-pids/8360
Started [12456] [-] "C:\Program Files\Sonic Pi\app\server\native\scsynth.exe"
-u 51237 -m 131072 -a 1024 -D 0 -R 0 -l 1 -i 16 -o 16 -U "C:/Program
Files/Sonic Pi/app/server/native/plugins/" -b 4096 -B 127.0.0.1 [-]
C:/Users/username/AppData/Local/Temp/sonic-pi-pids/12456



```

Thanks for any help you can offer!

Hi @unstructuredPlay,

Sonic Pi is definitely compatible with Windows 10. You seem to be running into some trouble with your sound card and Sonic Pi’s internal synth SuperCollider.

For some reason, the default settings don’t seem to be compatible with what SuperCollider expects.

In the next version you’ll be able to edit a simple json file to specify which card and audio rate you wish to use. However, that requires modification of the source code currently.

Many people have had success moving over to ASIO drivers. Is that something you would be interested in trying?

Also, could you let me know which audio rate your sound card is set to? Is it 48khz?

Thank you very much for the reply!

I have installed the ASIO4ALL drivers, but sonic-pi still didn’t work for me (still defaulted to using another audio device).

I did read the log files, so I tried running scsynth.exe with the “-H” flag explicitly telling it to launch with ASIO4ALL and it seemed to work, but I couldn’t figure out how to direct sonic-pi to do the same.

I went into my “windows sound settings” and set my card to default. Unfortunately, I don’t remember what sample rate/bit depth that was. I’ll get back to you on that as soon as I get off from work.

Thank you very much again!

Alright, sorry about the delay, I had to work late yesterday and went home dead tired.

My sound cards are:

Zoom:
24bit / 44.1 KHz (both output device and mic)

Scarlett 18i6:
16bit / 44.1 KHZ (both output device and mic)

Many people have had success moving over to ASIO drivers. Is that something you would be interested in trying?

Most definitely. Like I wrote above, I’ve installed the ASIO4All drivers for troubleshooting purposes, but I’m not sure if I’ve done everything that could be from there. Should I also uninstall my soundcard’s manufacturer drivers so that the ASIO drivers become Super Collider’s only option?

In my searching, I found that some people were having success with ASIO (and interpreted that as: "go install ASIO4ALL). But I admit to being an idiot. I did the wrong thing entirely? Plz Help!

Thanks Sam!

hi @unstructuredPlay,

Asioa4all is for “all” people. IMHO use only when you do not have audio drivers provided by your sound card manufacturer (this is the case with soundcards integrated with motherboard). i think you’d better use the Focusrite drivers. So fire asio4all :slight_smile: