6、频率来获得我要求的音阶,最终可随意弹奏出要表达的音符。只要把一首歌曲的音阶对应频率关系,编写程序就可以达到我想要的曲目。经此调试,所做的八音盒得到了应有的按键发音效果。关键词:AT89C52;八音盒;音阶Keyboardmusicboxdesignbasedon51singlechipmicrocomputerYINFugui,WUZhiRong(ElectricalEngineeringCollege,LongdongUniversity,Qingyang745000,Gansu,)Abstract:Themaincontentofthispaper is
7、touseAT89C52microcontrollerasthecorecontrolelement, thedesignofa musicbox. Producedifferent frequenciesobtain the scale werequire theuseofsingle-chip, finally freetoplay wanttoexpress.thecorrectcorrespondingfrequency canachieve whatwewant music. Onthisbasis, the electronicorganbe p