In the past many of my videos cover the building of Lego Mindstorms NXT2 and Lego EV3 models. LInks are provided in the descriptions of the videos to other sites where you can download constructional details and the programs required to build the models yourself. Some describe modification to models created by other authors, some are my own original projects. More recently my work is concentrated on using Sonic Pi, and in particular in interfacing external devices to be controlled by or to control Sonic Pi.
I am very sorry, but this was my only foray into TouchDesigner some three years ago, and I found it a difficult program to get my head around and decided that it was not an avenue that I was going to pursue or invest time in. Since then I concentrated more on using Hydra to generate visuals linked to Sonic Pi. which I found much easier. There were some threads on in-thread.sonic-pi.net about Touch Designer which you may find helpful. I also found various project on the internet which I remember being of some help.
Glad you enjoyed it. I must say although it is 6 years since I wrote this (and version 1.2) I still return to use it quite frequently as it is such a versatile way to interact with Sonic Pi.
Glad you enjoyed it. It was fun to develop.. I have other similar ones developed from this e.g. ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-6Vxcw9I77fY.htmlsi=aOFcZYIJdKVdTE3G
Is this macbook only stuff? What is the Tau browser? What is a built in phoenix live web display? Do you think the hydra extension made it into the public 4.4 release from 29. June 2023 especially on windows (10)?
The hydra extension in a phoenix drven browser embedded into Sonic Pi was released to Patreon Supporets of Sonic Pi as a tech preview of version 5 of Sonic Pi, so it is NOT included with version 4.4 which has just been released. You can still get access to the the tech 5 preview by subscribing as a Patreon supporter of Sam Aaron. Alternatively you can build it from source. I have done so for both Mac and Raspberry Pi. nIt is also possible for Sonic Pi version 4 to interact with a browser like Chrome running Hydra which is abased at hydra.ojack.xyz and using OSC or midi calls to affect the displayed sketch. The confusion for you may be because I referrred to the development as for version 4.4 BEFORE Sam had released the version 5 Tech preview. He then recently released vesion 4.4 which did not have the hydra code activated.
@@jonnyhotchkiss9522 The easiest way to to get a copy of v5 Tech Preview 1 downloadable from Sam Aaron's patreon site (assuiming you are a supporter). Failing that I think you can download sonic pi source and checkout commit 42549ab103acf76c058e6b4146f7e6996118bc9a and try building that. That is the commit from which I built it on a Mac. EDIT Just downloaded it again on my old iMac and it built and works fine.)
I can only build dev. this one continues to fail to build during win-pre-vcpkg.bat, appears may be related to catch2. looking at the versions dev: catch2:x64-windows-static-md@3.5.3 hydra: catch2[core]:x64-windows-static-md -> 3.1.1#2 are you able to see which vcpkg version you're using? on windows (if not all) I think the build may use whatever is cached, depending on whether vcpkg has already been downloaded. May be academic as I still can't build hydra even if using latest "working" vckg, where no errors thrown during win-pre-vcpkg.bat
Hey rbn1tube thanks for the awesome video! I've been trying to find a way to render the visuals on top of the code. Can you tell me how you did this? Thank you in advance!
Read the full description about the video! I wrote this visualiser in P5.js and included support for OSC messages which could then be utilised by Sonic Pi to control a selection of up to about 40 parameters controlling various aspects of the visualiser. Running on the Mac version, Sonic PI has the transparency set to maximum, and the visualiser is running in a Chrome Browser behind that. I have also written a template for TouchOSC which can also be used to control the visualiser. Also you can get the code from the reply to Nicolas Le Bellier's question below
Have a look at the code url in the video description. Hydra is built in to this version of Sonic Pi. The sketch is contained in a string which is simply called with the function hydra For example hydra "osc(6,0,2).out(o0)"
in-thread.sonic-pi.net/t/lissajous-figures-and-harmonographs/6852 this thread is all about this. Read my sections. You need to prepare the synth Lisa which you can the use with sonic pi The code for my projects is listed. Note the original downloaded Lisa synth was incorrect.
I've tried to run your code with the latest version of Sonic-Pi and I can't get it to play. I get the sequencer moving on TouchOSC and I see OSC events coming into sonic- but there is no output when I select beets in the sequencer
@@robtv169 OK I can see that the code now needs a little tweaking to get it working, as the command syntax for syncing an incoming Oscars call has changed since this was written in 2018. I'll update and let you know here when its done and how to get the new code.
I've now updated the Sonic Pi gist file for this. The index.xml file is still OK but use the second version of the Sonic Pi sequencer file sequencer2-0-rf.rb for Sonic Pi > 3.2. I've also added the four json files I used, although you can save your own easily. Let me know how you get one.
"Dear rbn1tube FYI, Ganjing World (GJW) is a secure and various-category platform for everyone. They carefully select videos featured on it because of their vital mission of providing genuinely traditional, cultural, and clean videos to the world! "
Hmm. It doesnt work now EDIT: I had to press the 23 button first but now i got: Runtime Error: [buffer 0, line 830] - SyntaxError Thread death! workspace_zero:25: syntax error, unexpected ':', expecting => ...play d[0], sustain: d[1], a/mp: d[2], release: 0.05 Edit found it: it is a typo by you: 'a/mp:' -> 'amp:'
HI Miniotoby You are right there is a bug because the midi input command handling format has changed slightly in the latest release version of sonic pi 3.3.1 Two lines need to be altered, chaging references to res[4] to be res[3]. I have updated the gist file. With these changes all should work as described in the video. remember you have to record before trying the playback in order to set up tlist, and use the three input controls for this purpose. Let me know if it works for you.
Why when I create synthdefs in supercollider and try to run them in sonic pi I can’t hear audio. Like I can’t play sound at the same time. I only can use sonic pi or supercollider. One at a time. Like one mutes the other volume when in use?
Hi Brandon I see you have already raised this on In Thread. If your Sonic Pi is working with audio normally, Then I think the problem is not to do with the audio set up but rather with the setup for your synth. Ethan Crawford who has already answered you is the best person to deal with this area. I have not worked with synth definitions myself. Hope you manage to sort it out.
Sonic Pi cannot directly send broadcast OSC calls without hacking its internal code. Using the external python script means that you can send OSC calls to it and that they are then broadcast to all computers on the network and received by them at the same time. I have developed the technique in this video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-6Vxcw9I77fY.html Also recent developments mean that the next version of Sonic Pi will be able to support Ableton link which will help syncing computers together.
@@rbn1tube Hmm ... what do you mean by "broadcast"? Surely you can send OSC messages from Sonic, no? I'm pretty sure I've done that in the past to control CSOUND from it.
@@synaesmedia I mean sending them to the broadcast address on the lan. eg 192.168.1.255 in the video. SP has this blocked, but the python script can do it. IT means that any computer on the lan will receive and respond to the osc message. Normally it would only be addressed to ONE ip address.
Brilliant! I'm excited to get my hands on this tech. If you make another demonstration video, may I make a suggestion? I'd love to hear the Raspberry Pi in the right stereo channel playing the melody and the Mac in the left stereo channel playing the accompaniment line.
When thinking of the earth forming this is the concept. The energy surrounding the nucleus/ magma core is created by the pressure formed surrounding the center. Meaning the fault lines created are actually electrical charges forced back from the center point to the crust. You’re welcome 😉
Isn't that possible if I play the sonic pi on raspberry pi zero w?? My condition is, While I open the sonic pi , after running it awhile, the window shutdown and told me there's "server error". Thanks.
The latest versions of Sonic Pi will not run on a Pizero. This video was an earlier version of both the Raspberry Pi OS, and also of Sonic Pi, and was made back in 2015
Latest version of SOnicpi is giving me a lot of problems with the theremin, it wont play the audio. Im trying to install the old version, 3.0.1 preferably. Any idea how to install an older version?
File "/usr/lib/python3/dist-packages/gpiozero/input_devices.py", line 997 warnings.warn(DistanceSensorNoEcho('no echo received')) DistanceSensorNoEcho: no echo received Im getting this error when I run my distance.py, please help
This is an old project now, and the code does not work as written on the current Raspberry Pi operating system. It also will not work on the version of Sonic Pi bundled with it (verson 3.1). To get it working you need to install Sonic Pi 3.3.1 which you can download from in-thread.sonic-pi.net You also need to make a couple of alterations to the programs. You need to alter the port 4559 in the distance.py script to 4560 (the new cues input port in Sonic Pi). Also in the Sonic Pi program you need to alter the line n = sync :/osc/play_this" to read n = sync /osc*/play_this"
@@rbn1tube @rbn1tube I tried the exact same thing you suggested, but it still doesn't work. Made the changes you recommended. But its still giving this error in the python shell, it wont run: Warning (from warnings module): File "/usr/lib/python3/dist-packages/gpiozero/input_devices.py", line 997 warnings.warn(DistanceSensorNoEcho('no echo received')) DistanceSensorNoEcho: no echo received Please, any way you can help me?
Thank you for the video. Exactly what I'm looking for. Could you tell me where I can find the file terminalcontroller2.rb? Trying to use Makey Makey for Keyboard input to play Sonic Pi. I'm not familiar with Ruby (actually not good at programming).
@@rbn1tube Thank you so much. Do I copy this to the terminal? How to save a file in Ruby? Thank you for you patience with my really fundamental questions.
@@wendychu4274 You click on the raw button beside the file and save the resulting web page as terminalcontroller2.rb (it is just really a text file). Run in a terminal using ruby terminalcontroller2.rb YOu need to change line 13 altering 4559 to 4560. (resave). Put SP-KeyboardController3.rb into a Sonic Pi buffer and run it there. (Update line 21 from b= sync "/osc/key" to b= sync "/osc*/key") In the running terminal window type lower case letters a s d f g... to play or 1 2 3 4... to select synth. Let me know how you get on.
@@rbn1tubeThank you so much for the detail instruction. However, I got "ruby: No such file or directory -- terminalcontroller2.rb (LoadError)". Where should I put the terminalcontroller2.rb file? Thank you again for helping.
@@wendychu4274 you should open a terminal and navigate to the folder containing the downloaded terminal controller script. (If you type ls and press return you should see it listed in the terminal window as terminalcontroller2.rb. . Then type ruby terminalcontroller2.rb and press return to start. It.