Max: 简单数学

max6

(参考文件:06mSimpleMath.maxpat)

1. 点击右边信息框的数字储存这个数字,再点击左边的数字得到计算后结果。如果只点击左边数字而不点击右边的数字,或先点左边数字再点右边数字,则结果仅会显示左边数字。在不点击右边数字的情况下,它的值默认为0(为避免不可能实现的数学表达式,除法和%时默认为1)

2. 能产生bang信息的入口(比如左边的数字)称为热入口(hot inlets),仅能存储信息的入口(比如右边的数字)称为冷入口(cold inlets)。

3. Max中的计算默认基于整数(如例子中第二行第二个例子),若需得到小数结果(浮点),则需使用”+ 0.”告知”+物件”我们需要得到小数(如例子中第二行第三个例子)。

4. 可以使用trigger物件进行强制计算(如例子中第二行第四、五个例子),通过它使右侧入口同样能够输出bang。字母t,b,i,f分别代表trigger的缩写,bang,整数(integer),小数(float)。

5. 例子右下方那个有趣的小patch可以实现一种叫做逆归(recursion)的程序,wiki对于逆归的简单解释是:在计算机编程里,递归指的是一个过程:函数不断引用自身,直到引用的对象已知。它会不断的叠加自身,,额,具体用在什么地方呢?运用你的想象力吧,比如一个计数器?

6. 我自己尝试着做了一个华氏度转摄氏度的小程序(蓝框那堆),然后用mac自带的单位转换widget算了一下,还真没问题~不信你自己算算,第一次尝到一点自动计算的甜头,噢也~

wdvdr02

Aaron_Martin_and_Part_Timer–Seed_Collection-(Mobeer)-2CDR-2009-UKi
Acid_Mothers_Temple_And_The_Melting_Paraiso_UFO-Glorify_Astrological_Martyrdom-2008-FNT
Acid_Mothers_Temple_and_the_Cosmic_Inferno-Hotter_than_Inferno_(Live_in_Sapporo)-2008-BCC
Aidan_Moffat_And_The_Best-Ofs-How_To_Get_To_Heaven_From_Scotland-(Advance)-2009-DV8
Anahita–Matricaria-2009-i8
Andreas_Bertilsson-Det_Fysiska_Och_Det_Psykiska-SE-(Escudre14)-2008-DPS
Andrew_Duke-From_the_Deep_End-2CD-CDR-2007-BCC
Animal_Collective-Merriweather_Post_Pavillon-2009-404
Aritomo–Kowai_Komorebi-2008-i8
Arvo_Part_(Estonian_Philharmonic_Chamber_Choir-Tonu_Kaljuste)–In_Principio-Advance-2009-i8
Asobi_Seksu-Hush-(Advance)-2009-DV8
Atom_TM-Liedgut-2009-BCC
Axa_Hour_of_Dora_Bleu–Clones_of_Eros-(Museum_Fire)-2007-UKi
BJ_Nilsen_and_Stilluppsteypa-Man_from_Deep_River-2009-BCC
Baikonour-Your_Ear_Knows_Future-2009-r35
Bartolome_Diaz-Ageless_Friends-2008-D2H
Bastard_Noise-Joined_At_The_Skull_The_Collaborations-2CDR-2008-hXc
Benge-Twenty_Systems_(1968-1988)-2008-BCC
Bill_Frisell-The_Best_of_Vol_1_Folk_Songs-2009-ONe
Bohannon-Lets_Start_The_Dance_(1978)-Reissue_Vinyl-2008-BCC
Cedric_Watson-Cedric_Watson-2008-ETHNiC
Ceephax-Drive_Time-LP-2008-BCC
Da-D-Da – A Toy
Darren_Mcclure-Softened_Edges-CDR-2007-BCC
Dhoop_Sticks-Indian_Traffic-2008-ETHNiC
Duoud-Ping_Kong-2009-JUST
Estasy–Estasy-CDR-2008-i8
Faust–Cest_Com_Com_Complique-2009-i8
Fordell_Research_Unit–The_Shape_Of_Rage-CDR-2008-i8
Frank_Zappa-The_Dub_Room_Special-(Reissue)-2009-ONe
Frank_Zappa-The_Lumpy_Money_Project-Object-3CD-(Limited_Edition)-2009-MTD
Frith_and_Roger-Pas_De_Deux-2008-JUST
Go_Koyashiki-Slit-2008-BCC
Hauschka-Snowflakes_And_Car_Wrecks-(EP)-2009-DV8
Intrusion-The_Seduction_of_Silence-(INTRUSION_2)-Vinyl-2009-DPS
Israel_Quellet–Oppressum-2006-i8
Joan_Baez-Joan_Baez_Vol._2-(Remastered)-2001-MTD
Joan_Baez-One_Day_At_A_Time-(Remastered)-2005-MTD
Joe_Grimm-Brain_Cloud-(Spekk)-2008-JUST
John_Fahey–The_Mill_Pond-EP-2008-1way
John_Frusciante-The_Empyrean-2009-RHCP
Junior_Boys-Begone_Dull_Care-(Advance)-2009-PTOP
Karan_Casey-Ships_In_The_Forest-2008-ETHNiC
Larsen-Rever-2002-B2R
Lemongrass-Hypnosis-(LGM0242-2)-CD-2009-OBC
Lorenzo_Senni-Early_Works-2008-BCC
Lucio_Capece_and_Mika_Vainio-Trahnie-2009-BCC
Mad_Manoush-The_Gypsy_R-Evolution-2009-ETHNiC
Merzbow-Dolphin_Sonar-2008-BERC
Merzbow_-_Camouflage-2009-CRUELTY
Microscopic_Septet–Lobster_Leaps_In-2008-1way
Milieu-A_Warm_Wooden_Hollow-2008-BCC
Mono – Hymn To The Immortal Wind [2009]
Mountains–Mountains_Mountains_Mountains-(Catsup_Plate)-Vinyl-2008-UKi
New_Yaki–The_Music_Of_The_New_Yaki-CDR-2008-i8
Next_Life-The_Lost_Age-2009-pLAN9
Offthesky-Creek_Caught_Fire-CDR-2008-BCC
Okada_Taxi_Aka_Kanoe-The_Starting_Point_Physical_Edition-2008-JUST
Ordo_Equilibrio_Rosarius-ONANI_(Pratice_Makes_Perfect)-Vinyl-2008-FWYH
Pan_American_-_White_Bird_Release-2009-gEm
Porn_And_Merzbow-And_The_Devil_Makes_Three-2008-DV8
Praveen_and_Benoit–Songs_Spun_Simla-EP-2008-i8
Prince_Jazzbo-Replay_Version-Vinyl-2007-BCC