Anyone ported X.FM~ yet?

Learn about building and using Max for Live devices.
stringtapper
Posts: 6302
Joined: Sat Aug 28, 2004 6:21 pm

Anyone ported X.FM~ yet?

Post by stringtapper » Mon May 10, 2010 4:53 pm

I've been so busy I haven't done much Max-ing in a while, but if someone hasn't done it already I may make a late-summer project out of porting the X.FM~ synth to M4L.
Unsound Designer

Machinate
Posts: 11648
Joined: Thu Jun 24, 2004 2:15 pm
Location: Denmark

Re: Anyone ported X.FM~ yet?

Post by Machinate » Wed May 12, 2010 8:57 am

where's this patch? in the max subfolders?
mbp 2.66, osx 10.6.8, 8GB ram.

pid
Posts: 354
Joined: Thu Nov 05, 2009 9:51 am

Re: Anyone ported X.FM~ yet?

Post by pid » Wed May 12, 2010 11:07 am

Max > Extras > ExamplesOverview > Latest > Synth > X.FM~

or

Max Application Folder / examples / synths / FMsynth

...it's been there for the last 2 years, since Max5 launched. It is a truely beautiful piece of Max patching by, yes you guessed it, Mr Manuel Poletti, again.

i study his patches weekly, and learn new things every time. simple and perfect and powerful, each and every one.

i think your man behind the bloc controller has ported a specific bloc version of it too, somewhere.
3dot... wrote: in short.. we live in disappointing times..

Machinate
Posts: 11648
Joined: Thu Jun 24, 2004 2:15 pm
Location: Denmark

Re: Anyone ported X.FM~ yet?

Post by Machinate » Wed May 12, 2010 3:45 pm

ShelLuser wrote:Ayups. Create a new object; name it as mentioned above, then wait a moment for the program to load and presto. Double click to open.
haha, oh yeah. Brainfart there. Cheers to both of you.
mbp 2.66, osx 10.6.8, 8GB ram.

Machinate
Posts: 11648
Joined: Thu Jun 24, 2004 2:15 pm
Location: Denmark

Re: Anyone ported X.FM~ yet?

Post by Machinate » Wed May 12, 2010 4:10 pm

oh yeah, I remember this one.

I've got the basics up and running now in MaxForLive. The big challenge is redoing the interface in tabs or something to fit in the Live scheme of things.
- or would people prefer it had a pop out window?

(god I hate the device view limitations in Live right now!)
mbp 2.66, osx 10.6.8, 8GB ram.

stringtapper
Posts: 6302
Joined: Sat Aug 28, 2004 6:21 pm

Re: Anyone ported X.FM~ yet?

Post by stringtapper » Wed May 12, 2010 4:49 pm

Machinate wrote:oh yeah, I remember this one.

I've got the basics up and running now in MaxForLive. The big challenge is redoing the interface in tabs or something to fit in the Live scheme of things.
- or would people prefer it had a pop out window?

(god I hate the device view limitations in Live right now!)
Yeah the interface is really the bulk of the work. Seems like a tabbed interface a la Sampler would be the most Ableton-y solution, but a pop-out window would be very cool (and probably less work).
Unsound Designer

pid
Posts: 354
Joined: Thu Nov 05, 2009 9:51 am

Re: Anyone ported X.FM~ yet?

Post by pid » Wed May 12, 2010 5:43 pm

the thing is, there are SO SO many infuriating issues with using pop out windows. i prefer the tabs approach these days. i worked with pop outs a lot, and they are great whilst device building, but as soon as you start putting the thing through its paces you run in to huge issues with threads / defer / deferlow / oops wrong place / damn what gets stored. ever tried opening a pop out window in the middle of a cpu crunching set whilst playing? even though you thought you'd got the hang of deferlow? yes, it gets really yucky.

i think there is some mythical/secret formula for how to init m4l patches and how to queue priority things (defer etc) that cycling 74 are not telling us just to keep maxforlive interesting for all us suckers.

pop outs are only any use for standalone tasks like 'settings', 'prefs', 'help files' etc.

my two cents. must be having a boring afternoon here sorry.
3dot... wrote: in short.. we live in disappointing times..

hoffman2k
Posts: 14718
Joined: Tue Jun 15, 2004 6:40 pm
Location: Belgium
Contact:

Re: Anyone ported X.FM~ yet?

Post by hoffman2k » Wed May 12, 2010 5:58 pm

Do you mean that by just having the patch inside a patcher object and opening that patcher with the thispatcher commands somehow alters the signal flow? (my lord what a sentence...)
If so, sounds like a major bug that needs looking at.

I can't confirm such behavior. I'm also sure there isn't something mystical going on in the loading order.
Ask somebody from Cycling and they'll probably link you to a reference page on this or to paraphrase: First the devices and everything else in the set is loaded, then the pattr content and then the loadbangs. I left some stuff out there cause I can't recall the correct order. I'd look for the ref page (if there is one on this) but I'm getting 404's.

broc
Posts: 1151
Joined: Mon Jul 26, 2004 8:37 am

Re: Anyone ported X.FM~ yet?

Post by broc » Wed May 12, 2010 8:20 pm

hoffman2k wrote:Ask somebody from Cycling and they'll probably link you to a reference page on this or to paraphrase: First the devices and everything else in the set is loaded, then the pattr content and then the loadbangs.
Actually that's not true.
There was a lengthy discussion about loading order on the cycling forum where developer Jeremy Bernstein explained this:
When a device is opened in Live, the entire patch is loaded/created, just like in Max, loadbangs are serviced and so on. Automated parameters, however, do nothing until Live initializes their values. We tell Live what the initial value should be and Live, after the patch has loaded (incl. loadbang servicing), sends the value. So the order is loadbang, then parameters.

When a device is opened in Max, we have complete control over the process, and the loadbang sequence services parameters first, then loadbangs.
Quoted from this thread
http://cycling74.com/forums/topic.php?id=25322

hoffman2k
Posts: 14718
Joined: Tue Jun 15, 2004 6:40 pm
Location: Belgium
Contact:

Re: Anyone ported X.FM~ yet?

Post by hoffman2k » Wed May 12, 2010 8:54 pm

broc wrote:
hoffman2k wrote:Ask somebody from Cycling and they'll probably link you to a reference page on this or to paraphrase: First the devices and everything else in the set is loaded, then the pattr content and then the loadbangs.
Actually that's not true.
There was a lengthy discussion about loading order on the cycling forum where developer Jeremy Bernstein explained this:
When a device is opened in Live, the entire patch is loaded/created, just like in Max, loadbangs are serviced and so on. Automated parameters, however, do nothing until Live initializes their values. We tell Live what the initial value should be and Live, after the patch has loaded (incl. loadbang servicing), sends the value. So the order is loadbang, then parameters.

When a device is opened in Max, we have complete control over the process, and the loadbang sequence services parameters first, then loadbangs.
Quoted from this thread
http://cycling74.com/forums/topic.php?id=25322
Well it wouldn't be the first time I got something backwards with Max. Luckily there's always somebody else who read the same or similar :)

Machinate
Posts: 11648
Joined: Thu Jun 24, 2004 2:15 pm
Location: Denmark

Re: Anyone ported X.FM~ yet?

Post by Machinate » Wed May 12, 2010 9:15 pm

hm.. Okay, does anyone have any hints as to how to quickly set up a tabbed interface? I wonder if there's a tutorial for it. Would dig in, seems simple enough to split the interface up a bit to make it workable.
mbp 2.66, osx 10.6.8, 8GB ram.

pid
Posts: 354
Joined: Thu Nov 05, 2009 9:51 am

Re: Anyone ported X.FM~ yet?

Post by pid » Wed May 12, 2010 9:50 pm

hi machinate.

i tend to do something like this:

Code: Select all

<pre><code>
----------begin_max5_patcher----------
1767.3oc6Zs0iZiCE9YleEQo8woH6DBA180c01G51pUZeqpBYHFv6DrQIF5z
V0+6qicBXGhSLWWl1UZjYR7si+NW74R91C87mxdFm668KdezqWuu8PudxWU7
hdkO2yeE54Yonb4v7o3Oyl9O9Op5hielKecJCkrBmm6Ap5ZNixyIeEWzMLnO
n70zMqHzTLWtZPswRQqji0+s3zsXNYFx683MX+8yisgWehqQ7YKIzESxvy3p
iAbzXwl4E.JZiCj+OrOv6SkSgjH2Ewg3MvQUqtZo4eYMVsH99depnmu+vCEM
O5J3rY0Tb1MAABri.Cjal3GIDDAZEBhsBADJ2+QO+oH5hWxnQo7fanQzUDMZ
VwYsGa97bL+NQsYzHIJAaEkBaSsQeKDbeEfThHBRljh2hyxILpFA0yeOgHYP
xlgCj+LXDXOcHP4EorYOgkjCn5kI34tuBr0XZSitpwbjD55LbNlxQ7RhVeWQ
aR4SZlmY1+bzLr0I2NSrm+hLRBiVPMFKQwqq1WAGTx.KZ2e.jifhV2vj4LV5
TT1VRNYZJ1fYHDjQTxJDWPJJBK.radjUqyJTFzWKLEIVik4yxXooFKkpmsMz
SBdKYF9yjD9R4ZsG1LtSRS3wPEy38sopYptkiS8.dP89rv8ro04nlWCZegZ8
zfFnxzDDH+Y7AZfGnEBz2oCzDkFpdb+ukFs5UY3R8OOdhHbwU8nE3FgXPeAy
7T.3fyEfgNAvgQE+DN3.skZ.73Vw2aJd9F3f6SHczPMHMJnKHM9NARUW458Z
n2qCtikTGJuLNtSI0naHrJAAea.C37NwpqqChpZsZ6C15IVd8j9TmwVsBqty
x2+BBFpc12kaLLQCfKnQvfXGgCCg3tNr68NHkPscQqjnJ5uYTHmsIaVEbWZr
zyj9Rv4bBcmSSebmnZswsjjjX5ZhDlIIqYB9XI44nH7wR0wuHo5HGo5Bwh6H
xtPo0M5FbeQ2.Go6w2ejMzAx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q+2AVY7Ew3LqPO9KFtGTNPCiOFktxV4AOrvhvHkD4.UL2AcU3xi9acNr
yZaV9UN2.E3PkMgc8khaVfSciU64D7hrfol0e7gO7aESIeIYuG19q1jxIUxw
lLAFsC1vIH6ne8SCBENdsyktl0SQydZgD.sWIaPKb6xssLX2SrR1UdHXvI0f
X4ZYdyfBwqaJpD2OvDTn9mqgMyOFVMOzzScyNCDmxnhOqtAxezdxh3wwPrft
H1niiXgiGoQr5OclDKbjKT6oQrQ5zZz4Spt.rgmDoBGGpQqxmNWh0EX8zH1Q
JU18OXPphG99C+KfrrgNV
-----------end_max5_patcher-----------
</code></pre>
... REMEMBER TO VIEW / OPEN IN PRESENTATION MODE. of course.

it is just a very simple thing - but remember silly details like what gui object is in front / back / locked / etc...

it works embedding sub-BPatchers to your hearts content, too.

this device has a good tabbed interface worth looking at, for example:
http://www.maxforlive.com/library/device.php?id=245

cheers,
pid .
3dot... wrote: in short.. we live in disappointing times..

bulo
Posts: 434
Joined: Sat Sep 09, 2006 7:57 pm
Location: France
Contact:

Re: Anyone ported X.FM~ yet?

Post by bulo » Wed May 12, 2010 10:07 pm

Do you mean that by just having the patch inside a patcher object and opening that patcher with the thispatcher commands somehow alters the signal flow? (my lord what a sentence...)
If so, sounds like a major bug that needs looking at.
At least, there's a major bug with pop-up windows:
Try midi-mapping a knob inside a floating window and tweeking it with your controller...
My tongue spits english like a frog and my head is currently searching for a comprehensive language.
And I shit here

pid
Posts: 354
Joined: Thu Nov 05, 2009 9:51 am

Re: Anyone ported X.FM~ yet?

Post by pid » Wed May 12, 2010 10:19 pm

as always, bulo is right.

and THEN, whilst doing bulo's midi experiment, try opening / closing said window programatically using pcontrol, whilst the set / device is 'running'.

then try a defer, then a deferlow, before the pcontrol. anyway, you will soon be pulling your hair out if there is any degree of gui complexity whatsoever.

for the record, i adore my m4l (!)
3dot... wrote: in short.. we live in disappointing times..

bulo
Posts: 434
Joined: Sat Sep 09, 2006 7:57 pm
Location: France
Contact:

Re: Anyone ported X.FM~ yet?

Post by bulo » Wed May 12, 2010 11:11 pm

as always, bulo is right.
Exactly!! That's the point dude!
(I owe you a beer!)
I love myself. :lol:
My tongue spits english like a frog and my head is currently searching for a comprehensive language.
And I shit here

Post Reply