예제 #1
0
    public static void contactSC(NoteManager.Notes note)
    {
        //OSC Send
        List <string> args = new List <string>();

        args.Add("0.3f");
        args.Add(NoteManager.noteToFreq[note].ToString());
        args.Add("0.3f");
        OSCHandler.Instance.SendMessageToClient("SuperCollider", "/play" + "VoiceA", args);
    }
예제 #2
0
    void selectedTilesAtTiming(int timing)
    {
        Vector3Int tilePos;

        for (int i = 0; i < TileManager.gridHeight; i++)
        {
            tilePos = new Vector3Int(timing, i, 0);
            if (!tileMap.HasTile(tilePos))
            {
                NoteManager.Notes note = getScaleNoteFromInt(i);

                print(note);
                contactSC(note);
            }
        }
    }