-
RonHerrema
Thanks beep.beep. Helpful on both counts. I installed the hotkey-plugin.tcl file in the externals folder ('extra'), and now the hot keys work. Also good to know more of the details re intelligent patching.
Best
rh
-
RonHerrema
I'm always looking for ways to expand the number of keyboard shortcuts in Pd. I found monetus' hotkey-plugin.tcl file and put it in the .tcl folder (in Contents>Resources on a Mac), but the shortcuts listed there don't seem to work when I do.
I also recall reading about another set of shortcuts that increase the ways of automating the making of connections, but I've not been able to relocate that.
-
RonHerrema
I have multiple instances of an abstraction within a sub patch. I would like to place a canvas for each of these instances on the main patch and send messages from the abstractions to their corresponding canvas. What is the best way to go about this?
Thanks
-
RonHerrema
I'm building an app using libpd and OpenFrameworks for iOS using Xcode 7. If I archive and install the app using a Release scheme, the app will run fine on 32 bit devices but not on 64 bit devices (an installed debug archive will run fine on either) - you can read some of the details re the crash log here:
https://github.com/libpd/libpd/issues/144
The crash almost always occurs on lines that involve loading tilde objects, and I've found some possibly related info re Apple's 64 bit transition guide here:
In particular, I'm suspicious of the 'variadic function' issue, since the libpd code does contain variadic functions that appear to be used when tilde objects are loaded. What I know for sure is that as soon as I remove all tilde objects, I have no problems.
I'd be curious to know if anyone here has been able to successfully run a release archive using tilde objects on a 64 bit device? (i.e. Am I barking up the wrong tree or the right one?)
Needless to say, any other hints will be most welcome!
-
RonHerrema
Thanks, David - she's going to have a look at the file names. I think the student is running Windows.
cheers
-
RonHerrema
Hi David
My wife is now doing workshops with this patch in Bangalore. It seems it's working great in general, but there's one student who gets the error message you see in this screenshot. Any ideas what might be happening?
-
RonHerrema
Thanks, David - that was way too easy. And yes, that is what I was looking for.
Cheers
-
RonHerrema
heyok, thanks. I've been playing with your patch but don't yet understand how to implement it. I've tried the following, but it doesn't work:
[bang]
|
[tof/folderpanel]
|
{symbol]
|
{makefilename %s/*.aif]
|
[rand_file] -
RonHerrema
Your head spins quite well, David! This works beautifully. Now that I use it, I can see that my original plan to have the user type in the folder name is not optimal, because there is no visual feedback given when the folder has been loaded. I did a bit of research about how to isolate a folder name from a path, but it's still not clear to me if it's doable ([strippath] and [stripfilename] won't work, for example). Is it??
-
RonHerrema
Hi Monetus.Thanks for checking in. in case it's not clear, I'm working with libpd within Xcode and iOS, using Objective-C. Here's the relevant website:
https://github.com/libpd/pd-for-ios/wiki/ios
In his book, Making Musical Apps, Brinkmann describes how he incorporates externals into this environment, which is otherwise based on Pd Vanilla. You basically need to drag the .c file into the project, make a declaration in the ViewController.m file:
void fiddle_tilde_setup();
And then call the function after PdBase and PdDispatcher have been set up:
fiddle_tilde_setup();
This works fine for externals written in C.
(Note that working with references to C++ code requires changing the view controller to a .mm file. Also, I did find a freeverb~ written in C:
https://svn.xiph.org/trunk/postfish/freeverb.c
but it seems to depend on entire other framework, and it wasn't clear to me that this was going to work or be worth the time.)
-
RonHerrema
Thanks - of course, with the abstraction it works. I've combined a large portion of your patch with mine. You'll see that I use alternate presses of the key to start and then fade out. The main problem I have at this point is that I have five copies of this sub patch, but there's just one abstraction, so I'm not sure how to deal with individualising the names. I don't totally grasp how to use $0.
-
RonHerrema
Once again, many thanks. I am getting error messages:
tracklist_button Track 01 Almost Like the Berlin Wall.aiff 1
... couldn't create
tracklist_button Track 02 Private Property No Trespassing.aiff 2
... couldn't create
tracklist_button Track 03 Steal the Common from the Goose.aiff 3
... couldn't createI should probably mention that I actually don't want to see the list of sounds, though I guess that is fairly easy to control through the 'vis' command? I only want to see the currently played sound displayed. I'm going to upload here the patch of my own that I'm trying to integrate this with. You'll see it's built to load just one file for each of the five buttons, so what I"m trying to do is to change it to load folders, and to display the name of the currently playing file (triggered randomly with the first five number keys) just below the current symbol object. For simplicity's sake, I'll just ask the user to type in the folder name into the current symbol objects you see there.
-
RonHerrema
Well, I'm starting to get the hang of it - it seems that it's important to send 'clear' before making objects and connecting.
-
RonHerrema
I"m back. What I would like to do at this point (this can be pd-extended) is to load a folder of file (names) and to play them back (using an arbitrary key press) in random order, displaying the name of the currently playing file. This is assuming the number of files in the folder is unknown in advance, and that the path of the folder is unknown in advance. I assume there must be a way to connect a random number generator to all these message boxes on the fly, but I haven't figured out how to do it.
-
RonHerrema
I attempted to integrate the C++ freeverb~ external that I found in Perry Cook's Synthesis Toolkit, following Peter Brinkmann's model of fiddle_tilde_setup(), and thus using freeverb_tilde_setup(), but this did not work. Can anyone tell me if this is possible?
Thanks
-
RonHerrema
Got it - thanks for all the prompt and clear explanations.
R.
-
RonHerrema
Thanks again, David. Those are good questions. Generally speaking I would say that it's 'always the case', though not universally so, and I notice that today with the same patch it seems to be faster. I'll continue to pay attention to the various issues you've mentioned.
I see that your patch doesn't work with Pd-vanilla. Is there a way to make it work using externals? (I guess that implies you'd have to code the externals in C.)
cheers
-
RonHerrema
That works beautifully, David - many thanks!
This is tangentially related, but do you know why Pd (extended, at least) is so slow in responding to mouse clicks when Apple dialog boxes are open? This has always been the case for me.
cheers
Ron
-
RonHerrema
Thanks, David. When I load a folder, I get this series of error messages:
tracklist 1 0 0 0 (message->???) connection failed
tracklist 2 0 0 0 (message->???) connection failed
tracklist 3 0 0 0 (message->???) connection failedAny hints for that?
Cheers
-
RonHerrema
I'm wondering if there is a way to load a folder of audio files (to be read by [ readsf~ ]) into a Pd patch without having to specify all the filenames within the patch first. Possibly even through drag-and-drop?