
using System.Diagnostics;
using System.Collections;
using System.Collections.Generic;
using System;
using Godot;


namespace Rokojori
{  
  [Tool]
  [GlobalClass]
  public partial class BeatsDuration:Duration
  {
    [Export]
    public float beats;

    [Export]
    public float bpm;
    
    public override float GetDurationInSeconds()
    {
      return MathAudio.BeatsToSeconds( beats, bpm );
    }
  }
}