Create a calendar in max!
Hi people! .. and Happy New Year!
Do you think it is possible to have a calendar interface in max? At least one like the one in the picture?
I’d start by looking at [jit.cellblock] and maybe referencing it to a [coll]. Apart from looking like the image above what exactly do you need it to do?
Hey, thanks Luke! I looked at jit.cellblock. But it didn’t help much. What I wanted to do was that, for example when I’m to press a specific date in the calendar, the patch should take me to some info related to that specific date. So every date with a specific info. The info could be stored in a [coll] for example.
Of course I would have to add the info in the [coll] in order to access it.
I am guessing once it can look like the image above, I can click on a specific date which would output the date as an index for a [coll]?
you can index coll objects with symbols. the patcher shows you how.
you can also save your coll to disk and load it later, look at coll’s helpfile.
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 552.3ocyWssaiBCD8Y3qvBsOlMxlKA59V+NVUE4.NMtBrivCcytU8eeAaSKa ahhSIjkGhs73YhNmimYr4EeufMxCLU.5Gneh77dw2ySapyfmcsWPE8PdIUoc KnhoTzGYAKL6ArCf1NriB8FEMUbQICzQDZMxKz9I27z2CWMvSYCz6JwZcqT. BZESGv80bZYu+FmgeumYvbP.5gAAo3+QuAAuDaMumB463hGWWyxASPwc6hBM SI5QxpkXzCcQ7pue2vBGkibYUES.eRNJkzBjBZ1t8nhB4HhR3wEE7YEE2YNI xvVK0izKxtxTWQelcgTmbCntgyjqAyOUMv2HtVAPtaNTADpmhBWlLhJfSIFg XBAmgcWRlhlB6qYp1bTJvkhA7OMUe9alv1gufNlYxoRMIUwipSx4zQDriqbV LStghol2IiUKIlNwlTyznoSKSufbR7LnL0JLiL8Rv9UKi9jhjKKKQsRknf5Z 25riqIweAMYwfemKMyv+v6hGYdls2GVOsJ78KBrgzc8Uw5Vh1FwZJ.07MMf4 MRduosdArpMLslf0FzmFSPIu6OpJ9+ZpZ5vh23Is38hZDFMGtm8ZzR65U+Rl 352KUdxlvJQ8+UPIW7wOxQilN6+qjqjM048zq+gZn2gTASAbgt0z.m59dFD4 Mm1wKJXhgOfshWrWxEfEDmHAvULk4.j9.tmZH083syhoraKjvyOHk3xI2MER wyNDEMwHpcwq9+kmvF9. -----------end_max5_patcher-----------
You can use [textedit] with a preset to store each day’s info. For the days themselves, [tab] would be easiest, but you’d have to ensure that the "non-month" days (grayed out) wouldn’t be clickable, maybe with a [ubutton] over them. In this example I used a [textbutton] for each day, yes it was laborious, but it works. To be slicker (and to make as many months as you want) you’d probably need to get into scripting the objects into the patch: you’d specify a starting date/day and the number of days in the month, it would create them in the proper places with the right numbers on them. Would take some doing up front, but you could then generate all your months programatically instead of by hand…
And Luke’s suggestion for using [jit.cellblock] is a good one, it would be much simpler as far as getting the dates etc. filled-in. You’d save the months in a jit.matrixset maybe. Again, you’d need to make certain cells inactive. When you click an active cell, it would trigger the preset for the [textedit].
To save line-feeds in [textedit] you need to put in a semicolon, otherwise it’ll erase any line-feeds you put in.
anyway, see how you like this one :)
-- Pasted Max Patch, click to expand. --Copy all of the following text. Then, in Max, select New From Clipboard.----------begin_max5_patcher---------- 1736.3oc6bt0aaaCFF95Tf9ePyX6Nu.dThp2MzgNrKJv.5.5ECCEx1LwZyVJ PRosYE6+9DojbjZrMoYrnn4ZCpkAkr3mde3gWc56Ku7EWMaQ9m4kyBdUveDb 0UeotjqjkIJ4ptBtZ11jOubSRobCmskWVlbKe171UVw+bkbEK2vSJ1Ub18ay uuZCuR9qfcE2TV0C2wap0YyB9yt0cSdVUVxV4Zl8SEoIa1s2VmtZEOavdJck b6xW7W+XX3tM7tBdIOqJoJMO6CE7kUMUCEAtFLO.giEK.seLrpKS+GYUCQ0q 9wihzrtCBztJIoZ45zra2SEPjKp+LBT+O37.HSTOxe3+9xWHVVuXt1pcF+S0 GgOUrKuqHMq5lfxGDxbvquunn9vN3mSd3UA+P5zPAxrSRNgGQNgQgBcDikKf wfqwB8DWqvfQQOqa2bGOaUfrfIQ8Pme0KT1XjQZZLRe1hmPbVbeUUd1AjH7g kn4M+utQqdpUeoApp6MNFIam.1eu6cTdP2D3PE+ljk7AB6.LvL.CsQ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CaWjuYRd+5gm+2FbDqaN0QNo9b54AIsaG qHY9b1yIAn1TSv0QO+WddYWqpSNoCz8y1kvAFVvix1dzlE2uXwF9Ngf1Ud4c IKSEosfWEP2WpHXlgWiSb2CtdyXk39iQzD1eXURURWlO6QkpopVLbvn5Bebq il+XN7ne9FIXVqX7FNekbUq4hEKSDZS6NpkSGn9PFUeuOob8f5qP25Cuu5io p99klEaeP7YVR5lRwWVkmw0sdgHip31L3h3qhj3Rui4doxk9gf+bZrDiejWT cVru0J2yAO3kLz.BDIcLhTc1SPqbgDXeKyNz5nYrSUG14E28LxyixxCyruJg CcbKQQlNUNJt8Uep6yKvDXH8odSe8frk53jf05RJopSvZMGQy1jl8jzAqb+J VwWIrk42WrrSc5xaTA3G0lU7x5oqkiI1aqD4p0.vQa0rMc0c405bajbLdqcv 80U69CNo0iIH3n5DbSjxIwpZka5hMnRga3FYoXCpmtAlNgCoT3HSS2AhVcGP SSvgzJ3fSCV0R4hllXygG.NRKlNMxFxcG9Uu4Tml9ohbrn5oFfSyvuhzEn6F bTWN3Bc4fKxkCNlKGbwNbvgc41bXWtMG1kaygc41bDfKGbPWN3PNbvgb5w4b 41bXWtMG1kaygcYmvXW1IL1kcBib5w4b41bHWtMGxoay4xNgQtrSXjK6DF5x s4ftbuUnKONGzkmg.5z94bYgyRwlnf5E+GTJjeZL -----------end_max5_patcher-----------
Wow! Thank you for all the help, guys! The whole idea from the beginning was to use some sort of calendar that updates and fills itself automatically with proper dates according to the month. Think [date] object on a larger scale! So I wouldn’t have to type the dates myself month after month, year after year. Like the [date] object it could use the OS’s system to show me the calendar. But I am guessing that is more related to java or something.
But your solutions could help me get out of this mess! Using jit.cellblock, coll or textedit and preset are fabulous ideas! So many solutions! Thank you so much to all 3 of you!
thinking about it some more, it should be feasible to give just the day of the week that January 1 falls on, then build the whole year from that (with a caveat for leap years). Would take some fiddling though… as does everything interesting…
Without giving it too much deep thought, my suggestion for what I think you *really* want to do is to use Java (mxj) – there are tons of freeware Java widgets that you should be able to use – found this one very quickly:
Of course, this requires that you know some Java, know your way around mxj, etc…
That’s what I figured! Unfortunately I don’t know any java! :(
Forums > MaxMSP