<commit_before>var WO = WO || {};
WO.TransportView = Backbone.View.extend({
  //tagname: "",
  className: 'transportView',

  events: {
    'click #metronome': 'triggerMetronome',
    'click #export': 'exportWav',
    'click #play': 'triggerPlay',
    'click #stop': 'triggerStop',
    'click #rewind, #skipBack, #skipForward, #forward': 'moveTransport',
    'click #record': 'triggerRecord'
  },

  template: _.template(
    '<div class="controlsContainer">' +
      '<div class="transportEl"><span>Transport Time </span><span id="transportTime"><span class="tBar">0</span>:<span class="tBeats">0</span>:<span class="tSixt">0</span></span></div>' +
      '<div class="transportControls">' +
        '<button id="metronome"><i class="fa fa-heartbeat"></i></button>' +
        // '<button id="metronome"></button>' +
        '<button id="rewind"><i class="fa fa-fast-backward"></i></button>' +
        '<button id="skipBack"><i class="fa fa-backward"></i></button>' +
        '<button id="stop"><i class="fa fa-stop"></i></button>' +
        '<button id="play"><i class="fa fa-play"></i></button>' +
        '<button id="record"><i class="fa fa-play-circle" style="color:red"></i></button>' +
        '<button id="skipForward"><i class="fa fa-forward"></i></button>' +
        '<button id="forward"><i class="fa fa-fast-forward"></i></button>' +
      '</div>' +
    '</div>' +
    '<div class="exportContainer">' +
      '<button id="export">Export Song <i class="fa fa-eject"></i></button>' +
    '</div>'
  ),

  initialize: function(params) {
    this.render();
    $(document).ready(function() {
      var MutationObserver, item, observer;
      var slider = new GUI.Slider($(".transportView"), function(val){
        var scaled = parseInt(val * 30 + 100).toFixed(0);
        Tone.Transport.setBpm(scaled);
        return scaled;
      }, 120, "Tempo");<commit_msg>(fix) Adjust tempo's range.<commit_after>var WO = WO || {};
WO.TransportView = Backbone.View.extend({
  //tagname: "",
  className: 'transportView',

  events: {
    'click #metronome': 'triggerMetronome',
    'click #export': 'exportWav',
    'click #play': 'triggerPlay',
    'click #stop': 'triggerStop',
    'click #rewind, #skipBack, #skipForward, #forward': 'moveTransport',
    'click #record': 'triggerRecord'
  },

  template: _.template(
    '<div class="controlsContainer">' +
      '<div class="transportEl"><span>Transport Time </span><span id="transportTime"><span class="tBar">0</span>:<span class="tBeats">0</span>:<span class="tSixt">0</span></span></div>' +
      '<div class="transportControls">' +
        '<button id="metronome"><i class="fa fa-heartbeat"></i></button>' +
        // '<button id="metronome"></button>' +
        '<button id="rewind"><i class="fa fa-fast-backward"></i></button>' +
        '<button id="skipBack"><i class="fa fa-backward"></i></button>' +
        '<button id="stop"><i class="fa fa-stop"></i></button>' +
        '<button id="play"><i class="fa fa-play"></i></button>' +
        '<button id="record"><i class="fa fa-play-circle" style="color:red"></i></button>' +
        '<button id="skipForward"><i class="fa fa-forward"></i></button>' +
        '<button id="forward"><i class="fa fa-fast-forward"></i></button>' +
      '</div>' +
    '</div>' +
    '<div class="exportContainer">' +
      '<button id="export">Export Song <i class="fa fa-eject"></i></button>' +
    '</div>'
  ),

  initialize: function(params) {
    this.render();
    $(document).ready(function() {
      var MutationObserver, item, observer;
      var slider = new GUI.Slider($(".transportView"), function(val){
        var scaled = parseInt(val * 180 + 40).toFixed(0);
        Tone.Transport.setBpm(scaled);
        return scaled;
      }, 120, "Tempo");
{'fraction_non_alphanumeric': 0.2281449893390192, 'fraction_numerical': 0.006396588486140725, 'mean_word_length': 3.639060568603214, 'pattern_counts': {'":': 0, '<': 115, '<?xml version=': 0, '>': 115, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5302915', 'n_tokens_mistral': 1206, 'n_tokens_neox': 1205, 'n_words': 228}