GithubHelp home page GithubHelp logo

Comments (8)

tloureiro avatar tloureiro commented on August 15, 2024

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.

vomitHatSteve avatar vomitHatSteve commented on August 15, 2024

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.

vomitHatSteve avatar vomitHatSteve commented on August 15, 2024

Also, what Linux distro are you on? I'm on Ubuntu 24.04 LTS

from sonic-pi.

tloureiro avatar tloureiro commented on August 15, 2024

@vomitHatSteve

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.

tloureiro avatar tloureiro commented on August 15, 2024

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.

samaaron avatar samaaron commented on August 15, 2024

Hiya,

I've just created a very simple barebones REPL to help people work on alternative front-ends:

05e49e4

from sonic-pi.

samaaron avatar samaaron commented on August 15, 2024
2024-07-29.20-00-04.mov

from sonic-pi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.