lib/beats/pattern.rb
def unique_track_name(name)
      i = 2
      name_key = name
      while @tracks.has_key? name_key
        name_key = "#{name}#{i.to_s}"
        i += 1
      end

      name_key
    end
# Returns a unique track name that is not already in use by a track in
# this pattern. Used to help support having multiple tracks with the same
# sample in a track.
Returns a unique track name that is not already in use by a track in
this pattern. Used to help support having multiple tracks with the same
sample in a track.
Returns a unique track name that is not already in use by a track in this pattern . Used to help support having multiple tracks with the same sample in a track .
def unique_track_name(name)
      i = 2
      name_key = name
      while @tracks.has_key? name_key
        name_key = "#{name}#{i.to_s}"
        i += 1
      end
      name_key
    end
def unique_track_name ( name ) i = 2 name_key = name while @tracks . has_key? name_key name_key = "#{name}#{i.to_s}" i += 1 end name_key end
Returns a unique track name that is not already in use by a track in
this pattern.
Returns a unique track name that is not already in use by a track in this pattern .
name