Changeset 1561 for trunk/src/org/apollo/gui/SampledTrackGraphView.java
- Timestamp:
- 05/19/21 09:01:33 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/apollo/gui/SampledTrackGraphView.java
r1102 r1561 70 70 private int timescaleFrameLength = 0; // in frames 71 71 72 private double timeStretchFactor = 1.0; 73 72 74 private final Font RENDER_MESSAGE_FONT = new Font("Arial", Font.BOLD | Font.ITALIC, 14); 73 75 … … 80 82 private Color backColorHighlights = DEFAULT_BACKGROUND_HIGHTLIGHTS_COLOR; 81 83 82 public static final Color PLAYBACK_BAR_COLOR = new Color(225, 187, 15); 84 public static final Color PLAYBACK_BAR_COLOR = new Color(225, 187, 15); // ****** 83 85 84 86 /** The stroke used for drawing graph bars. E.G: The selection Start bar. */ … … 546 548 } 547 549 550 551 public void setTimeStretchFactor(double time_stretch_factor) { 552 timeStretchFactor = time_stretch_factor; 553 } 554 555 public double getTimeStretchFactor() 556 { 557 return timeStretchFactor; 558 } 559 548 560 /** 549 561 * Re-renders the waveform buffers to match the graph size if it needs to. … … 623 635 trackModel.getAllAudioBytes(), 624 636 trackModel.getFormat(), 637 trackModel.getBeats(), 625 638 timescaleFrameStart, 626 639 timescaleFrameLength, … … 743 756 744 757 int x = getPlaybackXPos(currentPlaybackFramePosition); 758 //System.out.println("*** playback x = " + x); 759 760 x = (int)Math.rint(((double)x) * getTimeStretchFactor()); // ****** 745 761 746 762 if (x >= 0 && x <= getWidth()) { 747 763 748 764 ((Graphics2D)g).setStroke(GRAPH_BAR_STROKE); 749 765 g.setColor(PLAYBACK_BAR_COLOR);
Note:
See TracChangeset
for help on using the changeset viewer.