• hdez

    Has anyone gotten the ix library to work in Pd-extended? I see all these curious teaser filenames like kbd-demo.pd and spectrum-demo.pd but when I open them i get the red-dashed boxes of disappointment.

    posted in technical issues read more
  • hdez

    Looking around the help browser, I noticed examples/ix and filenames that seem to suggest visual widgets (kbd-demo, grid-demo, etc.). None of these work for me (OSX 10.5, PD-ex 0.41.4.

    What are these patches?

    hdez

    posted in technical issues read more
  • hdez

    I've been teaching a course in Interactivity with Sound and Music and have made (and am still making) a series of tutorials on Pd (26 so far, more to come):

    These may be helpful for those new to Pd or needing some sort of starting point. As an endnote, If you are in the San Francisco Bay Area and you use Pd (or just do neat things with multimedia), look me up.

    hdez

    posted in news read more
  • hdez

    Anyone using Phidgets on OSX? I've not tried [hid] yet, but I must say I'm a bit miffed as they publish a Max/MSP library with externals (.mxo) but not a PD library with externals. Any easy way to convert a max external to PD?

    posted in I/O hardware diyread more
  • hdez

    I know I can use Font Bomb in PD to change the size of the font that is rendered in the canvas. anyone know of a way to make the change as a permanent preference? Using pd-extended on OSX.5.

    hdez

    posted in technical issues read more
  • hdez

    This seems easy but I'm stumped or missing the obvious. How do you play longer soundfiles in PD using [soundfiler]? I see -maxsize argument but am unsure as to the syntax (with or without the <>) Here's my message box feeding into [soundfiler]

    [read -resize birds_in_forest.wav birds01;
    pd dsp 1;(
    |
    [soundfiler]

    (though it's obvious, there's an array called birds01)

    The file in questions, birds_in_forest.wav, is 5 min long but I only get about 1:30 of it (or maybe 2:00, but I know it isn't the whole thing).

    thanks as always,

    hdez

    posted in technical issues read more
  • hdez

    Anyone out there have done (or is doing) work with traditional barcodes, magstripe readers or QR codes? I don't have a USB barcode scanner or magstripe reader but I imagine I can access data via [hid].

    hdez

    posted in I/O hardware diyread more
  • hdez

    I was thinking the following expr would output a bang, but apparently not:

    [expr if($f1 % 4 == 0, 1, 0);]

    Instead, I get 1 (true) or 0 (false) (I assumed the 1 would equal a bang). This seems so simple that I must be overlooking something. What is it?! My solution so far is:

    [expr if($f1 % 4 == 0, 1, 0);]
    |
    [sel 1] (to create a bang)

    Thanks,

    hdez

    posted in technical issues read more
  • hdez

    So I,ve got a simple list comprised of three values, ID X and Y (all floats). I'm comparing distance between many ID's to one ID using [expr] but it requires unpacking all of the lists and it becomes just gigantic (tons of inlets and outlets on [expr]. What i'd like to do is access each inlet and it's list components using dot or array syntax like so:

    $f1[1] + $f5[2] or $f1.1 + $f5.2

    so in the above, add the 2nd item of the first inlet with the third item of the 5th inlet (remembering 0 is the first item in the list). BTW, I know this isn't a distance formula.

    Any ideas?

    Hdez

    posted in technical issues read more
  • hdez

    right now, I use multiple message boxes with a single bang and [makenote] to accomplish to make chords. surely there is a more efficient way to do this. I've tried lists but no go.

    thx for any help,

    hdez

    posted in technical issues read more
  • hdez

    I'm prepping for a course at the University I teach at and have come up with these basic patches that read out data from a Wiimote, Nunchuk and Balance Board. I have the Classic Controller but didn't bother to set up a patch for it (that is an assignment for my students down the road). Anyhow, I thought some of you might find this useful as a starting point. The Wii Balance Board patch does have an example of really basic noteon/off functionality with weight in the bottom left and right corners of the board. Keep in mind, however, this is a super duper basic example to get the minds of my students jump started.

    To get started:

    1.) Start OSCulator (if you don't have it, get it!)
    2.) Open the Wii Balance Board or Wiimote and Nunchuk OSCulator files (I created two different files for two different projects - you can easily combine both on your own)
    3.) Click the Wiimote Drawer icon and connect your Wiimotes/Wii-peripherals (to connect Balance Board, push the red button in the battery compartment)
    4.) Take note of what number controller your Wiimote is connected to in the drawer. You may have to change number in the [routeOSC /3] object where '3' represents the number of the wiimote in the drawer (yes, it is a tad confusing).
    5.) *IMPORTANT* - The OSCulator patches are set to output on localhost:9000. In the next steps, your [udpreceive 9000] must be set to receive on port 9000 and NO OTHER PATCH CAN BE USING PORT 9000 (look for the dashed red box as an indication of it not working right)
    6.) Open the corresponding Pd patch (ie. if using Balance Board OSCulator file, open Balance Board pd patch).
    7.) Nerd out and explore possibilities! The Balance board patch is already set to send out an E, F# and B on MIDI channel 1. I use the IAC Bus to route the MIDI to other programs on the MAC. This, of course, is a tutorial in and of itself, so I'll let you gather that information on your own (it is out there).

    I'll probably make some tutorial vidz of this and other lessons as the class progresses over the next two quarters (20 weeks). Finally, the .zip was created using the standard 'compress files' feature of OSX 10.5. I've found that sometimes this can create problems on PC (but then, OSCulator is Mac only so I figure it doesn't matter).

    l8r,

    hdez

    http://www.pdpatchrepo.info/hurleur/wiik-sauce.zip

    posted in patch~ read more
  • hdez

    Hello all,

    This seems like a simple problem, but I'm having a hell of a time figuring it out. I want to be able to use my computer keyboard as a MIDI keyboard. What I essentially want to happen is while the "c" key is pressed, do this:

    |60 100(
    |
    [noteout 1]
    (but don't continually bang it!)

    and when it is released, do this:

    |60 0(
    |
    [noteout 1]

    I can envision a simple logical test - 1=note on, 0=note off - but all of my attempts lead to the note on continually banged (I notice this in the key-help.pd file).

    This all relates to a larger issue I'm having: how do you fire off one bang when continuous data is being received?

    Any help is greatly appreciated.

    hdez

    http://www.pdpatchrepo.info/hurleur/keyboard-keyboard.pd

    posted in technical issues read more
  • hdez

    if you absolutely have to use Flash, investigate [flashserver]

    These are Max/MSP tutorials, but the info translates to Pd perfectly
    Part 1:


    Part 2:

    Part 3:

    posted in technical issues read more
  • hdez

    investigate [div 19]

    posted in technical issues read more
  • hdez

    thanks, maelstorm. [sfplay~] doesn't even show up in my pd-extended (red outlined box instead). plus, looks like I'd be screwed anyway; I use OSX.

    posted in technical issues read more
  • hdez

    OK, just wanted to make sure I wasn't crazy. Also, I'm using [expr] cause I'm looking to eventually change the false to some other equation (0 is a placeholder). As for [wrap], it is more like [% ] with an addition after the result. Certainly good when you want your result to go from some floor other than 0 to a limit.

    posted in technical issues read more
  • hdez

    I know this isn't the right place, but I'll post it as a follow up. Here is an abstraction called e-distance which uses the Euclidian distance between two points. The four inlets from left to right are X1 Y1 X2 Y2.

    http://www.pdpatchrepo.info/hurleur/e-distance.pd

    posted in technical issues read more
  • hdez

    Eureka! I found it:
    [expr sqrt(pow(abs($f1 - $f3), 2) + pow(abs($f2 - $f4), 2))]

    pow(x,y) where x = the number to be squared and y = exponent;

    hdez

    posted in technical issues read more
Internal error.

Oops! Looks like something went wrong!