Optimization tips? (gridflow / \#labelling)
Spent the better part of today reverse engineering gridflow's "multiblob" example patch -- time well spent, actually, as I now have a much better idea what it's actually doing than I would if I had just cribbed the example.
The only trouble is, it's s-s-l-l-l-l-o-o-o-o-o-o-w-w-w-w-w-w-w-w-w, chewing anywhere from 30-60% CPU according to Ubuntu system monitor. So I'm wondering how to pick up the pace. My patch is attached.
First obvious thing is, reduce the image size by another factor of two. After [#downscale_by 4 smoothly], the image is 320x256. I may not need that much resolution, but I'd prefer to keep that as a last resort.
Second thing -- I'm not sure how much efficiency I'm losing by reading the webcam using gem and then converting to gridflow. I ended up doing it that way because I simply could not get [#camera] to grab images at all. The #camera panel does identify the laptop's built-in webcam (BisonCam,_NB_Pro) but 'bang'ing a [#camera 0] only produces this error.
error: [#io.videodev in /dev/video0 0] inlet 0 method bang: alloc_image: ioctl VIDIOCGMBUF: Invalid argument
(Ubuntu Lucid (2.6.33-29-realtime), 64-bit, pd 0.42.5-extended, installed gridflow from the puredyne PPA https://launchpad.net/~puredyne-team/+archive/ppa/+files/gridflow_9.12-1%7Eppa1%7Elucid1_amd64.deb)
Beyond that, I don't know enough about what gridflow is doing under the hood to use it more efficiently. Any pointers?
Thanks,
James
http://www.pdpatchrepo.info/hurleur/labelling-to-osc-blur9.pd
Jack midi port question
Hi to all,
I have a patch that convert launchpad midi note to midi CC to an Yamaha RM1X all connected with jack, so i have:
Jack connection :
Launchpad Out ------> Pure Data Midi-in 1 (for the PD patch)
Pure Data midi-Out 1 ----> midisport (for the yamaha)
if i want to use the led of launchpad for visual feedback:
Pure Data midi-Out 2 ----> Launchpad IN
The problem is that the launchpad get and send midi to ch 1, if i send to the lauchpad i send also to the Yamaha, how i can separate this two things ? what object i have to use, if is possible ?
Thanks
Novation Lunchpad on Linux (ubuntu maverick) WORKS !!
Hi to everyboy,
i forgot to post a better guide:
I tested this on linux ubuntu maverick:
before you have to install:
$ sudo apt-get install libusb-1.0-0
$ sudo apt-get install libusb-1.0-0-dev
$ sudo apt-get install libasound2-dev
then extract the sources (from https://github.com/jiyunatori/launchpad, click Downloads, and take the .tar.gz)
cd in the extracted directory compile with:
$ make clean
$ make lpmidi
if you didn't get errors plug the launchpad and run:
$ sudo ./lpmidi
then open jack or alsamidi ports...and you'll find the launchpad midi device.
you can take the lpmidi apps and put where you want, and make a launcher (i put it on the gnomepanel)
I hope this works also for the linux user here, let me know....
All this instruction came from here: http://www.renoise.com/board/index.php?showtopic=26229
thanks
Readanysf~ wont work with jack running?
Ok, got it working.
-
I replaced puredyne with ubuntu 10.10
-
installed Jack from Ubuntu Software center
-
installed PD-extended 0.42.5 deb for ubuntu 10.10
-
added the ppa for August Black's readanysf~ found here https://launchpad.net/~reduzierer/+archive/rdz-pd-extra+deps
-
installed pd-readanysf through synaptic
NOTE: the external gets installed to /usr/lib/pd/extra/ but it should be in /usr/lib/pd-extended/extra/
so make sure you move it there.
-Kai
Pd-extended - ubuntu 10.04
It could be encouraginig to know it is (now) working in ubuntu 10.04...
i'm newbie, PD didn't work neither with jack but i followed the steps indicated here (https://help.ubuntu.com/community/UbuntuStudioPreparation), i start jack, pd with the flags -rt -jack -alsamidi and the other softwares, phasex or zynaddsubfx, etc (i can even hear sounds and videos on firefox). i connect them all with Patchage and "en avant la musique"!
maybe an important detail (maybe not, ahem): i start ubuntu 10.04 with the "linux-realtime" from https://launchpad.net/~falk-t-j/+archive/lucid/+index?start=225&batch=75
voila
Launchpad mappings
i've also used the launchpad on two little projects.
you mean whatever it's possible to control the launchpad's leds from pd? it's easy: just use the same midi note # as the pad sends to pd. for example, sending midinote 16 /w velocity 15 will turn first pad on the second row to bright red.
this will explain it all (progammes reference at the bottom)
http://www.novationmusic.com/support/launchpad/
Pd-extended 0.41.4 released!
Its done and available for download. This release is focused on lots of usability enhancements and bug
fixes. There are some new features as well in the many included
libraries.
http://puredata.org/downloads/
Here's the rough changelog:
-
fixed strict-aliasing build problems with cyclone, iemlib, bsaylor, and sigpack
-
added/fixed "Next Window" menu item and key binding (Cmd-` on Mac OS X)
-
lots of usability fixes and improvements
-
removed all external binaries from package, you can get them here:
http://puredata.info/docs/faq/how-do-i-download-the-flext-binaries-that-used-to-be-included-in-pd-extended -
changed to GPL v3
-
fixed paths that used the same image for Gem examples
-
fixed paths to example images in Gem help
-
libdirs now load properly when using [import]/[declare] to load a
libdir outside of the sys_libdir (i.e. extra) into the canvas-local
namespace -
single [output~] that works everywhere
-
improved Max Text file (.pat) importing and exporting and added
the ability to handle .mxt files, and binary .mxb and .help files -
added cyclone "maxmode" libraries to cyclone. To use them,
load the cyclone, library, then create [maxmode/cyclone] or
[maxmode/maxmode]. -
updated VBAP from 0.9.9 to 1.0.3
-
fixed bug in VBAP that cause CPU spike
-
bug fixes and clean up of [hid]? externals
-
(GNU/Linux) Free Desktop file associations and mime types for
Pd and Max/MSP files -
(GNU/Linux) fixed font size issue when using Tcl/Tk 8.5
-
(GNU/Linux) fixed Help Browser when using Tcl/Tk 8.5
-
(GNU/Linux) built against libv4l on Debian/testing,
Ubuntu/intrepid, Ubuntu/jaunty, and Fedora 9 -
(Debian/Ubuntu) fixed /etc/init.d/pd script to be standards-compliant
-
(Ubuntu) lpia builds for Ubuntu Netbook Remix
-
(Mac OS X) reduced default audio buffers to 20ms
-
(Mac OS X) fixed exit logic
-
(Mac OS X) fixed issue with app builder. You can now create apps without replacing an existing one.
-
(Mac OS X) upgraded to libquicktime 1.1.1 and ffmpeg 0.4.20071217
-
(Windows) moocow/pdstring externals now included
-
(Windows) increased default audio buffer for Window to 100ms since there are some really flaky audio cards in Windows land
KNOWN BUGS
Check http://puredata.info/dev/bugtracker before reporting bugs,
and if you find an existing bug report on the same issue, please
add your information there.
-
Tcl/Tk 8.5 support is a bit rough, and IEM GUI fonts aren't quite right under 8.5
-
Escape, Enter, and Ctrl/Cmd-W don't close the Path and Startup preferences
-
pdp_opengl is alpha and will definitely crash Pd
-
loading pdp_opengl will crash Pd if X11 is not open before trying to load it
-
(Mac OS X) Using Jack can cause extra CPU usage at idle
-
(Windows) installer won't replace existing installs
I've changed to ubuntu ... but met new problem ...
latest news: Ive successfully installed pd-extended on Ubuntu , including Gem and other libraries ,
they all works well !!
thanks Sunji ,radiostarkiller,nestor and my friends Jun.
here's my whole process:
1,download and install the latest Ubuntu 8.10 intrepid , then update system up-to-date
2,download the right version for your sys , for me , choose pd-extended intrepid deb package , and just double click it and install , the deb package could auto-download and install the related files from your install source.
3,after install finished, you could run pd-extend from terminal. but here we met a new problem, cannot load Gem successful. // don't worry, we just leave little half step to rush the finishing line @@)
4,turn on terminal, update apt-get source : sudo apt-get update
5, still terminal : apt-get install gem // pd and Gem would be downloaded from you source ftp , after that , type "pd" in terminal , new pd running out it's window , but none libraries was loaded.(@#$%!@ Holy.!#$%)
6, this situation we met before, similar but actually very different. last time I installed 2 version of pd in different path, and make sys disorder . but this time , the same path. and what I've done is to uninstall pd in terminal : "sudo apt-get remove pd" ,
7, backing to the extended deb package we downloaded before, and install again.
8: run pd ... Gem and other packages loading successful !
conclusion: I guess maybe don't need so complex to work it out, the key point I think is to install Gem from source, and it would install any package that Gem must needed .
that's it
thanks again and enjoy pd@Linux now
--------------------------- OLD POST -----------------------------------------------
because less user on Mandriva , so I changed my sys to Ubuntu yesterday.
and here I met new prolbem for installing pd-extended for Ubuntu.
before I install pd-extended , I installed these packages first:
libasound2 (>> 1.0.12)
libc6 (>= 2.5-0ubuntu1)
libjack0.100.0-0 (>= 0.101.1)
dep: tcl8.4 (>= 8.4.5)
dep: tk8.4 (>= 8.4.5)
and when I run pd install , both Hardy and Gutsy that showed error here :
Gutsy ; Error:Dependency is not satisfiable: libgsl0
Hardy: Error:Dependency is not satisfiable: liblame0
I searched them in package manager , I thought they were both about the libraries that I've installed above.
thats it
Puredata Under Linux (Ubuntu)
@thesergie said:
Hello!
I installed pd-extended on Ubuntu 8.04, following the instructions here: http://en.flossmanuals.net/PureData/InstallingUbuntu ... but what they suggest doesn't work:
deb http://archive.ubuntu.com/ubuntu/ feisty main restricted
deb-src http://archive.ubuntu.com/ubuntu/ feisty main restrictedSince "feisty" is a pretty old release, the archive is no longer available... so you gotta use the "old-releases" i think:
deb http://old-releases.ubuntu.com/ubuntu/ feisty main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ feisty main restrictedI hope this helps somehow. pd-extended has all the good stuff installed, unlike pd-vanilla.
Hey,
He is on 8.10 though, Intrepid, not feisty.
Puredata Under Linux (Ubuntu)
Hello!
I installed pd-extended on Ubuntu 8.04, following the instructions here: http://en.flossmanuals.net/PureData/InstallingUbuntu ... but what they suggest doesn't work:
deb http://archive.ubuntu.com/ubuntu/ feisty main restricted
deb-src http://archive.ubuntu.com/ubuntu/ feisty main restricted
Since "feisty" is a pretty old release, the archive is no longer available... so you gotta use the "old-releases" i think:
deb http://old-releases.ubuntu.com/ubuntu/ feisty main restricted
deb-src http://old-releases.ubuntu.com/ubuntu/ feisty main restricted
I hope this helps somehow. pd-extended has all the good stuff installed, unlike pd-vanilla.