samaaron / bleep

A Web-based live coding audio system inspired by Sonic Pi
GNU General Public License v3.0
2 stars 0 forks source link

Stop button #18

Closed guyjbrown closed 4 months ago

samaaron commented 7 months ago

For this to be efficient we also need some way of stopping all the running audio nodes for a given run.

A simple (non-efficient) way to do this is to have a mixer at the end of the signal chain for each run and to set the amp to 0.

guyjbrown commented 7 months ago

All synthdef audio nodes respond to a stopImmediately function .. and all nodes should be registered with the monitor so we can identify those that are active.

However currently this doesn't apply to samples I think ... wonder if its worth having a new sample player which fits within the synthdef framework and can be tracked by the monitor in the same way.

samaaron commented 7 months ago

Yep, a sample player that works like an existing synth def makes a lot of sense.

I think we should also start thinking about a strategy to associate audio nodes with run ids.

nitinramachandran commented 7 months ago

Hello guys, I couldn't spend lot of time until now when I am going through a high level structure. I haven't yet got it to run locally. Would I need to change anything in config/dev.exs? Which is the file I need to execute to run it locally? I tried running bin/start_prod_server.sh. I guess that's not the one. Right?

samaaron commented 7 months ago

Hi @nitinramachandran,

the build instructions are here: https://github.com/samaaron/bleep/blob/main/BUILD.md

This should be all you need to get things up and running locally. Let me know if this isn't what you mean :-)

nitinramachandran commented 7 months ago

I get an error when I compile it. Looks like some permission issue. My system doesn't let create a hidden folder. Below is the error stack I see. Any suggestions? websock_adapter 0.5.5 ** (File.Error) could not make directory (with -p) "/Users/nitinramachandran/.mix/elixir/1-16": no such file or directory (elixir 1.16.1) lib/file.ex:345: File.mkdir_p!/1 (mix 1.16.1) lib/mix/tasks/local.rebar.ex:80: Mix.Tasks.Local.Rebar.install_from_path/3 (mix 1.16.1) lib/mix/dep/loader.ex:336: Mix.Dep.Loader.rebar_dep/4 (mix 1.16.1) lib/mix/dep/loader.ex:100: Mix.Dep.Loader.load/3 (mix 1.16.1) lib/mix/dep/converger.ex:232: Mix.Dep.Converger.all/8 (mix 1.16.1) lib/mix/dep/converger.ex:244: Mix.Dep.Converger.all/8 (mix 1.16.1) lib/mix/dep/converger.ex:162: Mix.Dep.Converger.init_all/8 (mix 1.16.1) lib/mix/dep/converger.ex:146: Mix.Dep.Converger.all/4 nitinramachandran@Nitins-MacBook-Pro bleep %

guyjbrown commented 7 months ago

Hi Nitin

I installed elixir using homebrew and then cloned Bleep under /Library/WebServer/Documents. You will need to change permissions on the bleep folder (as superuser) to give it write permissions.

I’m sure Sam can advise if this isn’t working out for you ...

Guy

On 25 Feb 2024, at 07:10, nitinramachandran @.***> wrote:

I get an error when I compile it. Looks like some permission issue. My system doesn't let create a hidden folder. Below is the error stack I see. Any suggestions? websock_adapter 0.5.5 (File.Error) could not make directory (with -p) "/Users/nitinramachandran/.mix/elixir/1-16": no such file or directory (elixir 1.16.1) lib/file.ex:345: File.mkdir_p!/1 (mix 1.16.1) lib/mix/tasks/local.rebar.ex:80: Mix.Tasks.Local.Rebar.install_from_path/3 (mix 1.16.1) lib/mix/dep/loader.ex:336: Mix.Dep.Loader.rebar_dep/4 (mix 1.16.1) lib/mix/dep/loader.ex:100: Mix.Dep.Loader.load/3 (mix 1.16.1) lib/mix/dep/converger.ex:232: Mix.Dep.Converger.all/8 (mix 1.16.1) lib/mix/dep/converger.ex:244: Mix.Dep.Converger.all/8 (mix 1.16.1) lib/mix/dep/converger.ex:162: Mix.Dep.Converger.init_all/8 (mix 1.16.1) lib/mix/dep/converger.ex:146: Mix.Dep.Converger.all/4 **@.*** bleep %

— Reply to this email directly, view it on GitHub https://github.com/samaaron/bleep/issues/18#issuecomment-1962838571, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAE5KYONYR435EDUF52AXPTYVLPVNAVCNFSM6AAAAABDUXQ6BGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNRSHAZTQNJXGE. You are receiving this because you authored the thread.

samaaron commented 7 months ago

Hi,

it's not necessary to store the source for bleep under /Library/WebServer/Documents. You can just store it in your home directory. I tend to use a folder called ~/Development so that's in /Users/sam/Development in my case - but obviously your username will be different.

So my bleep is in:

~/Development/bleep

As I have permissions to create and modify files in my home directory, I don't have any file permission issues as you appear to be observing.

nitinramachandran commented 6 months ago

Hi Sam and Prof Brown, I could get it compiled and running after giving it permissions with a sudo command. (Should that be added to the documentation?) Yes. I have kept the files under home/work/sheffieldbleep/bleep. Thank you for the support.