跳到主要內容

簡易檢索 / 詳目顯示

研究生: 徐崑泰
KUN-TAI SYU
論文名稱: 最佳化演算法於自動作曲之應用
The Application of Optimization Algorithms in the Construction of an Automatic Music Composing System
指導教授: 蘇木春
Mu-Chun Su
口試委員:
學位類別: 碩士
Master
系所名稱: 資訊電機學院 - 資訊工程學系
Department of Computer Science & Information Engineering
論文出版年: 2013
畢業學年度: 101
語文別: 中文
論文頁數: 105
中文關鍵詞: 電腦作曲粒子群聚演算法基因演算法最佳化演算法音高偵測
外文關鍵詞: Computer Music, Particle Swarm Optimization, Genetic Algorithm, Optimization Algorithm, Pitch Detection
相關次數: 點閱:14下載:0
分享至:
查詢本校圖書館目錄 查詢臺灣博碩士論文知識加值系統 勘誤回報
  • 本論文主要設計一個基於最佳化演算法的自動作曲系統,此系統可讓使用者藉由彈奏單音樂曲的方式產生音樂範本材料,系統便會透過最佳化演算法自動產生曲風相近之樂曲以供使用者參考。此系統主要由MIDI轉錄以及樂曲產生兩個模組所構成。在MIDI轉錄模組中,使用者可將樂曲用彈奏的方式輸入至電腦,透過訊號前處理以及音高偵測演算法,系統可將PCM編碼的音樂檔案轉錄成MIDI格式的檔案,作為之後樂曲產生模組的輸入材料。在樂曲產生模組中,使用者將音樂範本材料輸入模組後,會對該樂曲材料進行特徵擷取以及樂理分析,再根據使用者所選定的調性以及演奏速度,利用基因演算法或粒子群聚演算法的特性,在有限的規則下產生出富有變化的音樂片段,並且期望這些音樂片段可供作曲者或音樂玩家作為激發他們的創作靈感或可直接使用在他們的作品中。
    本論文分別針對此兩個模組設計了實驗,以驗證所提系統之效能。在MIDI轉錄模組的成效驗證之實驗中,對於電吉他以及電子琴的音高辨識率各為100%以及89%,樂曲轉錄的結果則約有84%的正確率。至於樂曲產生模組的評估則採用問卷的方式進行評估,因為樂曲的曲風和悅耳程度目前尚未有公正客觀的評估系數加以量測。本論文收集到14份問卷,在滿分5分的評分中,本利用基因演算法以及粒子群聚演算法所得到的分數分別為2.37分以及2.69分,雖未有高分評價,但皆高於隨機產生的1.6分。


    This thesis presents an optimization-algorithm-based automatic music composing system. The system allows users to generate reference source materials by playing monophonic music pieces. Then the system will adopt an optimization algorithm to automatically compose some music pieces which are similar to the provided music materials from the viewpoints of the characteristics of the tonality. The proposed system is consisted of two main modules; 1) the MIDI music transformation module and 2) the automatic music composing module. In the MIDI music transformation module, users could input their source materials to the system by playing a monophonic music via a microphone. After some signal preprocessing procedures and a pitch detection algorithm, the MIDI transformation module could convert a PCM encoded audio file into a MIDI format file. The transformed result could then be used as the source materials which are regarded as inputs to the automatic music composing module. After the source materials have been provided to the automatic music composing module, it starts to analyze the music materials and extract some informative features from the materials. Then an optimization algorithm such as the genetic algorithm (GA) and the particle swarm optimization (PSO) is adopted to evolve some music pieces which are similar to provided materials from the viewpoints of the characteristics of the tonality and the tempo selected by the users. We hope that the music pieces composed by the system could be used by composers or music players either as creative inspiration for their music or directly as music pieces in their music.
    The performance of the proposed system was verified by the experiments. In the experiment of pitch detection, the correct detection rates for the music pieces played by an electric guitar and a keyboard were 100% and 89%, respectively. As for the evaluation of the music composing module, we adopt the questionnaires way. A total of 14 subjects were invited to evaluate the music pieces composed by the GA, PSO, and the random scheme. The questionnaire adopted the 5-scale score. The average score for the music pieces composed by GA and PSO was 2.38 and 2.69, respectively. As for the random scheme, it only got the score of 1.6.

    摘 要 ii ABSTRACT iv 致謝 vi 目錄 vii 圖目錄 x 表目錄 xiii 第一章 緒論 1 1-1 研究動機 1 1-2 研究目的 2 1-3 論文架構 3 第二章 相關研究 4 2-1電腦作曲相關文獻 4 2-1-1 MIDI轉錄相關應用 4 2-1-2 電腦作曲相關研究 6 2-1-3 音樂人機互動介面 15 2-2 WAVE檔案格式 19 2-2-1 WAVE名詞簡介 20 2-2-2 WAVE檔案資料格式 21 2-3數位音樂界面(MIDI) 23 2-3-1 MIDI名詞簡介 23 2-3-2 MIDI檔案資料格式與事件介紹 25 2-4音樂理論 28 2-4-1樂理名詞 28 2-4-2音樂調式與調性 30 2-4-3音程結構 31 第三章 研究方法與步驟 33 3-1系統架構 33 3-2 MIDI轉錄處理 34 3-2-1 音高偵測 35 3-2-2 MIDI編碼轉換 39 3-3樂曲產生 40 3-3-1 基因編碼 41 3-3-2 參考樂曲輸入 42 3-3-3 最佳化演算法 43 第四章、人機介面及作曲系統操作 54 4-1系統開發環境 54 4-2使用者介面與操作流程 55 4-2-1 MIDI轉錄模組 56 4-2-2 樂曲產生模組 59 第五章、實驗設計與結果 62 5-1實驗設計與方法 62 5-1-1 MIDI轉錄實驗內容與流程 62 5-1-2 MIDI轉錄結果分析方法 63 5-1-3 樂曲產生模組評估及問卷設計 64 5-2實驗結果 65 5-2-1 MIDI轉錄實驗結果 65 5-2-2 樂曲產生模組結果分析 72 第六章、結論與未來展望 77 6-1結論 77 6-2未來展望 77 參考文獻 79 附錄一、MIDI轉錄測試完整資料 84 附錄二、作曲模組問卷及效能詳細資料 87

    [1] P.C. Lin, M.L. Lin, L.C. Huang, H.C. Hsu, and C.C. Lin, “Music therapy forpatients receiving spine surgery,” Journal of Clinical Nursing, vol. 20, No. 7‐8 , pp. 960-968, 2011.
    [2] E.A. Korhan, L. Khorshid, and M. Uyar, “The effect of music therapy on physiological signs of anxiety in patients receiving mechanical ventilatory support,” Journal of Clinical Nursing, vol. 20, no. 7‐8, pp. 1026-1034, 2011.
    [3] Ethno Tekh opening Microsoft’s TechEd Sep 2012 (Gold Coast, Australia) [Online] http://ethnotekh.com/2012/10/live-kinect-av-performance-teched/ Jun. 12, 2013 [data accessed]
    [4] Arakisoftware [Online] Available: http://www.pluto.dti.ne.jp/araki/soft/index.html July. 7, 2013 [data accessed]
    [5] Innovative Music Systems, Inc. [Online] Available: http://www.intelliscore.net/ July. 7, 2013 [data accessed]
    [6] F.P. Brooks, A.L. Hopkins, P.G Neumann, and W.V. Wright, “An experiment in musical composition,” IRE Transactions on Electronic Computers, vol. EC-6, no.3, pp. 175-182, 1957.
    [7] J. McCormack, “Grammer-Based Music Composition,” Complexity International, vol. 3, pp. 320-326, 1996.
    [8] C. David. “Experiments in musical intelligence. Vol. 12,” Madison, Wisconsin, A-R Editions, 1996.
    [9] Musicalgorithms [Online] Available : http://musicalgorithms.ewu.edu/algorithms.html Jun. 23, 2013[data accessed]
    [10] B.L. Jacob, “Algorithmic composition as a model of creativity, ” Organised Sound, vol. 1, no. 3, pp. 157-165, 1996.
    [11] BuddhaOrc [Online] Available: http://buddhaorc.wikispaces.com/Buddha+Orchestra July. 16, 2013[data accessed]
    [12] Casual Games Harmony [Online] Available: http://codeminion.com/blogs/maciek/ July. 16, 2013[data accessed]
    [13] E. R. Miranda, “At the crossroads of evolutionary computation and music: Self-programming synthesizers, swarm orchestras and the origins of melody,” Journal Evolution Computation, vol. 12, No. 2, pp. 137–158, 2004.
    [14] J.A. Biles, “Life with GenJam: interacting with a musical IGA,” Systems, Man, and Cybernetics, 1999. IEEE SMC '99 Conference Proceedings. 1999 IEEE International Conference on, Tokyo, Japan, pp. 652-656, 1999.
    [15] GenJam: A Genetic Algorithm for Generating Jazz Solos [Online] Available: http://igm.rit.edu/~jabics/GenJam94/Paper.html Jun.13,2013 [data accessed]
    [16] N. Tokui and H. Iba, “Music composition with interactive evolutionary computation,” in Proc. 3rd International Conference on Generative Art, Milan, Italy, pp. 215–226, 2000.
    [17] B. Johanson and R. Poli, “GP-music: An interactive genetic programming system for music generation with automated fitness raters”, in Proc. of the Third Annual Conference on Genetic Programming, San Francisco, USA ,pp. 181-186. 1998.
    [18] D. Matić. “A genetic algorithm for composing music.” The Yugoslav Journal of Operations Research, vol. 20, no. 1, pp. 157-177 2010.
    [19] T.M. Blackwell and P. Bentley, “Improvised music with swarms.” in Proc. of the Evolutionary Computation on 2002, Honolulu, USA, pp. 1462-1467, 2002.
    [20] S. Jordà, G. Geiger, M. Alonso, and M. Kaltenbrunner, “The reacTable: exploring the synergy between live music performance and tabletop tangible interfaces,” in Proc. of 1st International Conference on Tangible and Embedded Interaction, NewYork, USA, pp. 139-146, 2007.
    [21] Social Soundmachine [Online] Available: http://socialsoundmachine.com/ Jun.12,2013[data accessed]
    [22] S. Lynch, M. A. Nacenta, and S. Carpendale, “ToCoPlay: Graphical Multi-touch Interaction for Composing and Playing Music,” in Proc. of Human-Computer Interaction – INTERACT 2011, Lisbon, Portugal, pp. 306-322, 2011.
    [23] J. Nielsen, N. K. Barendsen, and C. Jessen, “RoboMusicKids- Music education with robotic building blocks,“ in Proc. of 2nd IEEE International Conference on Digital Game and Intelligent Toy Enhanced Learning,Washington DC, USA, pp. 149-156, 2008.
    [24] Apple Inc. GarageBand [Online] Available: http://www.apple.com/tw/apps/garageband/ Jun.12,2013 [data accessed]
    [25] H. Ketabdar, K. A. Yüksel, M. Roshandel, “MagiTact: interaction with mobile devices based on compass (magnetic) sensor,” in IUI '10 Proc. of the 15th international conference on Intelligent user interfaces, NewYork, USA, pp. 413-414, 2010
    [26] H.S. Black, Modulation theory. NewYork, Van Nostrand, 1953.
    [27] Wave File Format [Online] Available: http://www.sonicspot.com/guide/wavefiles.html Jun.6, 2013 [data accessed]
    [28] 林志杰,新版MIDI玩家手冊,第3波出版社,民國八十三年。
    [29] MIDI 事件[Online] Available: http://www.sonicspot.com/guide/midifiles.html Jun. 6, 2013[data accessed]
    [30] United States Naval School of Music, Music theory. Washington, Standards and Curriculum Division, Training, Bureau of Naval Personnel, 1950.
    [31] 張錦鴻,新版基礎樂理,全音樂譜出版社有限公司,民國七十八年
    [32] M.W. Towsey, A.R. Brown, S.K. Wright, and J. Diederich, "Towards melodic extension using genetic algorithms." Educational Technology & Society ,Vol. 4, No. 2, pp. 54-65, 2001.
    [33] G.E.P Box , G.M. Jenkins, and G.C. Reinsel ,”Time Series Analysis: Forecasting and Control”, NewYork, John Wiley & Sons, 2008
    [34] L. Rabiner, M. Cheng, A.E. Rosenberg, and C. McGonegal, “A comparative performance study of several pitch detection algorithms,” Acoustics, Speech and Signal Processing, IEEE Transactions on , vol. 24, no. 5, pp. 399-418, 1976.
    [35] J. Price. Understanding dB. [Online] Available : http://www.jimprice.com/prosound/db.htm Jun.19,2013 [data accessed]
    [36] B. Blood Music Theory Online : Pitch, Temperament & Timbre [Online] , Available : http://www.dolmetsch.com/musictheory27.htm Jun. 20,2013 [data accessed]
    [37] R. Jang Audio Signal Processing and Recognition. [Online] Available : http://neural.cs.nthu.edu.tw/jang/books/audioSignalProcessing/
    Jun. 11, 2013 [data accessed]
    [38] V.I. Levenshtein, "Binary codes capable of correcting deletions, insertions and reversals." Soviet physics doklady. Vol. 10, No. 8, pp. 707-710, 1966.
    [39] 蘇木春、張孝德,「機器學習:類神經網路模糊系統以及基因演算法則」,全華科技圖書,民國九十三年。
    [40] NAudio OpenSource Library, [Online] Available : http://naudio.codeplex.com/ Jun. 17, 2013[data accessed]
    [41] C# MIDI Toolkit. [Online] Available : http://www.codeproject.com/Articles/6228/C-MIDI-Toolkit Jun. 17, 2013 [data accessed]
    [42] PSAM Control Library. [Online] Available : http://www.codeproject.com/Articles/87329/PSAM-Control-Library Jun. 17, 2013 [data accessed]
    [43] J. Nielsen, ”Heuristic Evaluation”, Usability Inspection Methods, John Wiley & Sons, New York, 1994.
    [44] MIDI.org General MIDI Level 1 Sound Set, [Online] Available : http://www.midi.org/techspecs/gm1sound.php Jun. 18, 2013 [data accessed]
    [45] WaveGene, [Online] Available : http://www.ne.jp/asahi/fa/efu/soft/wg/wg.html Jun. 19, 2013 [data accessed]
    [46] Google Drive, [Online] Available: https://drive.google.com/ Jun. 19, 2013[data accessed]
    [47] M. Dziubiński and B. Kostek " Octave Error Immune and Instantaneous Pitch Detection Algorithm," Journal of New Music Research, vol. 34, no. 3, pp. 273-292 2004.

    QR CODE
    :::