Hi Lists(s),
I'm rewriting phasor~ and unifying it with metro so that a pulse is generated from the boundaries of each ramp - so that bars of music can be read using tabread~ objects with a sample-accurate metro.
I'm sure someone will say this can already be done, but it has to be dropped into the Ninja Jamm patch, so there isn't really time to rewrite the rest of the patch.
I don't fully understand the way phasor~ wraps, but I have the object firing out bar numbers correctly. I'm putting …
[View More]clocks in for 16ths and 24ths of the beat, initiated on each wrap. I need to minimise CPU, so what I want to know is this:
Does phasor~ always start from 0 and go to 1, i.e. is there always a signal value of 0 at the start of the ramp and a signal value of 1 at the end? As I write this, my common sense tells me it should be "yes" but I want to make sure. I suppose I should just try it really...
Cheers,
Ed
Ninja Jamm - a revolutionary new musix remix app from Ninja Tune and Seeper, for iPhone and iPad
http://www.ninjajamm.com/
Gemnotes-0.2: Live music notation for Pure Data, now with dynamics!
http://sharktracks.co.uk/
[View Less]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
hi all,
what are the options these days to play old (or new) RjDj scenes on an
Idevice.
RjDj.app is gone, and it seems that there is no ScenePlayer for iOS.
fmdr
IOhannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
Comment: Using GnuPG with Icedove - http://www.enigmail.net/
iQIcBAEBCAAGBQJTD2LwAAoJELZQGcR/ejb4sSYP/iOYGFVTcOLU+49DCw+ZEjNO
MiFLV9IAvvD2GOAdu834stW3IbR7yC4fJIin4ntacepQub+1PAIgGJpU9KbZmVdJ
…
[View More]4a3vnlpouw0sTmkO9wNn4aec6IeGGSOb0TLqyOD+7MyVwRwfGKwQ0t1LWlMOy+G9
UYcnefOjFVcQTjCks/qD7g9J3reWF4NtPROmSHDT49t9jdbFta9vxOq+pj1fM83M
7HRueRPWXzrtUv2tFueqCiolJUuBwirMiaaXXqXN1wy61qejv/jcbXXCiOuCdTXT
OTHbJNib6v8rInOATipLHCinU3C5Hgn7ShQ13fTOM120bBNgMvVGwXVjrYhJYtw+
tcJ+7J+U+NHBXZ94VY7gxsEfYkQgKliUuobQs2ooxq+jPtq4jvSDuP2o76iIFzrA
VvFNnNz2fo+jdm2S0ezy+2ehwAcBw1UCLJA/4MBsSWp5KhXm5XTttROii0kiOfMa
WlWcB2EjQ58DtiKwYTRuzRok4VdSQE+CIciJgchPgswVLDoV7aEo5eaoqRbaF+Rc
Ya5KZn14KyWmpJeEpqRBIkLSoQB2VIdVC0/SyX0MuhVwgypBB8yLc3FYFVxegSmK
RXUqdevZkVv7F+ruVyUNYO9hOkU4OYtLYGMo63A+Y5CbWTwlzdNeVzV6oBQTPxv6
qAzKMUlLQq7TMS+7hO06
=BPaY
-----END PGP SIGNATURE-----
[View Less]
Below is my setup method. This object generates rhythmic phrases so it
accesses the time scheduler in Pd as per the code [metro] or [delay], and
outputs a bang. Perhaps this could be where it goes wrong?
Thanks for your time and help.
-Rob
-----------
void rhynamo_setup(void) {
rhynamo_class = class_new(gensym("rhynamo"),
(t_newmethod)rhynamo_new,
(t_method)delay_free, sizeof(t_rhynamo),
…
[View More] CLASS_DEFAULT,
A_GIMME, 0);
post("[rhynamo] a rhythmic generator v .02 : by Robert Esler 2014");
class_addbang (rhynamo_class, rhynamo_bang);
class_addfloat(rhynamo_class, (t_method)rhynamo_generate);
class_addsymbol(rhynamo_class, (t_method)rhynamo_set);
class_addmethod(rhynamo_class,
(t_method)rhynamo_set, gensym("set"), A_DEFSYMBOL,
A_DEFFLOAT, 0);
class_addmethod(rhynamo_class,
(t_method)rhynamo_generate, gensym("generate"),
A_FLOAT, 0);
class_sethelpsymbol(rhynamo_class, gensym("help-rhynamo"));
}
-------------
Date: Thu, 27 Feb 2014 14:15:05 -0600
From: Charles Z Henry <czhenry(a)gmail.com>
Subject: Re: [PD] Strange behavior using custom external
To: Robert Esler <robert(a)urbanstew.org>
Cc: pd-list <pd-list(a)iem.at>
Message-ID:
<CAPfmNOFA_cprs4Ux0Yg1YY7hFsgrpt79B+FeLj5kzf1FRD0R4Q(a)mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
The difference probably indicates that something is going on in your
_setup() function. Once you've loaded a class in a patch, it stays in
memory. If you close the patch, and open another patch without the class,
you may still see the effects---but if you close pd, and reopen without
using the class, you should not see the effects at all.
The backtrace shows a seg fault from calls in "binbuf_eval", which is the
code related to parsing and loading a patch. You might just have passed a
struct as an argument, where it's expected to be an element of that struct.
Although.... pointer type mismatches will definitely throw a compiler
warning you should have seen already. Would you post the _setup() function?
Chuck
[View Less]
Hello,
I tried to compile Cyclone library (in miXed directory from SVN) but get
errors...
In Makefile.common, i changed :
PD_DIR ?= $(ROOT_DIR)/../../pd/src
by
PD_DIR = "/home/jack/Téléchargements/pd-0.45-0test2/src"
After :
$ cd ~/pure-data/externals/miXed/cyclone
$ make
I get :
gcc -Wall -W -Wstrict-prototypes -Wno-unused -Wno-parentheses
-Wno-switch -O6 -funroll-loops -fomit-frame-pointer -fno-strict-aliasing
-fPIC -DUNIX -DHAVE_UNISTD_H -I.
-I"/home/jack/Téléchargements/pd-0.45-0test2/…
[View More]src" -I../shared -I"" -c
-o hammer/accum.o hammer/accum.c
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
0 has invalid symbol index 11
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
1 has invalid symbol index 12
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
2 has invalid symbol index 2
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
3 has invalid symbol index 2
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
4 has invalid symbol index 11
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
5 has invalid symbol index 13
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
6 has invalid symbol index 13
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
7 has invalid symbol index 13
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
8 has invalid symbol index 12
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
9 has invalid symbol index 13
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
10 has invalid symbol index 13
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
11 has invalid symbol index 13
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
12 has invalid symbol index 13
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
13 has invalid symbol index 13
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
14 has invalid symbol index 13
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
15 has invalid symbol index 13
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
16 has invalid symbol index 13
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
17 has invalid symbol index 13
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
18 has invalid symbol index 13
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation
19 has invalid symbol index 21
/usr/bin/ld:
/usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_line): relocation
0 has invalid symbol index 2
/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o: In
function `_start':
(.text+0x20): undefined reference to `main'
/tmp/cc8PsZh0.o: In function `accum_new':
accum.c:(.text+0x64): undefined reference to `pd_new'
accum.c:(.text+0x7e): undefined reference to `gensym'
accum.c:(.text+0x85): undefined reference to `s_float'
accum.c:(.text+0x96): undefined reference to `inlet_new'
accum.c:(.text+0xa2): undefined reference to `gensym'
accum.c:(.text+0xb3): undefined reference to `inlet_new'
accum.c:(.text+0xbe): undefined reference to `outlet_new'
/tmp/cc8PsZh0.o: In function `accum_setup':
accum.c:(.text+0xdc): undefined reference to `gensym'
accum.c:(.text+0x104): undefined reference to `class_new'
accum.c:(.text+0x11a): undefined reference to `class_addbang'
accum.c:(.text+0x12d): undefined reference to `class_doaddfloat'
accum.c:(.text+0x139): undefined reference to `gensym'
accum.c:(.text+0x159): undefined reference to `class_addmethod'
accum.c:(.text+0x165): undefined reference to `gensym'
accum.c:(.text+0x185): undefined reference to `class_addmethod'
accum.c:(.text+0x191): undefined reference to `gensym'
/tmp/cc8PsZh0.o: In function `accum_bang':
accum.c:(.text+0x3a): undefined reference to `outlet_float'
/tmp/cc8PsZh0.o: In function `accum_float':
accum.c:(.text+0x4a): undefined reference to `outlet_float'
/tmp/cc8PsZh0.o: In function `accum_setup':
accum.c:(.text+0x1b5): undefined reference to `class_addmethod'
collect2: error: ld returned 1 exit status
make: *** [hammer/accum.o] Error 1
Could anyone help me to solve this problem ?
My configuration :
pd-0.45-0test2
Ubuntu 13.10
++
Jack
[View Less]
Hello everyone,
I'm having a strange issue with a custom external built using C++. When using my external in Pd I send it "set" commands using a message box to change internal parameters, e.g [set tempo $1(
The strange behavior is as follows:
1) Sometimes when opening the patch the word "tempo" as referenced above gets changed to some nonsensical characters or is missing altogether. So my message looks like [set ðLᄌ $1( or [set $1(, even though it was saved as [set tempo $1(.
2) …
[View More]When the behavior above does not occur (e.g #1) and the message is preserved upon opening, it only will work as written once then the second time the message is nonsense again but does not actually display as having changed. So the GUI still reads [set tempo $1( but actually prints to the Pd window as: print: set ðLᄌ 140.
3) At times when running my object, after #2 has happened, Pd crashes and leaves a trace to:
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00000000100b1a6a
VM Regions Near 0x100b1a6a:
__LINKEDIT 00000000080a4000-00000000080a5000 [ 4K] r--/rwx SM=COW /Applications/Pd-extended.app/Contents/Resources/extra/pddp/pddplink.pd_darwin
-->
__TEXT 0000000070000000-000000007015f000 [ 1404K] r-x/rwx SM=COW /System/Library/Components/CoreAudio.component/Contents/MacOS/CoreAudio
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_c.dylib 0x903833f0 strcmp + 80
1 pdextended 0x0001c493 gatom_key + 305
2 pdextended 0x000386cf canvas_key + 1659
3 pdextended 0x000540b0 pd_typedmess + 740
4 pdextended 0x00054107 pd_typedmess + 827
5 pdextended 0x00058394 binbuf_eval + 1224
6 pdextended 0x0006255c socketreceiver_read + 1734
7 pdextended 0x0006111c sys_domicrosleep + 381
8 pdextended 0x000611a8 sys_microsleep + 19
9 pdextended 0x0005e413 m_mainloop + 989
10 pdextended 0x00060e4b sys_main + 2909
11 pdextended 0x00002172 _start + 216
12 pdextended 0x00002099 start + 41
-----------
Right now I'm using Pd-extended 42.5, Mac OS X 10.8.5
I'm happy to supply more code, examples, details, etc. if someone can help.
Much appreciated,
Rob
[View Less]
Thank IOHannes for pointing me to valgrind. From a preliminary test I
didn't see any memory leaks with Memcheck.
I used the command line: valgrind leak-check=yes pd-extended myPatch.pd
Valgrind only returned "Conditional jump or move depends on uninitialised
value(s)" for various processes in the Mac OS and Pd
I also tried Memcheck on my own code using a dummy program and get no
leaks.
Maybe I'm not using valgrind correctly to test a .pd file?
-----BEGIN PGP SIGNED MESSAGE-----
…
[View More]Hash: SHA256
On 2014-02-26 23:22, Robert Esler wrote:
> The strange behavior is as follows:
this all looks like memory corruption.
run your patch through valgrind and see what it gives youl.
fgasdmr
IOhannes
-----BEGIN PGP SIGNATURE-----
[View Less]
Hi ,
I was wonderning if anyone of you had tried to implement easing in pd. I'm working on a video animation patch that uses "random" objects and the result would look much better if I could find a way to "smooth" the transitions. I already use the "line" object, but I'm looking for a way to slow down the line output when the line comes to its end, then start smoothly when it has a new target value. I'm thinking of using the expr object but I would be grateful if someone could give me some …
[View More]design hints on this...
Thank you very much,
D.S
http://www.flickr.com/photos/schafferdavid/https://soundcloud.com/schafferdavid
[View Less]
I've had issues getting an arduino to work right with PD on my Raspberry Pi. Basically PD won't start up right with the arduino plugged in from the command line without some finesse.
I turn the Pi on, start Jack, then start PD-Extended to open a patch. The patch has a load bang to a comport object with the device name and baud rate. This patch has a the CPU load meter set to print, and the value of several pots set to print through the arduino. The first time the patch will freeze:
ccrma@…
[View More]satellite ~ $ pd-extended -nogui -jack -open copy/effectpatch1.pd
verbose(5): Using /usr/lib/pd-extended/startup as startup.
verbose(4): Loading /usr/lib/pd-extended/startup/0.libdir.pd_linux
verbose(3): libdir loader 1.9
verbose(3): compiled on Oct 4 2012 at 15:46:18
verbose(3): compiled against Pd version 0.43.3.extended-20121004
verbose(4): Loading /usr/lib/pd-extended/startup/1.list.pd_linux
verbose(4): Loading extra in /usr/lib/pd-extended/startup/extra
verbose(3): libdir_loader: added 'extra' to the global objectclass path
verbose(14): Loaded libdir 'extra' from '/usr/lib/pd-extended/extra/extra'
verbose(4): Loading pdlua in /usr/lib/pd-extended/startup/pdlua
verbose(3): pdlua 0.7.1 (GPL) 2012 Martin Peach, based on
verbose(3): lua 0.6~svn (GPL) 2008 Claude Heiland-Allen <claudiusmaximus(a)goto10.org<mailto:claudiusmaximus@goto10.org>>
verbose(3): pdlua: compiled for pd-0.43 on Oct 4 2012 15:46:20
verbose(4): Loading tclpd in /usr/lib/pd-extended/startup/tclpd
verbose(3): tclpd loader v0.3.0
verbose(3): tclpd: trying to load /usr/lib/pd-extended/extra/tclpd/tclpd.tcl...
verbose(3): tclpd: loaded /usr/lib/pd-extended/extra/tclpd/tclpd.tcl
verbose(4): Loading vanilla in /usr/lib/pd-extended/startup/vanilla
verbose(3): libdir_loader: added 'vanilla' to the global objectclass path
verbose(14): Loaded libdir 'vanilla' from '/usr/lib/pd-extended/extra/vanilla'
@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ the zexy external 2.2.5 @
@ (l) forum::für::umläute @
@ iem @ kug @
@ compiled: May 13 2012 @
@ send me a 'help' message @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@
matchbox: OSC-pattern matching code (c) Matt Wright, CNMAT
verbose(3): libdir_loader: added 'cyclone' to the global objectclass path
verbose(14): Loaded libdir 'cyclone' from '/usr/lib/pd/extra/cyclone'
comport - PD external for unix/windows
LGPL 1998-2006, Winfried Ritsch and others (see LICENSE.txt)
Institute for Electronic Music - Graz
expr, expr~, fexpr~ version 0.4 under GNU General Public License
get_baud_ratebits: 9600
set_baudrate baudbits: 13
^CPd: signal 2
Until I close it with Control-C. This takes about 60 seconds to close the program. Then I fire it up and the whole thing loads and begins printing the CPU load as I want, but not the pots. At this point I can keep closing and restarting PD and get the same result. Now, if I unplug the arduino and reconnect it, and start PD everything fires right up!
Any ideas why it won't load up from the start? I have tried delaying the comport open for a second, with no luck.
[View Less]
Dear list,
I've been using Pd-extended in Ubuntu LTS (12.04) a lot lately, and a
couple of bugs are beginning to get on my nerves...
first it randomly crashes and also crashes X (i get a black screen, and
after a few seconds i'm prompted for my password to log into my session
again), whenever I'm typing something in an object box (i haven't been able
to figure out exaclty what character was causing this, it really looks
random to me).
I also get constant error messages in the console when …
[View More]using JACK
(JACKerror: Cannot use real-time scheduling (RR/55)(1: Operation not
permitted)
JACKerror: JackClient::AcquireSelfRealTime error). The sound works
sometimes though, but Pd also freezes every once in a while. I also get
error messages with Alsa.
I have installed Pd-extended from the Ubuntu repos. It seems to be the same
version as the one available on puredata.info (0.43.4).
I don't know what to do.
Cheers,
Pierre.
[View Less]