zlo.gs
MIDI 文件格式基础备忘
http://zlo.gs/p/neuront/midi-basic
一个 MIDI 文件中通常包含多个音轨 (track), MIDI 文件可以配置多个音轨以并行方式播放还是串行方式播放, 一般应用上多个音轨当然是同时播放比较好. 而一个音轨就是一系列事件构成的. 事件包括了演奏或停止直接与发声有关的, 以及换乐器这样的控制指令. MThd 0x00000006 音轨类型 音轨数 节拍描述. 任何 MIDI 文件开头都由 MThd 四个字母 ASCII 码构成. 接下来 0x00000006 是一个四字节类似大端码表示的整数 (是 0x00 0x00 0x00 0x06 而不是 0x06 0x00 0x00 0x00), 它的含义是文件头部剩下多少个字节. 本来这东西设计是可变的, 不过实际上后面 音轨类型 音轨数 节拍描述 每个都是固定的 2 字节, 因此这里直接填 6 就行. 1 : 多个音轨, 同时播放. 2 : 多个音轨, 串行播放. 一般来说这个就取 1 (同样编码为 0x00 0x01, 而不是 0x01 0x00, 后面的音轨数, 节拍描述同样). 音轨数也是一个 2 字节整数, 表示后面实际含有的音轨数量. 事件 = 相对时间 事件类型 事件参数.
zlo.gs
Nerv 枫叶系列
http://zlo.gs/p/neuront/nerv-leaf
Neuron Teckid @ Bit Focus.
blog.linluxiang.info
Python at 双木成林:喋喋不休
http://blog.linluxiang.info/category/tech/python
I leave no trace of wings in the air, but I am glad I have had my flight. Archive for the ‘Python’ Category. 所有的WSGI官方定义请看 http:/ www.python.org/dev/peps/pep-3333/. WSGI的官方定义是,the Python Web Server Gateway Interface。 Wsgi container ,又称 容器. Def application(environ, start response): status = '200 OK' output = 'World! Response headers = [('Content-type', 'text/plain'), ('Content-Length', str(12)] write = start response(status, response headers) write('Hello ') return [output]. Class Router(object): def init...
blog.linluxiang.info
WSGI初探 at 双木成林:喋喋不休
http://blog.linluxiang.info/2011/03/03/wsgi-learn
I leave no trace of wings in the air, but I am glad I have had my flight. 所有的WSGI官方定义请看 http:/ www.python.org/dev/peps/pep-3333/. WSGI的官方定义是,the Python Web Server Gateway Interface。 Wsgi container ,又称 容器. Def application(environ, start response): status = '200 OK' output = 'World! Response headers = [('Content-type', 'text/plain'), ('Content-Length', str(12)] write = start response(status, response headers) write('Hello ') return [output]. 传一个方法,然后返回值就是status, response headers和一个字符串的列表。 Class Router(obje...
blog.linluxiang.info
WSGI at 双木成林:喋喋不休
http://blog.linluxiang.info/tag/wsgi
I leave no trace of wings in the air, but I am glad I have had my flight. Archive for the ‘WSGI’ tag. 所有的WSGI官方定义请看 http:/ www.python.org/dev/peps/pep-3333/. WSGI的官方定义是,the Python Web Server Gateway Interface。 Wsgi container ,又称 容器. Def application(environ, start response): status = '200 OK' output = 'World! Response headers = [('Content-type', 'text/plain'), ('Content-Length', str(12)] write = start response(status, response headers) write('Hello ') return [output]. Class Router(object): def init (self)...
blog.linluxiang.info
旅游 at 双木成林:喋喋不休
http://blog.linluxiang.info/tag/旅游
I leave no trace of wings in the air, but I am glad I have had my flight. Archive for the ‘旅游’ tag. 四月 6th, 2011 at 8:11 下午. Fix ldconfig not found in debian lenny. Stay Hungry, Stay Foolish. Mdash; Built for WordPress.
blog.linluxiang.info
生活 at 双木成林:喋喋不休
http://blog.linluxiang.info/category/生活
I leave no trace of wings in the air, but I am glad I have had my flight. Archive for the ‘生活’ Category. 四月 6th, 2011 at 8:11 下午. 从13号参加第一场笔试, 到24号拿到网易游戏offer, 20天时间的经历, 算是人生一大笔财富了.以后可能就没有这样的机会去体验那种心情了. 其实职业规划, 不能是等到求职的时候才去想, 它的作用应该是指导大学4年期间学习方向, 以及指导工作以后的研究方向, 甚至可以决定一生的奋斗方向.所以, 最好在进大学1-2年内就确定自己的职业规划, 为之去努力, 然后在求职的时候, 针对你想进入的公司简单修改.不过这就属于是求职技巧的内容了. 就拿我自己来说吧, 我想从事互联网行业, 因为互联网行业是中国目前发展最快的行业之一, 可能甚至没有之一. 我想进的公司有, Google:互联网老大, 不用多说;网易游戏:中国自主研发实力最强的游戏公司, 而游戏行业是互联网行业中产值最大的部分;百度, 阿里巴巴, 腾讯:中国互联网三强, 产值过千亿的公司.
blog.linluxiang.info
技术 at 双木成林:喋喋不休
http://blog.linluxiang.info/category/tech
I leave no trace of wings in the air, but I am glad I have had my flight. Archive for the ‘技术’ Category. 所有的WSGI官方定义请看 http:/ www.python.org/dev/peps/pep-3333/. WSGI的官方定义是,the Python Web Server Gateway Interface。 Wsgi container ,又称 容器. Def application(environ, start response): status = '200 OK' output = 'World! Response headers = [('Content-type', 'text/plain'), ('Content-Length', str(12)] write = start response(status, response headers) write('Hello ') return [output]. Class Router(object): def init (se...
blog.linluxiang.info
双木成林:喋喋不休
http://blog.linluxiang.info/page/2
I leave no trace of wings in the air, but I am glad I have had my flight. Import Foundation/Foundation.h int main(int argc, const char *argv[]) { NSLog(@"Hello, World! Return 0; }. 直接 gcc helloworld.m,报错。 Undefined symbols: " CFConstantStringClassReference", referenced from: cfstring=Hello, World! In ccCxrkF8.o " NSLog", referenced from: main in ccCxrkF8.o ld: symbol(s) not found collect2: ld returned 1 exit status. Gcc helloworld.m -L/System/Library/Frameworks/Foundation.framework/. 我想要从事的岗位是基于Unix或者lin...