Untitled

mail@pastecode.io avatar
unknown
csharp
3 years ago
798 B
2
Indexable
Never
    public void Navigate() {
        //Debug Log through all layers and markups of the song
        foreach(Rhythm.MarkupLayer layer in rhythm.layers) {
            Debug.Log("Layer: " + layer.layerName);

            foreach(Rhythm.Markup markup in layer.markups) {
                Debug.Log("\t Markup data: " +
                    "\ntimestamp: " + markup.timer +
                    "\nlength: " + markup.length +
                    "\nparameter count: " + markup.additionalParameters.Count);
            }
        }

        rhythmator.TimeForNextHit(rhythm.layers[0].layerName); //Time in seconds for the next event in layer to be triggered
        rhythmator.TimeFromPreviousHit(rhythm.layers[0].layerName); //Time in seconds since the last event in layer was triggered
    }