Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/Ruby_Scripts/200.commands.rb

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 74 by toshinagata1964, Sun May 14 04:10:42 2017 UTC revision 78 by toshinagata1964, Sun May 21 02:17:26 2017 UTC
# Line 63  def change_timebase Line 63  def change_timebase
63    end    end
64  end  end
65    
66    def randomize
67      wd = 10.0
68      each_track { |tr|
69        s = tr.selection
70            t = []
71            s.each { |p|
72              t1 = self.tick_to_time(p.tick)
73              t2 = t1 + (rand() - 0.5) * wd / 1000.0
74              t.push(Integer(self.time_to_tick(t2)))
75            }
76        s.modify_tick(t)
77      }
78    end
79    
80  end  end
81    
82  register_menu("Change timebase...", :change_timebase)  register_menu("Change timebase...", :change_timebase)

Legend:
Removed from v.74  
changed lines
  Added in v.78

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26