Several PD-Windows --> How to bring one to the front?
Hi,
I am working on a modular project, - different GUIs for different tasks, those I want to use live on stage.
Think several interfaces.
Now I want to be able to switch between them dynamically without having to use the menubar or the OS.
I already found how to open and close pd-files within a patch:
http://forum.pdpatchrepo.info/topic/10258/loading-a-pure-data-patch-pd-file-within-a-pure-data-patch-pd-file/6
but I don't want audio-dropouts due loading a new patch.
(This I can achieve by separating the GUIs from the audio-processing and keeping this running in the background)
And the closing-thing seems to be unstable here, sometimes it works and other times pd crashes, I don't know why ...
Is there a way to switch between opened windows within pd?
Can I address the "Windows"-Menu from the inside of a patch, to bring a window to the front?
PDL2-Ork Ubuntu here.
ThX
hot binops, reverse binops, & bitwise arithmetic
Hot Binops
Performs binop arithmetic with 2 hot (active) inlets, which means that the usage of either inlet will trigger an output. Some of the objects require the hexloader library to load properly.
The naming convention is a # symbol, followed by the expression.
examples: [#+ ] [#- ] [#== ] [#!= ] [#&& ] [#|| ] etc.
The collection is based on the binop objects found in x_arithmetic.c. This includes:
binops 1: +, -, *, /, pow, max, min
binops 2: ==, !=, >, <, >=, <=
binops 3: &, |, &&, ||, <<, >>, %, mod, div
Reverse Binops
Performs binop arithmetic with the inlets having switched roles. Some objects require the hexloader library.
The naming convention is an @ symbol, followed by the expression.
examples: [@- ] [@/ ] [@pow ] [@<< ] etc.
The collection consists of binop objects where the swapping of inlets would have a noticeable difference in results. These include:
-, /, pow, <<, >>, %, mod, div
Bitwise Arithmetic
Consists of two bitwise objects to perform bitwise negation [!~ ] and XOR ([^ ] and [#^ ]). Bitwise negation has another alias of [~ ] but it will not load unless [!~ ] is loaded first, or if the object is placed in pd/extra/!~ and "!~" is added to your list of libraries.
Included externals are not being loaded by Purr-data
@jancsika the contents of that file (org.puredata.pd-l2ork.default.plist are as follows.... if I had to guess, <string>-helppath ~/Library/Pd -helppath /Library/Pd</string> should be something like Pd-l2ork/Contents/Resources/app.nw/extra instead of ~/Library/Pd ?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>defeatrt</key>
<string>0</string>
<key>flags</key>
<string>-helppath ~/Library/Pd -helppath /Library/Pd</string>
<key>loadlib1</key>
<string>libdir</string>
<key>loadlib2</key>
<string>Gem</string>
<key>loadlib3</key>
<string>cyclone</string>
<key>loadlib4</key>
<string>zexy</string>
<key>loadlib5</key>
<string>creb</string>
<key>loadlib6</key>
<string>cxc</string>
<key>loadlib7</key>
<string>iemlib</string>
<key>loadlib8</key>
<string>list-abs</string>
<key>loadlib9</key>
<string>mapping</string>
<key>loadlib10</key>
<string>markex</string>
<key>loadlib11</key>
<string>maxlib</string>
<key>loadlib12</key>
<string>memento</string>
<key>loadlib13</key>
<string>mjlib</string>
<key>loadlib14</key>
<string>motex</string>
<key>loadlib15</key>
<string>oscx</string>
<key>loadlib16</key>
<string>pddp</string>
<key>loadlib17</key>
<string>pdogg</string>
<key>loadlib18</key>
<string>pixeltango</string>
<key>loadlib19</key>
<string>pmpd</string>
<key>loadlib20</key>
<string>rradical</string>
<key>loadlib21</key>
<string>sigpack</string>
<key>loadlib22</key>
<string>smlib</string>
<key>loadlib23</key>
<string>unauthorized</string>
<key>loadlib24</key>
<string>vbap</string>
<key>loadlib25</key>
<string>pan</string>
<key>loadlib26</key>
<string>hcs</string>
<key>loadlib27</key>
<string>jmmmp</string>
<key>loadlib28</key>
<string>ext13</string>
<key>loadlib29</key>
<string>ggee</string>
<key>loadlib30</key>
<string>iem_anything</string>
<key>loadlib31</key>
<string>ekext</string>
<key>loadlib32</key>
<string>pdp</string>
<key>loadlib33</key>
<string>disis</string>
<key>loadlib34</key>
<string>lyonpotpourri</string>
<key>nloadlib</key>
<string>34</string>
<key>path1</key>
<string>/System/Library/Fonts</string>
<key>path2</key>
<string>/Library/Fonts</string>
<key>path3</key>
<string>~/Library/Fonts</string>
<key>path4</key>
<string>/usr/X11R6/lib/X11/fonts/TTF</string>
<key>path5</key>
<string>/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/fonts</string>
<key>npath</key>
<string>5</string>
</dict>
</plist>
PD on ARMs, 2016 update
I was wondering if someone could give a little overview on the current (end 2016) situation on installing and running PD, l2-ork or purr-data on recent ARM boards, for somebody just getting into embedded systems (read: somebody terminal-literate, but not savvy enough to compile kernels).
The project is building a display-free modular sampler instrument, so GPIO, USB MIDI and USB audio I/O are paramount. Everything else (WIFI, BT, GPU etc) is secondary.
More specifically:
- Are more recent boards like Pine A64, Odroid C2, Chip (PRO?) or BBB worth considering?
- If so, what's the story on DSP performance/latency and RT kernel tweaks etc, compared to Pi3?
Much obliged,
S
????? My Patch startet to crash Pd
The same patch I've been working on for days have just started to crash PD every time I try to open it! Thisi is what error say:
Crashed Thread: 0 Dispatch queue: com.apple.main-thread
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
abort() called
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_kernel.dylib 0x9e34c572 __pthread_kill + 10
1 libsystem_pthread.dylib 0x9d58f654 pthread_kill + 101
2 libsystem_c.dylib 0x946adc38 abort + 156
3 Tcl 0x001b014c Tcl_PanicVA + 255
4 Tcl 0x001b0167 Tcl_Panic + 27
5 Tcl 0x001c0aa3 Tcl_SetObjLength + 52
6 Tcl 0x0019051a Tcl_ReadRaw + 1078
7 Tcl 0x001913b3 Tcl_ChannelName + 629
8 Tcl 0x0019805d Tcl_CreateChannel + 3113
9 Tcl 0x0013fdaf Tcl_GetVersion + 7569
10 Tcl 0x0017bd26 TclStackAlloc + 5361
11 Tcl 0x001bc6d2 TclObjInterpProcCore + 1492
12 Tcl 0x0013fdaf Tcl_GetVersion + 7569
13 Tcl 0x0017bd26 TclStackAlloc + 5361
14 Tcl 0x00184ca0 TclStackAlloc + 42091
15 Tcl 0x00141421 TclEvalObjEx + 880
16 Tcl 0x00141532 Tcl_EvalObjEx + 47
17 Tcl 0x001918c8 TclChannelEventScriptInvoker + 56
18 Tcl 0x00195a28 Tcl_NotifyChannel + 231
19 Tcl 0x001e358e Tcl_CreateFileHandler + 648
20 Tcl 0x001acff0 Tcl_ServiceEvent + 164
21 Tcl 0x001ad309 Tcl_DoOneEvent + 354
22 Tk 0x0001b4ec Tk_MainLoop + 37
23 Tk 0x00028951 Tk_MainEx + 1865
24 Pd-extended 0x00004623 0x1000 + 13859
25 Pd-extended 0x000045df 0x1000 + 13791
26 Pd-extended 0x0000450d 0x1000 + 13581
Thread 1:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_kernel.dylib 0x9e34d7fa kevent_qos + 10
1 libdispatch.dylib 0x926bc7ea _dispatch_mgr_invoke + 234
2 libdispatch.dylib 0x926bc3be _dispatch_mgr_thread + 52
Thread 2:
0 libsystem_kernel.dylib 0x9e34cd5e __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x9d58c34b _pthread_wqthread + 1289
2 libsystem_pthread.dylib 0x9d589f56 start_wqthread + 34
Thread 3:
0 libsystem_kernel.dylib 0x9e34c742 __select_nocancel + 10
1 libsystem_kernel.dylib 0x9e348f36 select + 94
2 Tcl 0x001e4263 Tcl_WaitForEvent + 1006
3 libsystem_pthread.dylib 0x9d58c780 _pthread_body + 138
4 libsystem_pthread.dylib 0x9d58c6f6 _pthread_start + 155
5 libsystem_pthread.dylib 0x9d589f7a thread_start + 34
Thread 4:
0 libsystem_kernel.dylib 0x9e34cd5e __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x9d58c34b _pthread_wqthread + 1289
2 libsystem_pthread.dylib 0x9d589f56 start_wqthread + 34
Thread 0 crashed with X86 Thread State (32-bit):
eax: 0x00000000 ebx: 0x001b0069 ecx: 0xbfffea7c edx: 0x00000000
edi: 0xa424a000 esi: 0x00000006 ebp: 0xbfffea98 esp: 0xbfffea7c
ss: 0x00000023 efl: 0x00000206 eip: 0x9e34c572 cs: 0x0000000b
ds: 0x00000023 es: 0x00000023 fs: 0x00000000 gs: 0x0000000f
cr2: 0xa37fca10
Logical CPU: 0
Error Code: 0x00080148
Trap Number: 132
??'??? What Can I Do?
Separate L and R treatment for a stereo adc~
Hi Francois,
I am not sure I understand what is your problem, but when you create a [adc~] you will have two outlets, one for each channel. Same thing for the [dac~], which has two inlets. So from the separate outlets of the [adc~] you can do whatever you want with each channel individually before sending the result to the [dac~]. If you have other channel configurations, you can use these as follows: [dac~ 4] for instance will have one single inlet and will output the signal via channel 4, while [dac~ 1 3 4] will have three inlets for channels 1, 3 and 4, respectively.
Does that answer your question or am I misunderstanding you?
Cheers,
Gilberto
Camomile : An audio plugin that loads Pure Data patches
Hi,
I would like to share my plugin : Camomile.
Camomile is a dynamic plugin made with Juce that allows to load and control Pure Data patches inside a digital audio workstation.
Feature :
- Support for multiple plugin instances.
- Automatic creation of GUIs
(toggle, slider and numbox)toggle, slider, radio, comment, numbox - Automatic recognition of parameters (name, label, range, minimum, maximum, etc.)
- Up to
8 channels16 channels - Up to
32 parameters64 parameters - Support for MIDI in and out
- Support for play head position
- Support for BPM
This is a beta version, only available for Mac, but
The last version release is available for Linux, Mac and Windows.
I'll be happy to receive your feedback.
Further information on the wiki.
Cheers
[ntof] and [fton]
They're like [mtof] and [ftom], but now the objects accept 2 parameters:
- the reference pitch for middle A (default value is 440)
- the number of tones (default value is 12)
So let's say you want your reference pitch to be 432, considered by some to be a more mellow frequency, you would write:
- [ntof 432]
and to split an octave into just 8 distinct tones instead of the most conventional 12, you'd write:
- [ntof 432 8]
You can change these values after instantiation by using messages:
- [ref $1(
- changes the reference pitch
- [tet $1(
- changes the number of tones (in equal temperament)
It also comes with two counter objects: [cupq], and [cupqb]
[cupq] has three inlets:
- left inlet decrements
- right inlet increments
- middle inlet changes the step size.
[cupqb] is similar, but it includes an atom box, allowing you to slide the current count. It has two inlets:
- first inlet receives [+ $1( and [- $1( messages
- second inlet controls the step size.
[cupq] and [cupqb] are .pd files, so there's actually more you can do with them than what I've specified here.
These files are also on my github page under pd-externals.
EDIT: My musical scale object [muse] now also takes advantage of the ref and tet messages. Its help file allows you to play around with these features. The files have now also been added to the zip.
Install PD extend on Ubuntustudio
I just installed Ubuntustudio 15.10 Wily Werewolf 32bit on a thinkpad and I am trying to upgrade PD to extend. I am fairly new to linux but it seems like the instructions on https://puredata.info/docs/faq/debian fails.
This is the log from executing the commands. Any suggestions and help will be appreciated
myuser@machine:~$ sudo add-apt-repository "deb http://apt.puredata.info/releases `lsb_release -c | awk '{print $2}'` main"[sudo] password for zoundart:
myuser@machine:~$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key 9f0fe587374bbe81
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.beJyKhm5Lr --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-key 9f0fe587374bbe81
gpg: requesting key 374BBE81 from hkp server keyserver.ubuntu.com
gpg: key 374BBE81: "Hans-Christoph Steiner <hans@guardianproject.info>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
myuser@machine:~$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key D63D3D09C39F5EEB
Executing: gpg --ignore-time-conflict --no-options --no-default-keyring --homedir /tmp/tmp.BDfXAe3l5j --no-auto-check-trustdb --trust-model always --keyring /etc/apt/trusted.gpg --primary-keyring /etc/apt/trusted.gpg --keyserver keyserver.ubuntu.com --recv-key D63D3D09C39F5EEB
gpg: requesting key C39F5EEB from hkp server keyserver.ubuntu.com
gpg: key C39F5EEB: "Launchpad Pure Data" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
myuser@machine:~$ sudo apt-get update
Hit http://no.archive.ubuntu.com wily InRelease
Get:1 http://no.archive.ubuntu.com wily-updates InRelease [64,4 kB]
Get:2 http://no.archive.ubuntu.com wily-backports InRelease [64,5 kB]
Get:3 http://security.ubuntu.com wily-security InRelease [64,4 kB]
Ign http://apt.puredata.info wily InRelease
Ign http://apt.puredata.info wily Release.gpg
Ign http://apt.puredata.info wily Release
Get:4 http://security.ubuntu.com wily-security/main Sources [17,0 kB]
Get:5 http://no.archive.ubuntu.com wily-updates/main Sources [24,1 kB]
Get:6 http://no.archive.ubuntu.com wily-updates/restricted Sources [3 741 B]
Get:7 http://security.ubuntu.com wily-security/restricted Sources [2 854 B]
Get:8 http://no.archive.ubuntu.com wily-updates/universe Sources [6 112 B]
Get:9 http://no.archive.ubuntu.com wily-updates/multiverse Sources [1 922 B]
Get:10 http://security.ubuntu.com wily-security/universe Sources [3 691 B]
Get:11 http://no.archive.ubuntu.com wily-updates/main i386 Packages [59,3 kB]
Get:12 http://no.archive.ubuntu.com wily-updates/restricted i386 Packages [13,4 kB]
Get:13 http://security.ubuntu.com wily-security/multiverse Sources [1 922 B]
Get:14 http://no.archive.ubuntu.com wily-updates/universe i386 Packages [31,0 kB]
Get:15 http://no.archive.ubuntu.com wily-updates/multiverse i386 Packages [6 052 B]
Get:16 http://security.ubuntu.com wily-security/main i386 Packages [43,4 kB]
Err http://apt.puredata.info wily/main i386 Packages
404 Not Found
Ign http://apt.puredata.info wily/main Translation-en_US
Get:17 http://no.archive.ubuntu.com wily-backports/main Sources [750 B]
Get:18 http://security.ubuntu.com wily-security/restricted i386 Packages [10,8 kB]
Get:19 http://no.archive.ubuntu.com wily-backports/restricted Sources [28 B]
Ign http://apt.puredata.info wily/main Translation-en
Get:20 http://no.archive.ubuntu.com wily-backports/universe Sources [833 B]
Get:21 http://no.archive.ubuntu.com wily-backports/multiverse Sources [28 B]
Get:22 http://no.archive.ubuntu.com wily-backports/main i386 Packages [606 B]
Get:23 http://security.ubuntu.com wily-security/universe i386 Packages [24,8 kB]
Get:24 http://no.archive.ubuntu.com wily-backports/restricted i386 Packages [28 B]
Get:25 http://no.archive.ubuntu.com wily-backports/universe i386 Packages [714 B]
Get:26 http://security.ubuntu.com wily-security/multiverse i386 Packages [6 052 B]
Get:27 http://no.archive.ubuntu.com wily-backports/multiverse i386 Packages [28 B]
Hit http://no.archive.ubuntu.com wily-backports/multiverse Translation-en
Hit http://no.archive.ubuntu.com wily-backports/restricted Translation-en
Get:28 http://security.ubuntu.com wily-security/main Translation-en [23,2 kB]
Hit http://no.archive.ubuntu.com wily/main Sources
Hit http://no.archive.ubuntu.com wily/restricted Sources
Hit http://no.archive.ubuntu.com wily/universe Sources
Get:29 http://security.ubuntu.com wily-security/multiverse Translation-en [2 536 B]
Hit http://no.archive.ubuntu.com wily/multiverse Sources
Hit http://no.archive.ubuntu.com wily/main i386 Packages
Hit http://no.archive.ubuntu.com wily/restricted i386 Packages
Hit http://no.archive.ubuntu.com wily/universe i386 Packages
Get:30 http://security.ubuntu.com wily-security/restricted Translation-en [2 666 B]
Hit http://no.archive.ubuntu.com wily/multiverse i386 Packages
Hit http://no.archive.ubuntu.com wily/main Translation-en
Hit http://no.archive.ubuntu.com wily/multiverse Translation-en
Hit http://no.archive.ubuntu.com wily/restricted Translation-en
Get:31 http://security.ubuntu.com wily-security/universe Translation-en [15,2 kB]
Hit http://no.archive.ubuntu.com wily/universe Translation-en
Hit http://no.archive.ubuntu.com wily-updates/main Translation-en
Hit http://no.archive.ubuntu.com wily-updates/multiverse Translation-en
Hit http://no.archive.ubuntu.com wily-updates/restricted Translation-en
Hit http://no.archive.ubuntu.com wily-updates/universe Translation-en
Hit http://no.archive.ubuntu.com wily-backports/main Translation-en
Hit http://no.archive.ubuntu.com wily-backports/universe Translation-en
Fetched 496 kB in 7s (70,7 kB/s)
W: Failed to fetch http://apt.puredata.info/releases/dists/wily/main/binary-i386/Packages 404 Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.
myuser@machine:~$ sudo apt-get install pd-extended
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package pd-extended is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package 'pd-extended' has no installation candidate
Is this MSP patch "amplitude gate" possible in PD extended?
Hi there,
As you saw in that video, the object [pfft~] is mainly a container (although it automatically takes care of block size, window type, etc. for you) and the magic actually happens when you use [fftin~] and [fftout~]. In Pd, we don't have a container object like that (although you can use a subpatch or abstraction of course) and the equivalents of [fftin~] and [fftout~] are [rfft~] and [rifft~].
I recreated that patch of the video here, have a look:
Take care,
Gilberto