vent ed ▁in ▁ 1 8 0 1 , ▁it ▁used ▁holes ▁in ▁p unch ed ▁cards ▁to ▁represent ▁se wing ▁lo om ▁arm ▁movements ▁in ▁order ▁to ▁generate ▁decor ative ▁patterns ▁automatically . ▁A ▁computer ▁program ▁list ▁of ▁instructions ▁to ▁be ▁executed ▁by ▁a ▁computer . ▁Bar rel s , ▁p unch ed ▁cards ▁and ▁music ▁roll s ▁encoding ▁music ▁to ▁be ▁played ▁by ▁player ▁pian os , ▁fair ground ▁org ans , ▁bar rel ▁org ans ▁and ▁music ▁boxes . ▁A ▁music ▁sequ encer ▁is ▁a ▁program m able ▁musical ▁instrument . ▁It ▁was ▁the ▁earliest ▁type ▁of ▁program m able ▁machine . ▁The ▁first ▁music ▁sequ encer ▁was ▁an ▁autom ated ▁fl ute ▁player ▁invent ed ▁by ▁the ▁Pers ian ▁Ban u ▁Mus a ▁brothers , ▁described ▁in ▁their ▁Book ▁of ▁In gen ious ▁Dev ices , ▁in ▁the ▁ 9 th ▁century . ▁In ▁ 1 2 0 6 , ▁the ▁Arab ▁invent or ▁Al - J az ari ▁( in ▁the ▁Turkish ▁Art u q id ▁S ult n ate ) ▁invent ed ▁program m able ▁autom ata , ▁which ▁incorpor ated ▁the ▁first ▁program m able ▁drum ▁machine . ▁ ▁The ▁execution ▁of ▁a ▁program ▁is ▁a ▁series ▁of ▁actions ▁following ▁the ▁instructions ▁it ▁contains . ▁Each ▁instruction ▁produces ▁effects ▁that ▁alter ▁the ▁state ▁of ▁the ▁machine ▁according ▁to ▁its ▁pre defined ▁meaning . ▁ ▁While ▁some ▁machines ▁are ▁called ▁program m able , ▁for ▁example ▁a ▁program m able ▁therm ost at ▁or ▁a ▁musical ▁synth