Example #1
0
 void Update()
 {
     if (!source.isPlaying)
     {
         Debug.Log("Compiling MusicNotes");
         MusicNotes ms = new MusicNotes(notes);
         MusicNotesSerialization.Serialize(String.Format("{0}.bin", source.clip.name), ms);
     }
 }
Example #2
0
    // Use this for initialization
    void Start()
    {
        //RhythmDemoPatternNormal();
        //RhythmDemoPatternEasy ();
        //IAmEvil ();
        BossThemePattern();
        //TempPattern();
        Debug.Log("Outputing MusicSheet");
        MusicNotesSerialization.Serialize("Boss Theme 1.bin", new MusicNotes(notes));
        Debug.Log("Testing");
        MusicNotes music = MusicNotesSerialization.Deserialize("Boss Theme 1.bin");

        Debug.Log(music.AvgFreq());
    }