From nicholas.esterer at mail.mcgill.ca Wed Aug 1 00:44:19 2007 From: nicholas.esterer at mail.mcgill.ca (Nicholas Esterer) Date: Wed Aug 1 00:44:41 2007 Subject: [maxmsp] scratcher/scrubber Message-ID: <1b44c.46b02bc0@www.cycling74.com> Here're two failed attempts at making a patch that scratches through audio at the speed ones mouse, controller or vinyl record is moving. I am essentially trying to emulate scratching sounds with max. Any thoughts on my two failed attempts. Am I on the wrong path? #P window setfont "Sans Serif" 9.; #P window linecount 1; #P message 332 492 23 196617 10.; #P newex 281 396 43 196617 + 1000; #P newex 277 360 27 196617 *; #P newex 361 566 29 196617 sig~; #P flonum 362 549 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 353 530 27 196617 / 1.; #P newex 364 599 92 196617 groove~ thebuffer; #P message 352 267 64 196617 resolution 1; #P newex 356 461 55 196617 select 0 1; #P number 381 434 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P message 473 408 14 196617 1; #N counter; #X flags 0 0; #P newobj 381 411 66 196617 counter; #P flonum 359 505 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 359 483 35 196617 timer; #P button 353 387 15 0; #P newex 353 359 27 196617 >; #P user hslider 349 301 18 128 256 1 0 0; #P newex 54 231 29 196617 sig~; #P newex 400 151 37 196617 / 256; #P message 145 60 64 196617 resolution 1; #P button 236 124 15 0; #P user ezdac~ 56 260 100 293 0; #P message 106 179 43 196617 replace; #P message 92 50 45 196617 mult \$1; #P newex 313 178 66 196617 mstosamps~; #P newex 235 150 105 196617 info~ thebuffer; #P user hslider 91 81 18 128 127 1024 0 0; #P newex 106 198 122 196617 buffer~ thebuffer 30000; #P newex 93 145 81 196617 peek~ thebuffer; #P connect 14 0 28 0; #P connect 14 0 17 0; #P connect 16 0 23 1; #P connect 23 0 24 0; #P connect 28 0 23 0; #P connect 27 0 22 0; #P connect 26 0 27 0; #P connect 10 0 26 1; #P connect 12 0 26 0; #P connect 12 0 13 0; #P connect 12 0 13 1; #P fasten 4 1 10 0 374 201 393 201 393 144 405 144; #P connect 25 0 22 0; #P connect 24 0 25 0; #P connect 22 0 7 0; #P connect 22 0 7 1; #P connect 21 0 12 0; #P connect 19 0 20 0; #P connect 20 1 15 1; #P connect 20 0 15 0; #P connect 17 0 19 0; #P fasten 18 0 17 4 452 465; #P connect 15 0 16 0; #P connect 13 0 14 0; #P connect 11 0 7 0; #P connect 11 0 7 1; #P connect 0 0 11 0; #P connect 2 0 0 0; #P connect 9 0 2 0; #P connect 8 0 3 0; #P connect 6 0 1 0; #P connect 5 0 2 0; #P connect 3 6 4 0; #P window clipboard copycount 29; From Till_Knipper at hotmail.com Wed Aug 1 00:54:36 2007 From: Till_Knipper at hotmail.com (Till Knipper) Date: Wed Aug 1 00:54:42 2007 Subject: [maxmsp] Re: (off-topic) Sonogram visualisers In-Reply-To: <1a8f5.467c084a@www.cycling74.com> Message-ID: <1b44d.46b02e2a@www.cycling74.com> Let me conclude: There are lots of sonogram visualisers: - Frequency - Amadeus II - AudioXplorer 1.2 (real-time) http://www.arizona-software.ch/audioxplorer/ - http://www.sonicvisualiser.org/ - http://www.klingbeil.com/spear/ - http://www.birds.cornell.edu/brp/raven/Raven.html - scilab - Sonogram Visible Speech - Pratt analyser, - Mixviews and I can add praat (if pratt is a different program) That's far too much software to get to know and to use... I would like to use a sonogram which can be scrolled over a time distance of more than a few seconds. And it would be wonderful, if pitch can be seen easily. Audio sculpt should do all this. Is there cheaper freeware with the same features? Till From sfogar at gmail.com Wed Aug 1 01:17:33 2007 From: sfogar at gmail.com (Alessandro Fogar) Date: Wed Aug 1 01:17:38 2007 Subject: [maxmsp] Re: (off-topic) Sonogram visualisers In-Reply-To: <1b44d.46b02e2a@www.cycling74.com> References: <1a8f5.467c084a@www.cycling74.com> <1b44d.46b02e2a@www.cycling74.com> Message-ID: Hi, it's not cheap and it's only for Pc (I heard rumours that they are porting it for OS X) but I think that the 'Spectral View' in Adobe Audition is one of the best 'Sonogram like' views I used. http://www.adobe.com/products/audition http://www.adobe.com/products/creativesuite/production/ All the best Alessandro Fogar 2007/8/1, Till Knipper : > > Let me conclude: > There are lots of sonogram visualisers: > - Frequency > - Amadeus II > - AudioXplorer 1.2 (real-time) http://www.arizona-software.ch/audioxplorer/ > - http://www.sonicvisualiser.org/ > - http://www.klingbeil.com/spear/ > - http://www.birds.cornell.edu/brp/raven/Raven.html > - scilab > - Sonogram Visible Speech > - Pratt analyser, > - Mixviews > and I can add praat (if pratt is a different program) > > That's far too much software to get to know and to use... > I would like to use a sonogram which can be scrolled over a time distance of more than a few seconds. And it would be wonderful, if pitch can be seen easily. Audio sculpt should do all this. Is there cheaper freeware with the same features? > Till > _______________________________________________ > maxmsp mailing list > maxmsp@cycling74.com > http://www.cycling74.com/mailman/listinfo/maxmsp > -- Alessandro Fogar http://www.fogar.it From pdelges at radiantslab.com Wed Aug 1 01:31:26 2007 From: pdelges at radiantslab.com (Patrick Delges) Date: Wed Aug 1 01:31:32 2007 Subject: [maxmsp] Re: Keeping oscillators in sync in a two oscillator synthesizer In-Reply-To: <1b44b.46b00e4a@www.cycling74.com> References: <1b44b.46b00e4a@www.cycling74.com> Message-ID: <8488e85a6d585d5efc772ce13302ebba@radiantslab.com> On 1 ao?t 07, at 06:38, Roben Kleene wrote: > When you say "oscillators aren't typically synced like this" -- Do you > mean (for example) that in most dual oscillator software synthesizers > that the oscillators aren't synced? I ask, since this is the setup I > am trying to replicate. In some hardware synths (like in my Synton Syrinx & Doepfer A100), it is possible to sync the oscillators. There are 2 techniques: hard and soft sync. The main idea is to retrig the slave (i.e. synced) oscillator each time the master oscillator finished one cycle. There are some explanations here: http://en.wikipedia.org/wiki/Oscillator_sync _____________________________ Patrick Delges Centre de Recherches et de Formation Musicales de Wallonie asbl http://users.skynet.be/crfmw/max From pvillez at gmail.com Wed Aug 1 01:46:50 2007 From: pvillez at gmail.com (Pere Josep Villez) Date: Wed Aug 1 01:46:57 2007 Subject: [maxmsp] Re: Keeping oscillators in sync in a two oscillator synthesizer In-Reply-To: <8488e85a6d585d5efc772ce13302ebba@radiantslab.com> References: <1b44b.46b00e4a@www.cycling74.com> <8488e85a6d585d5efc772ce13302ebba@radiantslab.com> Message-ID: Look in the examples in Max/Msp there is a "how to" hard sync . The tri~ saw~ and squ~ have a sync input. On 01/08/07, Patrick Delges wrote: > > On 1 ao?t 07, at 06:38, Roben Kleene wrote: > > > When you say "oscillators aren't typically synced like this" -- Do you > > mean (for example) that in most dual oscillator software synthesizers > > that the oscillators aren't synced? I ask, since this is the setup I > > am trying to replicate. > > In some hardware synths (like in my Synton Syrinx & Doepfer A100), it > is possible to sync the oscillators. There are 2 techniques: hard and > soft sync. The main idea is to retrig the slave (i.e. synced) > oscillator each time the master oscillator finished one cycle. > > There are some explanations here: > > http://en.wikipedia.org/wiki/Oscillator_sync > > _____________________________ > Patrick Delges > > Centre de Recherches et de Formation Musicales de Wallonie asbl > http://users.skynet.be/crfmw/max > > _______________________________________________ > maxmsp mailing list > maxmsp@cycling74.com > http://www.cycling74.com/mailman/listinfo/maxmsp > -- www.centuryofnoise.com www.perevillez.com From ian.okeeffe at ul.ie Wed Aug 1 03:29:57 2007 From: ian.okeeffe at ul.ie (ian0) Date: Wed Aug 1 03:32:18 2007 Subject: [maxmsp] MAX history inquiry Message-ID: <1b454.46b05287@www.cycling74.com> Hi there! I have been using MAX since 1997, but was wondering if anyone knew how early MAX supported video/image analysis, and the ability to isolate colours for selected areas of an image? I thought it might have been possible from about 1991, but I'm not sure. I know movement in an image was dealt with by then (Rokeby, VNS; Remus, Camera Musicale), but picking up RGB info and driving composition with it? I believe MAX was under the auspices of Opcode at the time, hence it is hard to delve into its past and the addition of features to its function list. Any help appreciated. Kind regards, ian0 From samuel.freeman at gmail.com Wed Aug 1 05:31:21 2007 From: samuel.freeman at gmail.com (Samuel Freeman) Date: Wed Aug 1 05:31:26 2007 Subject: [maxmsp] scratcher/scrubber In-Reply-To: <1b44c.46b02bc0@www.cycling74.com> References: <1b44c.46b02bc0@www.cycling74.com> Message-ID: <2591ffce0708010431o32400b70of0b384a4986fdbb2@mail.gmail.com> try this: go to the help for [sfplay~] open [p new features] open [p signal inputs] scroll up and you should find [p auto_scratcher] the output of this can be fed to groove~ using this is as a starting point you could give gestural control to the user by replacing the bits that make it 'auto' hope that helps sdf On 01/08/07, Nicholas Esterer wrote: > > Here're two failed attempts at making a patch that scratches through audio at the speed ones mouse, controller or vinyl record is moving. I am essentially trying to emulate scratching sounds with max. Any thoughts on my two failed attempts. Am I on the wrong path? > > #P window setfont "Sans Serif" 9.; > #P window linecount 1; > #P message 332 492 23 196617 10.; > #P newex 281 396 43 196617 + 1000; > #P newex 277 360 27 196617 *; > #P newex 361 566 29 196617 sig~; > #P flonum 362 549 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; > #P newex 353 530 27 196617 / 1.; > #P newex 364 599 92 196617 groove~ thebuffer; > #P message 352 267 64 196617 resolution 1; > #P newex 356 461 55 196617 select 0 1; > #P number 381 434 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; > #P message 473 408 14 196617 1; > #N counter; > #X flags 0 0; > #P newobj 381 411 66 196617 counter; > #P flonum 359 505 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; > #P newex 359 483 35 196617 timer; > #P button 353 387 15 0; > #P newex 353 359 27 196617 >; > #P user hslider 349 301 18 128 256 1 0 0; > #P newex 54 231 29 196617 sig~; > #P newex 400 151 37 196617 / 256; > #P message 145 60 64 196617 resolution 1; > #P button 236 124 15 0; > #P user ezdac~ 56 260 100 293 0; > #P message 106 179 43 196617 replace; > #P message 92 50 45 196617 mult \$1; > #P newex 313 178 66 196617 mstosamps~; > #P newex 235 150 105 196617 info~ thebuffer; > #P user hslider 91 81 18 128 127 1024 0 0; > #P newex 106 198 122 196617 buffer~ thebuffer 30000; > #P newex 93 145 81 196617 peek~ thebuffer; > #P connect 14 0 28 0; > #P connect 14 0 17 0; > #P connect 16 0 23 1; > #P connect 23 0 24 0; > #P connect 28 0 23 0; > #P connect 27 0 22 0; > #P connect 26 0 27 0; > #P connect 10 0 26 1; > #P connect 12 0 26 0; > #P connect 12 0 13 0; > #P connect 12 0 13 1; > #P fasten 4 1 10 0 374 201 393 201 393 144 405 144; > #P connect 25 0 22 0; > #P connect 24 0 25 0; > #P connect 22 0 7 0; > #P connect 22 0 7 1; > #P connect 21 0 12 0; > #P connect 19 0 20 0; > #P connect 20 1 15 1; > #P connect 20 0 15 0; > #P connect 17 0 19 0; > #P fasten 18 0 17 4 452 465; > #P connect 15 0 16 0; > #P connect 13 0 14 0; > #P connect 11 0 7 0; > #P connect 11 0 7 1; > #P connect 0 0 11 0; > #P connect 2 0 0 0; > #P connect 9 0 2 0; > #P connect 8 0 3 0; > #P connect 6 0 1 0; > #P connect 5 0 2 0; > #P connect 3 6 4 0; > #P window clipboard copycount 29; > > _______________________________________________ > maxmsp mailing list > maxmsp@cycling74.com > http://www.cycling74.com/mailman/listinfo/maxmsp > From dan at defectiverecords.com Wed Aug 1 05:41:55 2007 From: dan at defectiverecords.com (Dan Nigrin) Date: Wed Aug 1 05:42:17 2007 Subject: [maxmsp] saving CPU with poly~ Message-ID: <1b459.46b07181@www.cycling74.com> I have a patcher that is used many times in my application - the relevant part is reproduced below. My problem is that the CPU consumption of my patch is huge, probably because I'm sending zero signals through all of the gate~ outlets that are closed. I was thinking about putting each send~ in it's own poly~, and then sending "mute 1" or "mute 0" messages to each one when the gate switches it off/on... Is that the best approach? Thanks, Dan [img]index.php?t=getfile&id=776&private=0[/img] #P window setfont "Sans Serif" 9.; #P window linecount 1; #P newex 158 141 45 196617 send~ C; #P newex 205 141 45 196617 send~ D; #P newex 253 141 44 196617 send~ E; #P newex 111 141 45 196617 send~ B; #P newex 62 141 46 196617 send~ A; #P number 136 77 35 9 0 11 3 3 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 192 77 61 196617 cycle~ 440; #P newex 136 103 66 196617 gate~ 5; #P connect 0 2 7 0; #P connect 0 1 4 0; #P connect 0 0 3 0; #P connect 2 0 0 0; #P connect 1 0 0 1; #P connect 0 3 6 0; #P connect 0 4 5 0; #P window clipboard copycount 8; -- Dan Nigrin Defective Records 202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X / Major Malfunction http://www.defectiverecords.com http://www.jackosx.com -------------- next part -------------- A non-text attachment was scrubbed... Name: gate-poly.jpg Type: image/jpeg Size: 9887 bytes Desc: not available Url : http://www.cycling74.com/pipermail/maxmsp/attachments/20070801/e434b57d/gate-poly.jpg From lists at lowfrequency.org Wed Aug 1 05:47:37 2007 From: lists at lowfrequency.org (evan.raskob [lists]) Date: Wed Aug 1 05:47:50 2007 Subject: [maxmsp] Keeping oscillators in sync in a two oscillator synthesizer In-Reply-To: <46B00181.4040309@post.cybercity.dk> References: <1b446.46afeee6@www.cycling74.com> <46B00181.4040309@post.cybercity.dk> Message-ID: <0EB5ADEC-1648-4586-BB7B-3C9AD9E4127A@lowfrequency.org> Look into rate~ ? On Jul 31, 2007, at 11:44 PM, Andreas Wetterberg wrote: > Roben Kleene skrev: >> Hi there, >> >> I am building a simple two oscillator synthesizer and I am running >> into problems with the two oscillators getting out of sync with >> each other. [...] (Since the goal of this project is to emulate >> basic common synth functionality, in this case the "right >> solution" would be whatever solution most other software/hardware >> synths use). > Hi Roben, > well, oscillators aren't typically synced like this - and moreover > it's not a typical operation to have two oscillators at the exact > same settings - since 1 is enough for this. > The general idea of using multiple oscillators is to have multiple > settings. > > If you particularly like the sound of oscillators phasing I would > simply add a static phaser effect to the synth and be done with. > > Andreas. > _______________________________________________ > maxmsp mailing list > maxmsp@cycling74.com > http://www.cycling74.com/mailman/listinfo/maxmsp From pelado-mail at pelado.co.uk Wed Aug 1 06:50:59 2007 From: pelado-mail at pelado.co.uk (pelado) Date: Wed Aug 1 06:51:03 2007 Subject: [maxmsp] Re: Keeping oscillators in sync in a two oscillator synthesizer In-Reply-To: <0EB5ADEC-1648-4586-BB7B-3C9AD9E4127A@lowfrequency.org> Message-ID: <1b45c.46b081b2@www.cycling74.com> you might find the oscsync-advanced.pat patch of interest. its in the oscsync-folder in the examples. there is a method for syncing oscillators there. pelado -- http://www.pelado.co.uk From jeanfrancois.charles at newflore.org Wed Aug 1 08:02:44 2007 From: jeanfrancois.charles at newflore.org (Jean-Fran=?ISO-8859-1?B?5w==?=ois Charles) Date: Wed Aug 1 08:02:53 2007 Subject: [maxmsp] Re: (off-topic) Sonogram visualisers In-Reply-To: Message-ID: On the same line, isn't there a sonogram also in Apple Soundtrack Pro? But maybe no pitch analysis. Another option is to build one, based on the Jitter example "jitter_pvoc_2D.pat" (installed by default), and add a pitch detection with [fiddle~] external. Jean-Fran?ois. At 8/1/07 3:17 AM, you wrote?: > Hi, > > it's not cheap and it's only for Pc (I heard rumours that they are > porting it for OS X) but I think that the 'Spectral View' in Adobe > Audition is one of the best 'Sonogram like' views I used. > > http://www.adobe.com/products/audition > > http://www.adobe.com/products/creativesuite/production/ > > All the best > > Alessandro Fogar > > 2007/8/1, Till Knipper : >> >> Let me conclude: >> There are lots of sonogram visualisers: >> - Frequency >> - Amadeus II >> - AudioXplorer 1.2 (real-time) http://www.arizona-software.ch/audioxplorer/ >> - http://www.sonicvisualiser.org/ >> - http://www.klingbeil.com/spear/ >> - http://www.birds.cornell.edu/brp/raven/Raven.html >> - scilab >> - Sonogram Visible Speech >> - Pratt analyser, >> - Mixviews >> and I can add praat (if pratt is a different program) >> >> That's far too much software to get to know and to use... >> I would like to use a sonogram which can be scrolled over a time distance of >> more than a few seconds. And it would be wonderful, if pitch can be seen >> easily. Audio sculpt should do all this. Is there cheaper freeware with the >> same features? >> Till >> _______________________________________________ >> maxmsp mailing list >> maxmsp@cycling74.com >> http://www.cycling74.com/mailman/listinfo/maxmsp >> > From awetterberg at post.cybercity.dk Wed Aug 1 08:23:42 2007 From: awetterberg at post.cybercity.dk (Andreas Wetterberg) Date: Wed Aug 1 08:23:56 2007 Subject: [maxmsp] Re: Keeping oscillators in sync in a two oscillator synthesizer In-Reply-To: <1b44b.46b00e4a@www.cycling74.com> References: <1b44b.46b00e4a@www.cycling74.com> Message-ID: <46B0976E.90902@post.cybercity.dk> Roben Kleene skrev: > Hi Andreas, > > Thanks for the response. > > When you say "oscillators aren't typically synced like this" -- Do you mean (for example) that in most dual oscillator software synthesizers that the oscillators aren't synced? I ask, since this is the setup I am trying to replicate. > You're right - as others have pointed out, syncing of oscillators provides quite a different range of sounds. > I know that in general, the idea is for multiple oscillators to have multiple settings. But with most dual oscillator synthesizers you can set both oscillators to have same settings, so I would like my synthesizer to behave "correctly" in those circumstances. There are reasons you'd want to do this, for example if you wanted to apply further processing to only one of the oscillators later. > I can definitely see the rationale behind wanting to do this, but two identical oscillators being processed differently doesn't do anything a mixing matrix can't handle - simply split the signal and send it different places. Andreas. From mzed at cnmat.berkeley.edu Wed Aug 1 12:07:05 2007 From: mzed at cnmat.berkeley.edu (mzed) Date: Wed Aug 1 12:07:09 2007 Subject: [maxmsp] Re: saving CPU with poly~ In-Reply-To: <1b459.46b07181@www.cycling74.com> Message-ID: <1b47e.46b0cbc7@www.cycling74.com> Quote: Dan Nigrin wrote on Wed, 01 August 2007 04:41 ---------------------------------------------------- > I have a patcher that is used many times in my application - the relevant part is reproduced below. My problem is that the CPU consumption of my patch is huge, probably because I'm sending zero signals through all of the gate~ outlets that are closed. > > I was thinking about putting each send~ in it's own poly~, and then sending "mute 1" or "mute 0" messages to each one when the gate switches it off/on... Is that the best approach? > It's been a while since I ran these experiments, so YMMV. One idea: when doing a 14 channel piece with much poly~ use, I found that scripting the patch cords I need (and not the ones I don't) saved me a lot of overhead. That might not fit your situation. Second idea: I found that manging signal routing with matrix~ was pretty efficient... probably more so than a number of small gate~'s. A comment: make sure you "zero" any sends before you mute them. If I recall, send~ holds the last signal vector it has gotten when it gets muted. good luck, mz -- || michael f. zbyszynski -- molecular gastronimist || http://www.cnmat.berkeley.edu/ || http://www.mikezed.com/ From dan at defectiverecords.com Wed Aug 1 12:57:06 2007 From: dan at defectiverecords.com (Dan Nigrin) Date: Wed Aug 1 12:57:19 2007 Subject: [maxmsp] Re: saving CPU with poly~ In-Reply-To: <1b47e.46b0cbc7@www.cycling74.com> References: <1b47e.46b0cbc7@www.cycling74.com> Message-ID: Thanks Michael, In my application, the signal connections (basically, the input into the gate~) is changing very frequently (on the order of tens to hundreds of milliseconds), so I'm not sure if the scripting approach will work... I'll give matrix~ a try... Thanks, Dan >One idea: when doing a 14 channel piece with much poly~ use, I found >that scripting the patch cords I need (and not the ones I don't) >saved me a lot of overhead. That might not fit your situation. > >Second idea: I found that manging signal routing with matrix~ was >pretty efficient... probably more so than a number of small gate~'s. > >A comment: make sure you "zero" any sends before you mute them. If >I recall, send~ holds the last signal vector it has gotten when it >gets muted. -- Dan Nigrin Defective Records 202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X / Major Malfunction http://www.defectiverecords.com http://www.jackosx.com From e.lyon at qub.ac.uk Wed Aug 1 13:43:50 2007 From: e.lyon at qub.ac.uk (Eric Lyon) Date: Wed Aug 1 13:44:17 2007 Subject: [maxmsp] Re: saving CPU with poly~ In-Reply-To: Message-ID: <1b485.46b0e274@www.cycling74.com> Hi Dan, I have had excellent results using poly~ to curb CPU-usage. Just put each block of DSP that can be turned on and off as a unit into a 1-voice poly~ and then organize your DSP economy in the main patch, such that every poly~ subpatch is only turned on when you need it. I recommend to avoid using send~/receive~ inside of poly~ to communicate with the outside world, as this can introduce noticeable timing discrepancies. Best to use in~ and out~ instead. HtH, Eric From dan at defectiverecords.com Wed Aug 1 14:01:47 2007 From: dan at defectiverecords.com (Dan Nigrin) Date: Wed Aug 1 14:02:10 2007 Subject: [maxmsp] Re: saving CPU with poly~ In-Reply-To: <1b485.46b0e274@www.cycling74.com> References: <1b485.46b0e274@www.cycling74.com> Message-ID: Thanks Eric - that was my original inclination, and I will give it a try. Also thanks re: the send~ inside the poly~ - I'll be sure to get the audio out of the poly~ first with out~, then send~ after that. Dan >I have had excellent results using poly~ to curb CPU-usage. Just put >each block of DSP that can be turned on and off as a unit into a >1-voice poly~ and then organize your DSP economy in the main patch, >such that every poly~ subpatch is only turned on when you need it. I >recommend to avoid using send~/receive~ inside of poly~ to >communicate with the outside world, as this can introduce noticeable >timing discrepancies. Best to use in~ and out~ instead. > -- Dan Nigrin Defective Records 202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X / Major Malfunction http://www.defectiverecords.com http://www.jackosx.com From djiamnot at gmail.com Wed Aug 1 15:09:38 2007 From: djiamnot at gmail.com (Mike) Date: Wed Aug 1 15:09:43 2007 Subject: [maxmsp] [Java] abstractions -vs- subpatches Message-ID: <1b488.46b0f691@www.cycling74.com> Hello, I am coding some Java thingies for work and pleasure. I would like to test my patches for subpatches and abstractions. I know that MaxBox has isPatcher() method, which is very helpful and there also is getFilePath() in MaxPatcher. With these 2, half of my toy is done but what I cannot figure out is how to make a distinction between a subpatch and an abstraction (other than doing some regex on what getFilePath() reports but I was thinking that there must be a simpler way,no?) thanks for any pointers. ./MiS From doudoudalex at yahoo.fr Wed Aug 1 15:24:37 2007 From: doudoudalex at yahoo.fr (dGarden) Date: Wed Aug 1 15:24:43 2007 Subject: [maxmsp] Re: scratcher/scrubber In-Reply-To: <1b44c.46b02bc0@www.cycling74.com> Message-ID: <1b48c.46b0fa14@www.cycling74.com> here's a solution using [play~] : max v2; #N vpatcher 382 105 842 387; #P origin 0 -30; #P window setfont "Sans Serif" 9.; #P hidden newex 447 119 38 9109513 pipe 50; #P hidden newex 447 143 19 9109513 t 1; #P hidden newex 447 87 66 9109513 loadmess 120; #P window setfont "Sans Serif" 18.; #P comment 319 24 100 9109522 dG_scratch; #B frgb 21 56 9; #P window setfont "Sans Serif" 9.; #P comment 274 49 148 9109513 alex.thedigitalgarden@gmail.com; #P user panel 225 19 198 48; #X brgb 248 145 0; #X frgb 0 0 0; #X border 0; #X rounded 0; #X shadow 2; #X done; #P hidden newex 192 89 19 9109513 t b; #P hidden newex 222 310 38 9109513 pipe 50; #P hidden newex 118 60 65 9109513 r bufferlenght; #P hidden newex 194 336 67 9109513 s bufferlenght; #P hidden newex 297 317 65 9109513 r bufferlenght; #P hidden newex 427 47 92 9109513 bgcolor 200 200 200; #P comment 63 240 21 9109513 or; #P comment 24 240 21 9109513 rec; #P toggle 44 239 17 0; #N vpatcher 447 225 767 537; #P origin -17 0; #P window setfont "Sans Serif" 9.; #P window linecount 1; #P newex 14 272 67 9109513 s bufferlenght; #P window linecount 0; #P newex 44 185 27 9109513 t f f; #P newex 74 92 27 9109513 t 1 5; #P newex 74 69 43 9109513 sel 1; #P newex 201 161 27 9109513 t i i; #N comlet connect to rec on/off; #P outlet 61 253 15 0; #P message 61 232 14 9109513 0; #P window linecount 1; #P newex 61 208 150 9109513 sel 5000; #N comlet duree enregistrement; #P inlet 201 48 15 0; #P window linecount 0; #P newex 201 125 35 9109513 * 1000; #P number 201 69 35 9 1 120 3 139 0 0 0 221 221 221 222 222 222 0 0 0; #P message 218 186 37 9109513 size \$1; #P newex 218 208 73 9109513 buffer~ scratch; #B color 5; #P newex 14 46 70 9109513 t i i i; #P newex 14 162 28 9109513 sel 0; #P newex 14 208 40 9109513 float; #P newex 44 162 49 9109513 clocker 1.; #B color 5; #P newex 118 126 70 9109513 adc~; #P newex 118 162 73 9109513 record~ scratch; #B color 5; #P inlet 14 26 15 0; #P connect 0 0 6 0; #P connect 6 0 5 0; #P connect 5 0 4 0; #P connect 4 0 19 0; #P connect 6 1 3 0; #P connect 3 0 18 0; #P connect 18 0 4 1; #P connect 18 1 12 0; #P connect 12 0 13 0; #P connect 13 0 14 0; #P connect 6 2 16 0; #P connect 16 0 17 0; #P connect 2 0 1 0; #P fasten 2 1 1 0 183 152 123 152; #P fasten 16 1 1 0 112 157 123 157; #P fasten 17 0 1 0 79 157 123 157; #P connect 11 0 9 0; #P connect 9 0 10 0; #P fasten 17 1 10 0 96 117 206 117; #P connect 10 0 15 0; #P connect 15 0 12 1; #P connect 15 1 8 0; #P connect 8 0 7 0; #P pop; #P hidden newobj 44 288 68 9109513 p rec; #P toggle 393 207 31 0; #P hidden newex 349 253 28 9109513 dac~; #P hidden newex 280 253 44 9109513 zl slice 1; #P hidden newex 192 111 59 9109513 loadmess 0.; #P hidden message 8 112 33 9109513 line \$1; #P hidden message 280 367 36 9109513 \$1 100; #P hidden newex 280 340 27 9109513 * 1.; #P hidden newex 144 288 105 9109513 info~ scratch; #B color 5; #P user meter~ 380 135 394 238 50 0 168 0 103 103 103 255 153 0 255 0 0 217 217 0 153 186 0 12 3 3 3 3; #P user gain~ 349 135 32 81 158 0 1.071519 7.94321 10.; #P hidden newex 44 110 98 9109513 loadmess set scratch; #P user waveform~ 44 135 306 103 139 9; #W mode none; #W mouseoutput continuous; #W unit ms; #W grid 0.; #W ticks 0; #W labels 0; #W vlabels 0; #W vticks 0; #W bpm 0.001 1.; #W frgb 248 202 83; #W brgb 248 145 0; #W rgb2 255 255 255; #W rgb3 0 0 0; #W rgb4 0 0 0; #W rgb5 187 204 160; #W rgb6 0 0 0; #W rgb7 75 75 75; #P hidden newex 280 387 42 9109513 line~ 1.; #P message 81 239 41 9109513 replace; #P hidden newex 280 408 65 9109513 play~ scratch; #B color 5; #P hidden newex 81 262 73 9109513 buffer~ scratch; #B color 5; #P comment 393 194 33 9109513 on/off; #P hidden fasten 10 0 12 0 285 362 4 362 4 110 13 110; #P hidden fasten 12 0 5 0 13 132 49 132; #P hidden connect 6 0 5 0; #P hidden fasten 17 0 18 0 49 311 19 311 19 233 49 233; #P hidden connect 18 0 17 0; #P hidden connect 3 0 1 0; #P hidden connect 24 0 5 1; #P hidden connect 1 1 9 0; #P hidden fasten 24 0 26 0 123 84 197 84; #P hidden connect 26 0 13 0; #P hidden connect 13 0 5 2; #P hidden fasten 25 0 23 0 227 332 199 332; #P hidden connect 9 6 25 0; #P hidden fasten 13 0 5 3 197 132 271 132; #P hidden connect 5 4 14 0; #P hidden connect 14 0 10 0; #P hidden connect 10 0 11 0; #P hidden connect 11 0 4 0; #P hidden connect 4 0 2 0; #P hidden connect 22 0 10 1; #P hidden fasten 30 0 7 0 452 112 354 112; #P hidden fasten 2 0 7 0 285 430 442 430 442 125 354 125; #P hidden fasten 16 0 15 0 398 241 354 241; #P hidden connect 7 0 15 0; #P hidden fasten 7 0 15 1 354 246 372 246; #P hidden connect 7 0 8 0; #P hidden fasten 31 0 16 0 452 169 398 169; #P hidden connect 30 0 32 0; #P hidden connect 32 0 31 0; #P pop; From doudoudalex at yahoo.fr Wed Aug 1 15:48:17 2007 From: doudoudalex at yahoo.fr (dGarden) Date: Wed Aug 1 15:48:21 2007 Subject: [maxmsp] Re: changing forum account email In-Reply-To: <1b25c.46a747b8@www.cycling74.com> Message-ID: <1b48f.46b0ffa1@www.cycling74.com> I tried too, and no anwser ... From wally at cycling74.com Wed Aug 1 17:05:12 2007 From: wally at cycling74.com (Wallace Winfrey) Date: Wed Aug 1 17:05:30 2007 Subject: [maxmsp] Re: changing forum account email In-Reply-To: <1b48f.46b0ffa1@www.cycling74.com> References: <1b48f.46b0ffa1@www.cycling74.com> Message-ID: <46B111A8.4030906@cycling74.com> dGarden wrote: > I tried too, and no anwser ... Your emails were filtered into my spam folder. I will take care of them ASAP. thx w From xlight63 at hotmail.com Wed Aug 1 17:13:26 2007 From: xlight63 at hotmail.com (UCDMSRA) Date: Wed Aug 1 17:13:30 2007 Subject: [maxmsp] Random between +/- 128.0?? Message-ID: <1b492.46b11394@www.cycling74.com> Hi, I think maybe I didn't sleep very well these days so when I need to create a random number between +128.0 and -128.0, my brain suddenly stopped and feels like empty..... I know "random" can only make 0+ numbers. I also think of the possibilities by put "-" after random to make the number below 0....however, I still want to make "real" random number between +/-128.0 and it is must be float number, so the result will be something like "9.5, -4.8, 25.4, 46.7, 53.6, -42,1...." If you know how to do it, would you please pleas tell me? thanks From c74-mailinglists at e--j.com Wed Aug 1 17:22:21 2007 From: c74-mailinglists at e--j.com (Emmanuel Jourdan) Date: Wed Aug 1 17:22:43 2007 Subject: [maxmsp] Random between +/- 128.0?? In-Reply-To: <1b492.46b11394@www.cycling74.com> References: <1b492.46b11394@www.cycling74.com> Message-ID: On 2 ao?t 07, at 01:13, UCDMSRA wrote: > I think maybe I didn't sleep very well these days so when I need to > create a random number between +128.0 and -128.0, my brain suddenly > stopped and feels like empty..... > > I know "random" can only make 0+ numbers. I also think of the > possibilities by put "-" after random to make the number below > 0....however, I still want to make "real" random number between > +/-128.0 and it is must be float number, so the result will be > something like "9.5, -4.8, 25.4, 46.7, 53.6, -42,1...." random 2570 | / 10. | - 128. should do it, or something like "expr random(-12800 \, 129000) * 0.001". You could also use "jstrigger (Math.random()*257 - 128)". ej From keithmanlove at gmail.com Wed Aug 1 17:27:43 2007 From: keithmanlove at gmail.com (keith manlove) Date: Wed Aug 1 17:27:48 2007 Subject: [maxmsp] Random between +/- 128.0?? In-Reply-To: <1b492.46b11394@www.cycling74.com> References: <1b492.46b11394@www.cycling74.com> Message-ID: <64ab801a0708011627i62b6acfas14b98f80cda56bed@mail.gmail.com> here's one of many: #N vpatcher 10 59 610 459; #P button 65 40 15 0; #P window setfont "Sans Serif" 9.; #P flonum 65 136 40 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P window linecount 1; #P newex 65 112 39 196617 - 128.; #P newex 65 88 34 196617 / 10.; #P newex 65 62 70 196617 random 2560; #P connect 4 0 0 0; #P connect 0 0 1 0; #P connect 1 0 2 0; #P connect 2 0 3 0; It really helps to start thinking of numbers in max like this. Keith On 8/1/07, UCDMSRA wrote: > > Hi, > > I think maybe I didn't sleep very well these days so when I need to create a random number between +128.0 and -128.0, my brain suddenly stopped and feels like empty..... > > I know "random" can only make 0+ numbers. I also think of the possibilities by put "-" after random to make the number below 0....however, I still want to make "real" random number between +/-128.0 and it is must be float number, so the result will be something like "9.5, -4.8, 25.4, 46.7, 53.6, -42,1...." > > If you know how to do it, would you please pleas tell me? > > thanks > _______________________________________________ > maxmsp mailing list > maxmsp@cycling74.com > http://www.cycling74.com/mailman/listinfo/maxmsp > From xlight63 at hotmail.com Wed Aug 1 17:52:09 2007 From: xlight63 at hotmail.com (UCDMSRA) Date: Wed Aug 1 17:52:16 2007 Subject: [maxmsp] Re: Random between +/- 128.0?? In-Reply-To: Message-ID: <1b495.46b11ca8@www.cycling74.com> Quote: Emmanuel Jourdan wrote on Wed, 01 August 2007 17:22 ---------------------------------------------------- > On 2 ao?t 07, at 01:13, UCDMSRA wrote: > > > I think maybe I didn't sleep very well these days so when I need to > > create a random number between +128.0 and -128.0, my brain suddenly > > stopped and feels like empty..... > > > > I know "random" can only make 0+ numbers. I also think of the > > possibilities by put "-" after random to make the number below > > 0....however, I still want to make "real" random number between > > +/-128.0 and it is must be float number, so the result will be > > something like "9.5, -4.8, 25.4, 46.7, 53.6, -42,1...." > > random 2570 > | > / 10. > | > - 128. > > should do it, or something like "expr random(-12800 \, 129000) * > 0.001". You could also use "jstrigger (Math.random()*257 - 128)". > > ej > > > > ---------------------------------------------------- Awesome..........why can't I think it by that way? really appreciate you guys. thanks a lot From cbm at well.com Wed Aug 1 17:54:25 2007 From: cbm at well.com (Chris Muir) Date: Wed Aug 1 17:55:04 2007 Subject: [maxmsp] Random between +/- 128.0?? In-Reply-To: <1b492.46b11394@www.cycling74.com> References: <1b492.46b11394@www.cycling74.com> Message-ID: At 5:13 PM -0600 8/1/07, UCDMSRA wrote: >Hi, > >I think maybe I didn't sleep very well these days so when I need to create a random number between +128.0 and -128.0, my brain suddenly stopped and feels like empty..... > >I know "random" can only make 0+ numbers. I also think of the possibilities by put "-" after random to make the number below 0....however, I still want to make "real" random number between +/-128.0 and it is must be float number, so the result will be something like "9.5, -4.8, 25.4, 46.7, 53.6, -42,1...." Scale will scale one number range to another. Something like: #P button 58 89 15 0; #P window setfont "Sans Serif" 9.; #P flonum 58 149 70 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P window linecount 1; #P newex 58 129 140 196617 scale 0 10000 -128. 128.; #P newex 58 108 76 196617 random 10000; #P connect 1 0 2 0; #P connect 0 0 1 0; #P connect 3 0 0 0; #P window clipboard copycount 4; -C -- Chris Muir | "There are many futures and only one status quo. cbm@well.com | This is why conservatives mostly agree, http://www.xfade.com | and radicals always argue." - Brian Eno From martini1 at gmx.at Wed Aug 1 19:39:04 2007 From: martini1 at gmx.at (Martin Ritter) Date: Wed Aug 1 19:39:07 2007 Subject: [maxmsp] Re: Speech Recognition In-Reply-To: <1b444.46afd4e2@www.cycling74.com> Message-ID: <1b497.46b135b7@www.cycling74.com> I was trying the aka.listen object and all I get is error messages!!! No matter what message I send into the object I get ID= -5104 Any idea if that is me or the object??? Thanks From mhatsys at gmail.com Wed Aug 1 21:13:59 2007 From: mhatsys at gmail.com (mHatsys) Date: Wed Aug 1 21:14:09 2007 Subject: [maxmsp] Storing Values for use with MAX Runtime Message-ID: <1b499.46b14bf4@www.cycling74.com> Hello good people, Just made a nice patch that id like to have available free from my website. In the patch, I used a table to store ( number ) values for a session, then Loadbang them back to he proper places in the patch. Great! but after i made the path into a collective, it no longer is able to save the values for the current sesion and then loadbang them the next time the patch is opened - using MAX Runtime. Im guessing this is due to the fact that nothing can be modified in a patch using the Runtime. next I tried the Preset Object - same thing, no luck with the runtime. Anyone have any suggestions on how to save simple intergers in Numberboxes with a patch so the next time a user opens it up, the most recent values xill be loaded up with the patch? Thanks, Mike - oh yeah did a searchof the forum, checked through all MAX tutorials and documentation From cbm at well.com Wed Aug 1 21:44:32 2007 From: cbm at well.com (Chris Muir) Date: Wed Aug 1 21:44:38 2007 Subject: [maxmsp] Storing Values for use with MAX Runtime In-Reply-To: <1b499.46b14bf4@www.cycling74.com> References: <1b499.46b14bf4@www.cycling74.com> Message-ID: pattrstorage? coll w/ some ui to save & read a file from disk? -C At 9:13 PM -0600 8/1/07, mHatsys wrote: >Hello good people, > Just made a nice patch that id like to have available free from my website. In the patch, I used a table to store ( number ) values for a session, then Loadbang them back to he proper places in the patch. >Great! >but after i made the path into a collective, it no longer is able to save the values for the current sesion and then loadbang them the next time the patch is opened - using MAX Runtime. > Im guessing this is due to the fact that nothing can be modified in a patch using the Runtime. >next I tried the Preset Object - same thing, no luck with the runtime. > Anyone have any suggestions on how to save simple intergers in Numberboxes with a patch so the next time a user opens it up, the most recent values xill be loaded up with the patch? >Thanks, >Mike > >- oh yeah did a searchof the forum, checked through all MAX tutorials and documentation >_______________________________________________ >maxmsp mailing list >maxmsp@cycling74.com >http://www.cycling74.com/mailman/listinfo/maxmsp -- Chris Muir | "There are many futures and only one status quo. cbm@well.com | This is why conservatives mostly agree, http://www.xfade.com | and radicals always argue." - Brian Eno From robenk at gmail.com Wed Aug 1 22:31:39 2007 From: robenk at gmail.com (Roben Kleene) Date: Wed Aug 1 22:31:45 2007 Subject: [maxmsp] Re: Keeping oscillators in sync in a two oscillator synthesizer In-Reply-To: <1b446.46afeee6@www.cycling74.com> Message-ID: <1b49b.46b15e2a@www.cycling74.com> Hi Everyone, Thanks for all the suggestions. I didn't realize there was an example patch that showed a syncing implementation, that will be very helpful. I am still not positive that this is the right solution. I realize now that I think that I could have better described the problem as "out of phase", instead of "out of sync". Syncing is really what Patrick Delges describe in his comment above. I think that there is a good chance that the solution will be the same though, since two oscillators that are synced at the same frequency must also be "in phase" as well. This is the potential solution I am going to explore for now anyway. Thanks again for all the comments! -Roben From mhatsys at gmail.com Wed Aug 1 22:36:24 2007 From: mhatsys at gmail.com (mHatsys) Date: Wed Aug 1 22:36:30 2007 Subject: [maxmsp] Re: Storing Values for use with MAX Runtime In-Reply-To: Message-ID: <1b49d.46b15f48@www.cycling74.com> Thanks for the reply. I was just looking for something simple, that would take little to no effort for the user to do. The way i had my patch work is it would just store the most recent values in a table, then the next time the user opened up the patch, those values would get loadbanged into a specific number box. So it just automatically saved the last user chosen values - without any interaction from the user. then i tried the same with a preset object. I just have a hunch once people see XML file, there gonna get scared? Then forget where they saved it So theres no real way to have values stored in a subpatch or something? some storage area thats part of the patch file? Guess il look into the coll object... Thanks again!! Michael From adamjmurray at gmail.com Thu Aug 2 00:27:05 2007 From: adamjmurray at gmail.com (Adam Murray) Date: Thu Aug 2 00:27:29 2007 Subject: [maxmsp] Re: Keeping oscillators in sync in a two oscillator synthesizer In-Reply-To: <1b49b.46b15e2a@www.cycling74.com> Message-ID: <1b49e.46b17936@www.cycling74.com> This thread got me wondering... When using "symmetric" oscillators (tri~, rect~, sine waves) in a poly~, if two voices are set to the same frequency and happen to be 180 degrees out of phase, the signal would cancel out (or at least significantly attenuate since exact 180 degree phase difference seems unlikely). In practice this hasn't been a problem for me, but I am wondering if other people compensate for this in poly~ patches? -Adam From mhatsys at gmail.com Thu Aug 2 00:52:58 2007 From: mhatsys at gmail.com (mHatsys) Date: Thu Aug 2 00:53:02 2007 Subject: [maxmsp] Re: Storing Values for use with MAX Runtime In-Reply-To: <1b499.46b14bf4@www.cycling74.com> Message-ID: <1b49f.46b17f49@www.cycling74.com> OK, so i can just make a .plist or .ini file with the xml. that works... From robenk at gmail.com Thu Aug 2 01:33:01 2007 From: robenk at gmail.com (Roben Kleene) Date: Thu Aug 2 01:33:05 2007 Subject: [maxmsp] Re: Keeping oscillators in sync in a two oscillator synthesizer In-Reply-To: <1b49e.46b17936@www.cycling74.com> Message-ID: <1b4a0.46b188ab@www.cycling74.com> Hi Adam, After doing some more research, I believe that what you are describing is exactly the problem I was experiencing. When the waveforms are very slightly out of phase, portions of two waveforms cancel each other out which makes a significantly different sound then if the two waveforms are exactly in phase. On a final note, I tested out a few synthesizers and I've no concluded that (at least in some cases) the oscillators *are not* kept in phase. In fact, with 2 of the 3 synthesizers I tested, you could get the oscillators out of phase by simply turning off the second oscillator playing a note, and then turning it back on. It seems that every time you do this you get a different sound, even though all the settings on the synthesizer are identical. (In case anyone is wondering, the synthesizers I tested were SCB Synth, Reason's Subtracter, and Automat. The SCB Synth is the only one where the oscillators stayed in phase for the above test. This doesn't necessarily mean that it keeps the oscillators in phase, only that *when you play a note it always starts the oscillators in phase*). Since my goal for this project is to create a "standard" dual oscillator synthesizer, I am considering this problem sorted out. The information from this thread will still be coming in very handy, my next task is to implement a master oscillator/slave oscillator style sync feature. Thanks again! -Roben From derrickgiscloux at free.fr Thu Aug 2 02:45:21 2007 From: derrickgiscloux at free.fr (derrickgiscloux) Date: Thu Aug 2 02:45:25 2007 Subject: [maxmsp] Re: the most efficient ? In-Reply-To: <46AF2737.2010101@addcom.de> Message-ID: <1b4a1.46b199a0@www.cycling74.com> >On my machine Left does 10,000 calculations in around 74ms right >comes in at around 100ms Could you show me how to get that ? Or perhaps there is an example somewhere to know efficiency of a system from a patch ?? From mattijs at smadsteck.nl Thu Aug 2 04:51:21 2007 From: mattijs at smadsteck.nl (Mattijs Kneppers) Date: Thu Aug 2 04:52:06 2007 Subject: [maxmsp] fromsymbol auto-converts string to int: not always wishful Message-ID: <1b4a3.46b1b725@www.cycling74.com> Hi, Another fundamental drawback of the current string/symbol/datatyping system: I want to pick a sample from a folder named "Samples 01 sorted" and display the path in a textedit. I want to strip the path symbol's quotes. Here is what happens: #P window setfont "Sans Serif" 9.; #P window linecount 1; #P newex 67 48 56 196617 opendialog; #P user textedit 67 122 338 148 32896 3 9 Machintosh HD:/Samples 1 sorted/crash.aiff; #P message 129 48 229 196617 "Machintosh HD:/Samples 01 sorted/crash.aiff"; #P newex 67 100 62 196617 prepend set; #P newex 67 80 64 196617 fromsymbol; #P connect 4 0 0 0; #P connect 1 0 3 0; #P connect 2 0 0 0; #P connect 0 0 1 0; #P window clipboard copycount 5; Mattijs -- SmadSteck - http://www.smadsteck.nl Hard- and software for interactive audiovisual sampling From mattijs at smadsteck.nl Thu Aug 2 05:07:39 2007 From: mattijs at smadsteck.nl (Mattijs Kneppers) Date: Thu Aug 2 05:07:46 2007 Subject: [maxmsp] Re: fromsymbol auto-converts string to int: real problem In-Reply-To: <1b4a3.46b1b725@www.cycling74.com> Message-ID: <1b4a4.46b1baf9@www.cycling74.com> hmmmmm, it is even worse, sprintf does fromsymbol automatically: #P newex 74 107 51 196617 tosymbol; #P newex 74 161 69 196617 buffer~ temp; #P newex 74 141 68 196617 prepend read; #P message 194 161 219 196617 "Machintosh HD:/Samples 1 sorted/snare.aiff"; #P message 74 63 185 196617 "Machintosh HD:/Samples 01 sorted/"; #P newex 74 87 102 196617 sprintf %ssnare.aiff; #P newex 194 141 62 196617 prepend set; #P connect 6 0 4 0; #P connect 6 0 0 0; #P connect 1 0 6 0; #P connect 4 0 5 0; #P connect 0 0 3 0; #P connect 2 0 1 0; So this path has become incorrect. I get an error if I try to read it into buffer~. Since sprintf is the regular way to concatenate two strings this probably means I need to look for a greasy workaround with atoi and itoa. -not- amused ... Mattijs -- SmadSteck - http://www.smadsteck.nl Hard- and software for interactive audiovisual sampling From ingo at quitch.net Thu Aug 2 05:25:03 2007 From: ingo at quitch.net (ingo randolf) Date: Thu Aug 2 05:25:06 2007 Subject: [maxmsp] textedit bug! Message-ID: <1b4a5.46b1bf0c@www.cycling74.com> hello. i had troubles with a patch which crashed randomly, at least it seemed randomly... on windows max crashed with this error-message: __________________________ Microsoft Visual C++ Runtime Library Runtime Error! Program C:\.....program R6025 - pure virtual function call ___________________________ i figured out, that this was related to an error an mxj-object threw (net.multi.send) i broke the crashes down to the textedit object. (i used it to be able to debug in runtime-version without the status window) there seems to be a maximum number of lines the textedit object is able to handle. the maximum count of lines depends on the length of the appended text, and the platform... i wrote a test-patch, which writes a counting number to a file, before appending a text. a sentence with the length of 21 characters could be appended 1024 times on a mac, and 1365 time on windows (both max 4.6.3) - a word with 5 characters could be appended 2048 time on a mac and 2731 time on windows... with a longer text, max crashed earlier. here is a patch: #P window setfont "Sans Serif" 9.; #P window linecount 1; #P comment 472 131 100 196617 turn on; #P comment 472 116 100 196617 2.; #P comment 637 183 100 196617 1.; #P comment 608 246 136 196617 <- press here to get linefeed; #P message 512 192 21 196617 inc; #P newex 449 174 30 196617 t b b; #P number 512 234 50 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P user incdec 512 213 15 15 0 0; #P toggle 449 131 15 0; #P newex 449 152 52 196617 metro 20; #P newex 574 283 62 196617 prepend set; #P message 359 114 33 196617 clear; #P newex 449 278 78 196617 prepend append; #P message 449 259 104 196617 crash coming soon ...; #P newex 449 301 53 196617 append br; #P newex 574 263 40 196617 itoa; #P message 574 244 20 196617 13; #P newex 574 225 48 196617 loadbang; #P user textedit 102 130 392 563 32816 3 9; #P window linecount 3; #P comment 635 198 100 196617 if you pasted the patch \, the loadbang does not go off.; #P hidden connect 8 0 1 0; #P hidden connect 5 0 1 0; #P connect 6 0 7 0; #P connect 7 0 5 0; #P connect 9 0 5 0; #P connect 2 0 3 0; #P connect 3 0 4 0; #P connect 4 0 9 0; #P connect 11 0 10 0; #P connect 12 0 13 0; #P connect 10 0 14 0; #P connect 14 0 6 0; #P connect 15 0 12 0; #P connect 14 1 15 0; #P window clipboard copycount 20; you can avoid the crash by clearing the textedit-object... reproducable? some solutions? greets ingo From c74-mailinglists at e--j.com Thu Aug 2 05:34:31 2007 From: c74-mailinglists at e--j.com (Emmanuel Jourdan) Date: Thu Aug 2 05:35:19 2007 Subject: [maxmsp] Re: fromsymbol auto-converts string to int: real problem In-Reply-To: <1b4a4.46b1baf9@www.cycling74.com> References: <1b4a4.46b1baf9@www.cycling74.com> Message-ID: On 2 ao?t 07, at 13:07, Mattijs Kneppers wrote: > Since sprintf is the regular way to concatenate two strings this > probably means I need to look for a greasy workaround with atoi and > itoa. no, no? use the symout first argument of sprintf: #P window setfont "Sans Serif" 9.; #P window linecount 1; #P newex 74 107 138 196617 sprintf symout %ssnare.aiff; #P newex 74 161 69 196617 buffer~ temp; #P newex 74 141 68 196617 prepend read; #P message 194 161 229 196617 "Machintosh HD:/Samples 01 sorted/ snare.aiff"; #P message 74 63 185 196617 "Machintosh HD:/Samples 01 sorted/"; #P newex 194 141 62 196617 prepend set; #P connect 1 0 5 0; #P connect 5 0 3 0; #P connect 5 0 0 0; #P connect 0 0 2 0; #P connect 3 0 4 0; #P window clipboard copycount 6; ej From gusanomaxlist at googlemail.com Thu Aug 2 05:37:07 2007 From: gusanomaxlist at googlemail.com (gusanomaxlist) Date: Thu Aug 2 05:37:11 2007 Subject: [maxmsp] Re: fromsymbol auto-converts string to int: real problem In-Reply-To: <1b4a4.46b1baf9@www.cycling74.com> Message-ID: <1b4a7.46b1c1e2@www.cycling74.com> Hi. - in your 1st patch, it seems to be working without fromsymbol. - in the 2nd, it seems to be working without tosymbol but with quote marks in sprintf [sprintf "%ssnare.aiff"]. Best. #P window setfont "Sans Serif" 9.; #P window linecount 1; #P newex 41 54 56 9109513 opendialog; #P user textedit 41 128 312 154 32896 139 9 Machintosh HD:/Samples 1 sorted/crash.aiff; #P message 103 54 229 9109513 "Machintosh HD:/Samples 01 sorted/crash.aiff"; #P newex 41 106 62 9109513 prepend set; #P window setfont "Sans Serif" 9.; #P newex 46 313 69 196617 buffer~ temp; #P newex 46 293 68 196617 prepend read; #P message 166 313 219 196617 "Machintosh HD:/Samples 01 sorted/snare.aiff"; #P message 46 215 185 196617 "Machintosh HD:/Samples 01 sorted/"; #P newex 46 239 98 196617 sprintf "%ssnare.aiff"; #P newex 166 293 62 196617 prepend set; #P connect 4 0 5 0; #P connect 1 0 4 0; #P connect 1 0 0 0; #P connect 2 0 1 0; #P connect 9 0 6 0; #P connect 7 0 6 0; #P connect 6 0 8 0; #P connect 0 0 3 0; #P window clipboard copycount 10; From justin at lowtech.org Thu Aug 2 05:45:24 2007 From: justin at lowtech.org (justin) Date: Thu Aug 2 05:45:27 2007 Subject: [maxmsp] Re: MaxMSP and The Monome Problem with osx 10.3.9 In-Reply-To: <1b433.46af94b5@www.cycling74.com> Message-ID: <1b4a8.46b1c3d2@www.cycling74.com> Quote: Arne wrote on Tue, 31 July 2007 20:59 ---------------------------------------------------- > Hello. > So now I have tried to open the Pitch_looper from youre Examples-Sampler folder. Both Max/msp and max/msp crashes when I try to open the file. Other patches crashes as well. > So there is a problem her with the cycling74 programs on my computer, my specs are listed above. > Thank you > arne ---------------------------------------------------- Sounds like you might be experiencing a problem which occured around 10.3.9 (if i remember correctly!). The issue is with the PACE protection (max msp copy protection), which was affected by the OSX system upgrade installed using software update. AFAIK, there are 2 solutions: 1. search the forum for the prebind_script.dmg // or download it from here http://www.paceap.com/prebind_script.dmg 2. download the apple osx 10.3.9 COMBO installer and re-install the OS. hope this helps, j From c74-mailinglists at e--j.com Thu Aug 2 05:55:38 2007 From: c74-mailinglists at e--j.com (Emmanuel Jourdan) Date: Thu Aug 2 05:56:01 2007 Subject: [maxmsp] Re: fromsymbol auto-converts string to int: real problem In-Reply-To: <1b4a7.46b1c1e2@www.cycling74.com> References: <1b4a7.46b1c1e2@www.cycling74.com> Message-ID: On 2 ao?t 07, at 13:37, gusanomaxlist wrote: > - in the 2nd, it seems to be working without tosymbol but with > quote marks in sprintf [sprintf "%ssnare.aiff"]. I would definitely recommend that you never do that. If symout argument is set the double quotes will magically be added if they're required. If you decide to manually put the quotes, it'll only work if there's a space in the symbol. ej From mattijs at smadsteck.nl Thu Aug 2 06:11:11 2007 From: mattijs at smadsteck.nl (Mattijs Kneppers) Date: Thu Aug 2 06:11:16 2007 Subject: [maxmsp] Re: Re: fromsymbol auto-converts string to int: real problem In-Reply-To: Message-ID: <1b4aa.46b1c9de@www.cycling74.com> Ah! EJ, thanks a lot, I didn't know about symout.. should have checked out the reference some more. gusano, the idea of tosymbol/fromsymbol is that they add/remove quotes only when there are spaces in the string. It's confusing, and to fully understand the background of this, you need to get into programming externals. Btw this misunderstanding is shared by every beginning (and even intermediate) maxer, which I interpret as a hint that the symbol/string/datatype model of max is not ideal. Or at least that proper documentation is missing. Mattijs -- SmadSteck - http://www.smadsteck.nl Hard- and software for interactive audiovisual sampling From pure at test.at Thu Aug 2 06:22:41 2007 From: pure at test.at (pure) Date: Thu Aug 2 06:23:02 2007 Subject: [maxmsp] ANNOUNCE: Panaiotis Objects for OSX UB and XP available In-Reply-To: <1b4a3.46b1b725@www.cycling74.com> References: <1b4a3.46b1b725@www.cycling74.com> Message-ID: <46B1CC91.2000602@test.at> from maxobjects.com: Panaiotis Objects is a set of 10 objects including a luxurious counter, a smart midi note generator, an overcomplete matrix router, and objects dealing with randomness, permutation, and more... for OSX UB and XP. http://www.unm.edu/~panaioti/Max/ObjMenu.htm p -- http://pure.test.at -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.cycling74.com/pipermail/maxmsp/attachments/20070802/5697fc8b/attachment.htm From mattijs at smadsteck.nl Thu Aug 2 06:32:37 2007 From: mattijs at smadsteck.nl (Mattijs Kneppers) Date: Thu Aug 2 06:32:43 2007 Subject: [maxmsp] Re: ANNOUNCE: Panaiotis Objects for OSX UB and XP available In-Reply-To: <46B1CC91.2000602@test.at> Message-ID: <1b4ac.46b1cee5@www.cycling74.com> I believe this is not something that should be solved with a 3rd party plugin. It's about the core of symbol/string handling, typically a problem cycling '74 has to sort out for itself. Good luck with that by the way, it'll be pretty tough.. Mattijs Quote: pure wrote on Thu, 02 August 2007 14:22 ---------------------------------------------------- > from maxobjects.com: > > Panaiotis Objects is a set of 10 objects including a luxurious counter, > a smart midi note generator, an overcomplete matrix router, and objects > dealing with randomness, permutation, and more... for OSX UB and XP. > > http://www.unm.edu/~panaioti/Max/ObjMenu.htm > > > p > > -- > http://pure.test.at > > > > ---------------------------------------------------- -- SmadSteck - http://www.smadsteck.nl Hard- and software for interactive audiovisual sampling From mail at maxviel.it Thu Aug 2 07:01:18 2007 From: mail at maxviel.it (Massimiliano Viel) Date: Thu Aug 2 07:01:26 2007 Subject: [maxmsp] Jitter doesn't open any more! Help! In-Reply-To: <64ab801a0707222102k77c2dec2s3cac85c8e6ea774a@mail.gmail.com> References: <1b1a3.46a4216c@www.cycling74.com> <64ab801a0707222102k77c2dec2s3cac85c8e6ea774a@mail.gmail.com> Message-ID: Hi everybody, all in a sudden Jitter doesn't work any more! And in the middle of a project! I use MaxMSP 4.6.3 an iMac Intel with OS X 10.4.10... today when I started to work all the jitter external where no more accessible from my patches... Is it maybe because yesterday night I upgraded the OS to the last security upgrade? I hope not!!! Moreover, following my panic I tried to reinstall Jitter and... it is no more possible! It says that I can't installi it because I need MaxMSP 4.6, that I have... What should I do? Please help!! massimiliano From mattijs at smadsteck.nl Thu Aug 2 07:12:13 2007 From: mattijs at smadsteck.nl (Mattijs Kneppers) Date: Thu Aug 2 07:12:25 2007 Subject: [maxmsp] Re: textedit bug! In-Reply-To: <1b4a5.46b1bf0c@www.cycling74.com> Message-ID: <1b4b0.46b1d82d@www.cycling74.com> Yep, confirmed on mac os x 10.4.10, max 4.6.3 Mattijs -- SmadSteck - http://www.smadsteck.nl Hard- and software for interactive audiovisual sampling From gusanomaxlist at googlemail.com Thu Aug 2 07:22:48 2007 From: gusanomaxlist at googlemail.com (gusanomaxlist) Date: Thu Aug 2 07:22:52 2007 Subject: [maxmsp] Re: Re: fromsymbol auto-converts string to int: real problem In-Reply-To: Message-ID: <1b4b1.46b1daa8@www.cycling74.com> Quote: > I would definitely recommend that you never do that. EJ, thanks for the advice ! From roger.carruthers at btinternet.com Thu Aug 2 10:13:33 2007 From: roger.carruthers at btinternet.com (Roger Carruthers) Date: Thu Aug 2 10:13:41 2007 Subject: [maxmsp] ANNOUNCE: Panaiotis Objects for OSX UB and XP available In-Reply-To: <46B1CC91.2000602@test.at> Message-ID: Excellent! I have been a fan of these objects for some time ? I managed to obtain a UB copy of autocount from Panaiotis a few months ago, but wasn?t sure if the rest of them were ever going to be updated. Good news indeed, Cheers Roger On 2/8/07 13:22, "pure" wrote: > from maxobjects.com: > > Panaiotis Objects is a set of 10 objects including a luxurious counter, a > smart midi note generator, an overcomplete matrix router, and objects dealing > with randomness, permutation, and more... for OSX UB and XP. > > http://www.unm.edu/~panaioti/Max/ObjMenu.htm > > > p -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.cycling74.com/pipermail/maxmsp/attachments/20070802/eca459cd/attachment.htm From mail at maxviel.it Thu Aug 2 07:01:18 2007 From: mail at maxviel.it (Massimiliano Viel) Date: Thu Aug 2 10:26:29 2007 Subject: [maxmsp] Jitter doesn't open any more! Help! Message-ID: <0FA4916B-E480-4F87-9330-B0400776A23A@maxviel.it> Hi everybody, all in a sudden Jitter doesn't work any more! And in the middle of a project! I use MaxMSP 4.6.3 an iMac Intel with OS X 10.4.10... today when I started to work all the jitter external where no more accessible from my patches... Is it maybe because yesterday night I upgraded the OS to the last security upgrade? I hope not!!! Moreover, following my panic I tried to reinstall Jitter and... it is no more possible! It says that I can't installi it because I need MaxMSP 4.6, that I have... What should I do? Please help!! massimiliano From david.ogborn at utoronto.ca Thu Aug 2 11:48:41 2007 From: david.ogborn at utoronto.ca (David Ogborn) Date: Thu Aug 2 11:49:02 2007 Subject: [maxmsp] Toronto EA Symposium 9-10 Aug. Message-ID: <46B218F9.40500@utoronto.ca> [English follows] *Symposium ?lectroacoustique 2007 de Toronto* Facult? de musique, universit? de Toronto 9 et 10 ao?t 2007 La Communaut? ?lectroacoustique Canadienne, la Facult? de musique de l'universit? de Toronto et New Adventures in Sound Art sont heureux de vous inviter ? l'?dition 2007 du Symposium ?lectroacoustique de Toronto. Au cours de cet ?v?nement, des compositeurs et artistes audio du Canada et des ?tats-Unis pr?senteront et discuteront de leur travail. Plusieurs sessions sont pr?vues, entre autres : ?La Discipline ?lectroacoustique?, ?Interfaces et environnements?,?Paysages sonores?, ?Instruments et installations? et ??lectronique live?. ? noter, les conf?rences de Barry Truax et de Trevor Wishart, compositeurs en r?sidence du festival Sound Travels, rendues possibles gr?ce au soutien de New Adventures in Sound Art. Le Symposium est aussi le pr?lude id?al pour la principale fin de semaine de performances du festival annuel Sound Travels. Le 9 ao?t, ? 16 heures, le Centre de musique canadienne convie tous les participants du symposium ? une r?ception. En fin de soir?e, un ?v?nement anim? par le groupe angelusnovus.net et InterAccess media arts Centre sera l'occasion d'improvisations ?lectroniques ?? micro ouvert?, auxquelles tous sont appel?s ? participer. Les sessions du symposium sont gratuites pour le public. Seule l'inscription est requise. Tous les bienvenus sont encourag?s ? faire une contribution. Les horaires des concerts et des conf?rences, de m?me que des condens?s de ces derni?res, sont disponibles en ligne : Pour plus de d?tails, pour l'inscription au symposium ou pour proposer quelque initiative pour la soir?e ? ? micro ouvert ?, veuillez contacter l'organisateur du symposium, David Ogborn . *COMIT? D'ORGANISATION DU SYMPOSIUM* David Ogborn (Communaut? ?lectroacoustique Canadienne), responsible Dennis Patrick (Universit? de Toronto) Nadene Th?riault-Copeland (New Adventures in Sound Art) *COORDONN?ES* - Conf?rences : jeudi le 9 ao?t, de 9h ? 16h; vendredi le 10 ao?t, de 9h ? 16h30. Local 330, Edward Johnson Building, Facult? de musique, universit? de Toronto (pr?s de la station de m?tro ? Museum ?). Horaire compl?te - Concert : jeudi 9 ao?t, de 21h ? minuit, au InterAccess Media Arts Centre, 9 avenue Ossington. *LIENS UTILES* Communaut? ?lectroacoustique Canadienne http://cec.concordia.ca Facult? de musique, universit? de Toronto http://www.music.utoronto.ca New Adventures in Sound Art http://www.naisa.ca angelusnovus.net http://angelusnovus.net InterAccess http://interaccess.org Centre de musique canadienne http://www.musiccentre.ca ---------------------------------------------------------------------------------- *Toronto Electroacoustic Symposium 2007* Faculty of Music, University of Toronto 9-10 August 2007 The Canadian Electroacoustic Community, the Faculty of Music at the University of Toronto and New Adventures in Sound Art are pleased to invite you to attend the 2007 Toronto Electroacoustic Symposium. During the symposium composers and sound artists from Toronto, across Canada and the United States will discuss their work. Symposium sessions include "The Discipline of Electroacoustics", "Interfaces and Environments", "Soundscapes", "Instruments and Installations" and "Live Electronics". The symposium will lead directly into the main performance weekend of the annual Sound Travels festival. Thanks to NAISA, Sound Travel composers-in-residence Barry Truax and Trevor Wishart will give keynote lectures at the symposium. On August 9, the Canadian Music Centre will host a reception for symposium attendees at 16:00. In the same evening the angelusnovus.net group and the InterAccess media arts centre will host an open-mic night of electronic, live electronic and improvised music. All are welcome to attend and to make a performance contribution. Symposium sessions are free and open to the public, but registration is required. Abstracts, paper and concert schedules can be consulted online at . For more information, to register to attend the symposium, or to propose something for the open-mic night, contact the symposium chair, David Ogborn, at . *SYMPOSIUM COMMITTEE* David Ogborn (Canadian Electroacoustic Community), Chair Dennis Patrick (University of Toronto) Nadene Th?riault-Copeland (New Adventures in Sound Art) *SCHEDULES AND LOCATIONS* - Paper Sessions: Thursday 9 Aug., 9:00-16:00; Friday 10 Aug., 9:00-16:30 in room 330 of the Edward Johnson Building, Faculty of Music, University of Toronto (directly adjacent to the Museum subway station) - Concert: Thursday 9 Aug., 21:00-00:00, at InterAccess Media Arts Centre, 9 Ossington Avenue *LINKS* Canadian Electroacoustic Community http://cec.concordia.ca University of Toronto, Faculty of Music http://www.music.utoronto.ca New Adventures in Sound Art http://www.naisa.ca angelusnovus.net http://angelusnovus.net InterAccess http://interaccess.org Canadian Music Centre http://www.musiccentre.ca -- Communaut? ?lectroacoustique canadienne (CEC) Canadian Electroacoustic Community c/o Dept. de Musique, Universit? Concordia RF-302 7141 rue Sherbrooke ouest, Montr?al QC CANADA H4B 1R6 [ http://cec.concordia.ca | http://econtact.ca | http://sonus.ca ] From johnmac at berkeley.edu Thu Aug 2 12:02:20 2007 From: johnmac at berkeley.edu (John MacCallum) Date: Thu Aug 2 12:02:25 2007 Subject: [maxmsp] Re: Random between +/- 128.0?? In-Reply-To: Message-ID: <1b4c0.46b21c2c@www.cycling74.com> Check out randdist: http://www.cnmat.berkeley.edu/MAX/downloads/ The message: uniform -128. 128. will give you what you want. JM From grimepoch at mac.com Thu Aug 2 14:02:01 2007 From: grimepoch at mac.com (Rick Burnett) Date: Thu Aug 2 14:02:05 2007 Subject: [maxmsp] Customizing my Standalone App... Message-ID: <1b4ca.46b23837@www.cycling74.com> Hello! I have been looking through the docs for building my app and all I can find reference to is: appsplash appicon Is there somewhere else in the docs that goes over other things as well? I'd like to completely disable the status window, and make my app non-resizable. However, I am having trouble finding this. Which PDF would even be help!! Thanks! Rick From matt at cnmat.berkeley.edu Thu Aug 2 14:19:34 2007 From: matt at cnmat.berkeley.edu (Matt Wright) Date: Thu Aug 2 14:19:48 2007 Subject: [maxmsp] "sel 0" bug? Message-ID: <1b4cb.46b23c52@www.cycling74.com> I find it bizarre that passing any floating point number 0. <= x < 1. to "sel 0" puts a bang out the left outlet: #P window setfont "Sans Serif" 9.; #P window linecount 3; #P comment 187 39 60 196617 Anything over 1 works.; #P comment 97 44 60 196617 These don't do what I expect; #P window linecount 1; #P message 212 82 37 196617 1.234; #P message 181 82 23 196617 1.; #P message 125 84 23 196617 0.7; #P message 98 84 23 196617 0.5; #P message 40 81 14 196617 0; #P flonum 109 189 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 87 127 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P button 87 188 15 0; #P newex 87 158 32 196617 sel 0; #P comment 20 61 60 196617 This works; #P connect 9 0 3 0; #P connect 8 0 3 0; #P connect 7 0 3 0; #P connect 6 0 3 0; #P connect 5 0 3 0; #P connect 1 1 4 0; #P connect 1 0 2 0; #P connect 3 0 1 0; #P window clipboard copycount 12; On the other hand, "route 0" does what I would expect. -Matt From c74-mailinglists at e--j.com Thu Aug 2 14:21:26 2007 From: c74-mailinglists at e--j.com (Emmanuel Jourdan) Date: Thu Aug 2 14:21:47 2007 Subject: [maxmsp] Customizing my Standalone App... In-Reply-To: <1b4ca.46b23837@www.cycling74.com> References: <1b4ca.46b23837@www.cycling74.com> Message-ID: On 2 ao?t 07, at 22:02, Rick Burnett wrote: > Is there somewhere else in the docs that goes over other things as > well? I'd like to completely disable the status window, and make > my app non-resizable. However, I am having trouble finding this. You may have a look to the standalone object. And there's a chapter about creating standalone application in Max46Topics.pdf (p. 17) Cheers, ej From thetawnyowl at googlemail.com Thu Aug 2 14:24:43 2007 From: thetawnyowl at googlemail.com (Leafcutter John) Date: Thu Aug 2 14:24:48 2007 Subject: [maxmsp] Re: the most efficient ? In-Reply-To: <1b4a1.46b199a0@www.cycling74.com> Message-ID: <1b4cd.46b23d8a@www.cycling74.com> The uzi > counter method (shown below) is one way of timing how long it takes max to accomplish a set number of tasks. Your question was about efficiency and this kind of timing is one way of measuring efficiency. Sometimes it can be very important when objects are constantly being polled or have to prosses large amounts of data. I agree with Stefan about clarity being an excellent goal - however a check of speed can be very useful as in the following example which shows how occasionally the more complex solution can be much much more efficient.... #P window setfont "Sans Serif" 9.; #P window linecount 1; #P comment 493 105 26 196617 time; #P flonum 431 102 59 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P button 431 52 15 0; #N vpatcher 525 182 715 430; #N comlet interval in ms is reported here; #P outlet 66 173 15 0; #P window setfont "Sans Serif" 9.; #P newex 96 82 13 196617 b; #P newex 96 104 46 196617 cpuclock; #P newex 66 143 27 196617 - 0.; #P newex 48 82 13 196617 b; #P newex 48 104 46 196617 cpuclock; #N comlet bang stops timing and reports interval; #P inlet 96 58 15 0; #N comlet bang starts timing interval; #P inlet 48 58 15 0; #P connect 0 0 3 0; #P connect 3 0 2 0; #P connect 5 0 4 0; #P connect 4 0 7 0; #P connect 2 0 4 1; #P connect 1 0 6 0; #P connect 6 0 5 0; #P pop; #P newobj 431 76 55 196617 p cputimer; #P newex 357 88 40 196617 uzi 10; #P comment 448 52 26 196617 test; #P comment 216 89 26 196617 time; #P flonum 154 86 59 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P button 154 36 15 0; #N vpatcher 525 182 715 430; #N comlet interval in ms is reported here; #P outlet 66 173 15 0; #P window setfont "Sans Serif" 9.; #P newex 96 82 13 196617 b; #P newex 96 104 46 196617 cpuclock; #P newex 66 143 27 196617 - 0.; #P newex 48 82 13 196617 b; #P newex 48 104 46 196617 cpuclock; #N comlet bang stops timing and reports interval; #P inlet 96 58 15 0; #N comlet bang starts timing interval; #P inlet 48 58 15 0; #P connect 0 0 3 0; #P connect 3 0 2 0; #P connect 5 0 4 0; #P connect 4 0 7 0; #P connect 2 0 4 1; #P connect 1 0 6 0; #P connect 6 0 5 0; #P pop; #P newobj 154 60 55 196617 p cputimer; #P newex 80 72 40 196617 uzi 10; #P message 357 133 182 196617 laptopHD://give/me/a/path/to/strip; #P message 391 328 177 196617 strip; #P newex 391 300 62 196617 prepend set; #P newex 357 181 79 196617 t l l 0; #P newex 438 194 68 196617 loadmess 47; #P newex 391 273 32 196617 itoa; #P newex 357 252 44 196617 zl slice; #P newex 391 215 57 196617 zl sub 47; #P newex 357 160 32 196617 atoi; #P message 80 267 177 196617 strip; #P newex 80 239 62 196617 prepend set; #P message 80 162 182 196617 laptopHD://give/me/a/path/to/strip; #P newex 80 208 82 196617 strippath; #P comment 171 36 26 196617 test; #P fasten 22 0 20 0 436 70 362 70; #P connect 22 0 21 0; #P connect 20 0 13 0; #P connect 21 0 23 0; #P fasten 20 2 21 1 392 110 423 110 423 97 491 97 491 71 481 71; #P fasten 16 0 14 0 159 54 85 54; #P connect 16 0 15 0; #P connect 14 0 2 0; #P fasten 14 2 15 1 115 94 146 94 146 81 214 81 214 55 204 55; #P connect 15 0 17 0; #P connect 13 0 5 0; #P connect 8 0 11 0; #P connect 11 0 12 0; #P fasten 10 2 7 1 430 206 379 206 379 246 396 246; #P connect 5 0 10 0; #P connect 10 0 7 0; #P connect 10 1 6 0; #P connect 6 0 7 1; #P connect 7 1 8 0; #P connect 9 0 6 1; #P connect 3 0 4 0; #P connect 1 0 3 0; #P connect 2 0 1 0; #P window clipboard copycount 25; Best, John. -- http://www.leafcutterjohn.com "The Forest And The Sea" Out on Staubgold Records Staubgold 68 CD/LP From thetawnyowl at googlemail.com Thu Aug 2 14:32:02 2007 From: thetawnyowl at googlemail.com (Leafcutter John) Date: Thu Aug 2 14:32:07 2007 Subject: [maxmsp] Re: the most efficient ? In-Reply-To: <1b4cd.46b23d8a@www.cycling74.com> Message-ID: <1b4ce.46b23f41@www.cycling74.com> Ooops i wired up the Uzi's incorrectly - interestingly they give simmilar results either way and you might not expect that depending on your reading of the help file. anyhow corrected patch follows... #P window setfont "Sans Serif" 9.; #P window linecount 1; #P comment 471 93 26 196617 time; #P flonum 409 90 59 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P button 409 40 15 0; #N vpatcher 525 182 715 430; #N comlet interval in ms is reported here; #P outlet 66 173 15 0; #P window setfont "Sans Serif" 9.; #P newex 96 82 13 196617 b; #P newex 96 104 46 196617 cpuclock; #P newex 66 143 27 196617 - 0.; #P newex 48 82 13 196617 b; #P newex 48 104 46 196617 cpuclock; #N comlet bang stops timing and reports interval; #P inlet 96 58 15 0; #N comlet bang starts timing interval; #P inlet 48 58 15 0; #P connect 0 0 3 0; #P connect 3 0 2 0; #P connect 5 0 4 0; #P connect 4 0 7 0; #P connect 2 0 4 1; #P connect 1 0 6 0; #P connect 6 0 5 0; #P pop; #P newobj 409 64 55 196617 p cputimer; #P newex 335 76 40 196617 uzi 10; #P comment 426 40 26 196617 test; #P comment 223 96 26 196617 time; #P flonum 161 93 59 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P button 161 43 15 0; #N vpatcher 525 182 715 430; #N comlet interval in ms is reported here; #P outlet 66 173 15 0; #P window setfont "Sans Serif" 9.; #P newex 96 82 13 196617 b; #P newex 96 104 46 196617 cpuclock; #P newex 66 143 27 196617 - 0.; #P newex 48 82 13 196617 b; #P newex 48 104 46 196617 cpuclock; #N comlet bang stops timing and reports interval; #P inlet 96 58 15 0; #N comlet bang starts timing interval; #P inlet 48 58 15 0; #P connect 0 0 3 0; #P connect 3 0 2 0; #P connect 5 0 4 0; #P connect 4 0 7 0; #P connect 2 0 4 1; #P connect 1 0 6 0; #P connect 6 0 5 0; #P pop; #P newobj 161 67 55 196617 p cputimer; #P newex 87 79 40 196617 uzi 10; #P message 335 121 182 196617 laptopHD://give/me/a/path/to/strip; #P window linecount 0; #P message 369 316 16 196617; #P window linecount 1; #P newex 369 288 62 196617 prepend set; #P newex 335 169 79 196617 t l l 0; #P newex 416 182 68 196617 loadmess 47; #P newex 369 261 32 196617 itoa; #P newex 335 240 44 196617 zl slice; #P newex 369 203 57 196617 zl sub 47; #P newex 335 148 32 196617 atoi; #P window linecount 0; #P message 87 274 16 196617; #P window linecount 1; #P newex 87 246 62 196617 prepend set; #P message 87 169 182 196617 laptopHD://give/me/a/path/to/strip; #P newex 87 215 82 196617 strippath; #P comment 178 43 26 196617 test; #P fasten 22 0 20 0 414 58 340 58; #P connect 22 0 21 0; #P fasten 20 1 21 1 355 100 400 100 400 85 478 85 478 50 459 50; #P connect 20 0 13 0; #P fasten 14 1 15 1 107 103 140 103 140 87 228 87 228 62 211 62; #P connect 2 0 1 0; #P connect 1 0 3 0; #P connect 3 0 4 0; #P connect 9 0 6 1; #P connect 7 1 8 0; #P connect 6 0 7 1; #P connect 10 1 6 0; #P connect 10 0 7 0; #P connect 5 0 10 0; #P fasten 10 2 7 1 408 194 357 194 357 234 374 234; #P connect 11 0 12 0; #P connect 8 0 11 0; #P connect 13 0 5 0; #P connect 15 0 17 0; #P connect 14 0 2 0; #P connect 16 0 15 0; #P fasten 16 0 14 0 166 61 92 61; #P connect 21 0 23 0; #P window clipboard copycount 25; -- http://www.leafcutterjohn.com "The Forest And The Sea" Out on Staubgold Records Staubgold 68 CD/LP From cbm at well.com Thu Aug 2 14:38:36 2007 From: cbm at well.com (Chris Muir) Date: Thu Aug 2 14:38:41 2007 Subject: [maxmsp] Customizing my Standalone App... In-Reply-To: <1b4ca.46b23837@www.cycling74.com> References: <1b4ca.46b23837@www.cycling74.com> Message-ID: At 2:02 PM -0600 8/2/07, Rick Burnett wrote: >Which PDF would even be help!! I don't know where it is , but what you're looking for is standalone: #P window setfont "Sans Serif" 9.; #P window linecount 1; #N standalone; #S creator ????; #S statusvisible 1; #S noloadbangdefeating 0; #S useownplist 0; #S preffilename "Max 4 Preferences"; #S overdrive 0; #S allwindowsactive 0; #S searchformissingfiles 1; #S usesearchpath 0; #S cantclosetoplevelpatchers 1; #S audiosupport 1; #S midisupport 1; #P newobj 36 101 57 196617 standalone; #P window clipboard copytext standalone #E; #P window clipboard copycount 1; -C -- Chris Muir | "There are many futures and only one status quo. cbm@well.com | This is why conservatives mostly agree, http://www.xfade.com | and radicals always argue." - Brian Eno From thetawnyowl at googlemail.com Thu Aug 2 14:39:02 2007 From: thetawnyowl at googlemail.com (Leafcutter John) Date: Thu Aug 2 14:39:05 2007 Subject: [maxmsp] Re: "sel 0" bug? In-Reply-To: <1b4cb.46b23c52@www.cycling74.com> Message-ID: <1b4cf.46b240e5@www.cycling74.com> If you put an integer as an argument sel expects and integer as an input. If you feed it a float it will convert that to an integer which explains what you are seeing - It is not a bug. If you want to give sel a float input then put 0. as an argument and you will get the behavior you expect to see. best, john. -- http://www.leafcutterjohn.com "The Forest And The Sea" Out on Staubgold Records Staubgold 68 CD/LP From grimepoch at mac.com Thu Aug 2 14:42:57 2007 From: grimepoch at mac.com (Rick Burnett) Date: Thu Aug 2 14:43:06 2007 Subject: [maxmsp] Re: Customizing my Standalone App... In-Reply-To: Message-ID: <1b4d1.46b241d0@www.cycling74.com> I've looked through the Max Topics on Collectives and all the documentation on standalone, but nowhere in there do I see anything relating to the size of the application I did find a max message to turn of the availability of status in the menu: ; maxinwmenu 0 Now I just need to find the resizing issue. From david at livetheatersound.com Thu Aug 2 14:47:05 2007 From: david at livetheatersound.com (David Beaudry) Date: Thu Aug 2 14:47:11 2007 Subject: [maxmsp] "sel 0" bug? In-Reply-To: <1b4cb.46b23c52@www.cycling74.com> References: <1b4cb.46b23c52@www.cycling74.com> Message-ID: <4348CA34-4C8C-4B05-9915-5B4C933FBE80@livetheatersound.com> Hey Matt, You need a "sel 0." (float), otherwise value gets truncated, which is why it is always true. David On Aug 2, 2007, at 1:19 PM, Matt Wright wrote: > > I find it bizarre that passing any floating point number 0. <= x < > 1. to "sel 0" puts a bang out the left outlet: > From doktorp at mac.com Thu Aug 2 14:55:09 2007 From: doktorp at mac.com (vade) Date: Thu Aug 2 14:55:17 2007 Subject: [maxmsp] "sel 0" bug? In-Reply-To: <1b4cb.46b23c52@www.cycling74.com> References: <1b4cb.46b23c52@www.cycling74.com> Message-ID: <82490332-D627-4E80-97EE-34BECCF561C0@mac.com> sel 0 != sel 0. sel 0 is looking for an INT, not a float. On Aug 2, 2007, at 4:19 PM, Matt Wright wrote: > > I find it bizarre that passing any floating point number 0. <= x < > 1. to "sel 0" puts a bang out the left outlet: > > > #P window setfont "Sans Serif" 9.; > #P window linecount 3; > #P comment 187 39 60 196617 Anything over 1 works.; > #P comment 97 44 60 196617 These don't do what I expect; > #P window linecount 1; > #P message 212 82 37 196617 1.234; > #P message 181 82 23 196617 1.; > #P message 125 84 23 196617 0.7; > #P message 98 84 23 196617 0.5; > #P message 40 81 14 196617 0; > #P flonum 109 189 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; > #P flonum 87 127 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; > #P button 87 188 15 0; > #P newex 87 158 32 196617 sel 0; > #P comment 20 61 60 196617 This works; > #P connect 9 0 3 0; > #P connect 8 0 3 0; > #P connect 7 0 3 0; > #P connect 6 0 3 0; > #P connect 5 0 3 0; > #P connect 1 1 4 0; > #P connect 1 0 2 0; > #P connect 3 0 1 0; > #P window clipboard copycount 12; > > > > > On the other hand, "route 0" does what I would expect. > > -Matt > > _______________________________________________ > maxmsp mailing list > maxmsp@cycling74.com > http://www.cycling74.com/mailman/listinfo/maxmsp v a d e // www.vade.info abstrakt.vade.info -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.cycling74.com/pipermail/maxmsp/attachments/20070802/10f70fe6/attachment.htm From cbm at well.com Thu Aug 2 14:55:54 2007 From: cbm at well.com (Chris Muir) Date: Thu Aug 2 14:55:57 2007 Subject: [maxmsp] "sel 0" bug? In-Reply-To: <1b4cb.46b23c52@www.cycling74.com> References: <1b4cb.46b23c52@www.cycling74.com> Message-ID: At 1:19 PM -0700 8/2/07, Matt Wright wrote: >I find it bizarre that passing any floating point number 0. <= x < 1. to "sel 0" puts a bang out the left outlet: Well, comparing a float to an int is a little strange. It's doing pretty much what I'd expect: truncating the float to the integer portion and comparing that. What did you want it to do? Does "sel 0." do what you expect? -C -- Chris Muir | "There are many futures and only one status quo. cbm@well.com | This is why conservatives mostly agree, http://www.xfade.com | and radicals always argue." - Brian Eno From doktorp at mac.com Thu Aug 2 15:00:00 2007 From: doktorp at mac.com (vade) Date: Thu Aug 2 15:00:07 2007 Subject: [maxmsp] Re: Customizing my Standalone App... In-Reply-To: <1b4d1.46b241d0@www.cycling74.com> References: <1b4d1.46b241d0@www.cycling74.com> Message-ID: <3AEF95A3-F00E-468D-8FF4-A9E4CC51EDB6@mac.com> resize the application windows? thispatcher help file can toggle window settings in the window subpatcher of the help file. On Aug 2, 2007, at 4:42 PM, Rick Burnett wrote: > > I've looked through the Max Topics on Collectives and all the > documentation on standalone, but nowhere in there do I see anything > relating to the size of the application > > I did find a max message to turn of the availability of status in > the menu: > > ; maxinwmenu 0 > > Now I just need to find the resizing issue. > _______________________________________________ > maxmsp mailing list > maxmsp@cycling74.com > http://www.cycling74.com/mailman/listinfo/maxmsp v a d e // www.vade.info abstrakt.vade.info -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.cycling74.com/pipermail/maxmsp/attachments/20070802/30c6880d/attachment.htm From derrickgiscloux at free.fr Thu Aug 2 15:01:54 2007 From: derrickgiscloux at free.fr (derrickgiscloux) Date: Thu Aug 2 15:01:59 2007 Subject: [maxmsp] Re: the most efficient ? In-Reply-To: <1b4cd.46b23d8a@www.cycling74.com> Message-ID: <1b4d7.46b24641@www.cycling74.com> Thank you very much for this show, which is very helpfull and welcomed. However : > I agree with Stefan about clarity being an excellent goal - It'is difficult and probably displaced to provide and explain a full max patch in the forum. I needed a clear answer about a "clear" problem... clear for me. So I extracted a sample of my very complex patch and asked for help about what's the faster way for this fragment. >... As you did not describe what the patch supposed to do, I can >only guess... I don't know what all the gates are for, so I >skip them... My goal was not to show or share my work and explain what I did or will do about project etc... Just gave two process given a same result (they do ! no ??), and asked for opinion and help about efficiency. For me it sounds like technical request goes to philosophy answers I didn't asked for. But perhaps my experience with forum isn't very advanced. Finally, sure I agree about clarity being an important goal. I hope I did here. Thanks in any case. Derrick From barry.griffin at hiq.se Thu Aug 2 15:18:31 2007 From: barry.griffin at hiq.se (Baz79) Date: Thu Aug 2 15:18:34 2007 Subject: [maxmsp] Function object with line object Message-ID: <1b4da.46b24a25@www.cycling74.com> Hi there, I have a composition whose tempo I control using a metro object. I'd now like to make changes to the tempo, by gradually increasing and decreasing the tempo during the composition. For example, for the first 10 seconds I might like to go from 100bpm to 105bpm, and then from 105 to 100 over the course of the next 10 seconds, and so on. I was thinking that perhaps the function object, connected to a line object would do the trick. The problem though was that the line only outputted values for between the first two points plotted in the function window. So, if my first point was at 0ms, 100, my second at 100ms, 100 and my third at 200ms, the output from line only gave values from 0 to 100. When I used line~ instead, the values were as expected - 0 to 200. So, should function only be used with line~, and if so, how can feed values from line~ into metro - I can't can i... So, how might I do this? Thanks, Barry. max v2; #N vpatcher 0 44 1680 990; #P window setfont "Sans Serif" 9.; #P flonum 324 606 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P window linecount 1; #P newex 308 535 40 196617 line; #P message 339 212 31 196617 clear; #P button 440 410 15 0; #P button 137 170 15 0; #P user function 133 325 454 395 1 1 0 0; #X frgb 153 102 153; #X brgb 204 204 204; #X rgb2 85 85 85; #X rgb3 255 255 255; #X rgb4 0 0 0; #X rgb5 0 0 0; #X add 0. 55.555557 0; #X add 4466.019531 75.555557 0; #X add 9514.563477 6.666667 0; #X add 10000. 0. 0; #X domain 10000.; #X range 0. 100.; #X done; #P hidden connect 3 0 0 0; #P connect 1 0 0 0; #P connect 0 1 4 0; #P connect 4 0 5 0; #P connect 0 3 2 0; #P pop; From grimepoch at mac.com Thu Aug 2 15:20:09 2007 From: grimepoch at mac.com (Rick Burnett) Date: Thu Aug 2 15:20:16 2007 Subject: [maxmsp] Re: Re: Customizing my Standalone App... In-Reply-To: <3AEF95A3-F00E-468D-8FF4-A9E4CC51EDB6@mac.com> Message-ID: <1b4dc.46b24a89@www.cycling74.com> Ahhh, that is not easy to find!!! :) window flags nogrow is what I want. THANKS!!!! From c74-mailinglists at e--j.com Thu Aug 2 15:27:55 2007 From: c74-mailinglists at e--j.com (Emmanuel Jourdan) Date: Thu Aug 2 15:28:15 2007 Subject: [maxmsp] Function object with line object In-Reply-To: <1b4da.46b24a25@www.cycling74.com> References: <1b4da.46b24a25@www.cycling74.com> Message-ID: On 2 ao?t 07, at 23:18, Baz79 wrote: > I'd now like to make changes to the tempo, by gradually increasing > and decreasing the tempo during the composition. For example, for > the first 10 seconds I might like to go from 100bpm to 105bpm, and > then from 105 to 100 over the course of the next 10 seconds, and so > on. > > I was thinking that perhaps the function object, connected to a > line object would do the trick. The problem though was that the > line only outputted values for between the first two points plotted > in the function window. So, if my first point was at 0ms, 100, my > second at 100ms, 100 and my third at 200ms, the output from line > only gave values from 0 to 100. > > When I used line~ instead, the values were as expected - 0 to 200. > > So, should function only be used with line~, and if so, how can > feed values from line~ into metro - I can't can i... > > So, how might I do this? Search in the archive. You may find a few discussion about line not being multi-segment. ej.line, lines and co are abstractions which reproduce the behavior you need. Cheers, ej From yair99 at gmail.com Thu Aug 2 15:31:43 2007 From: yair99 at gmail.com (yair reshef) Date: Thu Aug 2 15:31:49 2007 Subject: [maxmsp] "debugging" msp Message-ID: <1b1605c20708021431l7cba281bv518fd93ea2c76ccf@mail.gmail.com> hi, it might sound trite but when learning (and patching) i usually have an arsenal o debugging clippings. in jitter (my main dish) i was saved a lot of time using a combination of unpack and cellblock, matrixinfo ect. what do you use when taking patches apart? thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.cycling74.com/pipermail/maxmsp/attachments/20070802/93f82156/attachment.htm From yair99 at gmail.com Thu Aug 2 15:34:09 2007 From: yair99 at gmail.com (yair reshef) Date: Thu Aug 2 15:34:15 2007 Subject: [maxmsp] Re: "debugging" msp In-Reply-To: <1b1605c20708021431l7cba281bv518fd93ea2c76ccf@mail.gmail.com> References: <1b1605c20708021431l7cba281bv518fd93ea2c76ccf@mail.gmail.com> Message-ID: <1b1605c20708021434j7f0e9cffya458d0cadee5c539@mail.gmail.com> something like #P window setfont "Fixedwidth Serif" 10.; #P window linecount 1; #P newex 132 290 38 9240586 * -1.; #P window setfont "Sans Serif" 9.; #P number 206 335 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 181 261 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 131 312 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P window setfont "Fixedwidth Serif" 10.; #P newex 87 331 104 9240586 pak range -1. 1.; #P user scope~ 85 355 435 445 256 3 256 -0.08 0.08 0 0. 0 0. 102 255 51 135 135 135 0; #P fasten 3 0 5 0 186 283 137 283; #P connect 3 0 1 2; #P connect 4 0 0 1; #P connect 2 0 1 1; #P connect 5 0 2 0; #P connect 1 0 0 0; #P window clipboard copycount 6; On 8/2/07, yair reshef wrote: > > hi, it might sound trite but when learning (and patching) i usually have > an arsenal o debugging clippings. in jitter (my main dish) i was saved a lot > of time using a combination of unpack and cellblock, matrixinfo ect. > what do you use when taking patches apart? > thank you. > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.cycling74.com/pipermail/maxmsp/attachments/20070802/1dbb2b72/attachment.htm From pcastine at gmx.net Thu Aug 2 16:00:41 2007 From: pcastine at gmx.net (Peter Castine) Date: Thu Aug 2 16:00:51 2007 Subject: [maxmsp] Re: Random between +/- 128.0?? In-Reply-To: Message-ID: <1b4e4.46b25408@www.cycling74.com> A belated but necessary response: #P window setfont "Sans Serif" 10.; #P flonum 139 175 79 10 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P button 139 98 15 0; #P window linecount 1; #P newex 139 147 155 196618 lp.scampf map 0 1 -128 128; #P newex 139 118 46 196618 lp.shhh; #P connect 1 0 3 0; #P connect 2 0 0 0; #P connect 0 0 1 0; #P window clipboard copycount 4; The other solutions using the stock random object will only give you a limited resolution. For instance, Keith's solution will only give you numbers in increments of 0.1, it'll never give you a random value like 42.14159. Lp.shhh will generate all possible values in the range from 0<=x<1 and scampf will scale them to the desired range. These two objects are in the freeware Litter Starter Pack. For better or worse, the Starter Pack is still PPC-only in the Mac world, but UB versions are available with the Pro Bundle. And all Litter Power versions give you much more interesting random number distributions to choose from. Best, Peter -- -------------- http://www.bek.no/~pcastine/Litter/ ------------- Peter Castine +--> Litter Power & Litter Bundle for Jitter iCE: Sequencing, Recording & Interface Building for Max/MSP Extremely cool http://www.dspaudio.com/ From pcastine at gmx.net Thu Aug 2 16:06:25 2007 From: pcastine at gmx.net (Peter Castine) Date: Thu Aug 2 16:06:37 2007 Subject: [maxmsp] Re: MAX history inquiry In-Reply-To: <1b454.46b05287@www.cycling74.com> Message-ID: <1b4e5.46b25560@www.cycling74.com> In addition to the resources you named, you might want to look at the 55 list at bek.no, which archives discussion of the nato55. Nato was a 3rd party library that worked in conjunction with Max to provide QuickTime-based video processing well before Jitter came around. You could also do interesting stuff with the stock lcd object, which has a venerable history. Hope this helps, Peter -- -------------- http://www.bek.no/~pcastine/Litter/ ------------- Peter Castine +--> Litter Power & Litter Bundle for Jitter iCE: Sequencing, Recording & Interface Building for Max/MSP Extremely cool http://www.dspaudio.com/ From pcastine at gmx.net Thu Aug 2 16:09:40 2007 From: pcastine at gmx.net (Peter Castine) Date: Thu Aug 2 16:09:44 2007 Subject: [maxmsp] Re: sfplay~ is misbehaving? In-Reply-To: <626b3a53aefd6f042820d08a678a7f8f@radiantslab.com> Message-ID: <1b4e6.46b25622@www.cycling74.com> Quote: Patrick Delges wrote on Tue, 31 July 2007 16:13 ---------------------------------------------------- > The problem is to know how long "a significant amount delay" is. ---------------------------------------------------- The right outlet is there specifically for this purpose, isn't it? -- -------------- http://www.bek.no/~pcastine/Litter/ ------------- Peter Castine +--> Litter Power & Litter Bundle for Jitter iCE: Sequencing, Recording & Interface Building for Max/MSP Extremely cool http://www.dspaudio.com/ From matt at cnmat.berkeley.edu Thu Aug 2 16:11:36 2007 From: matt at cnmat.berkeley.edu (Matt Wright) Date: Thu Aug 2 16:11:41 2007 Subject: [maxmsp] Re: "sel 0" bug? In-Reply-To: <1b4cb.46b23c52@www.cycling74.com> Message-ID: <1b4e7.46b25697@www.cycling74.com> Yes, I understand the difference between 0 and 0. (See, that period is a pun.) Max's general convention about integer versions of objects truncating incoming floats makes sense if the object does arithmetic, but I think it's a misfeature in the case of "sel". (And that's why I think "route 0" behaves correctly by passing 0.1 out the right outlet.) Let me put it this way---does anyone have an example of a case where "sel 0" behaving like "split 0. 0.999999" (with a button on the left outlet) is useful or more clear? I think of select and route as being for selecting specific values, not numeric ranges. -Matt p.s. I don't think it's strange to compare a float to an int, and if you did so in C or any number of other programming languages it would do what I expect: int i = 123; float f = 123.456; if (i==f) { printf("I'll eat my hat. "); } else { printf("good thing C doesn't work like Max. "); } From mopppish at yahoo.com Thu Aug 2 16:18:14 2007 From: mopppish at yahoo.com (Eric Sheffield) Date: Thu Aug 2 16:18:29 2007 Subject: [maxmsp] argh! still struggling with poly Message-ID: <1b4e8.46b25824@www.cycling74.com> So here's a chunk of my patch. #P window setfont "Sans Serif" 9.; #P window linecount 1; #P message 98 392 53 196617 target \$1; #N counter 0 1 12; #X flags 0 0; #P newobj 67 354 77 196617 counter 0 1 12; #P button 69 326 15 0; #P hidden inlet 269 22 15 0; #P hidden inlet 254 22 15 0; #P newex 278 438 51 196617 r cymvel; #P newex 182 459 107 196617 poly~ cympbspeed 12; #P outlet 243 484 15 0; #P outlet 225 484 15 0; #P hidden message 200 184 39 196617 set \$1; #P hidden message 156 184 39 196617 set \$1; #P hidden newex 229 50 48 196617 loadbang; #P hidden newex 109 205 61 196617 r cymAtrig; #P hidden newex 86 35 97 196617 record~ cymbalA 2; #P hidden button 68 184 15 0; #P hidden newex 68 203 27 196617 f; #P hidden newex 109 226 29 196617 * 1.; #P hidden newex 68 247 78 196617 pack 0. 0. 0. 0.; #P hidden newex 109 184 29 196617 !- 0.; #P hidden message 186 35 66 196617 set cymbalA; #P window setfont "Sans Serif" 12.; #P flonum 180 68 68 12 0. 0 1 3 0 0 0 157 203 255 222 222 222 0 0 0; #P toggle 25 47 40 0; #P flonum 109 68 68 12 0. 0 1 3 0 0 0 157 203 255 222 222 222 0 0 0; #P window setfont "Sans Serif" 9.; #P user waveform~ 25 91 223 89 3 9; #W mode select; #W mouseoutput continuous; #W unit ms; #W grid 1000.; #W ticks 0; #W labels 1; #W vlabels 0; #W vticks 1; #W bpm 120. 4.; #W frgb 33 0 0; #W brgb 60 178 173; #W rgb2 0 95 255; #W rgb3 0 0 0; #W rgb4 0 0 0; #W rgb5 190 137 255; #W rgb6 100 100 100; #W rgb7 100 100 100; #P comment 109 55 57 196617 start time; #P comment 180 55 49 196617 end time; #P comment 13 34 69 196617 record on/off; #P window setfont "Sans Serif" 14.; #P comment 97 33 81 196622 CYMBAL A; #B frgb 49 27 170; #P connect 10 0 25 0; #P connect 10 0 21 0; #P hidden connect 8 0 4 0; #P hidden connect 13 0 12 0; #P hidden connect 12 0 10 0; #P hidden connect 6 0 14 0; #P hidden connect 23 0 14 0; #P hidden connect 17 0 5 0; #P hidden connect 15 0 11 0; #P hidden connect 24 0 14 1; #P hidden connect 9 0 11 1; #P hidden connect 5 0 4 2; #P hidden connect 11 0 10 3; #P hidden connect 11 0 13 0; #P hidden connect 4 2 17 0; #P hidden connect 4 2 9 0; #P hidden connect 4 2 12 1; #P connect 25 0 26 0; #P hidden connect 18 0 7 0; #P hidden connect 7 0 4 3; #P hidden connect 16 0 8 0; #P connect 26 0 27 0; #P hidden connect 4 3 18 0; #P hidden connect 4 3 9 1; #P hidden connect 4 3 10 2; #P connect 27 0 21 0; #P connect 21 0 19 0; #P connect 21 1 20 0; #P connect 22 0 21 3; #P window clipboard copycount 28; pack sends a list to the first inlet of the poly~ object. This inlet is connected to line~, which is connected to play~. I have it set up this way so the user can edit the start and end points of their samples in the patch itself. Also, part of that list controls playback speed in realtime, which is why there's a * object feeding pack's last inlet. Anyway, sending "target $1" with the number from the counter feeding $1 seems to get this to work, but my understanding was that this isn't the normal operation. I've tried "prepend note" and "note $1" with no/limited success. Suggestions? Also, is this the correct use of thispoly~ #P window setfont "Sans Serif" 9.; #P window linecount 1; #P newex 466 405 52 196617 thispoly~; #N out~ 2; #X comment ch 2 out; #P newobj 424 405 39 196617 out~ 2; #N out~ 1; #X comment ch 1 out; #P newobj 382 405 39 196617 out~ 1; #P newex 558 340 71 196617 * 0.007874; #N in 4; #X comment raw velocity inlet; #P newobj 558 319 25 196617 in 4; #P newex 412 377 27 196617 *~; #P newex 382 377 27 196617 *~; #N in 3; #X comment cymbalC list inlet; #P newobj 470 263 25 196617 in 3; #N in 2; #X comment cymbalB list inlet; #P newobj 382 263 25 196617 in 2; #N in 1; #X comment cymbalA list inlet; #P newobj 293 263 25 196617 in 1; #P newex 470 291 32 196617 line~; #P newex 382 291 32 196617 line~; #P newex 293 291 32 196617 line~; #P newex 470 319 85 196617 play~ cymbalC 2; #P newex 382 319 85 196617 play~ cymbalB 2; #P newex 293 319 86 196617 play~ cymbalA 2; #P connect 11 0 12 0; #P connect 5 0 2 0; #P connect 8 0 5 0; #P connect 9 0 13 0; #P connect 9 0 15 0; #P connect 10 0 14 0; #P connect 10 0 15 0; #P connect 12 0 9 1; #P connect 12 0 10 1; #P connect 2 1 10 0; #P connect 1 1 10 0; #P connect 0 1 10 0; #P connect 2 0 9 0; #P connect 1 0 9 0; #P connect 0 0 9 0; #P connect 4 0 1 0; #P connect 7 0 4 0; #P connect 3 0 0 0; #P connect 6 0 3 0; #P window clipboard copycount 16; Thanks! From cbm at well.com Thu Aug 2 16:58:05 2007 From: cbm at well.com (Chris Muir) Date: Thu Aug 2 16:58:10 2007 Subject: [maxmsp] Re: "sel 0" bug? In-Reply-To: <1b4e7.46b25697@www.cycling74.com> References: <1b4e7.46b25697@www.cycling74.com> Message-ID: At 3:11 PM -0700 8/2/07, Matt Wright wrote: >Max's general convention about integer versions of objects truncating incoming floats makes sense if the object does arithmetic, but I think it's a misfeature in the case of "sel". (And that's why I think "route 0" behaves correctly by passing 0.1 out the right outlet.) Are you sure that "route 0" is doing what you think it is? When I send floats to a "route 0", it seems to want to send _everything_ out the right output. >Let me put it this way---does anyone have an example of a case where "sel 0" behaving like "split 0. 0.999999" (with a button on the left outlet) is useful or more clear? I think of select and route as being for selecting specific values, not numeric ranges. And it will select a specific value, if you type it properly. Is this a philosophical disagreement or a practical one? Is there anything in your patch that would break if you were using "sel 0."? I'm totally willing to entertain an abstract argument, I just thought that your original query was posed as a practical question. -C -- Chris Muir | "There are many futures and only one status quo. cbm@well.com | This is why conservatives mostly agree, http://www.xfade.com | and radicals always argue." - Brian Eno From cbm at well.com Thu Aug 2 17:11:58 2007 From: cbm at well.com (Chris Muir) Date: Thu Aug 2 17:12:04 2007 Subject: [maxmsp] Re: Random between +/- 128.0?? In-Reply-To: <1b4e4.46b25408@www.cycling74.com> References: <1b4e4.46b25408@www.cycling74.com> Message-ID: At 12:00 AM +0200 8/3/07, Peter Castine wrote: >The other solutions using the stock random object will only give you a limited resolution. For instance, Keith's solution will only give you numbers in increments of 0.1, it'll never give you a random value like 42.14159. Well, my solution will give you fairly arbitrary resolution (repeated here with an added numberbox for variable resolution): #P window setfont "Sans Serif" 9.; #P number 154 98 60 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P button 58 89 15 0; #P flonum 58 160 70 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P window linecount 1; #P newex 58 140 128 196617 scale 0 25600 -128. 128.; #P newex 58 108 76 196617 random 25600; #P comment 217 98 55 196617 resolution; #P connect 5 0 2 2; #P connect 5 0 1 1; #P connect 2 0 3 0; #P connect 1 0 2 0; #P connect 4 0 1 0; #P window clipboard copycount 6; It's probably not as good as the Litter solution, but the price is right. -C -- Chris Muir | "There are many futures and only one status quo. cbm@well.com | This is why conservatives mostly agree, http://www.xfade.com | and radicals always argue." - Brian Eno From bthrew at gmail.com Thu Aug 2 17:12:02 2007 From: bthrew at gmail.com (barry threw) Date: Thu Aug 2 17:12:11 2007 Subject: [maxmsp] Re: "sel 0" bug? In-Reply-To: <1b4e7.46b25697@www.cycling74.com> References: <1b4e7.46b25697@www.cycling74.com> Message-ID: You bracket very strangely. b On Aug 2, 2007, at 3:11 PM, Matt Wright wrote: > > Yes, I understand the difference between 0 and 0. (See, that > period is a pun.) > > Max's general convention about integer versions of objects > truncating incoming floats makes sense if the object does > arithmetic, but I think it's a misfeature in the case of "sel". > (And that's why I think "route 0" behaves correctly by passing 0.1 > out the right outlet.) > > Let me put it this way---does anyone have an example of a case > where "sel 0" behaving like "split 0. 0.999999" (with a button on > the left outlet) is useful or more clear? I think of select and > route as being for selecting specific values, not numeric ranges. > > -Matt > > p.s. I don't think it's strange to compare a float to an int, and > if you did so in C or any number of other programming languages it > would do what I expect: > > int i = 123; > float f = 123.456; > > if (i==f) { > printf("I'll eat my hat. > "); > } else { > printf("good thing C doesn't work like Max. > "); > } > _______________________________________________ > maxmsp mailing list > maxmsp@cycling74.com > http://www.cycling74.com/mailman/listinfo/maxmsp Barry Threw Media Art and Technology San Francisco, CA Work: 857-544-3967 Email: bthrew@gmail.com IM: captogreadmore (AIM) http:/www.barrythrew.com From alex.thedigitalgarden at gmail.com Thu Aug 2 19:08:33 2007 From: alex.thedigitalgarden at gmail.com (dGarden) Date: Thu Aug 2 19:08:41 2007 Subject: [maxmsp] Re: argh! still struggling with poly~ In-Reply-To: <1b4e8.46b25824@www.cycling74.com> Message-ID: <1b4f6.46b28010@www.cycling74.com> hi, [prepend note] and [note $1] have the same function. For a list you should use the prepend method. peace a ______________________________________________________ master patch : ______________________________________________________ max v2; #N vpatcher 364 63 867 655; #P window setfont "Sans Serif" 9.; #P window linecount 1; #P message 304 78 38 9109513 replace; #P newex 154 258 27 9109513 f 1.; #P button 154 236 15 0; #P flonum 171 236 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P message 148 392 206 9109513 159938.96875 0. 162256.921875 2317.959473; #P newex 148 366 57 9109513 prepend set; #P newex 304 142 88 9109513 buffer~ cymbalC 2; #P newex 304 121 87 9109513 buffer~ cymbalB 2; #P user ezdac~ 431 134 475 167 0; #P number 168 474 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0; #P newex 74 341 84 9109513 t l l; #P newex 304 100 87 9109513 buffer~ cymbalA 2; #P newex 74 367 62 9109513 prepend note; #P inlet 275 39 15 0; #P inlet 260 39 15 0; #P newex 167 418 51 9109513 r cymvel; #P newex 74 443 105 9109513 poly~ cympbspeed 12; #P outlet 121 476 15 0; #P outlet 74 475 15 0; #P message 206 201 39 9109513 set \$1; #P message 162 201 39 9109513 set \$1; #P newex 235 67 48 9109513 loadbang; #P newex 190 258 61 9109513 r cymAtrig; #P newex 98 31 97 9109513 record~ cymbalA 2; #P button 74 246 15 0; #P newex 74 265 27 9109513 f; #P newex 140 290 29 9109513 * 1.; #P newex 74 316 78 9109513 pack 0. 0. 0. 0.; #P newex 115 238 29 9109513 !- 0.; #P message 192 52 66 9109513 set cymbalA; #P window setfont "Sans Serif" 12.; #P flonum 186 85 68 12 0. 0 1 139 0 0 0 157 203 255 222 222 222 0 0 0; #P toggle 31 64 40 0; #P flonum 115 85 68 12 0. 0 1 139 0 0 0 157 203 255 222 222 222 0 0 0; #P window setfont "Sans Serif" 9.; #P user waveform~ 31 108 223 89 139 9; #W mode select; #W mouseoutput continuous; #W unit ms; #W grid 1000.; #W ticks 0; #W labels 1; #W vlabels 0; #W vticks 1; #W bpm 120. 4.; #W frgb 33 0 0; #W brgb 60 178 173; #W rgb2 0 95 255; #W rgb3 0 0 0; #W rgb4 0 0 0; #W rgb5 190 137 255; #W rgb6 100 100 100; #W rgb7 100 100 100; #P comment 115 72 57 9109513 start time; #P comment 186 72 49 9109513 end time; #P comment 19 51 69 9109513 record on/off; #P window setfont "Sans Serif" 14.; #P comment 103 50 81 9109518 CYMBAL A; #B frgb 49 27 170; #P connect 8 0 4 0; #P connect 11 0 13 0; #P connect 13 0 12 0; #P connect 12 0 10 0; #P connect 10 0 27 0; #P connect 27 0 25 0; #P connect 25 0 21 0; #P connect 21 0 19 0; #P connect 4 2 12 1; #P connect 23 0 14 0; #P connect 6 0 14 0; #P connect 17 0 5 0; #P connect 4 2 9 0; #P connect 4 3 10 2; #P connect 21 1 20 0; #P connect 24 0 14 1; #P connect 4 3 9 1; #P connect 5 0 4 2; #P connect 36 0 11 0; #P connect 15 0 11 0; #P connect 11 0 10 3; #P connect 27 1 32 0; #P connect 32 0 33 0; #P connect 35 0 36 0; #P connect 9 0 11 1; #P connect 4 2 17 0; #P connect 22 0 21 3; #P connect 21 2 28 0; #P connect 34 0 36 1; #P connect 18 0 7 0; #P connect 7 0 4 3; #P connect 16 0 8 0; #P connect 4 3 18 0; #P connect 37 0 26 0; #P pop; ______________________________________________________ cympbspeed.pat ______________________________________________________ max v2; #N vpatcher 378 45 886 338; #P window setfont "Sans Serif" 9.; #P message 135 130 14 9109513 0; #P newex 27 70 179 9109513 t l 1 b; #N out 1; #P newobj 195 207 29 9109513 out 1; #P newex 195 174 52 9109513 thispoly~; #N out~ 2; #X comment ch 2 out; #P newobj 103 207 39 9109513 out~ 2; #N out~ 1; #X comment ch 1 out; #P newobj 27 206 39 9109513 out~ 1; #P newex 303 153 71 9109513 * 0.007874; #N in 4; #X comment raw velocity inlet; #P newobj 303 126 25 9109513 in 4; #P newex 102 174 28 9109513 *~ 1.; #P newex 27 173 32 9109513 *~ 1.; #N in 3; #X comment cymbalC list inlet; #P newobj 391 44 25 9109513 in 3; #N in 2; #X comment cymbalB list inlet; #P newobj 303 44 25 9109513 in 2; #N in 1; #X comment cymbalA list inlet; #P newobj 27 45 25 9109513 in 1; #P newex 391 72 32 9109513 line~; #P newex 303 72 32 9109513 line~; #P newex 27 99 32 9109513 line~; #P newex 391 100 85 9109513 play~ cymbalC 2; #P newex 303 100 85 9109513 play~ cymbalB 2; #P newex 27 127 86 9109513 play~ cymbalA 2; #P connect 6 0 17 0; #P connect 17 0 3 0; #P connect 3 0 0 0; #P connect 0 0 9 0; #P connect 9 0 13 0; #P connect 0 1 10 0; #P connect 10 0 14 0; #P fasten 3 1 18 0 54 122 140 122; #P connect 17 2 15 0; #P fasten 17 1 15 0 116 97 200 97; #P fasten 18 0 15 0 140 155 200 155; #P connect 15 0 16 0; #P connect 7 0 4 0; #P connect 4 0 1 0; #P connect 11 0 12 0; #P connect 8 0 5 0; #P connect 5 0 2 0; #P pop; From laut_leise at gmx.net Thu Aug 2 19:22:34 2007 From: laut_leise at gmx.net (Roman Thilenius) Date: Thu Aug 2 19:22:46 2007 Subject: [maxmsp] Re: "sel 0" bug? In-Reply-To: <1b4cf.46b240e5@www.cycling74.com> Message-ID: <1b4f8.46b28359@www.cycling74.com> Quote: Leafcutter John wrote on Thu, 02 August 2007 14:39 ---------------------------------------------------- > If you put an integer as an argument sel expects and integer as an input. If you feed it a float it will convert that to an integer which explains what you are seeing - It is not a bug. If you want to give sel a float input then put 0. as an argument and you will get the behavior you expect to see. > > best, > > john. ---------------------------------------------------- :) i think he knows why it technically happens - but why is it implemented like that? he is poinitng out correctly that [route 0] does not accept floats. it is clear that there is a significant difference between route and select: route outputs numbers, so int/float conversion (or not conversion) is an issue to it. [route 0] routes "0.77" correctly to the right outlet - because "0.77" is not "0", but [select 0] claims it would be, because it does not round it just truncates the float to int with a pair of scissors. otoh we could also start a discussion about possible misbehaviour of the route object: [route 0] is a [route] object in float mode, don?t we see it like this? well it is funny that route tells you the difference between 0 floast and 0 int. nah, i am just joking, route is not a math object, it is THE object to tel the difference between different types of messages - like int and float. but why the heck doesnt select do it the same way? -- http://vst-mac.info/ From laut_leise at gmx.net Thu Aug 2 19:29:21 2007 From: laut_leise at gmx.net (Roman Thilenius) Date: Thu Aug 2 19:29:26 2007 Subject: [maxmsp] Re: "sel 0" bug? In-Reply-To: Message-ID: <1b4f9.46b284f1@www.cycling74.com> > >I think of select and route as being for selecting specific values, not numeric ranges. > yes - but see, they behave different, that what it is all about. :) wouldnt it be useful sometimes when [select 0] would bang left ONLY when it recieves "INT 0"? i fully understand matt?s thought because for me route and select always were like brother and sister. yes i know about the little difference. -110 -- http://vst-mac.info/ From laut_leise at gmx.net Thu Aug 2 19:46:23 2007 From: laut_leise at gmx.net (Roman Thilenius) Date: Thu Aug 2 19:46:27 2007 Subject: [maxmsp] Re: "sel 0" bug? In-Reply-To: <1b4f9.46b284f1@www.cycling74.com> Message-ID: <1b4fb.46b288ee@www.cycling74.com> try this and you will se whats wrong with [select]. [route] is able to interpret floats correctly as floats even when the first argument is an int. [select ] is not. funny thing about it is that they use [select 1 bob 30 20 55.6] in the help file, which works. if you do [select 55 bob 30 20 55.6] it stops working. :) max v2; #N vpatcher 115 192 1010 824; #P comment 461 471 352 196626 if you do [select 55 bob 30 20 55.6] it stops working. :); #P button 335 493 22 0; #P button 159 500 22 0; #P button 339 321 22 0; #P button 163 328 22 0; #P button 122 362 22 0; #P button 55 362 22 0; #P flonum 56 338 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 114 338 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P button 286 363 22 0; #P button 219 363 22 0; #P flonum 220 339 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 278 339 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P comment 460 371 352 196626 funny thing about it is that they use [select 1 bob 30 20 55.6] in the help file which works.; #P message 353 244 50 196617 0; #P message 295 244 50 196617 0.; #P message 236 244 50 196617 0.77; #P message 153 248 50 196617 0; #P message 95 248 50 196617 0.; #P message 36 248 50 196617 0.77; #P newex 206 299 95 196617 route 0.77 0; #P newex 57 299 95 196617 route 0 0.77; #P message 366 411 50 196617 0; #P message 308 411 50 196617 0.; #P message 249 411 50 196617 0.77; #P message 157 417 50 196617 0; #P message 99 417 50 196617 0.; #P message 40 417 50 196617 0.77; #P button 274 508 22 0; #P button 229 508 22 0; #P newex 219 466 95 196617 select 0.77 0; #P button 110 510 22 0; #P button 63 510 22 0; #P message 147 58 50 196617 0; #P message 89 58 50 196617 0.; #P message 33 58 50 196617 0.77; #P message 356 58 50 196617 0; #P button 294 161 22 0; #P button 227 161 22 0; #P newex 61 468 95 196617 select 0 0.77; #P message 298 58 50 196617 0.; #P button 106 150 22 0; #P flonum 228 137 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P flonum 286 137 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P button 57 150 22 0; #P newex 235 109 50 196617 route 0; #P newex 68 109 50 196617 select 0; #P message 242 58 50 196617 0.77; #P comment 460 244 352 196626 see whats wrong with select? [route] is able to interpret floats correctly as floats even when the first argument is an int. [select ] is not.; #P connect 41 0 42 0; #P connect 27 0 41 0; #P connect 2 0 4 0; #P connect 31 0 27 0; #P connect 30 0 27 0; #P connect 29 0 27 0; #P connect 23 0 9 0; #P connect 22 0 9 0; #P connect 21 0 9 0; #P connect 9 0 16 0; #P connect 15 0 2 0; #P connect 14 0 2 0; #P connect 13 0 2 0; #P connect 2 1 7 0; #P connect 9 1 17 0; #P connect 27 1 40 0; #P connect 40 0 43 0; #P connect 9 2 46 0; #P connect 27 2 44 0; #P connect 34 0 28 0; #P connect 33 0 28 0; #P connect 32 0 28 0; #P connect 37 0 38 0; #P connect 26 0 18 0; #P connect 25 0 18 0; #P connect 24 0 18 0; #P connect 28 0 37 0; #P connect 6 0 10 0; #P connect 3 0 6 0; #P connect 18 0 19 0; #P connect 12 0 3 0; #P connect 8 0 3 0; #P connect 1 0 3 0; #P connect 18 1 20 0; #P connect 28 1 36 0; #P connect 3 1 5 0; #P connect 36 0 39 0; #P connect 5 0 11 0; #P connect 18 2 47 0; #P connect 28 2 45 0; #P pop; that means that you have to start with your floats when using select. but when using route you can mix stuff as you want. -110 From cbm at well.com Thu Aug 2 20:29:37 2007 From: cbm at well.com (Chris Muir) Date: Thu Aug 2 20:29:41 2007 Subject: [maxmsp] Re: "sel 0" bug? In-Reply-To: <1b4fb.46b288ee@www.cycling74.com> References: <1b4fb.46b288ee@www.cycling74.com> Message-ID: At 7:46 PM -0600 8/2/07, Roman Thilenius wrote: >try this and you will se whats wrong with [select]. > >[route] is able to interpret floats correctly as floats even when the first argument is an int. I don't think this is what's happening. "route 0" doesn't match any float, so it never routes anything to its left output. -C -- Chris Muir | "There are many futures and only one status quo. cbm@well.com | This is why conservatives mostly agree, http://www.xfade.com | and radicals always argue." - Brian Eno From sympathetic_noise at hotmail.com Fri Aug 3 02:26:24 2007 From: sympathetic_noise at hotmail.com (alexander) Date: Fri Aug 3 02:26:29 2007 Subject: [maxmsp] Re: MaxMSP and The Monome Problem with osx 10.3.9 In-Reply-To: <1b392.46ab8138@www.cycling74.com> Message-ID: <1b50a.46b2e6af@www.cycling74.com> Are you using 10.3.9 or 10.4.9 ?? There's a big difference! -- - Alexander From sympathetic_noise at hotmail.com Fri Aug 3 02:28:42 2007 From: sympathetic_noise at hotmail.com (alexander) Date: Fri Aug 3 02:28:48 2007 Subject: [maxmsp] Re: MaxMSP and The Monome Problem with osx 10.3.9 In-Reply-To: <1b392.46ab8138@www.cycling74.com> Message-ID: <1b50b.46b2e739@www.cycling74.com> Didn't see the crash report, maybe using osx panther is part of the problem. I wouldn't know why, but I'm sure somebody here does! ;) -- - Alexander From generalh at noos.fr Fri Aug 3 03:29:46 2007 From: generalh at noos.fr (Hubert PICHOT) Date: Fri Aug 3 03:31:35 2007 Subject: [maxmsp] Max, Burkina Faso & Mali In-Reply-To: <46B27170.4000603@cycling74.com> References: <46B27170.4000603@cycling74.com> Message-ID: Hello list, I'm going to Burkina Faso and Mali next week. I will bring with me a video projector, 2 speakers, 1x 17?PB,1x17"MBP, 1 Wise Box with a bunch of sensors and of course 1 lovely licence of max So i just wonder if anybody has ever patched in these lands? If yes, may you give me some adresses ? As a wonder, i will work a little with a dancer and have a little demo at the presidential garden of Burkina Faso!! Iniki? Hubert From barry.griffin at hiq.se Fri Aug 3 03:32:34 2007 From: barry.griffin at hiq.se (Baz79) Date: Fri Aug 3 03:32:38 2007 Subject: [maxmsp] Re: Function object with line object In-Reply-To: Message-ID: <1b50e.46b2f62c@www.cycling74.com> Thanks! I found the following patch, but I'm sure exactly how I'm supposed to use it with the function object. Any suggestions? #P window setfont "Sans Serif" 9.; #P window linecount 1; #P newex 213 152 29 196617 gate; #P newex 213 86 29 196617 == 2; #P newex 99 266 29 196617 sel 1; #P newex 99 243 29 196617 == 1; #P newex 130 86 31 196617 > 2; #P newex 130 152 40 196617 gate; #P newex 130 64 31 196617 zl len; #P newex 130 173 51 196617 zl reg; #P newex 13 42 178 196617 t l 3; #P outlet 181 297 15 0; #P newex 181 266 33 196617 gate; #P newex 181 243 26 196617 <= 2; #P inlet 159 22 15 0; #P inlet 86 22 15 0; #P newex 130 195 85 196617 t l l b; #P newex 130 266 47 196617 gate; #P newex 130 243 32 196617 > 2; #P newex 130 217 32 196617 zl len; #P newex 13 106 168 196617 zl slice 2; #P newex 13 128 157 196617 line $1; #P outlet 13 296 15 0; #P inlet 13 22 15 0; #P window linecount 5; #P comment 25 160 100 196617 this can replace the line object and will do it like line~ with as many point time pairs as you want.; #P connect 3 1 17 1; #P fasten 3 1 22 1 165 149 237 149; #P connect 21 0 22 0; #P connect 16 0 18 0; #P fasten 16 0 21 0 135 83 218 83; #P connect 8 2 12 1; #P connect 12 0 13 0; #P fasten 20 0 13 0 104 293 186 293; #P fasten 22 0 13 0 218 293 186 293; #P connect 11 0 12 0; #P fasten 14 1 6 0 186 239 135 239; #P connect 14 1 11 0; #P fasten 5 0 19 0 135 239 104 239; #P connect 5 0 6 0; #P fasten 5 0 11 0 135 239 186 239; #P connect 4 1 15 1; #P connect 8 1 7 1; #P connect 10 0 3 2; #P connect 6 0 7 0; #P connect 8 0 5 0; #P connect 15 0 8 0; #P connect 17 0 15 0; #P connect 18 0 17 0; #P connect 14 0 4 0; #P fasten 14 0 16 0 18 61 135 61; #P connect 19 0 20 0; #P connect 9 0 3 1; #P connect 3 0 2 0; #P connect 4 0 3 0; #P fasten 7 0 4 0 135 289 8 289 8 102 18 102; #P connect 1 0 14 0; #P window clipboard copycount 23; From mattijs at smadsteck.nl Fri Aug 3 03:38:11 2007 From: mattijs at smadsteck.nl (Mattijs Kneppers) Date: Fri Aug 3 03:38:15 2007 Subject: [maxmsp] Re: In-Reply-To: <1b4ac.46b1cee5@www.cycling74.com> Message-ID: <1b50f.46b2f781@www.cycling74.com> Ah, pure appearantly replied to this thread with the intention of starting a new topic. I split the thread. Mattijs Quote: Mattijs wrote on Thu, 02 August 2007 14:32 ---------------------------------------------------- > I believe this is not something that should be solved with a 3rd party plugin. It's about the core of symbol/string handling, typically a problem cycling '74 has to sort out for itself. Good luck with that by the way, it'll be pretty tough.. > > Mattijs > > Quote: pure wrote on Thu, 02 August 2007 14:22 > ---------------------------------------------------- > > from maxobjects.com: > > > > Panaiotis Objects is a set of 10 objects including a luxurious counter, > > a smart midi note generator, an overcomplete matrix router, and objects > > dealing with randomness, permutation, and more... for OSX UB and XP. > > > > http://www.unm.edu/~panaioti/Max/ObjMenu.htm > > > > > > p > > > > -- > > http://pure.test.at > > > > > > > > > ---------------------------------------------------- > > ---------------------------------------------------- -- SmadSteck - http://www.smadsteck.nl Hard- and software for interactive audiovisual sampling From tage81 at gmail.com Fri Aug 3 03:50:38 2007 From: tage81 at gmail.com (Tage Skotvold) Date: Fri Aug 3 03:50:41 2007 Subject: [maxmsp] Finding movement direction from accelerometer data Message-ID: <1b510.46b2fa6a@www.cycling74.com> Hey guys, I've been ripping my hair out over this problem for quite a while now (I have a previous post about the subject, but I am now further down the line). I have a accelerometer (the ADXL330 from the WiiMRemote) which measures acceleration in three axis. I'm using the 8-bit values that I get from the aka.wiiremote object, which is scaled from 0-255. When the accelerometer is not in movement - the value is (jittery) but fairly stable at around the mid-value 127 What I have found out (well, it's no major discorvery or anything) is that an increase in value is a movement to the right, and a decrease in value is a movement to the left (this is on the x plane of the accelerometer, but this can also be applied to the other planes to find the direction of movement on all planes). If you've ever dealt with accelerometer data in Max (I'm sure you've come across the same as me) you know that it always has a jump in one direction and then dips in to the opposite direction on stopping the acceleration (increase-decrease or decrease-increase) What I'm trying to do is have a stable recognition of this dip (I only want to measure the first part of the dip, because the contrary dip in the other direction is not useful in my case). I have tried doing this with scaling the parameters from +1 to -1 and find it whenever the scale has a zero crossing to say stop recognising the next bit of the dip. But so far no good results, as the no movement (or mid-value is always a bit unstable), so I get all these random zero crossings when I do not want them when there is little movement. I've attached a simple little patch just to illustrate the problem - it's not from the actual patch I'm building (that's embarrissingly messy at the moment!) Anyone know of a solution???? :) max v2; #N vpatcher 263 337 649 749; #P origin 136 6; #P button 235 27 15 0; #P window setfont "Sans Serif" 9.; #P window linecount 2; #P comment 253 28 100 196617 Trigger "movement" to right; #P window linecount 1; #P hidden newex 336 135 55 196617 delay 500; #P hidden newex 279 135 55 196617 delay 500; #P hidden message 392 61 74 196617 191 \, 127 500; #P hidden message 317 61 68 196617 63 \, 191 500; #P hidden message 233 61 68 196617 127 \, 63 500; #P hidden newex 313 113 40 196617 line; #P button 33 25 15 0; #P hidden newex -27 126 55 196617 delay 500; #P hidden newex -84 126 55 196617 delay 500; #P hidden message 29 52 68 196617 63 \, 127 500; #P hidden message -46 52 68 196617 191 \, 63 500; #P hidden newex -130 29 48 196617 loadbang; #P hidden message -130 52 77 196617 127 \, 191 500; #P hidden newex -50 104 40 196617 line; #P newex 170 334 105 196617 scale 0. 255. 127. 0.; #P flonum 170 366 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P slider 170 60 32 256 0 1; #P number 171 40 31 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; #P window setfont "Sans Serif" 12.; #P comment 171 21 15 196620 x; #P window setfont "Sans Serif" 9.; #P window linecount 2; #P comment 51 26 100 196617 Trigger "movement" to left; #P hidden connect 13 0 7 0; #P hidden connect 8 0 7 0; #P hidden connect 7 0 11 0; #P hidden connect 7 0 6 0; #P hidden connect 10 0 6 0; #P hidden connect 9 0 6 0; #P hidden connect 11 0 9 0; #P hidden connect 11 0 12 0; #P hidden connect 12 0 10 0; #P hidden connect 2 0 3 0; #P connect 3 0 5 0; #P connect 5 0 4 0; #P hidden connect 14 0 2 0; #P hidden connect 6 0 2 0; #P hidden connect 21 0 15 0; #P hidden connect 15 0 18 0; #P hidden connect 15 0 14 0; #P hidden connect 16 0 14 0; #P hidden connect 17 0 14 0; #P hidden connect 18 0 16 0; #P hidden connect 18 0 19 0; #P hidden connect 19 0 17 0; #P pop; From tage81 at gmail.com Fri Aug 3 04:07:19 2007 From: tage81 at gmail.com (Tage Skotvold) Date: Fri Aug 3 04:08:16 2007 Subject: [maxmsp] Re: Wii acceleration data In-Reply-To: <1ac40.468b6130@www.cycling74.com> Message-ID: <1b511.46b2fe53@www.cycling74.com> Just wanted to bring this to peoples attention - this solved my moving average problem! http://ftm.ircam.fr/index.php/Wiimote (You have to install ftm, but it works a treat!) Tage From thambo.godwin at googlemail.com Fri Aug 3 04:41:17 2007 From: thambo.godwin at googlemail.com (robin foster) Date: Fri Aug 3 04:41:23 2007 Subject: [maxmsp] Re: can anyone provide a mirror for the wacom external? In-Reply-To: <1b435.46af9ca0@www.cycling74.com> Message-ID: <1b512.46b3064c@www.cycling74.com> i've never uploaded anything onto this forum before, but hopefully there it is. something to be ware of - I found i needed to open a patch containing nothing but the wacom object before any other patches with it in to avoid crashing max. ok robin -------------- next part -------------- A non-text attachment was scrubbed... Name: wacom.zip Type: application/zip Size: 41407 bytes Desc: not available Url : http://www.cycling74.com/pipermail/maxmsp/attachments/20070803/7e34d356/wacom.zip From e.lyon at qub.ac.uk Fri Aug 3 05:21:44 2007 From: e.lyon at qub.ac.uk (Eric Lyon) Date: Fri Aug 3 05:21:49 2007 Subject: [maxmsp] Re: "sel 0" bug? In-Reply-To: Message-ID: <1b514.46b30fc7@www.cycling74.com> I wonder if much of this sort of confusion would disappear if Max treated all numerical input as floats (as does Pd), rather than maintaining a typed distinction between integers and floats. Or would this sacrifice some cherished functionality? (Yes, I realize a lot of objects would need to be rewritten.) Eric From c74-mailinglists at e--j.com Fri Aug 3 05:30:29 2007 From: c74-mailinglists at e--j.com (Emmanuel Jourdan) Date: Fri Aug 3 05:30:58 2007 Subject: [maxmsp] Re: "sel 0" bug? In-Reply-To: <1b514.46b30fc7@www.cycling74.com> References: <1b514.46b30fc7@www.cycling74.com> Message-ID: <011BA54C-AF03-4475-8B46-EB4785CF038D@e--j.com> On 3 ao?t 07, at 13:21, Eric Lyon wrote: > I wonder if much of this sort of confusion would disappear if Max > treated all numerical input as floats (as does Pd), rather than > maintaining a typed distinction between integers and floats. Or > would this sacrifice some cherished functionality? (Yes, I realize > a lot of objects would need to be rewritten.) Not only the objects, some patches would have to be rewritten too. ej From justin at lowtech.org Fri Aug 3 06:25:59 2007 From: justin at lowtech.org (justin) Date: Fri Aug 3 06:26:02 2007 Subject: [maxmsp] Re: Function object with line object In-Reply-To: <1b50e.46b2f62c@www.cycling74.com> Message-ID: <1b518.46b31ed5@www.cycling74.com> Quote: Baz79 wrote on Fri, 03 August 2007 10:32 ---------------------------------------------------- > Thanks! I found the following patch, but I'm sure exactly how I'm supposed to use it with the function object. Any suggestions? i've made a quick help file, see patches below. hope it makes more sense, j save this patch (abstraction) as "multi_line" in max searchpath - #P window setfont "Sans Serif" 9.; #P window linecount 1; #P newex 242 169 29 196617 gate; #P newex 242 103 29 196617 == 2; #P newex 128 283 29 196617 sel 1; #P newex 128 260 29 196617 == 1; #P newex 159 103 31 196617 > 2; #P newex 159 169 40 196617 gate; #P newex 159 81 31 196617 zl len; #P newex 159 190 51 196617 zl reg; #P newex 42 59 178 196617 t l 3; #N comlet end of line bang; #P outlet 210 314 15 0; #P newex 210 283 33 196617 gate; #P newex 210 260 26 196617 <= 2; #N comlet time grain in ms; #P inlet 188 39 15 0; #N comlet total ramp time in ms; #P inlet 115 39 15 0; #P newex 159 212 85 196617 t l l b; #P newex 159 283 47 196617 gate; #P newex 159 260 32 196617 > 2; #P newex 159 234 32 196617 zl len; #P newex 42 123 168 196617 zl slice 2; #P newex 42 145 157 196617 line $1; #N comlet line output; #P outlet 42 313 15 0; #N comlet multi_line msg; #P inlet 42 39 15 0; #P window linecount 5; #P comment 54 177 100 196617 this can replace the line object and will do it like line~ with as many point time pairs as you want.; #P connect 16 0 18 0; #P fasten 16 0 21 0 164 100 247 100; #P fasten 14 1 6 0 215 256 164 256; #P connect 14 1 11 0; #P connect 14 0 4 0; #P fasten 14 0 16 0 47 78 164 78; #P fasten 5 0 19 0 164