{"action":"opened","issue":{"url":"https://api.github.com/repos/cat2151/MML-chord-generator/issues/28","labels_url":"https://api.github.com/repos/cat2151/MML-chord-generator/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/cat2151/MML-chord-generator/issues/28/comments","events_url":"https://api.github.com/repos/cat2151/MML-chord-generator/issues/28/events","html_url":"https://github.com/cat2151/MML-chord-generator/issues/28","id":118298996,"number":28,"title":"分数コードを読めるようにする","user":{"login":"cat2151","id":5794738,"avatar_url":"https://avatars.githubusercontent.com/u/5794738?v=3","gravatar_id":"","url":"https://api.github.com/users/cat2151","html_url":"https://github.com/cat2151","followers_url":"https://api.github.com/users/cat2151/followers","following_url":"https://api.github.com/users/cat2151/following{/other_user}","gists_url":"https://api.github.com/users/cat2151/gists{/gist_id}","starred_url":"https://api.github.com/users/cat2151/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cat2151/subscriptions","organizations_url":"https://api.github.com/users/cat2151/orgs","repos_url":"https://api.github.com/users/cat2151/repos","events_url":"https://api.github.com/users/cat2151/events{/privacy}","received_events_url":"https://api.github.com/users/cat2151/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-22T23:47:17Z","updated_at":"2015-11-22T23:47:17Z","closed_at":null,"body":"* 処理の入れどころはgetAddedBass。そこで分数コードかを判別する。\r\n*  分数コードなら、bass = note2Numbers[0] ではなく、bass = get分母()。\r\n* get分母() は、chordNameを/でparseした末尾をchordNameのrootと解釈してnoteNumberを得る。\r\n* getChordTypeFromOneChordNameは分数コードの分数部分を無視とする。\r\n * 先にリファクタをし、「chordNameからrootNoteTypeを取得」「同様に/より前のchordTypeを取得」「同様に/以降の分母を取得」に切り分ける。その際、parsedTextの仕組みに依存せず、入力がchordNameでよくなるようwrapする。"}}