Log to linear conversion
@callummalcolm seem to recall the numbers the daisy seed reports from potentiometers are normalized float .. which is just fancy talk to say they range from 0-1 (or maybe more like 0-0.99999)
in that case you can use [+ 1] into [log 2] to convert them to a linear(ish) curve .. its probably good enough for rock and roll.
for other numbers (like the arduino's 0-255) its the same concept, [+ 1] because log is weird, [log 256] which turns it into 0-1, you can add [* 255] again or work with the normalized float
in a sense and at the ranges were interested in its sort of like a fixed look up table, so the log function will either make a linear ramp into log or make a log ramp into linear
and yeah as they mention above the log (audio) taper potentiometer is actually a linear taper with an extra resistor that is then doing resistor math (see https://sound-au.com/pots.htm and https://sound-au.com/project01.htm for a better description).
pure data OSC and OLED
@impression As I said in your other thread, if you use an OLED which has a frame buffer driver for it you will be fine, you just need to load the driver and it will act like a normal display. Here is one for the pi: https://github.com/foldedtoad/raspberry-pi-oled but if you can find an OLED that uses the same chip or one of the others that driver supports and a normal I2C interface instead of the pi bonnet it will probably work just fine with bela. There are probably others but that is just the first I found, did not dig. Could also make the pi bonnet work withh bela without much work, just would have to connect it with wires/jumpers instead of plugging it right in like you can on the pi.
Why do you only have OSC? Just assuming that based off of the OLED you found or something else?
else externals not working on Raspberry Pi 5 running PD 0.55-1
@kevin.cascadia said:
Did RC13 for raspberry pi ever come together? I’m really interested in patching with the new sfont~ object for my C&G Organelle.
RC13 is not released yet, I meant RC12 in that old comment, which is the last current release.
We're gonna release an update soon in a couple of weeks, and I hope @timothyschoen helps us dealingwith the issues for building for raspberry pi. It is on my list to try and make this available for the pi and I hope there are people out there who can help me building it and testing it.
unfortunately I don't have a pi in hand with me...
else externals not working on Raspberry Pi 5 running PD 0.55-1
Hello, again forum! I posted 4 months ago because I was having issues with else externals, which I was able to solve by building the latest version of PD.
https://forum.pdpatchrepo.info/topic/14839/else-externals-not-working-on-raspberry-pi-4b-running-pd-0-51-4
Now I am running into problems again. I have a new Raspberry Pi 5 running Debian GNU/Linux 12. I have built PD 0.55-1 and it is running successfully, but when I search for else externals library in deken is get the following:
"else": Found 0 usable packages (of 5 packages in total).
It appears that there are no matching packages for your architecture.
I looked on the github page for else and it says that "This version of ELSE needs Pd 0.55-1 or above.", which is the version I have.
I wonder if anyone can provide some advice? Not sure what I'm doing wrong. The only thing that is different from 4 months ago when I solved this problem is that I'm now using a pi 5?
Thanks!
ALSA xrun recovery failure
@kai I think you have to be a member of the audio group....... https://forum.pdpatchrepo.info/topic/14085/solved-problem-with-pd-start-priority-8-scheduling-failed
Or.... https://forum.pdpatchrepo.info/topic/12319/problems-using-pd-on-raspberry-pi/27
Maybe not very useful answers as things change all the time.
There has been some chat about using PipeWire instead of (or with.. I don't know Linux well) Alsa.
You should find that on the forum if you do a google search for pdpatchrepo pipewire.
David.
else externals not working on Raspberry Pi 4B running PD 0.51.4
@Dizzy-Dizzy I do have a RPI but I am not very familiar with Linux.
On my RPI3B Raspian... stretch I think....the wish executable is in /usr/bin.... and also the wish86 executable.
wish86 was probably installed when I installed Pd via apt-get.
First check that you have them on your system........I think they must be there because you had Pd installed before.
Then, so far... the only help I have found is here..... https://askubuntu.com/questions/515610/wish-missing-but-tk-is-installed ........ but I find it strange that your error was for wish and not wish86.
If you don't find wish86 in that folder maybe you can simply copy it from the source code folder...... but it probably needs to be installed so..... sudo apt install wish86.... and maybe also sudo apt install wish.
... from this page....https://wiki.tcl-lang.org/page/Raspberry+Pi
I hope I am helping, but I am not confident.
Pd starts and then uses wish to create the on-screen windows and draw the patches..... so your build might well be good but without wish nothing will be drawn to the screen.
David.
send audio over wifi from pc to raspberry pi on pd
Hi!
I would like to send audio over wifi in pure data from my pc to several raspberry pi. I tried to send audio over wifi from one pc to another pc with mrpeach udpsend~ and udpreceive~ , and it worked pretty good. My goal is to create a small spacialisation set with 4 to 8 small speakers each one linked to a rasberry pi with audio that i send from my pc. I want to send a different audio channel to each raspberry pi.
i have now one raspberry pi zero 2, so i can try with one speaker first. i installed pure data on it but my problem is that i can't install mrpeach on the raspberry pi OS. Didn't find it on the pure data browser externals and when i put the downloaded files inside the externals file, it doesn't work either.
Do you have a solution?
Thanks
Clément
cyclone on jetson nano
@porres like a raspi4 with a sick graphics card https://pi3g.com/commercial-comparison-nvidia-jetson-nano-raspberry-pi-coral-usb-coral-devboard/ i see it can run nn_tilde https://forums.developer.nvidia.com/t/embedded-realtime-neural-audio-synthesis-using-a-jetson-nano/236044
@zoebreed .pd_linux is an older (maybe just lazier now) way to name compiled extensions that run on linux (same as windows externals can show up as .dll) - .. but only one tho - its not saying arm/arm64/aarch64 for linux on microcomputer (or android, chrome laptop) or amd64/x86_64 for a regular laptop/desktop running linux .. so pure data will try loading it .. but unless its the right CPU it wont work .. the console errors can sometimes be helpful here
it looks like the intel jetson nano runs Jetson Linux which is Arm64 .. assume thats what you have on it? knowing that would help. .. so its compiled externals are (probably) compatible with Raspi 4 and up running Rasbian64 .. arm can be really tricky tho .. saw a download that had this many different versions for debian/ubuntu .. arm armhf armhfp armv7l armv7hl aarch64 based on OS and CPU and the capabilities of the OS ..
the way compiled exernals work - unless you have a cross compiler that can build for another CPU/ARCH and know how to do that on your own - you can only build the external on the operating system and cpu itself. so you'd build cyclone on the intel jetson nano, but if you built it on something else (besides a raspi4 or better running rasbian64) its probably a no go .. really why vanilla abstractions/externals are golden
you can find a lot of .pd_linux used on patches for critter and guitari orac/pocket piano 201/organelle which target microcomputers (inside the instruments) - the only compiled externals in the folder with the patch included will be for the micro - but named .pd_linux and maybe also mac for testing
.. so trying these probably wont work as they all target arm32 ..
here's the one to try putting in the folder with your patch (if its in the same folder as the patch just use [scale] - scale~.zip - I downloaded cyclone(v0.7-0)(Darwin-amd64-32)(Darwin-arm64-32)(Linux-amd64-32)(Linux-arm64-32)(Linux-armv6-32)(Windows-amd64-32).dek from https://deken.puredata.info and renamed it .zip to unzip it
here's a probably vanilla compatible from rj https://github.com/rjdj/rjlib
m_scale-help.pd m_scale.pd (just rename back to m_scale put them in the same folder as your patch and then use [m_scale arg arg arg arg] ..in pure data after changing a prepatched object to another one - you can even hit undo and redo and it will reconnect all the wires for you )
problem with Kiosk-plugin and raspberry pi
Has anybody used kiosk-plugin (via deken) on a raspberry pi?
I downloaded and tested on osx and it works great, but when I try on the raspberry pi, the options I tried (disabling menus and making full-screen), didn't work. The console seems to think the plugin is loading properly. Is there a known issue?
pd version 0.51.4,
rpi os bullseye
Ultrasonic sensor with Raspberry pi
@kaimo Hello, I'm very basic in Pure Data and Raspberry Pi and I also wanted to create a sound box that reacts to the approach of objects to generate sounds. After a few hours of research and chatting with ChatGpt I managed to create a simple prototype. To write the Python code I used PyCharm on the Raspberry Pi, bearing in mind that it is necessary to install libraries related to GPIO and OSC (since to communicate with Pure Data it is necessary to use netreceive). If I can help you, I'd be happy to share my experience with you. Here you go. Cheers and good work