udpsend and receive
@toddak to fix the missing dependancies run this in terminal.............
sudo apt-get update
(and then)
sudo apt-get upgrade -f
In fact you should do all of these from time to time....... (not the bits in brackets)
sudo apt-get update
sudo apt-get upgrade
sudo apt-get upgrade -f (fix missing dependencies)
sudo rpi-update (firmware and kernel)
It is most likely that you need pulse audio for Pd to run....... I think that it is essential....
and maybe the dejavu fonts (uncertain)........ and so the command above should solve your problem and Pd should then run....
ALSO...... if it will still not run once the missing dependancies have been installed you should check that you are running an armhf system:...........
Run this command in terminal:
readelf -A /proc/self/exe | grep Tag_ABI_VFP_args
If the Tag_ABI_VFP_args tag is found, then you're running on an armhf system. If nothing is returned, then it's armel. To show you an example, here's what happens on a Raspberry Pi running the Raspbian distribution:
pi@raspberrypi:~$ readelf -A /proc/self/exe | grep Tag_ABI_VFP_args
Tag_ABI_VFP_args: VFP registers
This indicates an armhf distro, which in fact is what Raspbian is. On the original, soft-float Debian Wheezy distribution, here's what happens:
pi@raspberrypi:~$ readelf -A /proc/self/exe | grep Tag_ABI_VFP_args
Nothing returned indicates that the kernel is armel.
David.
How to compile and install a Real-Time Kernel for Debian \#1
original post by Sumidero, cut and pasted from here:
http://puredata.hurleur.com/sujet-5605-compile-install-real-time-kernel-debian
Hello everybody:
After some exchange of posts in this thread:
http://puredata.hurleur.com/sujet-5578-old-toughbook-useful-live-events
I told @katjav and @PonZo that soon I was going to post a log of a Real-time Kernel compilation and installation for Debian based machines, so that Pd would run fast and smooth in any machine, even a small netbook. I only found the log of the compilation of a desktop machine, but the process is the same, adjusting the choices to the equipment features. I hope this encourages you to compile your own Real-time kernel.
You can download the pdf file from here:
http://dl.dropbox.com/u/6086343/HowToCompileARealTimeKernelForDebian.pdf
Extra data:
You can find out the chipset name of your audio card using this command:
# cat /proc/asound/cards
There are some extra tweaks needed to develop real-time performance:
Install jack with its graphic front end:
# aptitude install qjackctl
Once installed, it prompts us to configure automatically this file:
/etc/security/limits.d/audio.conf
We agree and then we tweak this other file opening it with any text editor (always in root mode).
# gedit /etc/security/limits.conf
Then we add these lines at the bottom of the limits.conf file to assign high and real-time priorities to the @audio group:
@audio - rtprio 99
@audio - memlock unlimited
@audio - nice -10
Don't forget to add your user to the @audio group:
# adduser <userName> audio
I hope it works for you too. Best regards to all of you.
Sumidero
Understanding pd's audio latency
Without knowing exactly what you've already done to achieve lower latency, I'll cover the basics.
Latency is is controlled by several factors:
The Kernel: while you don't need a low latency kernel getting one or using Ubuntu Studio can help. There have been some incompatibilities with graphics drivers from nvidia in the past so YMMV
Kernel configuration: If you haven't read this page, read it - all of it - and do the tweaks that pertain to you. https://help.ubuntu.com/community/UbuntuStudioPreparation
Kernel Sound drivers: you are either going to use ALSA (through jack) or ffado for a firewire audio device. Pulseaudio is not an option here. Pulseaudio is not the devil, it's just not made for low latency work. refer to the link about on how to deal with it.
Jack Configuration once you've tweaked everything above then you can lower your frames/period and period/buffere settings as low as they will go without Xruns
Your soundcard not all soundcards can get down to 2ms latency in Jack, and considering you are using just the builtin audio you may have to consider a external usb audio device. Something like these would work:
GEM Linux -rt
From Windows XP, impressed by the guis created by katja & sonofsol, I move to my music machine booting UbuStu 64 on the -rt 2.6.33-4 kernel. Known issues with my onboard ATI Radeon graphics card - since I haven't used GEM, I haven't cared.
[gemwin] does not work. Cannot create const context, Bad request, peril, peril!
Boot on -preempt 2.6.32-3. [gemwin] works, not tested any further.
Shall I upgrade my graphics card sooner than I had planned or slog through fixing the driver? The drivers may not even be the problem - I have little understanding of kernel intricacies.
A fix so that I can keep my present kernel?
Switch to the best -preempt or a different hard real time kernel?
Thanks.
NVidia puredyne vs vista
Ok. So you should try to find the appropriate alsa option for your soundcard.
sudo gedit /etc/modprobe.d/alsa-base.conf
and add the following line at the end of the file:
"options snd-hda-intel model=MODEL"
where MODEL is the name of your model. See http://www.kernel.org/doc/Documentation/sound/alsa/HD-Audio-Models.txt , search for ALC662 and ALC861. Then save the file, reload alsa (sudo alsa force-reload), and mute/unmute the soundcard. It's a trial and error step.
Granitique
A granular instrument built around the granule~ external by Eric Lyon (part of Lyon Potpourri collection of externals for MAX and pd).
The short story: when Eric Lyon published his Potpourri collection of externals in 2006 I was kind of amazed by them.
Soon I liked "granule~". So after some (looong) time, I decided to build something with it. Here it is:
Attached the zip file containing externals compiled for Win and Linux. No Mac's here around, sorry.
More details (where to find the externals, etc etc.) in the readme within the attachment .
It there are bugs or any bullshits in it please let me know.
It's a PureFun! project, so ... have fun.
Alberto
Edit: few sounds out of it on the output section
Swept sine deconvolution
@lead said:
maybe process the lists from cartesian to polar coordinates (or visa versa) then *-1 +1?
Not sure what you mean exactly. Admittedly, my suggestion was rather cryptic as well.
Anyway, I was thinking about the situation of a test signal: how long is that signal? Probably too long to fit in one fft frame of reasonable length. In that case, I don't think you can invert it's phase spectrum in frequency domain. But no problem: just do a time reversal in signal domain, and it's phase spectrum will be inverted automatically. To be explicit here: I mean you must time-reverse the samples of the original test sweep (not the test result signals). Time reversal does not change the magnitude spectrum, only the phase spectrum.
So remains inverting the magnitude spectrum of the time-reversed test sweep. A log sweep does not have a flat magnitude spectrum, so you need to compute the multiplicative inverse of the magnitude coefficients (in frequency domain, using polar coordinates indeed here). Beware of possible zero-magnitude points in the original, they can not be inverted of course. After magnitude inversion, go back to cartesian coordinates and from them to time domain. Now you have your deconvolution kernel in time domain.
The deconvolution kernel is the test sweep with phase and magnitude spectrum inverted. It can be considered a (very long) FIR filter. With this kernel you can do fast convolution of the test results, to deconvolve these. For this, you can use Ben Saylor's [partconv~] object. It does 'partitioned convolution' in frequency domain, with zero padding to avoid circular convolution.
Good luck. Please let us know if you have succes. It is an interesting technique to create impulse responses of acoustic conditions. Expensive reverb simulators probably rely on similar techniques. What is actually your purpose for it?
Katja
Lightest linux for pd-extended
Hi guys,
I have an old sony vaio laptop with only 512 Mb of RAM and I'm looking for a light linux distro that supports pd-extended and the low-latency kernel.
Now I'm using Xubuntu HH and pd works pretty fine but just pd&gem 'cause there's neither pd-extended nor the low-latency kernel in the synaptic repos and the terminal installation (sudo apt-get install) doesn't work for both of them (pd-extended for ubuntu HH installs but doesn't start).
I want to install the OS on the machine so no puredyne and live distros. I can install from CD only because the CD-DVD player, for some unknown reason, doesn't start any bootable DVD... just CD.
So, can you, please, give me suggestions?
Thank you very much.
Random signal distorsion when opening patches
I'm real new to Ubuntu - three weeks - for the past couple of days I've been having some distortion problems between pd ubuntu and jack - I just went into the start up manager and saw that the default operating system had changed from the real time kernel (2.6.31-11-rt) back to the generic kernel. I changed it back - restarted the computer - problem solved, Get the start up manager from the ubuntu software center in applications - or do all this in the terminal. Also - try disabling networking before you start jack. Hope that helps.
Surround 5.1 Granulation PD Patch 4.0 Now Public
Hi all,
I've uploaded a new sampled sound granulation patch to my website at:
http://www.VideoGameAudio.com/
under the 'patches' section:
http://videogameaudio.com/main.htm#patches
It granulates a loaded sample and allows the grains to be distributed in 5.1 surround. It should be fairly easy for you to use the surround or granulation code in your own work. Let me know if it is useful to you and perhaps give credit when appropriate.
I presented it as part of a demonstration at the GameSoundCon in San Francisco in November 2009 and had several people ask for the code, so here it is.
Cheers,
Leonard J. Paul / VideoGameAudio.com