Workaround: Crash with multiple monitors / OSX
Been having some crashes using Pd 0.49.1 on OSX (Mojave) with multiple monitors. Sometimes a window will jump to the other screen, and on some saved patches Pd will consistently crash when trying to open.
I think I found the issue with the saved patches that cause Pd to crash. It looks like an invalid position is stored in the canvas line in the file.
Crash report:
Application Specific Information:
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: CGRectContainsRect(CGRectMake((CGFloat)INT_MIN, (CGFloat)INT_MIN, (CGFloat)INT_MAX - (CGFloat)INT_MIN, (CGFloat)INT_MAX - (CGFloat)INT_MIN), frame)'
Example problem file:
$ grep canvas fm.pd
#N canvas 613 -1039 733 665 10;
I was able to work around the problem by changing the negative canvas position (-1039) to 0.
Errors using netsend~ and netreceive~
Hi,
i have some problems with the netsend~ and netreceive~ objects from Remu. I'm using pd extended 0.43.4
I build two patches (client and server) for voice communication with several abstraction using dollar signs etc..
The first patch (client) records audio on 8 channels with the [adc~] object after pushing a Press-to-talk button (PTT) and sends this signal with [netsend~] to the second patch (server). This second patch checks some conditions and sends the signal to other clients. The client receives the signal and sends it to a [dac~] object.
In the beginning of this project I connected everytime I pressed the PTT and disconnected when I released the PTT. Pressing the PTT and connecting caused often errors from [netsend~]:
- (Tcl) Invalid Command Name " " while executing; with different commands inside the "". Sometimes it was a part of the IP-Adress, the port, parts of other words like "ted" from connected or something different
- Sometimes I got the Tcl error: bad option " itemconpdtk_text_set": must be addtag,bbox,bind,canvasx,canvasy,cget,..... while executing
The results of this errors where a frozen GUI (number boxes and Sliders didn't change) or pd crashed.
- (Tcl) missing close brace while executing. After this errror I had to kill Pd because nothing worked anymore...
I couldn't find the reason for the errors so I changed the patches. Now [netsend~] connects directly when the patch opens. But sometimes the "invalid command name" error appears anyway and the GUI freezes, so I had to restart the patch.
Another problem is an error from the [netreceive~] object while sending an audio signal over the network:
- recv data: message too long (10040) or recv tag: message too long (10040)
it is independent of the chosen format or blocksize. Everytime it happens the sound interrupts. It's not that bad, but sometimes there comes a block of errors and the sound interrupts for a hole second or more, which is disturbing.
So I hope someone understands what i wrote and maybe someone had similar problems.
Tanks for helping.
prophet 3003 wavetable synth prototype
hi all ... im developing a funky wavetable synth thats inspired by the sequential circuits prophet 2000 from 1985. it uses the original 12 bit ROM from this synth and and a synthesis menthod called harmonic aliasing.
- all frequencies and repeat rates are related by simple integer relationships
- adaptive just intonation = infinite tuning systems
- 3 oscillators per voice
- wavetables by multiplexing oscs with waveshaped sines
- variable sample rate simulation via resampling with audiorate wavetables (BLITs)
- integrated complex numeric sequencer
- integrated delay for hardware mixer feedback loop with analog eqs
basically it includes everything i think is cool about numeric sequencing and is still really low on dsp because its all based on integers mechanics like early wavetable synths.
this synth can sound really ambient or real raw depending on the complexity of the number relationships and the waveshaping settings. eventually this is going to be a hardware synth with FPGA technology, variable sample rate per oscillator and analog eqs/filter ... just like in the 80s 
project logo:
https://i.imgur.com/F1kqrMt.png
prototype patch:
wave multiplexing:
.
harmonic aliasing is inspired by a patch by acreil: https://forum.pdpatchrepo.info/topic/6759/new-anti-aliasing-and-phase-distortion-abstractions.
early discussion: https://forum.pdpatchrepo.info/topic/11176/adaptive-sample-rate-and-harmonic-aliasing-in-pd
.
mixer delay feedback loop feature:
lots of different sounds with audiorate waveshaping:
.
Arduino - Data Type
Hi, I'm fairly new to arduino. I'm working on a PD patch that gets data out of an accelerometer (a MMA8451). It works fine, but I'd like to know something in order to improve things. The arduino code is very simple, it outputs data this way :

So I get a stream of ascii values in Pure Data. I use 'a', 'b' and 'c' as arbitrary values in order to separate the x, y and z values in my patch. Just to convert my data into numeric values, I had to do this ugly piece of patch :

There might be a more elegant way to do it, but my question is the following : is there a way to get numeric values directly out of arduino, so I get them directly with comport? A kind of list I would just have to unpack?
Error when Graph on Parent-Abstractions are in a Subpatch
Hi everyone,
My abstractions have GoP activated to allow for covenient monitoring of an experimenting with various sound parameters. However, the rewriting of these many graphical objects slows down PD. When hiding these abstractions in a subpatch, this slow-down is circumvented. However, now I'm getting some error messages in the main PD window:
(Tcl) INVALID COMMAND NAME: invalid command name ".x1d73448.c"
while executing
"$tkcanvas itemconfig $tag -text $text"
(procedure "pdtk_text_set" line 2)
invoked from within
"pdtk_text_set .x1d73448.c .x1d73448.t60bbdb8 {50.26}"
("uplevel" body line 1)
invoked from within
"uplevel #0 $docmds"
Do you know anything about this? Thanks in advance.
PortMidi 'Invalid Device ID'
I have been having this issue (maybe non-issue) for some time.
Here is my set up:
Teensy 2.0 MIDI Device
Pd 0.46.7
Late 2013 Macbook Pro
I am using a Teensy MIDI device in Pd.
If I connect the Teensy device, then launch Pd, I get the following error message:
could not open midi input 0 (Teensy MIDI): PortMidi: 'Invalid device ID'
could not open midi output 1 (Teensy MIDI): PortMidi: 'Invalid device ID'
Under my MIDI settings I have "Teensy MIDI" selected both as my input and output.
If I re-select "Teensy MIDI" in both dialogs of the MIDI preferences menu, and hit OK the same error message will reappear in Pd's print window.
Though I get this error, it seems to not effect the use of the device in any way.
When I connect the device to a windows machine, I don't have this PortMidi error message.
I have also connected this device to my iPhone using MobMuPlat, no issues.
Any advice would be helpful.
gui externals tutorial ?
@Pierre-Guillot "the Pure data subdirectory is invalid "
? how is this possible, never heard of an invalid directory
oh my god the horror, the horror 
Graph on Parent error
Hi
I've been making a set of menus for a general MIDI set and have encountered a problem. The menus are graph-on-parent - When I open the subpatch, most of it gets wiped and I get the following error:
(Tcl) INVALID COMMAND NAME: invalid command name ".x251b1e8.c.s25840b8.menu"
while executing
".x251b1e8.c.s25840b8.menu delete 0 end "
("uplevel" body line 50)
invoked from within
"uplevel #0 $cmds_from_pd"
Any insights on why this might be happening, and what I can do to get around it? I've attached the offending part of the patch - open the subpatch and you should get the same error
Thanks
Tcl error after short time
Hi,
I am working on a patch that use Gem, twitter request using Python, and sound.
(pd-extended 0.43.4, OSX 10.9)
Everything works smoothly but suddenly, I get some weird Tcl error printed in red (It points me to some basic objects like trigger, list, inlet, list split... inside list-filter or list-drip abstraction that proceed long lists).
Not long time after, the program close.
Can somebody explain me why, and what I can do? Maybe using Vanilla could be more stable ? (Then I'll need to work again on it as I use a lot externals).
Thanks!
Tcl error example:
(Tcl) ERREUR NON GÉRÉE : extra characters after close-brace
while executing
"::pdwindow::logpost {.xac4a5e0} 1 {stack overflow}::pdwindow::post {
}
�hael/Desktop/Projects/Corps_R::pdwindow::post {
}
�blur.vert
}
::pdwind::pdw..."
("uplevel" body line 123)
invoked from within
"uplevel #0 $cmds_from_pd"stack overflow
stack overflow
stack overflow
stack overflow
stack overflow
stack overflow
stack overflow
stack overflow
stack overflow
stack overflow
stack overflow
(Tcl) NOM DE COMMANDE INVALIDE : invalid command name "::logpost"
while executing
"::logpost {.x4cc0e0} 1 {stack overflow}"
("uplevel" body line 31)
invoked from within
"uplevel #0 $cmds_from_pd"
Pure data release
I'm on mac OS 10.5, seems that [entry] is unusable in pd extended 0.43. When clicking in the [entry] window I get this error:
invalid command name "pdtk_canvas_sendclick"
invalid command name "pdtk_canvas_sendclick"
while executing
"pdtk_canvas_sendclick .x2d2b30.c [expr 744 - [winfo rootx .x2d2b30.c]] [expr 491 - [winfo rooty .x2d2b30.c]] 1 0"
(command bound to event)
Or you can use the "tab" key to get the cursor into [entry], but then you get this error whenever you try to type or click outside of it:
invalid command name "pd"
invalid command name "pd"
while executing
"pd #entry2e81b0 keyup 65289 \;"
(command bound to event)
Hope someone can fix this because I use entry all the time.
Other than that I am loving the 0.43 features, my favorite is being able to view all of my open sub-patches in the window menu (it's the little things that matter). Thanks to everyone working on this release.

