Skip to content

Instantly share code, notes, and snippets.

Keijiro Takahashi keijiro

Block or report user

Report or block keijiro

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
View BurstFFT.md

BurstFFT

BurstFFT is an FFT (Fast Fourier Transform) implementation in high-performance C# with Unity's Burst compiler.

This repository contains the following three variants of Fourier transform implementation.

  • NaiveDFT: Unoptimized naive C# implementation of DFT
View lasp_v2.md

LASP

LASP is a Unity plugin providing low-latency audio input features that are useful to create audio-reactive visuals.

Demos

gif

View 1_dft.cs
[Unity.Burst.BurstCompile(CompileSynchronously = true)]
struct DftJob : IJobParallelFor
{
[ReadOnly] public NativeArray<float4> input;
[ReadOnly] public NativeArray<float4> coeffsR;
[ReadOnly] public NativeArray<float4> coeffsI;
[WriteOnly] public NativeArray<float> output;
public void Execute(int i)
{
@keijiro
keijiro / avi2hevc.sh
Last active Feb 15, 2020
Transcode all the AVI files in the current directory using the ProRes 422 HQ codec with ffmpeg
View avi2hevc.sh
for file in *.avi; do ffmpeg -i $file -c:v prores_ks -profile:v 3 -an "$(basename "$file" .avi)".mov; done
@keijiro
keijiro / cmake_wsl_mingw.sh
Last active Feb 10, 2020
Invoke CMake in WSL for Win32 cross compilation
View cmake_wsl_mingw.sh
sudo apt install mingw-w64 cmake
cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-x86_64-w64-mingw32.cmake ..
@keijiro
keijiro / recover_windows_boot_manager.md
Last active Jan 25, 2020
How I recovered Windows Boot Manager removed by the Ubuntu installer.
View recover_windows_boot_manager.md

What happened

I upgraded Ubuntu 18.04 to 19.10 on my main PC. After installation, Windows Boot Manager disappeared from the GRUB boot menu. I found the EFI partition was missing the /EFI/Microsoft directory. It seemed that the Ubuntu installer mistakenly removed the boot manager from EFI.

How I recovered it

  • Create a Windows installation media (USB stick) using Windows Media Creation
View RandomTest.cs
using UnityEngine;
using Random = Unity.Mathematics.Random;
public class RandomTest : MonoBehaviour
{
void Start()
{
const uint iteration = 1000;
var sum = new float[5];
View KinoEight.md

KinoEight

gif gif

KinoEight is a custom post-processing effect that gives an 8 bit-ish style to renders.

System requirements

View VatVfxExample.md

VAT (Vertex Animation Texture) on HDRP examples

gif

gif

This is a repository that contains examples of the use of VAT (Vertex Animation Texture) on Unity High Definition Render Pipeline (HDRP).

View Grubo.md

Grubo

gif1 gif2

Grubo is an experimental project that aims to present an audio-visual experience using Roland Groovebox MC-101 and the [Unity game engine].

You can’t perform that action at this time.