How to send a variable number from Lua to Pure Data?
@romulovieira-me In your Pd/bin folder you will find an executable.... pdsend.exe for windows...... or pd.darwin or pd.linux (I think) for other os's.
You can tell Lua where to find it (maybe just copy it into a folder that Lua uses), and call it within your script.
In Pd you would then use [netreceive] to receive the message.
It will probably be a lot easier than creating a socket in Lua.
I don't know Lua.
You would use pdsend (in Python) and [netreceive] (in Pd) like this........ https://guitarextended.wordpress.com/2012/11/03/make-python-and-pure-data-communicate-on-the-raspberry-pi/
You will need to work out how to script the Python equivalent in Lua.
David.
Running Puredata using xquartz
I want to start puredata installed on a headless Raspberry Pi, using x-window from a macbook.
In my macbook, I have installed Xquartz, and I connect to my raspberry using the
ssh -X pi@myraspberryip
command with my password.
Xquartz start, but don't display pd user interface... only "priority 8 scheduling failed." is printed on the terminal...
It was working well before, is it broken now?
Raspbian Os bulleye
MacOs Monterey
Xquartz 2.8.5
Puredata 0.51-4
Launchpad4Oktatrack
hello everyone
since you cannot change outgoing midi messages in those devices,here is my patch to turn Novation Launchad mini mk1&mk2 into Octatrack midi controller,plus i added few small but nice features...
Repo
https://github.com/k2z3k0/launchpad-for-octatrak-in-pure-data
Example video
Getting Started with Raspberry Pi, Pure Data
How to deal with Raspberry Pi as usb midi host
Raspberry Pi audio/midi board
https://blokas.io/pisound/
Raspberry Pi audio/midi board
https://www.osaelectronics.com/.../midi-board-for.../
Raspberry Pi how to get midi out out of onboard GPIO
https://github.com/nugluke/midi2gpio
best regards
Kazik
Raspberry Pi Audio Output Crackling when Mic enabled
Hello,
I have a USB audio interface (3D Sound Audio Interface see below) plugged into a raspberry pi. When I have it selected for audio input (port audio seems to be the only one that works) along with audio output via the speaker on the GPIO pins I get crackling as if PD can't handle the processing of audio input while outputting on raspberry pi. NOTE: if I turn off audio input the output sounds perfect.
Anyone else encounter this issue?
FYI, I hooked up a nice little speaker to make the Raspberry Pi more portable via the I2S Amp on connected and powered by the GPIO pins (see this link for details
Build Drum Machine with PD and Hardware - where to start?
Hey folks,
this is my first post here and I am very new to this whole topic, so bare with me. I am making music since quite a few years and have been dreaming about building my own little drum machine, to integrate all the functions I am missing with existing ones.
Recently I stumpled upon PD as a tool to realize this on the software side. While PD looks doable, even for a noob like me, I have no clue how to realize the hardware. I learned about PD through the organelle, a little synthesizer, which runs PD patches on a Raspberry Pi. (There are topics about this here, but dunno how well known it generelly is around here.) So I guessed I could do the same: Create all the Functions in PD on a Rasperry, connect the Raspberry to some knobs and buttons and then assign the Functions in my programm to those knobs and buttons.
Heres where I'm left clueless: how do I do that? I know that there are breadboards and I figured I can somehow put together a prototype on such a thing, try out different possibilities and if at some point Im satisfied think about actually building the thing. But as you probably guessed by now I have no clue neither about raspberry nor about electronics. So can anyone give me advice on how to start such a project? Or maybe tell me that my assumption is completely wrong and its way more complicated?
Hope Im in the right subforum and my question is not all to basic. Any advice would be great!
Cheers and thanks a lot!
Crackled Audio from PD on Raspberry Pi 4
I'm running a Raspberry Pi 4 with "Raspberry Pi OS (32-bit) Lite [August 2020 / 2020-08-20 / Kernel 5.4]" headless and the latest version of Purr-Data, set up the Raspberry using this guide , did the Alsa no audio (glitch) issue Pi 4
fix to get audio working through the 3.5 mm jack.
I'm interfacing the Raspberry Pi through the macOS terminal and with VNC Viewer through ethernet.
I get the following error as soon a starting Purr-Data,
error: audio I/O stuck... closing audio
I open up a patch and turn off and turn on the DSP signals and get the following error
error: audio I/O stuck... closing audio error: audio I/O dropout
Even though if I play sample .wav or bang a sinewave, the audio does get played but it gets glitchy as in the audio sound is crackled.
has anyone experienced it before? any knowledge on how to overcome it?
netty-mcserver on a Raspbery Pi 4
Hi . .
Here's an update. I was able to compile Pd-0.51-2 and run Pd on the Raspberry Pi 4. Thank you to Whale-Av / David for the clear instructions.
I navigated to the Quack/bin folder where the server patch is and ran this command:
/home/pi/src/pd-0.51-2/bin/pd -nosound -nogui -nrt netty-mcserver.pd &
the command line returned this:
[1] 1112
Checked to see if the process is running and it appears to be:
ps -ef | grep pd
pi 1112 1096 4 19:08 pts/0 00:00:01 /home/pi/src/pd-0.51-2/bin/pd -nosound -nogui -nrt netty-mcserver.pd
So, feeling good right? I checked the port forwarding on my router and opened ports 10000 to 10100 going to the Pi. That should be solid since I previously ran some tests with some colleagues using the same network but pointing to my iMac running netty.mcserver.pd.
When I open netty-mcnetface.pd on my iMac and put in the Pi's DNS name (bitpanic.org) into the patch as the server I get a netsend error:
netsend: bad host or port? nodename nor servname provided, or not known (8)
I also tried the direct IP (not the local IP) and no dice . .
Anyway, I'm going to see if someone outside of my network can connect. Maybe it is some sort of internal routing issue.
I'm also not clear if the patch "netty-mcserver.pd" will work on a Raspberry Pi. I've been following Michael Dessen's google doc on getting this to work on a Debian server so it must work but maybe not on the Pi? Michael says in his instructions that he got to work on a single core Debian server on Linode. I guess I could try that but where's the fun? : > ) And, we (CalArts) are running two streaming servers on campus that are Raspberry Pi's so I'd love to get it work.
Anyway, will keep plugging away. Any insight is appreciated!
Thanks!
Clay
how does zexy "date" object work on raspi?
I'm going through old threads of mine and realising I never came back with an update to this.
In a nutshell, the answer to my question is that in order for the zexy "date" object to get the date the Raspberry Pi either needs to be connected to a network or needs to have a Real Time Clock (RTC). These are very cheap:
https://thepihut.com/products/mini-rtc-module-for-raspberry-pi
You need to follow the instructions for getting the Pi to get the RTC calibrated and working, but I had success the first time around with these: https://thepihut.com/blogs/raspberry-pi-tutorials/17209332-adding-a-real-time-clock-to-your-raspberry-pi
With that up and running the zexy "date" object appears to work great even when the Pi isn't connected to a network.
newbie: can i do this?
@emens 1. https://guitarextended.wordpress.com/2012/11/03/make-python-and-pure-data-communicate-on-the-raspberry-pi/
- Yes.
- Yes. The vst instruments can be CHOSEN...... a decision as to which one you want to control. But the objects [vst~ myplugin] will need to match the vst executable (32/64bit) and the Pd version bits and the os. I know that it works for 32bit.
[vst~plugin] has been built for 64bit........ https://forum.pdpatchrepo.info/topic/11953/vstplugin-v0-1-0-released
You will need [vst~_help] for the 32-bit [vst~]....... https://forum.pdpatchrepo.info/topic/9319/how-to-use-vst-object/2
You should look at this........ https://forum.pdpatchrepo.info/topic/11096/making-an-audio-vst-for-raspberry-pi
This...... https://forum.pdpatchrepo.info/topic/11605/loading-3rd-party-plug-in-problems
You can open (SET) just the vst that you name in python but you will need to understand dynamic patching for that........ unless the new [vst~plugin] can call different vst's.
Not sure what you want to achieve. Some want to use Python to create pretty graphics, but the vst plugins already are much prettier than anything you can easily create in Pd.
If you want to save and recall presets then you can do that in Pd.
David.
How to use Enttec DMX Usb Pro with PD on Raspberry Pi
I am trying to build a lightning rig controlled via OSC to a Raspberry Pi running PD.
Then I want to output dmx from the Raspberry Pi to my Enttec Enttec DMX Usb Pro.
Does anyone know a way to do this? The website does say it is supported by Raspberry Pi but I do not know how to communicate with it from PD.
https://www.enttec.com/product/controls/dmx-usb-interfaces/dmx-usb-interface/
Would be super happy for all help