Cannot implicitly convert type 'Melanchall.DryWetMidi.Interaction.ITimeSpan' to 'Melanchall.DryWetMidi.Interaction.MetricTimeSpan' #290
-
Hello, I'm new to DryWetMidi and I'm working on getting my note grid set up for my game. I'd like to create a script to render notes like guitar hero to start. I believe TrackNotes might be a better solution to this, if you can direct me to an example of that utilization. Any way, I'm taking a beginner approach and trying to subtract 2 seconds of MetricTimeSpan from a note to render it on my guitar hero track. Docs: https://melanchall.github.io/drywetmidi/articles/high-level-managing/Time-and-length.html#metric Script: public class MidiGameManager : MonoBehaviour
} |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi, You should use |
Beta Was this translation helpful? Give feedback.
Hi,
You should use
TimeSpanMode.TimeLength
.