docstr: converts midi-to-lag, eq. (4)
  
  Args:
      m: midi
      fs: sample_rate
      octave_range:
  
  Returns:
      lag: time lag(tau, c(m)) calculated from midi, eq. (4)
docstr_tok: ["converts","midi-to-lag",",","eq",".","(","4",")","Args",":","m",":","midi","fs",":","sample_rate","octave_range",":","Returns",":","lag",":","time","lag","(","tau",",","c","(","m",")",")","calculated","from","midi",",","eq",".","(","4",")"]
code: def midi_to_lag(self, m: int, octave_range: float = 12):
      """converts midi-to-lag, eq. (4)
  
      Args:
          m: midi
          fs: sample_rate
          octave_range:
  
      Returns:
          lag: time lag(tau, c(m)) calculated from midi, eq. (4)
  
      """
      f = 440 * math.pow(2, (m - 69) / octave_range)
      lag = self.fs / f
      return lag
  
file_path: espnet/espnet2/tts/feats_extract/ying.py
imports: import math
  from typing import Any, Dict, Tuple, Union
  import torch
  from espnet2.tts.feats_extract.abs_feats_extract import AbsFeatsExtract
  from espnet2.tts.feats_extract.yin import *
  from espnet.nets.pytorch_backend.nets_utils import pad_list
label_desc: Use image node_id 4 for calling the Ying obj's underlying member method code with example usage: obj.midi_to_lag(m, octave_range) and returns: lag