Class TrackSwitchTransform

java.lang.Object
com.softsynth.jmsl.score.NotePropertiesTransform
com.softsynth.jmsl.score.transforms.TrackSwitchTransform

public class TrackSwitchTransform
extends NotePropertiesTransform
move notes from track 0 to track 1 or vice versa. best not to mix tracks in selection
Author:
Nick Didkovsky, copyright 2000 Nick Didkovsky, all rights reserved
  • Field Summary

    Fields
    Modifier and Type Field Description
    static java.lang.String copyright  
  • Constructor Summary

    Constructors
    Constructor Description
    TrackSwitchTransform()  
  • Method Summary

    Modifier and Type Method Description
    static void main​(java.lang.String[] args)  
    void operate​(Score score, SelectionBuffer selectionBuffer)
    If a note is on track 0, move it to track 1.

    Methods inherited from class com.softsynth.jmsl.score.NotePropertiesTransform

    getName, setName

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • TrackSwitchTransform

      public TrackSwitchTransform()
  • Method Details

    • operate

      public void operate​(Score score, SelectionBuffer selectionBuffer)
      If a note is on track 0, move it to track 1. If a note is on track 1, move to track 0. Use for example if you've got a melody on a staff and mant to paste it as a second track on another staff. If you just copied and pasted it, it would mingle with existing notes on the destination staff. So switch tracks first, then copy, then paste.
      Specified by:
      operate in class NotePropertiesTransform
    • main

      public static void main​(java.lang.String[] args)