Tutorial - page 3
1 2 3 4 5 6
  Build your own sequencer shockwave with sequenceXtra and sequenceXtra behaviors

Attach Behaviors to the Transport Controls

  1. Select category "3 Transport Controls" in the Library Palette
  2. Drag the behavior "Rewind/Forward" to sprite 31 (the Rewind Button) and set Direction to #rewind
  3. Drag the behavior "Rewind/Forward" to sprite 32 (the Forward Button) and set the Direction to #forward
  4. Attach the behavior "Stop Song" to sprite 33 (the Stop Button)
  5. Attach the behavior "Play Song" to sprite 34 (the Play Button) and set Play From... to #Current Position
  6. Drag the behavior "Record Track" to sprite 35 (the Record Button) and set Start Recording From to #Left Locator

If you have a MIDI keyboard connected to your computer you can now try to make a recording.

Finish the Transport Controls

  1. Drag to behavior "Set Metronome" to sprite 36 (the button to the left of the word "Click")
    set Turn Metronome to #Toggle On/Off
    set Init State to #On
  2. Attach the behavior "Set Loop" to sprite 37 (the button under the previous one)
    set Turn Loop to #Toggle On/Off
    set Init State to #Off
  3. Use the "Show/Set Tempo" behavior for sprite 38 (the Tempo Slider)
    set Slider Length to 145 (pixels)
    set Send Initial Tempo to TRUE
    set the cursors to whatever you like (I prefer arrows)
  4. Use the same behavior for sprite 39 (the tempo display). You don´t need to set any properties.
  5. Attach the behavior "Set Locators (Numerical)" for sprite 40 & 41. Set sprite 40 to #left and sprite 41 to #right
  6. Drag behavior "Show/Set Position (numerical)" to sprite 42

Now the Transport Control is ready to use. You can change tempo, turn the metronome on and off, set a loop between locators etc. The only problem is that the buttons (except for the Stop Button and the Tempo Slider) doesn´t react to mouse actions. Go on!

Add graphical behaviors to the buttons

  1. Drop the "Show State" behavior on sprite 34 & 35 (the Play- an Record Buttons). Set the properties like this:

  2. Select the category "6 Additional" from the Library Palette
  3. Drop the behavior "Button Toggle" on sprite 36 and set Default On to TRUE
  4. Drop the same behavior on sprite 37 but set Default On to FALSE

 
  << PREVIOUS
NEXT >>