• ferr

    Hello again, I am starting to understand the patch.

    One difference with my setup is that I do not have a txt file with the format "time + sub" I only have "time" which is used to fire subs in another txt file.

    I create the txt with the times for each "next sub" event with the help of pd, but I create the txt with the subs manually.

    In order to get a txt file in the format your patch needs I would need to build a patch that would merge the txt with times & the txt with subs... or do that manually.

    So now I want to understand your patch so I can hack it to get the arranged times (and store them in a text file) instead of the subs associated to the arranged times.

    Cheers!

    posted in technical issues read more
  • ferr

    You beat me to it again! jeje. Thank you very much Gilberto.

    It would be great if you could explain a bit your patch. I think that I can adapt it to store again the arranged output into the original .txt

    I myself was trying to understand and implement a sorting algorithm within PD (something I never did anywhere!)

    I was attemtping to build a patch that did this:

    get original list
    compare second and first elements of the list
    if second is bigger than first (2nd>1st=1) store them like that in a temp list
    else (2nd>1st=0) swap their order
    write them like that in the original list
    repeat with third and second elements of list
    write in original list
    then fourth and third, etc
    when reaching last position in list start over

    do this until you get, within a single interation of the list, a consecutive ammount of "1"s in the ">" comparison that matches the length of the list (which would mean all items are in place)

    I did not finish this, but I think it would be able to put the list in order. Although if lowest number is at the last position of the list, the patch will have to iterate through the whole list as many times as the length of the list, to bring the number to the first position.

    This is because the patch only moves an item one position per iteration.

    I can also foresee a possible problem. Since in every iteration the patch goes up one position in the list, but actually stores a pair of floats, it will probably have repeated numbers on the arranged list (i.e. 12233445) So I should have a filter when storing the result of the comparisons in the arranged list.

    Intuition tells me it may be enough to just store the first number of each pair, in every comparison, and not both of them.

    PD is fun !

    abrazo

    posted in technical issues read more
  • ferr

    Hello,

    short story: I need a way to take a .txt that has a float per line, like this:
    1.45
    1.23
    5.67
    4.23
    ...

    and arrange it so they increase in value, like this:

    1.23
    1.45
    4.23
    5.67

    How can I do this automagically and with ease?

    thank you very much


    long story:

    I am building a patch to create and show subtitles for audio files.

    I devised a simple system to help me manually log the exact time in s.ms when a /show next subtitle/ event should happen.

    I do this with a simple timer abstraction; I start it, time runs, and then I keep pressing bang when I want to log a /show next subtitle/ event. I log the time in s.ms into a textfile object.

    This way I obtain a .txt with floats that represent the /next sub/ events in s.ms
    1.23
    1.45
    4.23
    5.67

    BUT if I miss an event, and I try to add that one without deleting the rest, I get something like this

    1.23
    1.45
    4.23
    5.67
    2.34 <---- shouldn't be here but before 4.23

    And this is why I am looking for a way to arrange the floats automagically, so I can easily go on adding forgotten /next sub/ events, and I only have to edit the file directly to delete them.

    Thank you very much

    posted in technical issues read more
  • ferr

    Thanks for the tip !

    posted in technical issues read more
  • ferr

    @gsagostinho Oh, great thank you , let me check

    posted in technical issues read more
  • ferr

    Here: http://jaumeferrete.net/pd/playcount.pd

    I get a small difference between elapsed time and total time

    thanks

    posted in technical issues read more
  • ferr

    Hello , thanks for your reply.

    I always had the impression that an object is more efficient and accurate than a chain of them, isn't this right in this situation ?

    Anyway I've tried, patch in next post. What do you think?

    Thank you!

    posted in technical issues read more
  • ferr

    Hello again,

    I went back to read audio basics here http://www.pd-tutorial.com/english/index.html

    ...and I understand I can use soundfile_info to obtain length of .wav in samples. Divide it by sample rate, i.e. 44100, and obtain this way the length in seconds.

    I imagine after this I could attempt to build a timer and start both wav file and timer at the same time, so they run in sync...then I could "listen" to the timer in order to fire bangs at concrete mm:ss

    But there must be an easy and more accurate way to do this, right?

    Thank you again.

    posted in technical issues read more
  • ferr

    Hello,

    I am trying to build a patch that syncs subtitles to an audio file. I.e. loads a .txt and bangs each text line at key moments determined by mm:ss of audio file.

    But I cannot find an easy way to get elapsed time of a playing audio file. Could someone please guide me? is there an vanilla object or external for this?

    I was doing this before with ableton live sending midi to PD through IAC driver on OSX. PD would respond to the midi by loading .txt files and banging the text lines from textfile towards text2d, then gem window.

    Any help appreciated.

    Thank you

    posted in technical issues read more
  • ferr

    When inputting a semicolon in [entry] it outputs this "///;"

    I would like to turn that "///;" into a simple ";" at some point in the patch.

    I am using [entry] for a sort of chat that sends text to a [msgfile]

    I cannot control users inputting semicolons or not, and, within the [msgfile] txt file, I would need semicolons to be only semicolons.

    I understand that semicolons are reserved characters in PD, and that this may not be easy to do.

    Any help would be greatly appreciated.

    Thanks!

    posted in technical issues read more
  • ferr

    Hello and thanks for checking,

    I am confused with datatypes -lists and symbols- when using them with trigger, msgfile and list objects.

    If you check the attached patch it should be clear what I do not understand, but let me explain:

    I am building a part of a bigger patch. The part does this:

    receive text (from a sort of chat)
    get date/time through "shell" and prepend it to the text.
    append "
    "
    append "insert"
    send to msgfile
    bang a script

    A message constructed like this looks like:

    

    insert 17/09/13-20:57 Hello how are you?

    problem 1:

    object is outputting a symbol ?
    problem 2: sometimes trigger receives a list and tells me "can only convert 's' to 'b' or 'a'"
    problem 3: sometimes msgfile receives a list and tells me "no method for symbol"

    Can somebody explain, please? or direct me to a place where to read and undesrtand?

    Alternatively you can propose a better way to construct that message, because my way looks terrible, jeje.

    Thank you very much

    http://www.pdpatchrepo.info/hurleur/datatypestesting.pd

    posted in technical issues read more
  • ferr

    Hello,

    As the title says, the object [keyup] is repeatedly outputting the code of a key, when you press and hold a key.

    I would expect for keyup to ONLY output the code on .. you know... key UP

    bug?

    cheers.

    Pd Version: 0.43.4-extended
    OSX 10.8.4 Mountain Lion
    Macbook Pro

    posted in technical issues read more
  • ferr

    Hello there,

    I am using [entry] as a text-input object, and I noticed that if the patch is Locked, I am writing within [entry] , and i hit CTRL+A, the patch unlocks!! and every object is selected (including entry, that, for some reason goes back to default color when that happens)

    That seems to be a bit invasive, a shortcut not designed to unlock a patch shouldn't unlock a patch.

    Does anybody know how to prevent this?

    I am on PD-Extended under OSX.

    Thank you!

    posted in technical issues read more
  • ferr

    Hello,

    I am trying to do connect two distant mac computers through OSC on PD_extended.

    I send the message [connect xx.xxx.xxx.xxx yyyy] to [sendOSC] where xxx... is the remote's computer IP address and yy... is the port.

    I have been unable to connect the two computers this way, no matter if on one direction or the other

    I suspect this may be because the ports I use have to be opened AND not used by other services. As I scanned my ports, found that 80 (web) and 21 (ftp) were open and attempted to use those without success.

    Can somebody help me at least realize where does the problem exactly lay so I don't have to walk around the dark with a stick hitting stuff for days?

    I do thank you very much

    posted in technical issues read more
  • ferr

    Hello,

    Are there ways to interact with OSX Terminal from within PD ? as in sending it commands?

    thank you very much

    posted in technical issues read more
  • ferr

    Hello,

    is it possible to access OSX TTS engine from within PD ?

    OR, is it possible to access OSX Terminal, so I can input "say blablabla" and effectively access OSX TTS engine from within PD that way?

    thank you very much

    posted in technical issues read more
  • ferr

    Hello all! :)

    I was wondering if there is an easy way to filter repetitive messages.

    I was thinking on something like:

    "only output bang if actual received message is different than previously received message"

    But something on the lines of:

    "wait x miliseconds before accepting any new messages"

    ...would be cool too

    Actually i would need both.

    I searched but couldn't find anything :-\

    i remember in max there were a few dedicated objects for this task.

    Thankyou very much in advance for your help!
    Take care.

    posted in technical issues read more
  • ferr

    Hi again :)

    I work with some friends on a horror tunnel like live roleplaying game, as sound designer+sound technician.

    This means i go to a house, hide speakers around and take long cables to a sound control room, where my Motu 828 Mk2, my Macbook, me and Puredata are ready to scare the shit out of those poor participants.

    I need to program a patch that lets me:

    • select sounds from my pool in a userfriendly, fast, non-glitchy way
    • play them, stop them, loop them, control their volume.
    • select the output (room1, room2, room3) in a usefriendly, fast, non-glitchy way

    It would be good to be able to use this patch as an abstraction, with various instances of it.

    So, the thing is that i already did this with maxmsp, but with Puredata is being a bit difficult.

    Could someone please tell me wich objects would be the most appropiate to use for:

    • the sound selecting part (some kind of menu... popup?... that i can populate with my sounds)
    • the sound player part (w loop on/off, play, stop, gain...)
    • the output selection part (in maxmsp i was using a menu for this too)

    I already did a search on this but can't find the answers i need.

    Btw, i have Pd-0.39.3-extended-macosx104-i386 but i can't create a [sfplay~] i thought it came already on the extended package ?

    Thanks to all of you for your help.

    posted in technical issues read more
  • ferr

    Hello :)

    Maybe someone here can help me with this.

    I made this abstraction called [mostro] wich is just a simple delay w feedback.

    The abstraction allows creation arguments to set up delay name, delay time in ms and two keys, one to open its input, and one to close it (on/off).

    I use graph-on-parent to show 2 controls: feedback and volume.

    I would like to add one more thing to the graph-on-parent window: a visual sign that tells me if the delay is On or Off.

    Options and Problems:

    Opt 1) Using a message box, setting up its text to ON or OFF;
    Prob 1) Message box does not show on graph-on-parent

    Opt 2) Using a bang or a toggle;
    Prob 2) It can be clicked by the user and confuse him/her.

    Opt 3) Using a cnv changing its color dynamically, i.e. grey when Off, red when On;
    Prob 3) The only way to do this seems setting a receive symbol under cnv properties, and sending color change message wireless. But if i do it this way, when i use more than one instance of [mostro], since all the cnv will share the same receive symbol, all of them change color together. Best would be to change cnv properties using attributes when creating [mostro] instances, like i do with delay name, but i don't think this is possible.

    I don't know what else can i do, any suggestions?

    I attach the file.

    Thank you very much for the help.

    http://www.pdpatchrepo.info/hurleur/mostro.pd

    posted in technical issues read more
  • ferr

    Thank you pulsed, that is a very simple and efective solution

    posted in technical issues read more
Internal error.

Oops! Looks like something went wrong!