This file contains 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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class BrainScore : MonoBehaviour | |
{ | |
private BrainStats stats; | |
[Range(-0.05f, 0.05f)] | |
public float score; |
This file contains 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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using MathNet.Numerics.Statistics; | |
public class BrainStats : MonoBehaviour | |
{ | |
private BrainData data; | |
[Header("Moving Band Power Stats - 10 seconds")] |
This file contains 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
using UnityEngine; | |
[ExecuteInEditMode] | |
public class EffectObject : MonoBehaviour | |
{ | |
private Vector3 localScale; | |
[Tooltip("drag in FungiScore game object")] | |
public FungiScore fungiScore; |
This file contains 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
using UnityEngine; | |
[ExecuteInEditMode] | |
public class EffectShader : MonoBehaviour | |
{ | |
public Material score; | |
[Tooltip("drag in FungiScore game object")] | |
public FungiScore fungiScore; |
This file contains 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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class FungiScore : MonoBehaviour | |
{ | |
private MIDIStats stats; | |
public float scoreRaw; | |
public float score; |
This file contains 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
using UnityEngine; | |
using System.Collections; | |
using MathNet.Numerics.Statistics; | |
public class MIDIStats : MonoBehaviour | |
{ | |
private RunningStatistics noteStats; | |
private MovingStatistics movingNoteStats, movingIntervalStats; | |
private MIDIData midi; |
This file contains 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
using System.Collections.Generic; | |
using UnityEngine; | |
using OscCore; | |
// [ExecuteInEditMode] | |
public class BrainData : MonoBehaviour | |
{ | |
public const int NUM_CHANNELS = 4; | |
public const int NUM_BANDS = 5; | |
public enum EEGChannel |
This file contains 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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.InputSystem; | |
// from Keijiro's NoteCallback.cs - This script shows how to define a callback to get notified | |
// on MIDI note-on/off events. | |
public class MIDIData : MonoBehaviour | |
{ |
This file contains 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
/// ANimateMuse | |
/// A script to allow properties of a GameObject's components to be manipulated by the activation scores. | |
/// Change the component object to effect or add others | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class AnimateMuse : MonoBehaviour | |
{ |