Skip to content

Instantly share code, notes, and snippets.

View arumani's full-sized avatar

So Inamura arumani

View GitHub Profile
@keijiro
keijiro / lets-make-a-synth-with-unity.md
Created September 30, 2012 11:10
Unity でシンセを作る

Unity でシンセを作る

Harmoni という名前の iOS アプリを App Store にサブミットしました。このシンセアプリはゲームエンジン Unity を使って実装されています。

ここでは Unity を使ってシンセを実装するにあたっての心得(?)について記します。

前提

サンプリングベースのリズムマシン等であれば basic 版でも実装可能ですが、スクリプトで合成した波形を使うには、Pro 版でないとキツいです。後述しますが、実装にオーディオフィルタを使うためです。

@keijiro
keijiro / ScreenRecorder.cs
Last active January 26, 2022 05:01
Screen recording utility.
using UnityEngine;
using System.Collections;
public class ScreenRecorder : MonoBehaviour
{
public int framerate = 30;
public int superSize;
public bool autoRecord;
int frameCount;
@tsubaki
tsubaki / JsonSplitSprite.cs
Last active March 21, 2021 22:16
Json(exported with texture packer) -> unity 2d Multiple sprite . (request minijson https://gist.github.com/darktable/1411710)
// --
// The MIT License
//
// Copyright (c) 2013 tatsuhiko yamamura
//
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
@dj-kusuha
dj-kusuha / CaptureScreenshotFromEditor.cs
Last active February 27, 2024 13:06
Unityエディタ上からGameビューのスクリーンショットを撮るEditor拡張。
using UnityEditor;
using UnityEngine;
namespace djkusuha.Utility
{
/// <summary>
/// Unityエディタ上からGameビューのスクリーンショットを撮るEditor拡張
/// </summary>
public class CaptureScreenshotFromEditor : Editor
{
@DashW
DashW / ScreenRecorder.cs
Last active October 1, 2025 11:55
ScreenRecorder - High Performance Unity Video Capture Script
using UnityEngine;
using System;
using System.Collections;
using System.Collections.Generic;
using System.IO;
using System.Threading;
class BitmapEncoder
{
public static void WriteBitmap(Stream stream, int width, int height, byte[] imageData)
@neon-izm
neon-izm / BuildingOpenPose.md
Last active October 28, 2017 09:49 — forked from anonymous/BuildingOpenPose.md
202commit(2017/10/26)時のWindows10(x64) GTX1060環境でのインストール