• draph

    i am trying to do beat detection and the algorithm i'm following says i need to sum every 1024 samples. right now i am sampling to a table every 43ms (44100/1024) and then trying to use until to loop through and square then sum all values. i think i am missing something in understanding between audio rate and control rate to get this to work.

    i've been trying to loop through the tabread~ with until and do my computation. i know how to sum if it were a float but as an audio signal there is no [f~] so i coming up short using [snapshot~] or [env~]. i am sure this has been done before, it is certainly easy in C but pd is stumping me, any ideas?

    posted in technical issues read more
  • draph

    I am trying to get either netsend~ or streamout~ to work. So far neither of them are working with their respective receive objects.

    with netsend~ we're getting weird errors like sending too many channels, when we set it to 2. the error would say sending 47 channels or some other false information.

    okay so here is the process

    [format 8bit<
    [connect xxx.xxx.xxx.xxx 8000<
    compute audio

    then on the receive side its says connected.
    [env~] is reporting "nan"
    then the boot
    netsend~: send tag: software caused connection abort (10053)

    with [streamout~] its reporting large numbers on the streamin side. Below is an example.

    unknown format 0
    unknown format 0
    unknown format 0
    unknown format 0
    error: streamin~: got an invalid frame size of -large number, maximum is 256

    [streamin~] is set with [reset 4<

    any ideas, I would rather get netsend~ working as you can seemingly do multiple channels.

    posted in technical issues read more
  • draph

    okay changed that, and it seems to be working now. i had that before the tabread~ and i was just getting 0's, so i guess i must of had another bug. beat detection still is not working but that problem seems to be solved. thx

    posted in technical issues read more
  • draph

    here this was on the pd list, i thought i'd post it to condense information

    Somebody was just asking me about options for streaming audio and video in Pd-extended. I wouldn't mind help with the answer. Here's what I have gathered so far.

    Audio:
    streamin~ and streamout~ --- but the help patches don't seem to work in Linux. Seems to work ok in windows.
    netsend~ and netreceive~ --- not provided in pd-extended and seemed a bit flaky when I tried them before.
    mp3streamin~ and mp3streamout~ --- help patch missing in pd-extended but seem to work ok outside of Windows.
    mp3cast~ and friends: seems to work ok if you have a shoutcast server...
    Video:
    I couldn't find anything in Gem to stream video. Did I miss it? I was wondering if using pix_pix2sig~, streaming as audio, then pix_sig2pix~ might work.
    in pdp/pidip there's pdp_i and pdp_o. I didn't find help patches for these in pd_extended
    also in pdp/pidip there's some other's pdp_mp4live~ etc. I suspect the ffserver-based ones don't work in pd-extended. Not sure on the others.
    For either audio or video maybe there's a way to send to vlc through the stdin or stdout, then let vlc do the streaming?

    posted in technical issues read more
  • draph

    Okay so the next train of thought is that. i have an AMD Windows machine. hd is using an intel Apple. so the 'byte ordering' is wrong, some big/little endian stuff. i was looking at the netsend~ code and noticed it checks for whether its an apple or windows/linux machine but not powerPc or intel apple. can someone point out some other pd objects that do this so i can examine the code there. thanks.

    still need to try intel to intel either both apple or both pc and other such similar connections

    posted in technical issues read more
  • draph

    Gobbi, could you elaborate on how you got Pd and Jack to work.

    i have some experience with jack for a mac but i am own a pc. so far i've installed jack and qjackctl. i can get audio in and out of ableton through jack and out of reason. What i can't figure out is why Pd doesn't pop in the connections manager once I compute audio. jackRouter shows in as the sound card (using ASIO portAudio) but no pd in the connections manager so i am stumped. i have tried various open program then "compute audio" setup sequences and i still think opening jack starting the server, then opening ableton/pd then computing audio in pd should work. thats how its done on a mac/linux.

    any suggestions? ...anyone?

    posted in technical issues read more
  • draph

    Yeah domien is correct I am trying to send audio signals not just control messages. OSCSend works like a charm.

    I grabbed netsend~ from here
    http://www.nullmedium.de/dev/netsend~/

    streamin~ was in extended at ../extra/ggext or ggex something close to that.

    posted in technical issues read more
  • draph

    so this is a great thread, thanks obi for the tutorial however when i look at bonk the right outlet gives me 3 nums. the first being instrument, 2nd amp. and 3rd ?. I can't find any documentation on that, Miller's help file or paper on bonk don't seem to cover it any one have an idea on the mysterious third parameter. Also what do you want to consider when setting the "mask" parameters as it seems it would be different for samples with rides versus drum machine samples. Do you want to relate it to the tempo? sample? or both? Anyways these are some rambling questions I have in regards to making a recycle type patch.

    attached is the "audio analysis in pd" paper about pd and fiddle

    regards..

    http://www.pdpatchrepo.info/hurleur/audioAnalysisPd.pdf

    posted in technical issues read more
Internal error.

Oops! Looks like something went wrong!