This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! coding:utf-8 | |
| """ | |
| fdtd_3d.py | |
| 日本音響学会 サイエンスシリーズ14 | |
| 「FDTD法で視る音の世界」 付録DVD | |
| fdtd_3d_c_sjis.cのpython翻訳 | |
| 所管 | |
| x->i | |
| y->j | |
| z->k |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 二次元音響FDTDサンプル for C (by Masahiro TOYODA) | |
| // gnu gcc -> gcc fdtd_2d_c_sjis.c -lm -O3 -fopenmp -o fdtd_2d_c_sjis.exe | |
| // intel c -> icc fdtd_2d_c_sjis.c /O3 /Qopenmp | |
| //■■■ヘッダーの読み込み■■■ | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <math.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!coding:utf-8 | |
| """ | |
| fdtd_3d_v1.py | |
| OpenAcousticsのサンプルコード | |
| """ | |
| import os | |
| from time import sleep | |
| from scipy import * | |
| from mpl_toolkits.mplot3d import axes3d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!-- ver 2.0 : 2016/03/14 --> | |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title></title> | |
| <script type="text/x-mathjax-config"> | |
| MathJax.Hub.Config({ tex2jax: { inlineMath: [['$','$'], ["\\(","\\)"]] } }); | |
| </script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python | |
| class List(list): | |
| def dup(self): | |
| def _dup(lst,ancestors): | |
| for orig,copy in ancestors: | |
| if lst == orig: | |
| return copy | |
| copy = lst[:] | |
| _ancestors = ancestors+[(lst,copy)] | |
| for i,x in enumerate(copy): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!C:\Anaconda2_32bit\python.exe | |
| # -*- coding: utf-8 -*- | |
| import cgitb | |
| cgitb.enable() | |
| import cgi | |
| import os | |
| import sys | |
| import json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def save(self, filename=None): | |
| """ | |
| 評価結果をcsvで保存する | |
| """ | |
| if filename is None: | |
| filename = 'result.csv' | |
| filename_ = os.path.normpath(filename) | |
| # OSを判定し、文字コードを取得 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! coding:utf-8 | |
| """ | |
| tasktray_app | |
| 何もしないタスクトレイアプリケーション | |
| http://moco.sakura.ne.jp/python/pyside-でタスクトレイアプリケーション作成/ | |
| Created by 0160929 on 2015/12/21 14:16 | |
| """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from numpy import frombuffer, dtype, asarray, iinfo | |
| def byteToPCM(data, sample_width): | |
| d_type = 'float' | |
| if sample_width == 2: | |
| d_type = 'short' | |
| return frombuffer(data, dtype=d_type) | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| # Form implementation generated from reading ui file 'UI_.ui' | |
| # | |
| # Created: Wed Dec 02 20:53:11 2015 | |
| # by: pyside-uic 0.2.15 running on PySide 1.2.2 | |
| # | |
| # WARNING! All changes made in this file will be lost! | |
| from PySide import QtCore, QtGui |