Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

GarageBand - Bluetooth remote control for Sony T68i Apps
Here is a script to use with Salling Clicker 2.0, which will let you control GarageBand with your Sony T68i. This is especially helpful when you want to record something and you are in another room , having a beer and can't be bothered running back & forth to your Mac to press record & stop. All you have to do is go into Salling Clicker, in the System Preferences. Under "Clicker items" / Scripts, choose "New Category" by using the action button. Name this "GarageBand," then under that Category select "new script" by using the action button. Select "Keypad widget" - name it "GarageBand" also, and then press control while clicking on this new script to edit it with Script Editor.

Finally, replace the script you see in Script Editor with my Garage Band AppleScript. Save it, then drag the script from " Scripts" over to " Clicker items". This puts it in your phones "Accessories" menu. Read the rest of the hint for the script...

[robg adds: I can't test this one, as I have no Bluetooth phone ... and I apologize for the width of the code in the remainder of the hint, but there's not a good way to easily break the longer lines.]

Controls:
  • * - Record
  • # - Help
  • Clear - Delete Selection
  • Yes/Joystick push - Play/Stop
  • Joystick Left - Rewind
  • Joystick Right - Fast Forward
  • Joystick Down - Next Track
  • Joystick Up - Previous Track
  • 0 - Return
  • 1 - Previous Event
  • 3 - Next Event
  • 7 - Save
  • 8 - New Track
property soiko : "Stop"
property keymap_info : {¬
  {key_code:"s", key_title:"Play/Stop", key_description:"Toggles between play and stop."}, ¬
  {key_code:"<", key_title:"Rewind", key_description:"Moves the song pointer to the previous bar. Keeps moving when you hold the button."}, ¬
  {key_code:">", key_title:"Forward", key_description:"Moves the song pointer to the next bar. Keeps moving when you hold the button."}, ¬
  {key_code:"c", key_title:"Delete", key_description:"Delete the highlighted selection"}, ¬
  {key_code:"*", key_title:"Record", key_description:"Starts recording."}, ¬
  {key_code:"1", key_title:"Previous Event", key_description:"goes to the next recorded event."}, ¬
  {key_code:"0", key_title:"Return", key_description:"Return."}, ¬
  {key_code:"8", key_title:"New Track", key_description:"New Track."}, ¬
  {key_code:"7", key_title:"Save", key_description:"Save."}, ¬
  {key_code:"3", key_title:"Next Event", key_description:"Selects previous recorded event."}, ¬
  {key_code:"^", key_title:"Previous track", key_description:"Select previous track."}, ¬
  {key_code:"v", key_title:"Next track", key_description:"Select next track."} ¬
    }

tell application "SEC Helper"
  enter keypad mode text "GarageBand" & return & "(# for help)"
end tell

on key_was_depressed(keyCode)
  tell application "GarageBand"
    activate
  end tell
  if keyCode is ">" then
    tell application "SEC Helper"
      simulate keyboard virtual keycode 124
      show screen message "Forward" duration 2.5
    end tell
  else if keyCode is "<" then
    tell application "SEC Helper"
      simulate keyboard virtual keycode 123
      show screen message "Rewind" duration 2.5
    end tell
  else if keyCode is "^" then
    tell application "SEC Helper"
      simulate keyboard virtual keycode 126
      show screen message "Previous track" duration 2.5
    end tell
  else if keyCode is "v" then
    tell application "SEC Helper"
      simulate keyboard virtual keycode 125
      show screen message "Next track" duration 2.5
    end tell
  else if keyCode is "1" then
    tell application "SEC Helper"
      simulate keyboard virtual keycode 123
      show screen message "Previous Event" duration 2.5
    end tell
  else if keyCode is "7" then
    tell application "SEC Helper"
      simulate keyboard virtual keycode 1 modifiers {"command"}
      show screen message "Save" duration 2.5
    end tell
    
  else if keyCode is "0" then
    tell application "SEC Helper"
      simulate keyboard virtual keycode 36
      show screen message "press return" duration 2.5
    end tell
  else if keyCode is "8" then
    tell application "SEC Helper"
      simulate keyboard virtual keycode 45 modifiers {"command", "option"}
      show screen message "New Track" duration 2.5
    end tell
  else if keyCode is "3" then
    tell application "SEC Helper"
      simulate keyboard virtual keycode 124
      show screen message "Next Event" duration 2.5
    end tell
  else if keyCode is "s" then
    if soiko is "Stop" then
      tell application "SEC Helper"
        push keypad text "GarageBand" & return & "playing..."
        simulate keyboard virtual keycode 49
      end tell
      set soiko to "Play"
    else if soiko is "Play" then
      tell application "SEC Helper"
        push keypad text "GarageBand" & return & "stopped"
        simulate keyboard virtual keycode 49
      end tell
      set soiko to "Stop"
    end if
  else if keyCode is "c" then
    tell application "SEC Helper"
      push keypad text "GarageBand" & return & "selection deleted"
      simulate keyboard virtual keycode 51
    end tell
    set soiko to "Stop"
  else if keyCode is "*" then
    tell application "SEC Helper"
      push keypad text "GarageBand" & return & "recording..."
      simulate keyboard virtual keycode 15
      show screen message "Record" duration 2.5
    end tell
  else if keyCode is "#" then
    tell application "SEC Helper"
      show keypad help keymap keymap_info title "GarageBand Help"
    end tell
  end if
end key_was_depressed

on key_is_repeating(keyCode)
  try
    tell application "GarageBand" to activate
    if keyCode is ">" then
      tell application "SEC Helper"
        simulate keyboard virtual keycode 124
      end tell
    else if keyCode is "<" then
      tell application "SEC Helper"
        simulate keyboard virtual keycode 123
      end tell
    else if keyCode is "^" then
      tell application "SEC Helper"
        simulate keyboard virtual keycode 126
      end tell
    else if keyCode is "v" then
      tell application "SEC Helper"
        simulate keyboard virtual keycode 125
      end tell
    end if
    set repeatTimes to (repeatTimes + 1)
  on error
    beep
  end try
end key_is_repeating
    •    
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
 
[9,269 views]  

GarageBand - Bluetooth remote control for Sony T68i | 7 comments | Create New Account
Click here to return to the 'GarageBand - Bluetooth remote control for Sony T68i' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
GarageBand - Bluetooth remote control for Sony T68i
Authored by: Han Solo on Mar 17, '04 11:24:05AM

Any chance of "porting" this script for use on a Palm device?



[ Reply to This | # ]
GarageBand - Bluetooth remote control for Sony T68i
Authored by: trevbucky on Mar 19, '04 09:44:01AM

sorry dude...
I wouldn't have a clue how to port it over eh...



[ Reply to This | # ]
GarageBand - Bluetooth remote control for Sony T68i
Authored by: frankxiv on Mar 17, '04 02:20:23PM

I don't think I understand the usefulness of this hint. Why would you want or need to tell Garage Band to start or stop recording if you are in the "other room having a beer???"

What are you telling it to start or stop recording if you aren't in the room?

Am I just missing something?

Later, Frank



[ Reply to This | # ]
GarageBand - Bluetooth remote control for Sony T68i
Authored by: koncept on Mar 17, '04 02:34:11PM

lol



[ Reply to This | # ]
GarageBand - Bluetooth remote control for Sony T68i
Authored by: Han Solo on Mar 17, '04 09:40:13PM
[Rolls eyes] I'm guessing you have never recorded original live music before....

1. The beer is essential. Inspiration. Muse. Refreshment. Guinness, preferably.

2. Any Mac with decent processing power -- and GarageBand isn't exactly light on its feet, or on the CPU(s) -- will be LOUD: fans in particular. Unless you're recording industrial goth speed metal, ambient noise is, in technical terms, bad. Hence, placing the Mac in another room is a really good idea.

So, yes, I'd say you are missing something: it's not the musician who isn't in the room -- it's that noisy Mac. A way to stop/start recording without having to get up and risk spilling your beer on your Strat or SG would be killer.

[ Reply to This | # ]

GarageBand - Bluetooth remote control for Sony T68i
Authored by: trevbucky on Mar 19, '04 09:54:05AM

Yes hans solo , you've got it man...
we like to listen to a few iTunes over a few beers in my back room (iTunes now totally controllable with the Sony T68 & Salling Clicker...very cool!) then after a few more cleansing ales & a pipe or two, we fire up either Cubase or GarageBand & lay down some more tunes ourselves... the hassle with having to run back into the computer room , press record then run back & make the recording is now fixed with this script & Salling Clicker!...ahhhh

and good point about the noise issue....another problem solved.

youve gotta love OSX...and homebrew.



[ Reply to This | # ]
GarageBand - script.. an easier way now.
Authored by: trevbucky on Mar 19, '04 10:01:14AM

Hey dudes...I posted this script last week and don't you just hate that...I mustn't have been logged in so it's anonymous...oh well...

anyway , since I posted it I have had this script put on salling Clickers site
with a much easier ( drag & drop) method of installing it into Clicker.

go here to see it:
http://www.gourmetcookies.iinet.net.au/garageband.html

Trevor Buckenara
Perth Australia



[ Reply to This | # ]