Attach
Behaviors to the Transport Controls

- Select
category "3 Transport Controls" in the Library Palette
- Drag
the behavior "Rewind/Forward" to sprite 31 (the Rewind Button)
and set Direction to #rewind
- Drag
the behavior "Rewind/Forward" to sprite 32 (the Forward Button)
and set the Direction to #forward
- Attach
the behavior "Stop Song" to sprite 33 (the Stop Button)
- Attach
the behavior "Play Song" to sprite 34 (the Play Button) and
set Play From... to #Current Position
- 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
- 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
- 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
- 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)
- Use the
same behavior for sprite 39 (the tempo display). You don´t need
to set any properties.
- Attach
the behavior "Set Locators (Numerical)" for sprite 40 &
41. Set sprite 40 to #left and sprite 41 to #right
- 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
- Drop the
"Show State" behavior on sprite 34 & 35 (the Play- an
Record Buttons). Set the properties like this:

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