• m0nty

    Hello

    I am writing my own sample player as PD external.
    Right now, when I load the audio samples into the object (using messages like "load path/to/file/a4.wav") I have to specify the full path of each sample.
    Is there a C function that gives me the path of the containing patch?
    Right now I have an additional messy patch that uses the getdir object and some "dirty tricks" to go around the issue, but there must be a much simpler way ...

    If you want to have a look at the project, it's here:
    https://github.com/nicolamontecchio/pd_sampleplayer
    It has only been tested with mono samples, and I am still polishing much of the code, but it works well enough for me to attach a midi keyboard and play :)

    Thanks!
    Nicola

    posted in extra~ read more
  • m0nty

    Hi

    Is there a way in PD to drag-and-drop a file into a PD object, like you would do with the "dropfile" object in max/msp ?

    Thanks
    Nicola

    posted in technical issues read more
  • m0nty

    Hello

    I'm looking for some way to play a video from puredata; it must have the possibility to change playback speed in real time (I don't need audio, just video).
    Anyone can give me pointers on this?
    I've never worked with video in Pd before, but I developed several audio externals in c++/flext; so, if someone knows about libraries that could be adapted please help me ...

    Thanks in advance
    Best regards
    Nicola Montecchio

    posted in technical issues read more
  • m0nty

    In case it is useful to other people, I found what I was looking for:

    canvas_getcurrentdir()
    

    .

    I tried using it when processing an incoming message, but pd crashes; it works perfectly however when I call it from the pd object "constructor" (in my case the

    void [*sampleplayer_tilde_new(t_floatarg f)[/code]
    method), so I store it inside an object variable (the path does not change, so it makes sense to use it this way).

    posted in extra~ read more
  • m0nty

    Thanks for the pointer Katja.

    posted in extra~ read more
  • m0nty

    There is a nice video tutorial here:

    posted in technical issues read more
  • m0nty

    thanks guys fr your suggestions!

    posted in technical issues read more

Internal error.

Oops! Looks like something went wrong!