Skip to content

Instantly share code, notes, and snippets.

tanikawa04 tanikawa04

Block or report user

Report or block tanikawa04

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
import numpy as np
import chainer.links as L
import chainer.functions as F
from chainer import Variable
def sequence_embed(embed, xs):
x_len = [len(x) for x in xs]
x_section = np.cumsum(x_len[:-1])
ex = embed(F.concat(xs, axis=0))
View chord_list.txt
['A', 'A#', 'A#/C', 'A#/D', 'A#7', 'A#7(b5)', 'A#M7', 'A#aug', 'A#dim', 'A#m', 'A#m/C#', 'A#m/G#', 'A#m7', 'A#sus4', 'A#φ', 'A/B', 'A/C#', 'A/D', 'A/E', 'A/G', 'A/G#', 'A6', 'A7', 'A7(9)', 'A7(b9)', 'A7sus4', 'AM7', 'Aadd9', 'Aaug', 'Aaug7', 'Ab', 'Ab/Bb', 'Ab/C', 'Ab/Db', 'Ab/Eb', 'Ab/G', 'Ab/Gb', 'Ab6', 'Ab7', 'Ab7(9)', 'Ab7(b5)', 'Ab7sus4', 'AbM7', 'AbM7(9)', 'Abadd9', 'Abaug', 'Abdim', 'Abm', 'Abm/B', 'Abm/Eb', 'Abm/Gb','Abm6', 'Abm7', 'Abm7(9)', 'Abm7/Db', 'Abm7/Eb', 'AbmM7', 'Absus4', 'Abφ', 'Adim', 'Am', 'Am/C', 'Am/E', 'Am/G', 'Am6', 'Am7', 'Am7(9)', 'Am7/D', 'Am7/E', 'AmM7', 'Asus4', 'Aφ', 'B', 'B/A', 'B/A#', 'B/Bb', 'B/C#', 'B/D#', 'B/Db', 'B/E', 'B/Eb', 'B/F#', 'B/Gb', 'B6', 'B6(9)', 'B7', 'B7sus4', 'BM7', 'BM7(9)', 'Badd9', 'Baug', 'Bb', 'Bb/A', 'Bb/Ab', 'Bb/C', 'Bb/D', 'Bb/Eb', 'Bb/F', 'Bb6', 'Bb7', 'Bb7(#9)', 'Bb7(9)', 'Bb7sus4', 'BbM7', 'BbM7(9)', 'Bbadd9', 'Bbaug', 'Bbaug7', 'Bbdim', 'Bbm', 'Bbm/A', 'Bbm/Ab', 'Bbm/Db', 'Bbm/F', 'Bbm6', 'Bbm7', 'Bbm7(9)', 'Bbm7/Eb', 'BbmM7', 'Bbsus4', 'Bbφ', 'B
tanikawa04 / search_chord_major.txt
Last active Oct 27, 2015
Snake parser ( を使ってコードネームのパーサを作成(メジャーコードのみ完成)
View search_chord_major.txt
// Grammer
start = search<chord>
root: `root
You can’t perform that action at this time.