• Coalman

    sounds good. I will work on the immediate project, when I have a good function solution I'll isolate that and send it to you and we can pick up the discussion then.
    good stuff.
    Jorge

    posted in technical issues read more
  • Coalman

    Thanks both for all your input on this!
    I am always looking for simplify the flow for setting up multi-tiered decision systems, and sort the results. In Pd I have done this by sending up one [random x] to tell me how many (x) times to run the next [random y].
    Often I also want [random x] to give some result z that alters the thresholds of the subsequent [random y] while (separately) specifying the number of decisions made at this stage.
    The mystery object I used once before streamlined this..but it can be just written out as well (in Pd or Supercollider for example,, from existing objects).

    What would be quite interesting is to be able to make x random decisions over some array that could be strings or symbols rather than numbers. Of course numbers could be generated then mapped onto symbols AFTER being generated but even so having an array (while even numeric) that isn't a 'range' (ex. 5, 82, 48, 5.3, 2.9, 9 rather than [random 8] being a range = 0 -> ( 8-1 )
    this sort of functionality is what some of the older 'shuffle' objects do.

    I am already a big fan of Else. I have another look into these object meanwhile! Thanks so much. It has been interesting to revisit these in search of this elusive vision.

    posted in technical issues read more
  • Coalman

    @whale-av said:

    list-wrandom

    excellent. That isn't the one I used before but is also very interesting for the sort of stuff I am doing!
    I also found some others...but still not what I was using before. I need to find the old patches...somewhere.....

    also of course (just in case anyone is searching this in the future)

    [array random]

    [cyclone/urn] (also in nilwind library)

    perhaps I dreampt it, I 've done this before.
    but I recall the existence of randomisers with sorting functions

    you could specify "how many random numbers to generate?"
    and things like "which outlet they come out of" (like a random route object)
    or do what the [else/rand.list] does above.

    I am sure I can make something from that, but it would be interesting to find if these actually exist. If so, I will post them here for the next person who looks for them.

    posted in technical issues read more
  • Coalman

    oh wow, yes...how did I miss that one?
    Thank you @Porres!

    Weirdly, I still think there were some others somewhere...that had different sorting functions. But this will work well for what I am doing.

    Cheers!
    Jorge

    posted in technical issues read more
  • Coalman

    should have tagged @Porres who would know about Cyclone and whose collection of random stuff in Else is amazing (but not for this task I don't think) ...maybe you have some idea on this?

    posted in technical issues read more
  • Coalman

    I could swear that I once used several objects which I thought were part of Cyclone that did this and related things:

    given several numeric arguments
    chose a random selection of these
    based on:
    the number of chosen values being a random number based on the first argument (functioning as our usual [random] object functions)

    example:
    [mysteryObject argN valA val B ... valN]

    returns: a quantity [random argN-1] of random selection from the list valA valB ... valN

    I realise that this is basically a random list operation and I have a version of something similar in Vanilla but I could have sworn I used some really great objects that did this a few years ago (and I could have sworn they were from Cyclone) but perhaps I am totally mistaken?!

    anyone know about this?

    posted in technical issues read more
  • Coalman

    Hi @Lacuna thanks so much for these suggestions and the links.
    Certainly, I am reading the data sheets and documentation.
    However, I had missed the forum topic you posted and I will check this github.

    I have been also using an old laptop with comport for a lot of projects in fact, comport is an old friend. I guess what I am trying to do, is get the most from these bits of technology rather than multiply them, and especially in a single project. I find myself using both raspberry pi AND arduino because I can manage the audio well on the pi (or well enough) and other stuff on arduino, but really I know the pins on the Pi can do that stuff too, so I just thought I would start to look for perspectives on how other people are doing these things.

    I am going to explore your suggestion of doing the PWM in Pd and then sending this across the pins on the Bela to control things, I think this is the sort of very direct approach I was finding myself hazy about.
    All the best,
    Jorge

    posted in I/O hardware diyread more
  • Coalman

    hello! this question intersects with Pd even if it is not about Pd specifically...
    I currently have several (installation) pieces in which the sound is run from Pd and then I have motors or sensors being run off other things.
    This means that in one case I am using a raspberry pi for the Pd part and an Arduino mega for the motor part
    In another case I have Pd running on a Bela/BBB and then an Arduino doing the motor stuff.

    The reason for this inefficiency is that my knowledge is fairly limited on these platforms. However, it is annoying to have to use the extra gear when I don't have to. Especially because I know that both the raspberry and the Bela have pins that could be used in place of the arduino for this purpose. Since the Bela is a simpler case and the pins can be addressed directly from Pure Data, I will ask about that and leave the Raspberry behind for now (as I think I would end up running Pd AND Arduino on that board anyway, whereas with Bela, one can easily address the pins from inside Pd without any other programs or libraries).

    My question is this: does anyone know how the standard mappings of pins Analog/Digital/and PWM pins on the Arduino lines up on the Bela? Does the Bela have have PWM pins like, for example pins 8,9, 10,11 on Arduino Mega or Dueminanove? And if so, what is the best way to address them from Pure Data? Basically, I'd like to convert my already very simple Arduino sketches over to Pd, so that both motors and Audio can run from the same patch.

    I know this isn't specifically a Pd issue but I have asked a related question on the Bela forum but didn't get an answer so I hoped someone might know or be able to suggest a resource over here...
    I have traversed the Bela documentation already of course....and will continue with that meanwhile.

    Jorge

    posted in I/O hardware diyread more
  • Coalman

    In one of the classic pd books (but not Kreidler, Pucketter, nor Farnell I don't think) there is a great example in which three different approaches to making granular synthesis are given using three different ways of overlapping windowing functions.

    Does anyone know where or what this book is?

    I was trying to demonstrate something related to this the other day and I remembered these examples but can't for the life of me recall where I saw them.

    posted in technical issues read more
  • Coalman

    yes, the OSC option is definitely a good one (though I wonder what a good program for this is on android...I have to check if 'control' does this...there is osculator on mac stuff but it is paid...in fact the libpd thread started just before this one (https://forum.pdpatchrepo.info/topic/13969/questions-about-using-lib-pd) is also helpful...

    I am interested not so much in grabbing sensor data and sending it to pd on a computer but rather somehow using Pd directly on a mobile platform, and getting sensor data and particular gps data directly in there. There was also a post today on the Pd Forum about webpd being rebuilt, so that could help with that (you will be able to run vanilla Pd in a browser if that happens)

    MobMuPlat grabs data from several of these sensors very well already...but you have to deal with the pd patch +java interface with that, and also the limitation of the 32-bit floating point numbers...so I am looking for other options. Especially because of the 32 bit floating point number issue as the GPS values that are interesting to me 6-7 digits long. Hopefully webpd will be 64 bit.

    posted in technical issues read more
  • Coalman

    just wondered if anyone is using this?
    https://github.com/deusanyjunior/Sensors2PD
    It seems to suggest that you can run Pd patches off of an SD card on an Android phone...not sure which wrapper or what or how it works.
    I have been using MobMuPlat but this seems like another nice way to get phone sensor data into a patch...maybe more easily even.

    I wondered about setting up libpd using the PdCore module from that without too much coding. The program above requires that but not sure if it simply requires it to be installed or if you have to configure it through scripting somehow. This and actually compiling libpd has been a roadblock for me so far as I don't know what I am doing with that and get endless errors...

    Any thoughts on this? Just curious if anyone is using it and if so how...

    posted in technical issues read more
  • Coalman

    @bocanegra
    super clear
    thanks again!
    J

    posted in technical issues read more
  • Coalman

    So, I have it that the block size is the number of samples per block and that the numbers attached to each is the value of each sample in that block.

    Then, I am looking at an FFT from which you can get a similar-looking array
    and is it that the first value will be the lowest frequency and then each subsequent value is another frequency band, with the total number of bands being the block size
    (so, if the blocks are set to 512, then there are 512 bands of analysis arranged low to high?)
    How do you find out what the center of each of these frequency bands is (I mean without a gui, from the design side)
    are each of these bands just equally divided (linear) values in hz based on the nyquist frequency or sampling rate (i.e. (44100/2)/512)
    or is there some other logic to the spread of frequencies represented by the different bands?

    posted in technical issues read more
  • Coalman

    @bocanegra
    thank you! well explained!

    posted in technical issues read more
  • Coalman

    if I make a simple patch like this:
    [osc~ 220]
    | [bang]
    |
    [print~]

    I get an array of numbers for each bang in the console.
    Can someone tell me what these numbers represent?

    are they amplitudes of the signal at various time points in chronological order?
    if I use [tabwrite~] to store them in an array in my patch instead of printing them to the console are the indices then in chronological order?

    how does one get the frequency content of the signal back from this array of amplitude/time points?
    I guess this is a question that is related to how FFTs work maybe...

    I am giving away the fact that I am not a signal processing wizard here, but I would be very interested to know how these different numeric representations of these signals show their (the same?) information..
    thanks!
    J

    posted in technical issues read more
  • Coalman

    Wow! Great. I hope to get a chance to try this out soooon!!!

    posted in pixel# read more
  • Coalman

    thats great, I am going out of town for a few days but excited to give it a try. Will send feedback. great!

    posted in patch~ read more
  • Coalman

    I was searching for something else but landed on this, downloaded the old version and will give it a test. Would love to see the new version too, it looks like a nicer version of something I was working on a while back!
    cheers,
    J

    posted in patch~ read more
  • Coalman

    Thanks everyone!
    Great and informative answers!
    Jorge

    posted in technical issues read more
  • Coalman

    hi,
    Recently someone posted something over on the Pd list that had this question inside part of a bigger question. I was interested in it but it didn't seem to get an answer so I thought I would try here...I know that Max has limits for list length but I was wondering if in Pd there is a maximum number of elements that can be listed?
    Likewise are the maximum limits to what can go into a message box?
    What about an array?

    I am sure someone has asked this before but I did not see any results when I searched for it.
    thanks in advance!
    jorge

    posted in technical issues read more
Internal error.

Oops! Looks like something went wrong!