[PD] selecting input with [midirealtimein]
Hi I'm still trying to get [midirealtimein] going under linux. What I try to do is this: I have two applications that both sends out midi clock. I'd like to be able to select which applications midi clock I'm using in a third application. So the idea was to send the midi clocks to pd and use [spigot] to select between the streams, and output this stream un-modified. However: 1) I can't select which of my two midi inputs [midirealtimein] should read from. No matter what I do a [midirealtimein] outputs what-ever comes in of either input. This ruins the idea, since I naturally need to be able to work with seperate streams of midi-clock. 2) I can't create [midirealtimeout], how can I get the midi clock out of pd again? Thanks for any input! -- Atte http://atte.dk http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] routing midi-clock
IOhannes m zmoelnig wrote: Thanks for taking the time to answer my post! you mean: [spigot]? Yes. I tried the [midirealtimein], but I'm not sure how to pass the messages to [midiout] (or some other object). ain't there no [midirealtimeout] on your system? Nope. I'm under linux, maybe that's part of the reason? When creating [midirealtimein] I get: error: midirealtimein: works under MSW only. However printing the output of it, seems to be ok, although I'm not 100% sure what to expect... Help says: Pd version 0.42.5-extended-20091101 Should I install something else, maybe some other version or something extra? I'm not sure if I installed from ubuntu repos or from a deb found on puredata.info... A more severe problem, that I might be facing is if the stream of midi clock messages will be broken if I switch streams like this while the syncing app is running. i expect [midirealtimein] to produce fairly atomic messages, so you should be able to interrupt a stream generated by this object with [spigot] without any problems. I guess you're right. If I could only get [midirealtimeout] I have a feeling that I would be ready... -- Atte http://atte.dk http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] routing midi-clock
Hi I'm trying (and failing) to build a pd patch for routing midi-clock + audio based on the position of a horizontal slider. So basically a patch that sends all midi, or at least midi clock straight through if some object holds 1 block it if the object holds 0. I tried the [midirealtimein], but I'm not sure how to pass the messages to [midiout] (or some other object). A more severe problem, that I might be facing is if the stream of midi clock messages will be broken if I switch streams like this while the syncing app is running. -- Atte http://atte.dk http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] a full-featured sampleplayer
Roman Haefeli wrote: Thanks for your input! i think there is tons of such abstractions around. anyway, i like to re-implement it again and again everytime i need it, because there is always little things that i would like to have different from the current implementation and also it is always a good exercise (and probably i do better this time than last time). Hmm, I get your point. I had hope to do the sample_player to end all sample_players (and then make some music with it) :-) i wouldn't make your abstraction [phasor~] based, because of the problem you already sketched out: if you change the rate during the playback, you don't know when it is finished. that is why i propose to make any table based sampleplayer based on [vline~]. since you need to calculate the start-, endpoint and duration, you know at any time, where the index currently is (by calculating the current position from [timer] output and the three values i mentioned above). this way you can change the rate at any time you want, I don't understand. Below you state that you cannot continuously change the playback speed, what's the difference? you just need to recalculate start, end and duration for [vline~]. it looks more complicated at the beginning, but it is the cleanest solution i can think of. there is one disadvantage of the [vline~]-approach compared to the [phasor~]: you cannot continuously change the playback speed. so it is yours to decide, which way to go. I just know, one day, I'm gonna want to touch that pitch bender of modulate that playback rate... -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] displaying a filename
Hi I have an abstraction that has loaded a sample with openpanel. Is there a way to display this filename in the abstraction (for visual fedback), preferrably only the filename (without path)? Any pointers appreciated! -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] displaying a filename
Si Mills wrote: Hi A combination of [symbol\ and [stripdir] should do it Arrh, thanks! I never used the [symbol\ before. It works just perfect, thanks. -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] expr from sssad/gui-objects
Hi I have three number-boxes connected to sssad objects. When they all have their value restored I'd like to make an [expr $f1 - $f2 - $f3]. Since I don't know which box will get restored first I have bangs from the the second and third numbers to the hot inlet, which 1) is very ugly and 2) will always give three outputs from expr, only the last being correct. How can I make a calculation *only when all three values are available*? Sorry if the answer (again) is obvious... -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] variables in throw~
marius schebella wrote: (num) | [set channel$1( | [throw~ channelX] Where is this set-ability documented? Now I'd like to do kinda the same with dac~, but that doesn't work: [set 4( | [dac~ 1] Naturally a bit more elaborate in real life, bit the idea is to have an abstraction output to some channel in dac based on creation arguments... What's different about dac~ compared to throw~, where can I read about it, and how can I do what I'm trying to (set the channel of dac~)? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] variables in throw~
Hi I'd like to have a |throw~ channelX| where X is an integer (say 1-8) controlled from a number box. It doesn't seem to be possible, but I hope I'm wrong. Any input appreciated. -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] looking for gate~
Hi I'm looking for something that works like gate, just with audio signals, is there anything outthere already that does this? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] variables in throw~
kristof lauwers wrote: (num) | [makefilename channel%d] | [set $1( | [throw~ channel0] Thanks, that works great. Must read up on stuff to understand... -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Fwd: finding the cause of clicks when using sssad WAS: saving state of a patch
Frank Barknecht wrote: I would recommend to preload all textfiles that should be streamed to [sssad] into memory. Under linux I think cat *.sssad_states.txt /dev/null will do. -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] is $0 the same on every load?
Chris McCormick wrote: I understand. You want throw-away auto-ids. I'm not sure if anyone has come up with a satisfactory way of doing that, but I will have a think about it. At least auto-ids. They shouldn't be thrown more away than they are the same next time :-) Incidentally, How I handle timing is I have a global timer [s-metro] that keeps going up and up, and I use [mod 4] to (for example) have a loop of 4 ticks or [mod 32] for 32 ticks. Sometimes I get crazy and add together two [mod]s to get some weird sounding rhythms. Sounds just like mine. Except I need the concept of parts (like in verse, chorus, etc). I've put some basic stuff together that allow me to specify 8 parts. Each part have a length, and a goto-part so when a part is done it goes to the next one. Besides this you can request a certain part to come up next. This is all reflected and controlled from my bcr. What this means for my ticker is that it has on/off switches for each part, so a given ticker might only output if we're playing part 0 or 2. -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] is $0 the same on every load?
Frank Barknecht wrote: I don't yet understand: What exactly do you want to store? Such tickers would have gui-switches for which parts (like in structure) they're active in. That's what I'd like to store... So for sssad: You can use keys like [sssad $0-somekey] but as soon as you save them to a file or message box, you will have something like 1026-somekey in your storage and you can only restore it if you're lucky because 1026 doesn't equal $0. 1026 even is a completely different concept than $0. Right, I understand. I promise I'll refer from using $0 this way ever again :-) -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] sssad slowness
Chris McCormick wrote: That's Frank, not me. Oops... sssad does not cause any loading slowdowns on my system (Vanilla Pd, not pd-extended - if that makes any difference). It might. I'm leaving for hollidays in a few hours, but when I get back, I might try a regular PD install. -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] is $0 the same on every load?
Damian Stewart wrote: my state saving system is current a piece of paper with pencil numbers scrawled all over it. I like paper, but I think sssad is cooler :-) -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] bcr2000 and midi-feedback
Hi I have assigned a knob on my bcr2000 to a vertical slider in pd. Under the sliders properties, I have set send-symbol and receive-symbol to send and rec. I then have [ctlin 1] | [/ 127] | [s rec] [r send] | [* 127] | [ctlout 1] This basically works, the upper one is receiving from the bcr and moving the fader in pd, the lower one is updating the display on the bcr when the knob is moved in pd. The problem is that pd sends it's send-symbol, even if the fader is moved as a result of the receive-symbol. This means that the bcr get's the value right back, with a small delay, which causes the whole to be very reluctent to accept movements from the bcr. I could make some logic that doesn't send the value back if it was received from midi, but thought I'd ask if there was a simpler solution? For instance is it possible to have pd's knobs *not* send it's send-symbol if the fader was moved as a result of a receive-symbol? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] bcr2000 and midi-feedback
kristof lauwers wrote: You can set the value of the slider without having it sent back with a 'set' message Thanks alot, exactly what I was looking for. -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] [PD-announce] Pd-0.40.3-extended-rc2 released
Frank Barknecht wrote: Pd-extended obviously has the Python model in mind, while I would prefer a more minimalistic, Lua-like Pd, A really nice thing in python is that it comes with batteries included. You might have to import something from a lib, but it's always there on any platform. For a beginner like me, something similar with pd makes it easier to get started... -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] is $0 the same on every load?
Hi Can I expect $0 to always be the same in a given abstraction every time I load a patch? The reason I ask, is I'd like to use $0 as an unique identifier together with sssad... -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] is $0 the same on every load?
Roman Haefeli wrote: it is recommended to do your own counter, that only counts what really needs to be counted for your state saving. Thanks for the advice, I'll take this route. -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] sssad slowness
Hi Ok, so I'm playing with sssad, and it's really easy to work with. I saved some of the settings in my environment (a sssad save is here: http://atte.dk/download/test_alive.txt). Loading/saving the state itself is snappy, but loading the main patch is really slow (hogs the machine for 15 seconds, before the load is complete). With plans to add more things to the state, I figure something else must be done. So: 1) Is this normal behaviour of sssad? 2) Should I change something in my setup (backend, ramdisk)? I guess this is not is the part of the problem since loading a state is fast but regular load of the sssad-enabled patch is sloow, but what do I know... 3) Is something broken in my sssad install? I had problems, that I solved by moving sssad* to /usr/lib/pd/extra/ (from /usr/lib/pd/extra/sssad/), but that might have left some badness behind. BTW: sssad-example, (from which I copied stuff) also loads quite slow, maybe 2-3 seconds. -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] is $0 the same on every load?
Chris McCormick wrote: Is this so you can save and load different groups of pre-sets separately? I have been trying to think of a nice portable solution to that problem, using sssad. I have some ideas, but nothing concrete yet. No. I have an abstraction that counts the beats (or 1/8 notes or other note values) and sends out 0, 1, 2, 3 etc for every beat. The idea is to instantiate this for every instrument that needs to know about time. So in one piece it might be two in others 50. A convienient way to store them was simply to refer to $0, since I didn't have to worry about making some unique identifier up for each instance. Does it make sense? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] sssad slowness
Enrique Erne wrote: i hacked together a ad (slim super simple state saving system) uhm what was the a and the d in the abbreviation for? Hmmm. Hacked... Atte would you mind and test my version? please test for functionality and loading time. i might have overseen something. Wow. Loads in no time (1 sec), and works perfectly. I had problems with somethings not being restored, but I was relying on $0 as unique identifier in those areas, so maybe that's what bid me. Shouldn't you and sssad's author (Chris?) get together and merge these improvements into sssad? I mean, I have no idea how much tape and chewinggum you used in your code, but it sure works :-) -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] installing flext in pd-extended
Hi I installed pd-extended from Pd-0.40.3-extended-20080628-ubuntu-gutsy-i386.deb and now I need to compile pool, which means I need to install flext. I tried to compile flext, but it seems it needs the source of pd, which is not provided by pd-extended.deb. Does this really mean I have to install everything by hand? If so, is there an easy way to something similar to pd-extended (including the source) up and running in one go? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] saving state of a patch
Michal Seta wrote: Hi Atte The best way to start using memento is to get a patch that works, copy and paste the guts into your own and adapt. That is, providing that memento works at all on your system. There is a guide on footils.org that should get you started with the ideas behind the system. It works fine for me (I don't have pd handy right now so I cannot offer any specific pointers). An alternative is apparently part of the pdmtl abstractions http://wiki.dataflow.ws/PdMtlAbstractions I saw a presentation on if bu have not yet tried it. It is, arguably, simpler to adopt than memento. Both seems complex, and although I appreciate RRADical's (which it seems memento is part of) paradigm, I'm still quite new to PD and would like to make a few mistakes and learn a few lessons before I just adopt someone else's approach. However, http://footils.org/cms/show/1#persistence suggests that two, more basic, options exist: state and pool. 1) State. I can instantiate it in my 0.40-3extended-20080628 (under linux), but there's no state-help.pd anywhere. Where can I read about it? The above link mentions it only saves gui, I might want to save content of table/arrays, is that not considered gui? If not, is there an obvious and therefore elegant of saving guis + tables/arrays with state? 2) Pool. I have the pool-help.pd file, but I cannot instantiate pool, isn't that part of pd-extended? I tried downloading it and compiling it myself, but failed: [EMAIL PROTECTED]:~/music/synth/pd/externals/pool$ bash /usr/lib/pd/doc/manuals/flext/tutorial/build.sh linux pd gcc bash: ../build.sh: No such file or directory Obviously I have no clue about using flext, could someone help me getting this working? At the end of the day, what would be the best bet, state, pool, memento or pdmtl? I should note that what I'm trying to do is work out some abstractions for live electronica, and now I need a way to save piece1.pd and another_piece.pd which contains one or more instances of one or more of my abstractions, complete with gui settings and all. If I could just press save all this, so everything I loaded in this patch is exactly the same when I open it again I'd be sooo happy :-) -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] background color of instances of abstraction
marius schebella wrote: you have to send a message like color 16 to the canvas, Thanks, exactly what I was looking for! -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] saving state of a patch
Michal Seta wrote: The best way to start using memento is to get a patch that works, copy and paste the guts into your own and adapt. That is, providing that memento works at all on your system. There is a guide on footils.org that should get you started with the ideas behind the system. It works fine for me (I don't have pd handy right now so I cannot offer any specific pointers). An alternative is apparently part of the pdmtl abstractions http://wiki.dataflow.ws/PdMtlAbstractions I saw a presentation on if bu have not yet tried it. It is, arguably, simpler to adopt than memento. Both seems complex, and although I appreciate RRADical's (which it seems memento is part of) paradigm, I'm still quite new to PD and would like to make a few mistakes and learn a few lessons before I just adopt someone else's approach. However, http://footils.org/cms/show/1#persistence suggests that two, more basic, options exist: state and pool. 1) State. I can instantiate it in my 0.40-3extended-20080628 (under linux), but there's no state-help.pd anywhere. Where can I read about it? The above link mentions it only saves gui, I might want to save content of table/arrays, is that not considered gui? If not, is there an obvious and therefore elegant of saving guis + tables/arrays with state? 2) Pool. I have the pool-help.pd file, but I cannot instantiate pool, isn't that part of pd-extended? I tried downloading it and compiling it myself, but failed: [EMAIL PROTECTED]:~/music/synth/pd/externals/pool$ bash /usr/lib/pd/doc/manuals/flext/tutorial/build.sh linux pd gcc bash: ../build.sh: No such file or directory Obviously I have no clue about using flext, could someone help me getting this working? At the end of the day, what would be the best bet, state, pool, memento or pdmtl? I should note that what I'm trying to do is work out some abstractions for live electronica, and now I need a way to save piece1.pd and another_piece.pd which contains one or more instances of one or more of my abstractions, complete with gui settings and all. If I could just press save all this, so everything I loaded in this patch is exactly the same when I open it again I'd be sooo happy :-) -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] saving state of a patch
Frank Barknecht wrote: Then I would recommend [sssad]. It's the most simple of them all and doesn't need any externals. (Note that it's missing from pd-extended's autobuilds currently for reasons I don't understand.) Ok, thanks for all the advice, I'll look at sssad, then. First problem: It seems it's there, but broken (is it my that's broken?): /usr/lib/pd/extra/sssad /usr/lib/pd/extra/sssad/sssad.pd /usr/lib/pd/extra/sssad/sssad-help.pd /usr/lib/pd/extra/sssad/_sssad /usr/lib/pd/extra/sssad/_sssad/singleton-help.pd /usr/lib/pd/extra/sssad/_sssad/sssad-persistence.pd /usr/lib/pd/extra/sssad/_sssad/singleton.pd /usr/lib/pd/extra/sssad/_sssad/list_argument.pd /usr/lib/pd/extra/sssad/sssad-example.pd /usr/lib/pd/extra/sssad/sssad-meta.pd /usr/lib/pd/extra/sssad/sssliders.pd but creating a single [sssad] object gives: libdir_loader: added 'sssad' to the canvas-local objectclass path ... ... libdir_loader: added 'sssad' to the canvas-local objectclass path libdir_loader: added 'sssad' to the canvas-local objectclass path libdir_loader: added 'sssad' to the canvas-local objectclass path libdir_loader: added 'sssad' to the canvas-local objectclass path error: maximum object loading depth 1000 reached sssad ... couldn't create However google suggested that I should create [sssad/sssad], and that worked. Unfortunately right-clicking-help totally freezes up my system (something that never happens). What's up with that? Is that just a single bug (so don't click here) or a symptom of something bad? Should I try to rescue what's there (and if so, what to do) or abandon it and install just sssad anew (and if so how/from where). Additional question: I never saw the slash in objects (like in [sssad/ssad]) before, it that some kind of namespace thing? Where can I read more on that, including pros/cons and recommended ways/conventions? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] saving state of a patch
Luigi Rensinghoff wrote: Am 21.07.2008 um 20:16 schrieb Atte André Jensen: Unfortunately right-clicking-help totally freezes up my system (something that never happens). What's up with that? Is that just a single bug (so don't click here) or a symptom of something bad? Did i have tat onc, too ?? because of prepend - list prepend ?? I am not sure I don't think I understand... Should I try to rescue what's there (and if so, what to do) or abandon it and install just sssad anew (and if so how/from where). Additional question: I never saw the slash in objects (like in [sssad/ssad]) before, it that some kind of namespace thing? Where can I read more on that, including pros/cons and recommended ways/conventions? Its all in the mailing list archives ;-) One favourite subject, i guess... I'll see if I can dig some pieces out. I was more thinking of the big picture in one sentence... -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] saving state of a patch
Frank Barknecht wrote: Pd-extended is broken in that it cannot load abstractions that are in directories which have the same name as the abstraction. At least that's how I understand the problem. Users of upstream Pd like me aren't affected. I see. I found this has been has been discussed very recently, and I read the thread, and feel somewhat enlightend. Maybe it's the same issue of pd-extended that makes it fail to load [sssad]? I have no idea. After moving sssad* to extra (see below) sssad-help.pd also works. Seems to be related... Additional question: I never saw the slash in objects (like in [sssad/ssad]) before, it that some kind of namespace thing? Where can I read more on that, including pros/cons and recommended ways/conventions? Can of worms here, you may want to read up in the archives. Thanks for the heads up! As a workaround you can move the content of extra/sssad into the extra directory or another directory of your Pd-path. Ok, that seems to work. I can even make sssad-example.pd load/restore form file. That's great, now I have something working and play with that and see where it takes me. -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] saving state of a patch
Phil Stone wrote: Now that you're on your way with sssad, there's a nice trick you should know. If you find that loading a preset causes dropouts, consider using a ram disk to hold your presets during performance. This solved all my dropout problems, and it's easy to do (I can post a script for OS X if anyone wants it). Thanks for the tip, sounds like something I would have to struggle with at some point. I think I can figure out how to set it up with a ram disk, but we'll see about that :-) -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] vu-meter
Hi I'm trying to have vu show something useful, but with partial success. I have this: | [snapshot~] | [posetive] | [rmstodb] | [- 100] | [s $to_vu] [posetive] is a simple abstraction that... makes negative values posetive (1-1, -1-1, 0-0, etc). This kinda works, but at lower levels, and esp with only high frequency content the meter falls all the way to the bottom. What would make a better meter? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] vu-meter
IOhannes m zmoelnig wrote: so i don't fully understand your why you don't want to use [env~]? Because I'm a newbie, that never used [env~] before? [env~] | [- 100] | [vu] That works better, thanks! -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] vu-meter
Ricardo Dueñas Parada wrote: instead of [posetive] you should use [abs] Stupid me... -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] vu-meter
Derek Holzer wrote: Did you try [prvu~]? Now I did. I decided to go with a simple env~ solution for now. -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] background color of instances of abstraction
marius schebella wrote: either put a canvas in the background and change it via send/receive This seems like an easy thing, but I get cnv: no method for 'float'. What message could I send to a canvas to make it red? or use sys_gui in combination with hcs/canvas_name which lets you change the font/bg colors of your patch dynamically. That won't do. It seems that the background color of a patch set this way, won't shine through to a parent. So since I'm trying to make is visible which of several instances of the same abstraction is currently running, this seems not to be what I need... -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] saving state of a patch
Hi I'm trying to build something generic for performing live with pd and for the most parts, it's going really well. But I need to save the state of everything (a patch with some instances of some abstractions), so that the widgets will preserve their state between sessions. I looked into memento, but couldn't make it do anything useful, not even the manuals/memento/* stuff. Is memento broken and if not, could someone provide a brief example of how to use it. If broken, what other options are there? Thanks in advance for any response. -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] background color of instances of abstraction
Hi Is it possible (for reasons of visual feedback) to change the background color of one instance of an abstraction? It's an abstraction where only one instance is active at the time, so I'd like to change the background color of the active one. Is obviously should be done programatically from pd... -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] best way to do 1/x
Frank Barknecht wrote: Yes, it is. ;) But slightly more tricky is that send/recieve must have the same problems, but may be more difficult to spot. -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] best way to do 1/x
Frank Barknecht wrote: See attached example patch which exploits the current implementation to make the issue visible. [t ...] triggers left to right, don't you mean right to left? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] possible to reset phasor~?
Roman Haefeli wrote: but generally: the second inlet of [phasor~] is used to set the phase, so normally numbers between 0 and 1 are used, which give different results. That makes sense. So sending a .5 would reset the phase to half way through? Thanks for mentioning this. -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] extremely stupid question: playing sample
Roman Haefeli wrote: just let me add, that i find this not trivial (nor stupid) at all. Thanks for you uplifting remarks about my intellect :-) But being new at something can make you feel stupid. I'm understanding a bit more every day, though, so maybe all hope is not lost! -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] pd clicking with jack/linux
IOhannes m zmoelnig wrote: Atte André Jensen wrote: patrick wrote: 1) pd -? says -audiobuf is in ms, so 256 wouldn't make sense, or...? why shouldn't it make sense? 256ms is justas valid as 7ms Because he's building a commandline to match a jacksetup of Frames/Period: 256... specify that for the client. Same with -rt, I thought that clients enherited the realtime priority from jack... i don't think so. even if the dsp calculations are callback-driven by jack, you still have all the message stuff going on. I tried with and without -rt and -rt seems to work better, so maybe you're right. -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] best way to do 1/x
Hi What's the best way to do 1/x? I have something like: |10 ( | \ |bang( | | / |1(/ |/| -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] best way to do 1/x
Frank Barknecht wrote: As far as I see it, here you may have an execution order problem, at least the first tim you bang that ascii art. ;) Is that because of depth first, which would mean that / sees the 1 at hot inlet first and then carries out 1/0 before the 10 arrives at cold inlet? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] best way to do 1/x
Frank Barknecht wrote: Yes: Everytime you have connections fanning out of a message outlet, the order the connections fire is not specified. It's practically undefined. Ok, that seems like something that's possible to identify (with practice). I'm a little confused about loadbang, then. Supposed I have two things being calculated on load, and want say multiply results of each calculation, does that mean that I should also use [t] to tell pd which calculation to do first (the one arriving at the cold inlet of [*]? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] possible to reset phasor~?
Hi Is it possible to reset phasor, so sending it a message that'll make it start from 0 again? I tried using a metro/vline substitute, but couldn't figure out how to change the speed *within* a cycle. Is such a construction possible? NB: I'm trying to read out a sample from a table... -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] best way to do 1/x
Atte André Jensen wrote: I'm a little confused about loadbang, then. Or maybe not. I guess it's exactly the same... -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] possible to reset phasor~?
Peter Plessas wrote: as i remeber from the phasor's helpfile, sending a bang to one of its inlets resets the phase to zero. Sending a float to right inlet resets phase (it seems regardless of the value of the float). I'm not only newbie, I'm also blind :-) Sorry, about that! -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] extremely stupid question: playing sample
Hi Ok, I spend too much time trying to figure this out, so I have to chicken in and ask: I want to do something that I think is fairly simple and standard: Load a sample at arbitrary length and play it back at various rates. tabplay~ works fine (byt doesn't transpose), and tabread4~ complains that my array is not a power of 2 + 3. So how do I: 1) play my sample at half speed, one-shot? 2) play my sample at half speed, looped? 3) play my sample at half speed, with loop points set by hand? Sorry if this is too obvious! -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] extremely stupid question: playing sample
hard off wrote: tabread4~ should do what you want. Ok, thanks. I got a basic patch running that works (I drive the tabread4~ with a phasor~ and after rescaling phasor~ to match the table length it works. -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] pd clicking with jack/linux
patrick wrote: hi, Hi. Thanks for the reply! Basically I think my problems came from using array (and not table) to store a sample. Pd gave DIO errors when switching to the window containing the patch. Is this normal, and is there a way to avoid it, for instance running the gui in a separate thread? After switching to table (with very little testing, though) everything seems to work just fine :-) So the rest of this mail is releated to a patch using the problematic array!!! i don't use pd-extended, but i think it's almost the same. the only option missing is: -nosleep (useful for dual-core). I'm on a single core, so I guess -nosleep doesn't matter, right? so be sure in qjackctl - setup: Realtime Periods/Buffer: 2 Sample Rate: 44100 (or more) Frames/Period: 256 (i am running at 64 without glitches) Something like that, although periods/buffer is 3 here (seems to work better in general with my sound card). then for pd: pd -rt -jack -r 44100 -nosleep -audiobuf 256 -channels 16 -alsamidi -mididev 1 etc... Confused! 1) pd -? says -audiobuf is in ms, so 256 wouldn't make sense, or...? 2) I thought that jack clients automatically got the same buffer size as jack, which means that is doesn't make sense (or any difference) to specify that for the client. Same with -rt, I thought that clients enherited the realtime priority from jack... and finally, be sure to edit /etc/security/limits.conf: @audio - rtprio 99 @audio - memlock unlimited @audio - nice-20 and of course, add yourself to audio group (reboot to be sure). let us know. I already had that (or something *very* similar). ah yes, a long time ago i was using icewm, because gnome was causing glitches in pd. but now it seems ok here. I now tried with openbox (lighter than icewm) and the problem is the same. -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] getting the sample rate + channels of .wav
hard off wrote: yep, samples, channels, bitsize, samplerate Great, exactly what I was hoping for! Thanks! -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] pd clicking with jack/linux
Frank Barknecht wrote: It already runs even in a separate process from the audio engine. But both are tied together very closely and communicate a lot with each other, which leads to dropouts on gfx-intensive operations e.g. moving a lot ob objects or displaying and updating large graphical arrays. Ok. Use [table] everyhwere, you don't need to see the data, and avoid graphical objects for debugging in performance situations, only use them to input data. Thanks for the info, very clear, I think I got a better sense of tos and not-tos... -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] example of $1 and inlets in abstractions
Hi In the manual, I don't really understand the section about $ arguments in abstractions. Could anyone point me to a simple example abstraction which both uses $ creation arguments *and* inlets? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] example of $1 and inlets in abstractions
[EMAIL PROTECTED] wrote: i remember, hardoff has a very nice tutorial example discussion about using $- dollar sign which is a very good reference. http://puredata.hurleur.com/index.php, hardoff might have a direct link or just search in the forum. Thanks, I found it here: http://puredata.hurleur.com/sujet-1187-abstraction-why-use-etc With help from that I managed to work out the attached patch (supposed to play a sample at a give rate, 1 being original speed). Now I face another problem: freq seems to be 0 :-( I guess it has to do with $0-file_samples being available after $0-load, so the division on the left gets 44100/0. I even think this way of doing the division is quite clumsy. How can I do it correctly? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk #N canvas 354 223 640 428 10; #X obj 93 20 loadbang; #X obj 305 268 soundfiler; #X msg 59 20 bang; #X msg 204 42 \; pd dsp 1; #X obj 42 249 *~ 10; #X obj 461 394 print nb_samples; #X obj 42 225 phasor~ 0.5; #X obj 42 170 44100; #X obj 42 202 /; #X obj 380 76 wavinfo; #X obj 93 63 s \$0-load; #X obj 204 20 r \$0-load; #X obj 380 32 r \$0-load; #X obj 380 54 symbol \$1; #X obj 380 202 f \$0; #X obj 305 202 symbol \$1; #X obj 219 273 print pack; #X obj 305 224 pack symbol f; #X obj 507 25 table \$0-sample; #X obj 42 273 tabread4~ \$0-sample; #X obj 42 148 r \$0-load; #X obj 345 163 r \$0-load; #X msg 305 246 read -resize \$1 \$2-sample; #X obj 18 321 outlet~; #X obj 77 321 outlet~; #X obj 272 36 inlet; #X text 18 339 left; #X text 77 339 right; #X text 320 6 rate; #X obj 445 119 s \$0-file_samples; #X obj 445 141 s \$0-file_channels; #X obj 445 163 s \$0-file_bitsize; #X obj 445 185 s \$0-file_rate; #X obj 461 372 r \$0-file_samples; #X obj 138 198 r \$0-file_samples; #X obj 270 87 s \$0-rate; #X obj 332 395 print rate; #X obj 332 374 r \$0-rate; #X obj 312 36 r \$0-load; #X obj 315 64 f \$2; #X obj 180 245 print freq; #X connect 0 0 10 0; #X connect 2 0 10 0; #X connect 4 0 19 0; #X connect 6 0 4 0; #X connect 7 0 8 0; #X connect 8 0 6 0; #X connect 8 0 40 0; #X connect 9 0 29 0; #X connect 9 1 30 0; #X connect 9 2 31 0; #X connect 9 3 32 0; #X connect 11 0 3 0; #X connect 12 0 13 0; #X connect 13 0 9 0; #X connect 14 0 17 1; #X connect 15 0 17 0; #X connect 17 0 22 0; #X connect 17 0 16 0; #X connect 19 0 23 0; #X connect 19 0 24 0; #X connect 20 0 7 0; #X connect 21 0 14 0; #X connect 21 0 15 0; #X connect 22 0 1 0; #X connect 25 0 35 0; #X connect 33 0 5 0; #X connect 34 0 4 1; #X connect 34 0 8 1; #X connect 37 0 36 0; #X connect 38 0 39 0; #X connect 39 0 35 0; ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] pd clicking with jack/linux
Hi I get clicks and DIO errors at random intervals under linux/ubuntu with jack (no xruns). I have a 17ms latency setup with jack and a realtime patched kernel and the rest of my audio setup works great with jack. I installed pd from Pd-0.40.3-extended-20080628-ubuntu-gutsy-i386.deb Any one else running a similar pd with a similar setup and either have it working or experience the same problems? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] raw resampling
Hi I'm trying to do a simple resampling (downsampling) of an audio signal. I thought a simple snapshot, triggered by a metro 1 would do, but apparently not. Attached is a patch that does this, but the resampled signal sounds nothing like a rising (20hz-15kh) sine. Am I totally off track here, or how do I resample an audio signal to, say, 4410 khz? NB: I'm still quite new to pd, so any comments on the patch, with regards to how to do certain things easier/better/cleaner is highly appreciated. -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk #N canvas 38 95 542 507 10; #X obj 158 427 dac~; #X obj 96 212 osc~; #X obj 96 190 line; #X obj 338 19 loadbang; #X msg 338 46 \; pd dsp 1; #X obj 185 134 line~; #X msg 69 11 bang; #X msg 185 83 0 20; #X obj 97 235 *~; #X msg 8 85 20 0; #X msg 43 84 15000 4000; #X obj 43 63 del 1; #X obj 185 62 del 4000; #X obj 235 282 snapshot~; #X obj 235 259 metro 0.1; #X obj 194 293 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1; #X obj 232 365 *~; #X obj 112 316 * -1; #X obj 112 337 + 1; #X obj 97 360 *~; #X msg 141 83 0.1 20; #X text 105 10 - click to start; #X text 106 290 org/resampled?; #X connect 1 0 8 0; #X connect 2 0 1 0; #X connect 3 0 4 0; #X connect 5 0 8 1; #X connect 6 0 20 0; #X connect 6 0 9 0; #X connect 6 0 11 0; #X connect 6 0 12 0; #X connect 6 0 14 0; #X connect 7 0 5 0; #X connect 8 0 13 0; #X connect 8 0 19 0; #X connect 9 0 2 0; #X connect 10 0 2 0; #X connect 11 0 10 0; #X connect 12 0 7 0; #X connect 13 0 16 0; #X connect 14 0 13 0; #X connect 15 0 16 1; #X connect 15 0 17 0; #X connect 16 0 0 0; #X connect 16 0 0 1; #X connect 17 0 18 0; #X connect 18 0 19 1; #X connect 19 0 0 0; #X connect 19 0 0 1; #X connect 20 0 5 0; ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] Phase Distortion Patch
Uğur Güney wrote: You can change it with the slider and see its effects. (There is some aliasing, because I did not used any interpolation for reading from the table) I get some crackling noise when I move the slider, is this what you're talking about? It would be cool to avoid this, since I imagine this being highly useful if wrapped up in an abstraction, with modulateable phase distortion (like modulating a lpf in subtractive synthesis). If I find some time over the next few days, I'll look into this. Thanks for sharing! -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] getting started with webcam/pdp
Hans-Christoph Steiner wrote: You could pull out the pidip.pd_linux and use it with a different version of Pd-extended. Ok, I downloaded, patched and compiled pdp succesfully, however the problem is still there (pd crashes when trying to use the webcam in pdp). However (begin new to video) I discovered that GEM also has some video processing stuff. Would that be a way to go? What *can't* I do in GEM that would be possible either pdp? Finally the image has distorted colors (skin is blue, for instance) when used under GEM. I tried the cam in other software (for instance skype) and it's fine. Any ideas what to do about this? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] getting started with webcam/pdp
ydegoyon wrote: did you try to use pdp_v4l2 ? this symptom seems very reproducable with pdp _v4l This is with pdp.pd_linux from pdp-0.12.5-test-7.tar.gz patched with pdp-0.12.5-test-7-v4l2.patch and copied (pdp.pd_linux) on top of regular file in /usr/local/lib/pd/extra/pdp.pd_linux -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] getting started with webcam/pdp
ydegoyon wrote: and there might be a confusion here, Sure I'm confused. Maybe it would be nice to know exactly what to install. -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] getting started with webcam/pdp
ydegoyon wrote: puès, the artefacte page is obsolete and everything is in svn now, thus in the latests builds automagically These ones: http://autobuild.puredata.info/auto-build/2008-06-28/? I installed the one for my system (ubuntu gutsy), and unfortunately both problems remain: 1) Pd crashes when using pdp [EMAIL PROTECTED]:~$ pd /usr/lib/pd/doc/examples/pdp/example01.pd tk scaling is 1.18830409357 init : Avifile RELEASE-0.7.47-070916-12:47-4.1.3 init : Available CPU flags: fpu vme de pse tsc msr mce cx8 sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 tm pbe up bts est tm2 init : 1600.00 MHz Intel(R) Pentium(R) M processor 1600MHz detected - At this point i clicked the bng -- X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 143 (GLX) Minor opcode of failed request: 5 (X_GLXMakeCurrent) Serial number of failed request: 32 Current serial number in output stream: 32 pd_gui: pd process exited [EMAIL PROTECTED]:~$ 2) GEM shows funny colors (blue skin for example) in /usr/lib/pd/doc/examples/Gem/04.video/00.SimpleVideo.pd This is (now) with http://autobuild.puredata.info/auto-build/2008-06-28/Pd-0.40.3-extended-20080628-ubuntu-gutsy-i386.deb under ubuntu/7.10 on an IBM T41 (PentiumM) laptop with ati graphics card: [EMAIL PROTECTED]:~$ lspci | grep Rad 01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M7 LW [Radeon Mobility 7500] Any help appreciated! -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] getting started with webcam/pdp
IOhannes m zmölnig wrote: loads of things...well, i don't know; i would ask the question the other way around: does Gem/pdp/gf/... can do everything you want? I don't know what I want, maybe because I'm new to video. So I hope to play around and get some ideas. But right now, for my first idea, I need to translate something on a videofeed into OSC messages + project the video (maybe with some simple explanatory overlay for the audience to better understand what's happening) with a projector. I have som starting ideas about what that something might be. Something like how red is the picture, from 0-1, how much activity is in the image, from 0-1. My system, currently implemented in ChucK is easy to configure to do something useful with these messages. -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] pdp_v4l2 with MacBook Pro 3rd iSight on Ubuntu (success)
Hans-Christoph Steiner wrote: Hey, Sergi and I just figured out how to use the macbook pro iSight camera with pdp_v4l2, so I thought I just post here how for the record: By default the iSight with pdp_v4l2 seems to use MJPEG colorspace, so I was getting a pdp_v4l2: unsupported color model error. We sent the [format 1( to get the YUYV space, as reported in the Pd window, and it works! Since I'm also strugling with pdp_v4l, I'm wondering: should I change pdp_v4l to pdp_v4l2 in /usr/lib/pd/doc/examples/pdp/example01.pd? I tried, and got ... couldn't create, but I'm thinking maybe I'm not even using pdp_v4l2... -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] pdp_v4l2 with MacBook Pro 3rd iSight on Ubuntu (success)
olsen wolf wrote: would make sense puttin both in there - cause some cameras work with pdp_v4l other with pdp_v4l2 So since I get ... couldn't create after changing to pdp_v4l2, this means that I'm not using pdp_v4l2 in the first place, right? I thought maybe pdp_v4l in the nightly build incorporated everything... -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] getting started with webcam/pdp
ydegoyon wrote: try to change it for a [pdp_xv] Great that works. Thanks alot! Isn't glx supposed to work? I guess xv is (much?) slower, right. So I should struggle to get glx working, right? Any ideas in this direction? For instance, is glx working for other people running linux? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] getting started with webcam/pdp
Hi I run linux (ubuntu 7.10) and pd-extended installed from Pd-0.39.3-extended-debian-testing-i386.deb I have some experience with pd, but none with video. I hooked up my phillips webcam and dmesg tels me it's connected to /dev/video0. Skype shows video from this device just fine. However I can't get it going in pd. I tried running the examples/pdp/input_output.pd patch, and I briefly see a black window, then pd dies with this in the terminal: [EMAIL PROTECTED]:~$ pd tk scaling is 1.18830409357 init : Avifile RELEASE-0.7.47-070916-12:47-4.1.3 init : Available CPU flags: fpu vme de pse tsc msr mce cx8 sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 tm pbe up bts est tm2 init : 1600.00 MHz Intel(R) Pentium(R) M processor 1600MHz detected X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 143 (GLX) Minor opcode of failed request: 5 (X_GLXMakeCurrent) Serial number of failed request: 32 Current serial number in output stream: 32 socket receive error: Connection reset by peer (104) Am I on the right track? I want to grab some video from the cam, and based on something in the image send out OSC. I don't know what something is yet, need to play with it, but I have the idea of the audience influence the music (which is running in ChucK). Am I still on the right track? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] getting started with webcam/pdp
Husk 00 wrote: Probally you have a webcam that use video4linux2 protocol, so you have to use pdp_v4l2. Ok. My device indeed seems to be a version 2 camera, since this shows up in dmesg after inserting the camera: [ 4305.015145] Linux video capture interface: v2.00 [ 4305.080752] pwc: Philips webcam module version 10.0.13 loaded. Sorry for asking, but before I break my whole pd install: I installed pd-extended, which means I cannot uninstall pdp by itself, right? Is it possible to simply compile (and maybe not install) the patched pdp and somehow set pd up to use this instead, while having the original pdp still there, and if so how? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ Pd-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] midi - pd - osc
Hi I'd like to build a performance interface in pd for controlling chuck in realtime. I was hoping to make the widgets in pd send osc to chuck. Also I'd like them to be slaves of incomming midi cc messages (for sliders) or laptop-keyboard input (for switches). Is such a thing possible, anything special I should be aware of and where can I find more information regarding generating osc/pd and slaving a widget to midi or key pressure? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] another basic pd question/creation arguments in abstraction
IOhannes m zmoelnig wrote: [list $1] - allows both, symbols and floats shouldn't this be [list append $1]? I tried both and both seem to work. There might be some situations where the append make a difference, though... -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] many paths, how
Jamie Bullock wrote: I have a few ideas about how it might be improved: How about a checkbox recurse subdirs that'll traverse subdirs. I know this can lead to bad things (wrong load order of files with same name), but this can also happen with individual dirs. I'd like to split my growing pd instrument collection up into subdirs, but also having to maintain the path's dialog have stopped me so far... -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] another basic pd question/creation arguments in abstraction
Hi Still a lot to learn... With the attached patch as an example, how do I make it possible to use the numbers 2000, 4000 and 5200 a creations arguments, but still use the said numbers as defaults, should no arguments be supplied? Confused at a very basic level, unfortunately :-) I seem to get most of the other stuff with pd, esp the audio part, but I'm always messing up when it comes to creation arguments in abstractions. What would be required read-up (besides the *dollarsign*.pd files under doc/2.control.examples) that'll allow me to grasp this aspect? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk #N canvas 324 175 463 402 10; #X obj 106 266 *~; #X obj 48 32 inlet; #X obj 83 312 outlet~; #X obj 139 312 outlet~; #X text 85 330 left; #X text 139 329 right; #X obj 103 32 inlet; #X text 48 13 note; #X text 103 13 velocity; #X obj 53 146 noise~; #X obj 53 215 hip~ 5200; #X obj 48 53 unpack; #X obj 53 189 vcf~ 17; #X obj 140 80 moses 1; #X obj 184 124 vline~; #X obj 122 245 *~ 0.1; #X obj 75 169 *~ 2000; #X msg 184 104 1 30 \, 0.1 4000 30; #X connect 0 0 2 0; #X connect 0 0 3 0; #X connect 1 0 11 0; #X connect 6 0 13 0; #X connect 9 0 12 0; #X connect 10 0 0 0; #X connect 11 1 13 0; #X connect 12 0 10 0; #X connect 13 1 17 0; #X connect 14 0 15 0; #X connect 14 0 16 0; #X connect 15 0 0 1; #X connect 16 0 12 1; #X connect 17 0 14 0; ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] gem/fullscreen/linux
IOhannes m zmoelnig wrote: to clarify: older versions of Gem did crash when you had no delay between the windowevent and the destruction of the window (similar to triggering the destruction of a subpatch from itself). I have this crash and my gem i 0.90, is there anything newer available for linux and if so where? I wasn't ablt to locate it on the website... -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] level of abstraction in gem
Hi So I played a bit with gem, and still have lots to learn. One thing I keep thinking is how low an abstraction level I'm working on. Is this simply the way it should be or are there any abstractions available that'll cut corners. I realize that to some extend there's a tradeoff between being 100% in control and a high abstraction level, but to get a newbie like me going quickly a blend would be nice. I'm not even sure exactly what I'd like to see, but some wiz-bang filters that do a lot and look good. BTW: I'm in no way complaining and I'm trying not to be lazy :-) -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] many paths, how
Hi My paths section in my preferences is full, and I need to ad another. remember there was some discussion recently about how to add more, but I can't seem to find it. Could anyone refresh my memory? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] gem/fullscreen/linux
Hi So I'm having fun playing around with gem. I can already see myself using it live soon. However I can't figure out how to start gem rendering in fullscreen without showing any gui, including gem window border/title bar and mouse. The closest I can get is by sending [dimen 1024 768( to [gemwin] before creation and starting pd with -nogui. Unfortunately this still shows the title bar of the window, the mouse and my panel at the bottom of the screen. This of course looks stupid in a performance... An ackward solution could be to create a user in whos .xsession the only thing happening is starting pd with -nogui, but I didn't try that yet since it's ackward and might not even work... I'm running debian/linux with openbox and xfce4-panel. Pd and gem are compiled from source and are versions 0.40.3 and 0.90. -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] programming a load/unload of abstractions
Hi Is there an object that'll load a given abstraction upon receiving a bang? Similar for unload? The reason I ask is I though it would make sense to make an abstraction per graphical event in gem, like texturize a cube with this image, rotate the cube, and move is over the screen. This abstraction would essentially be an event that could be triggered (I'm planning on using osc for that). This way a gem performance could be split into separate events which could be triggered to form an entire performance. Is that I stupid idea, and if so what would be a better way to go about this? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] gem/fullscreen/linux
Roman Haefeli wrote: have a look at the helpfile of [gemwin]. Hmmm. I tried that (of cource) but I was expecting to be able to right click athe [genwin] object and select help. This gave me a sorry, couldn't find help patch for Gem/gemwin.pd. I searced my system for a file called gemwin-help.pd, since I though it was supposed to be called that and didn't find any, which led me to believe that there were no help files available. Apparently they are located in .../help/ and thisone is simply called gemwin.pd. What did I do wrong since the right-click/help way doesn't work? Anyways, thanks for pointing me in the direction of gemwin.pd, now I can dig in, although so far in a rather cumbersome fashion... -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] gem/fullscreen/linux
Roman Haefeli wrote: messages, you probably want to send to [gemwin]: 'fullscreen 1' 'cursor 0' don't they work for you? Well I not having looked at the helpfile I send [fullscreen( (without the 1) and obviously that didn't work. Those two messages do exactly what I need, thanks! However now I need to log into a tty with something like ctrl-alt-F1 and do a killall pd. Isn't there a cleaner way? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] getting started with graphics
Hi I composed some dreamy, meditative electronica (http://modlys.dk) that I'm gonna take on tour with a small band (keys, bass, vocals and laptop/chuck). I'd like to have some visuals running on a projector, and since I know pd can probably do this (and I already use pd), I'd like to get started with graphics in pd. However I no experience to speak of with graphics, so I'm very interested in some pointers. 1) Is there any videos that shows what can be done, just as an initial inspiration/moral booster? 2) Which of the graphics libraries should I look (what do they each do) and are there any tutorials available to get me started (from scratch)? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] pd arpeggio sound
henrik wurster wrote: so the question is, if there is any arpeggio-object already made, because it might be quite tough It just so happens that I just finished my arp external last week, get it (together with a bunch of more or less relevant crap) here: svn co svn://atte.dk/attes_pd_stuff Goto externals an type make. Copy the files arp-help.pd and arp.pd_linux (or whetever platform your at) to somewhere in your pd-path or add the externals dir to your pd path. I wrote [arp] it 'cause I was working on a piece where I needed it, and although the piece is not finished, it might give you an idea on what [arp] is doing (although I guess you might already know): http://atte.dk/download/himlen_rammer_her.mp3 -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] pd arpeggiator external
Hi Last week I finished my [arp] arpeggiator external for pd. Maybe it's of use to someone. In that case it's at svn co svn://atte.dk/attes_pd_stuff/externals -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://modlys.dk ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] fundamental hot/cold midi question
Hi So I made to externals, [arp] (arpeggiator) and [legato] (legato monophonic midi module). My idea for both of them to be insertable in a midi stream for instance just after [notein], so they both have (amongst other things) a note inlet (leftmost, hot) and velocity (second to the left, cold). They both worked fine by themselves, but one of my tests for [arp] show a problem: when it's note and velocity outlets were connected to the corresponding inlets of legato, legato would miss some noteoff's (resulting in hanging notes). After some debugging I the hot/cold inlet thing came to mind. It turned out that in the code of [arp] I had outputted the note value (just) before the velocity, and if I reversed that sending order, [legato] would get all it's noteoffs and the hanging problem is gone. Fine. I thought I had it all sorted out, it must have been because [arp] was sending its note first. Since the note outlet was connected to the hot note-inlet of [legato], legato would be triggered of the note and look at the velocity outlet, where [arp] hadn't yet made anything available. So I thought, let's go through [legato] and in a similar fashion send velocities before notes. However that didn't work, there were no sound, probably because somewhere in the midi stream noteon's were thrown away. Right now I'm pretty confused. What did I miss? In retrospect, it seems very odd to me that switching the lines sending velocity ad note in arp would have any effect. I would expect those to lines to happen simultaneously at least from interconnected pd-objects point of view. If someone could enlighten me, I'd be most happy :-) -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://atte.dk/compositions ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] fundamental hot/cold midi question
Steffen wrote: I think the question, from Atte, was about the order in case of multiple outlets of an object. That is not about multiple lines/ connections out of a single outlet. I've been working a lot on the external since then. And after a complete rewrite 2 times, it works very robust even with two outlets. I still have a few ideas I might throw in, but for now it works really well. -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://atte.dk/compositions ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] external questions
Hi I'm writing my second external, an arpeggiator called arp. I know I was encouraged to write it as an abstraction, but the exact features that I wanted seemed too overwhelming for a pd-newbie. Anyways, I have two questions: 1) Whenever I instantiate it in pd I get consistency check failed: class_addmethod: arp_bang: bad argument types in the pd console. However the external seems to work just fine. If someone clever could look at the code an spot the mistake, I'd be most happy! Basically I have four float-inlets where the first should also accept bang-messages. 2) With the recent thread on name space in mind, is there anything I should do to make it more name-space-safe? Of course I could prepend it with something like my name, but that would be so ugly :-) NB: I'll make a proper announcement/release when it's finished and supplied with a -help.pd file. -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://atte.dk/compositions /* Arpeggio external, Atte André Jensen, 2007 This code is released under GPL */ #include m_pd.h #include stdlib.h #include time.h #define NB_ELEMENTS 200 static t_class *arp_class; typedef struct _arp { t_object x_obj; t_int nb_elements, direction; t_float notes[NB_ELEMENTS]; t_int velocities[NB_ELEMENTS]; //t_int current_pos, current_direction; t_float current_note, current_velocity, last_note, last_velocity, tmp; t_float note, velocity, mode, octaves; t_inlet *note_in, *velocity_in; t_outlet *note_out, *velocity_out; } t_arp; void arp_bang(t_arp *x) { t_float note, best_note, delta, best_delta; t_int octave, index; t_int random_number; //post(inside arp_bang); //post(x-mode: %f,x-mode); if(x-nb_elements == 0){ return; } if(x-mode = 0 x-mode = 3){ if(x-current_note = 0){ // send noteoff for sounding note outlet_float(x-note_out, x-current_note); outlet_float(x-velocity_out, 0); } best_delta = 1000 * -1 * x-direction; best_note = x-current_note; if(x-direction == 0){ // first time arround, different for each mode if(x-mode == 0 || x-mode == 2){ x-current_note = x-notes[0]; x-current_velocity = x-velocities[0]; x-direction = 1; } else if(x-mode == 1 || x-mode == 3){ x-current_note = x-notes[x-nb_elements - 1] + ((x-octaves -1)* 12); x-current_velocity = x-velocities[x-nb_elements - 1]; x-direction = -1; } } else { for(octave = 0; octave x-octaves; octave++){ for(index = 0; index x-nb_elements; index++){ note = x-notes[index] + 12 * octave; delta = x-current_note - note; //post(index:%i, octave:%i, note:%f, delta:%f,index, octave, note, delta); if((x-direction 0 delta 0 delta best_delta) || (x-direction 0 delta 0 delta best_delta)){ best_delta = delta; x-last_velocity = x-current_velocity; x-current_velocity = x-velocities[index]; best_note = note; //post(delta::%f, best_delta: %f, note: %f, best_note:%f, delta, best_delta, note, best_note); } } } if(best_note == x-current_note x-nb_elements 1){ //post(at the end); // at the end if(x-mode == 0){ //post(mode 0); x-current_note = x-notes[0]; x-current_velocity = x-velocities[0]; } else if (x-mode == 1){ //post(mode 1); x-current_note = x-notes[x-nb_elements - 1] + ((x-octaves -1)* 12); x-current_velocity = x-velocities[x-nb_elements - 1]; } else if(x-mode == 2 || x-mode == 3){ //post(mode 2/3); x-tmp = x-current_note; x-current_note = x-last_note; x-last_note = x-tmp; x-tmp = x-current_velocity; x-current_velocity = x-last_velocity; x-last_velocity = x-tmp; x-direction = -1 * x-direction; } //post(end of switch if, x-current_note:%f, x-last_note:%f,x-current_note,x-last_note); } else { x-last_note = x-current_note; x-current_note = best_note; } } outlet_float(x-note_out, x-current_note); outlet_float(x-velocity_out, x-current_velocity); } else if(x-mode == 4){ // random //post(mode:4); random_number = rand(); index = random_number%x-nb_elements; octave = random_number%(int)x-octaves; /* post(random index:%i,index); post(random octave:%i,octave); */ x-current_note = x-notes[index] + 12 * octave; x-current_velocity = x-velocities[index]; outlet_float(x-note_out, x-current_note); outlet_float(x-velocity_out, x-current_velocity); } else { //post(unknown mode); } } void arp_float(t_arp *x, t_floatarg f1) { //post(inside arp_float); int i; int found = -1; //t_float max = 0, min = 10; int pos = 0; x-note = f1; //post(note:%f,velocity:%f,x-note,x-velocity); //post(max:%f, min:%f,max, min); if(x-velocity != 0){ for(i=0; i=x-nb_elements; i++){ // find position for new note if(x-notes[i] == f1){ pos = -1; i = x
Re: [PD] bug-report, -channels
Atte André Jensen wrote: Hmmm. It seems to happen only with the attached patch 04_dist_drums.pd Forget that (and sorry for the lousy report)! The problem seems to be with file names starting with a digit; they need to have -channels before -rt -jack in the command line arguments, otherwise pd segfaults. Attached is a simple file (only a comment) that crashes pd here when called as: /usr/local/bin/pd -rt -jack -channels 4 2_crash.pd -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://atte.dk/compositions #N canvas 0 0 450 300 10; #X text 35 23 this crashes pd when called as; ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] inconsistencies with lib names (was: representning classes
[EMAIL PROTECTED] wrote: I think it would be more useful right now if pd would search in subdirectories. How about the adding the ability to write an asterix for recursive search so /home/atte/music/synth/pd/attes_pd_stuff/* would also look in /home/atte/music/synth/pd/attes_pd_stuff/externals /home/atte/music/synth/pd/attes_pd_stuff/abstractions /home/atte/music/synth/pd/attes_pd_stuff/midi_instruments This would keep backwards compatibility + make it possible to do it only for certain directories. I realize the user would still be able to run into name clashes, though... -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://atte.dk/compositions ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] where to get polypoly
Hi I'd like to play around with polypoly to see what it can do for me. But I couldn't find a place to download it, where is it available from? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://atte.dk/compositions ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] howto chorus
Hi What's the best and/or easiest way to get (nice and fat) chorus in pd? Is there an external/abstraction to be found somewhere or should I look at plugin~ with ladspa chorus? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://atte.dk/compositions ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] where to get polypoly
Frank Barknecht wrote: It's in the CVS in directory absractions/footils/foo/ I'm afraid I'm to stupid to take it from here. Where's the cvs repository located? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://atte.dk/compositions ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] howto chorus
tim wrote: [vd~] See example in attachment Thanks alot. I'll see if I can get a nice general purpose chorus abstraction based on that. -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://atte.dk/compositions ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] where to get polypoly
IOhannes m zmoelnig wrote: or get a decent CVS client (e.g. tortoiseCVS) and checkout the latest and greatest revision directly. I'm quite familiar with cvs, thank you very much :-) although I switched to SVN myself. Checking out as we speak. However the repository seemed only to be found for the chosen few, hence my post. Seems there's loads of stuff, and a billion dirs to be added to my pd-path :-( / :-) Somewhere in the recent, deep thread on namespace I seem to recall someone (Frank?) mentioning he copied ecerything into one dir. Is that recommendable or what's the best way to do it? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://atte.dk/compositions ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] channels and dac
Roman Haefeli wrote: however, you can easily find out, what you need to send by eavesdroping on the 'pd channel': [r pd] | [print] then choose the desired settings in the menu and click 'ok'. as soon as you click ok, you'll see the message (and its format) in the pd-console. Nice! However I can't seem to get it working. With the above setup I get the following printed when I change channels to 10: print: audio-dialog 0 0 0 0 10 0 0 0 0 0 0 0 2 0 0 0 44100 50 So I pasted this (without print: into a message-box and was expecting channels to be set to 10 when I clicked on it. However this doesn't happen. Are my expectations wrong or am I missing something? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://atte.dk/compositions inline: Screenshot.png___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] channels and dac
Batuhan Bozkurt wrote: You need to send the message to pd, therefore it should be something like: [;pd audio-dialog 0 0 0 0 10 0 0 0 0 0 0 0 2 0 0 0 44100 50( Prepend ;pd to the messagebox, basically. (or conencting your message box to [s pd] should also work. Thanks, that works great! -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://atte.dk/compositions ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
[PD] bug-report, -channels
Hi I'm not sure it it's the right place to bring it up, but it seems theres a bug in .40 (linux). If I call pd -channels 4 -rt -jack file.pd it works, however the following makes pd segfault: pd -rt -jack -channels 4 file.pd I've spend most of tonight figuring this out, so if someone could verify it, I'd be most pleased... -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://atte.dk/compositions ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] bug-report, -channels
Roman Haefeli wrote: i tried it here and both work. i am on linux with pd 0.40.2. Hmmm. It seems to happen only with the attached patch 04_dist_drums.pd (depends on the rest of the attached files, hope I didn't miss any). Anyone can reproduce this, then? Any idea if it's me or PD? -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://atte.dk/compositions #N canvas 1460 309 450 300 10; #X obj 100 42 simple_sine; #X obj 10 12 loadbang; #X msg 10 33 \; pd dsp 1; #X obj 100 11 notein 1; #X obj 204 13 notein 2; #X obj 205 69 dac~ 3 4; #X obj 101 69 dac~ 1 2; #X obj 204 43 triangle_bass; #X connect 0 0 6 0; #X connect 0 1 6 1; #X connect 1 0 2 0; #X connect 3 0 0 0; #X connect 3 1 0 1; #X connect 4 0 7 0; #X connect 4 1 7 1; #X connect 7 0 5 0; #X connect 7 1 5 1; #N canvas 58 157 450 300 10; #X obj 72 82 phasor~; #X obj 72 102 *~ -1; #X obj 72 122 +~ 1; #X obj 125 108 min~; #X obj 71 178 outlet~; #X text 72 18 frequency; #X text 69 196 audio out; #X obj 72 37 inlet~; #X connect 0 0 1 0; #X connect 0 0 3 0; #X connect 1 0 2 0; #X connect 2 0 3 1; #X connect 3 0 4 0; #X connect 7 0 0 0; #N canvas 511 218 424 347 10; #X obj 88 206 *~; #X obj 62 70 legato; #X obj 30 111 mtof; #X obj 48 32 inlet; #X obj 125 31 inlet; #X text 48 13 note; #X text 121 13 velocity; #X obj 42 253 outlet~; #X obj 135 252 outlet~; #X text 48 276 left; #X text 136 274 right; #X obj 122 128 adsr 0.1 5 500 50 50; #X obj 29 177 osc~; #X obj 30 132 pack 0 \$1; #X obj 30 154 line~; #X text 240 11 creation argument:; #X text 256 25 portamento time (ms); #X connect 0 0 7 0; #X connect 0 0 8 0; #X connect 1 0 2 0; #X connect 1 1 11 0; #X connect 2 0 13 0; #X connect 3 0 1 0; #X connect 4 0 1 1; #X connect 11 0 0 1; #X connect 12 0 0 0; #X connect 13 0 14 0; #X connect 14 0 12 0; #N canvas 509 106 450 300 10; #X obj 40 25 inlet; #X obj 184 23 inlet; #X obj 42 262 outlet~; #X obj 184 244 outlet~; #X obj 64 61 legato; #X obj 51 153 phasor~; #X obj 51 89 mtof; #X obj 51 109 pack 0 \$1; #X obj 51 129 line~; #X obj 51 173 *~ -1; #X obj 51 193 +~ 1; #X obj 104 179 min~; #X obj 175 110 adsr 1 5 500 50 50; #X obj 155 222 *~; #X obj 287 166 tri~; #X connect 0 0 4 0; #X connect 1 0 4 1; #X connect 4 0 6 0; #X connect 4 1 12 0; #X connect 5 0 9 0; #X connect 5 0 11 0; #X connect 6 0 7 0; #X connect 7 0 8 0; #X connect 8 0 5 0; #X connect 9 0 10 0; #X connect 10 0 11 1; #X connect 11 0 13 0; #X connect 12 0 13 1; #X connect 13 0 3 0; #X connect 13 0 2 0; #N canvas 371 139 752 655 12; #X obj 105 111 inlet; #X obj 435 151 inlet; #X text 101 86 trigger; #X obj 105 139 sel 0; #X obj 244 155 t b; #X obj 166 264 f \$1; #X obj 166 289 pack 0 \$2; #X obj 492 151 inlet; #X obj 438 281 del \$2; #X obj 458 429 line~; #X obj 462 304 f \$4; #X obj 501 379 pack 0 \$3; #X obj 554 151 inlet; #X obj 616 151 inlet; #X obj 689 150 inlet; #X msg 105 170 stop; #X obj 612 306 pack 0 \$5; #X text 435 129 level; #X obj 501 355 * \$1; #X obj 458 454 outlet~; #X text 102 378 and pack with; #X text 103 398 attack time; #X text 31 126 if zero; #X text 32 143 release; #X text 12 160 and cancel; #X text 43 177 decay; #X text 284 272 on attack \, set a; #X text 278 305 recall sustain value; #X text 315 378 pack with decay time; #X text 605 332 on release ramp; #X text 606 349 back to zero; #X obj 462 329 * 0.01; #X text 47 567 Objects such as f and pack can be given dollar sign arguments to initialize their contents from adsr's creation arguments. Inlets are supplied to change them on the fly.; #X text 13 2 ADSR ENVELOPE; #X text 488 129 attack; #X text 555 128 decay; #X text 609 129 sustain; #X text 686 129 release; #X text 202 71 attack; #X obj 204 92 moses; #X obj 194 122 t b b; #X msg 128 290 0; #X text 20 273 optionally; #X text 10 291 bash to zero; #X text 25 246 ATTACK:; #X text 49 477 When you send this patch a positive trigger it schedules a line~ to do an attack and decay \, and if zero \, it starts the release ramp.; #X text 495 629 Updated for Pd version 0.37; #X text 255 89 test for negative trigger; #X text 253 113 if so \, zero; #X text 254 129 the output; #X text 278 165 in any case; #X text 303 355 multiply by peak level; #X text 280 286 delay for sustain; #X text 276 328 convert from percent; #X text 155 340 ... then; #X text 103 359 recall peak level; #X text 439 113 peak; #X text 281 149 ... do this; #X text 47 529 Negative triggers cause the output to jump to zero and then attack (instead of attacking from the current location).; #X text 208 1 Arguments: level \, attack time \, decay time \, sustain level \, release time. A \, D \, and R are in msec and S is in percent. This patch is used as an abstraction in various examples.; #X connect 0 0 3 0; #X connect 1 0 5 1; #X connect 1 0 18 1; #X connect 3 0 15 0; #X connect 3 0 16 0; #X connect 3 1 39 0; #X connect 4 0 5 0; #X connect 4 0 8 0; #X connect 5 0 6 0; #X connect 6 0 9 0; #X connect 7 0 6 1; #X connect 7 0 8 1; #X connect 8 0 10 0; #X connect 9 0
Re: [PD] channels and dac
Nikola Jeremic wrote: first set the number of channels you need with jack run pd with jack-audio make object [dac~ 1 2 3 4 5 6 7 8 That's possible. However what I'd like to do is to simply run pd (without -channels) and then be able to somehow *in a pd patch* select how many channels to use. it depends on your patch... more processing - more cpu :) so i belive more channels - more cpu corect me if im wrong I believe the same as you, but I'd like to know :-) -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://atte.dk/compositions ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list
Re: [PD] channels and dac
Derek Holzer wrote: Well, without any flags defined by the starting command or the saved settings, then PD would start with two channels (stereo) and adding more with the [adc~] or [dac~] would have no effect. Ok, so I need to specify on the commandline how many channels I need... I can tell you for sure that extra channels add extra CPU, due to PD maintaining connections with the audio drivers. I notice this when, for example, I use my Hammefall DSP with -channels 18 instead of -channels 2 or -channels 8 or whatever. Some audio drivers are greedier than others, so switching between them can show you a difference in load. Ok Of course, you can always test these things yourself ;-) Sure, 32 channels, pd idle uses 3,3%cpu, 2 channels, pd idle uses 2%. This is on my IBM T41 laptop running jack at 128/3 (latency 8,71 ms). But I was wondering if it had any impact that would be sporadic, but it seems not. However I'll modify my startup script to start with appropriate number of channels... -- peace, love harmony Atte http://atte.dk | http://myspace.com/attejensen http://anagrammer.dk | http://atte.dk/compositions ___ PD-list@iem.at mailing list UNSUBSCRIBE and account-management - http://lists.puredata.info/listinfo/pd-list