Comments (8)
Some preliminary steps on how to do it - I'm using Xubuntu 24.04
- Clone this repo, checkout whatever branch you want, preferably a stable version one
- Run
sudo apt install supercollider pipewire-jack ruby3.2 ruby3.2-dev build-essential cmake ninja-build pkg-config libssl-dev erlang-dev erlang-xmerl elixir
- Comment out these 2 lines from
sonic-pi/app/linux-build-all.sh
# "${SCRIPT_DIR}"/linux-config.sh "$@"
# "${SCRIPT_DIR}"/linux-build-gui.sh "$@"
- Run
./linux-build-all.sh --system-libs
You should be able to start the server now ruby ./sonic-pi/app/server/ruby/bin/daemon.rb
- some numbers will be printed out; these are port numbers. If no OSC command is sent, the server shuts itself down after some time
Testing it:
I'm using a hacky/modified version of @rbnpi's gem.
It's a simple gem, you can download it, modify the sonic_pi4.rb
file, remove/comment out the 2 break instructions in this file, and this should do the trick. Also, on sonic_pi4.rb
, make sure you change the require 'sonic_piRBN.rb'
to require './sonic_piRBN.rb'
Now you can run ruby sonic_pi4.rb play 72
and hear the note playing.
from sonic-pi.
So you do have an sonicpi server running and playing audio with this technique?
If no OSC command is sent, the server shuts itself down after some time
The timeout is, what? 3 seconds? How do you keep that from happening?
I've been fighting with with a headless mode since upgrading to version 4.x for a month or two. I'll try your techniques and see if I can get it working.
from sonic-pi.
Also, what Linux distro are you on? I'm on Ubuntu 24.04 LTS
from sonic-pi.
The timeout is of 90 seconds, I believe, and it's because of the Zombie Kil Switch - the GUI keeps it alive by constantly hitting a daemon OSC endpoint /daemon/keep-alive
.
Right now I'm working on a VScode extension that will try to manage the OSC messaging and will also do some code syntax colouring and basic code completion
Also, what Linux distro are you on? I'm on Ubuntu 24.04 LTS
Xubuntu 24.04 - pipewire installed by default
Please let me know if you get stuck anywhere 👍
from sonic-pi.
I'm still working on the vscode plugin, very early phases. Right now, you can start, stop, and play a test note using the vscode prompt. This is my developing branch https://github.com/tloureiro/sonic-pi-studio/tree/version-1
I'll work on sending the contents of the current file to the server next.
from sonic-pi.
Hiya,
I've just created a very simple barebones REPL to help people work on alternative front-ends:
from sonic-pi.
2024-07-29.20-00-04.mov
from sonic-pi.
Related Issues (20)
- Sonic Pi not booting in macOS Sonoma HOT 4
- Sorry, Sonic Pi is having issues booting: HOT 1
- GUI was unable to connect to the Ruby server. HOT 2
- Critical error! - Could not boot Sonic Pi Server. HOT 1
- Sonic Pi Boot Error Report HOT 1
- Apologies, unable to start... HOT 2
- Debian 12.1 Sonic Pi Boot Error Report HOT 1
- Audio Server Boot Error (peppermintOS Devuan x86_64)
- sonic-pi.net SSL certificate expired HOT 1
- notes: global synth option?
- Unable to start sonic Pi HOT 10
- Build and run Sonic-Pi v4.50 on Linux Mint 21.3 (Virginia) HOT 5
- Sonic PI 4.5.1 won't toggle visibility of log, cue-log or metronome HOT 3
- error with git clone HOT 2
- Additional value options for `play_pattern_timed` synth parameters
- sonic-pi.net SSL cert expired again HOT 1
- [Documentation issue] - Section B.2 Shortcut Cheatsheet HOT 4
- Audio server failed to start HOT 2
- GUI was unable to connect to the Ruby server.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sonic-pi.