作曲是一門極為複雜的學問。優秀作品的產生通常不是依靠制式的作曲方法,而是基於抽象的情感及累積的音樂知識所產生的靈感,而作曲家們經常可以從各種地方及事物汲取靈感。但就如同泉水終會枯竭,靈感也會有耗盡的一天。 本論文旨於設計一套以旋律線繪製為特色之法則式作曲輔助系統來輔助使用者作曲。系統使用演算法作曲及分析繪製之旋律線的方式去產生作曲的素材。使用者可提供不同的系統參數去產生不同節奏、調性、和弦進行之樂曲,或是在系統內畫出旋律線,讓系統分析旋律線而產生最符合的樂曲。產生後的樂曲除了可在系統中進行細部修改,也可輸出成MusicXml檔案於樂譜編輯軟體內編輯或是輸出成MIDI檔在任意一台電腦播放。
Music composition is a complicated process, which requires skill and knowledge. Using unified composition method won’t create outstanding pieces. It usually relies on inspira-tion based on accumulation of musical experience and abstract emotions, and skillful composers can gather inspiration from everywhere. But as the well may run dry, inspira-tion may be exhausted someday. This thesis aims to design a rule-based composition-assisting system featuring me-lodic contour sketching. The system uses algorithmic composition technique and analyzes a given melodic contour to generate composition material. Users can provide different system parameters to generate songs with different rhythms, keys, and chord progressions. They can also sketch a melodic contour within the system so that the system can analyze the melodic contour in order to generate melody which is the most similar to the sketching. After generation you can modify the songs in detail. The system also supports exporting the songs to MIDI files and MusicXML files.