The MP3car.com Store The MP3car.com Store    

Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > MacCar > AMP

Reply
 
LinkBack Thread Tools Display Modes
Old 09-13-2006, 06:28 PM   #181
Newbie
 
macalanche's Avatar
 
Join Date: Jan 2006
Location: Northern Virginia
Posts: 43
Ok, I'll do what I can to help. I'm a ****ty editor but I can do reseach. I'll see what I can find out about gesture input.

Let us know if you need anything else(beside time).
macalanche is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 09-13-2006, 06:56 PM   #182
Variable Bitrate
 
Join Date: Feb 2006
Posts: 263
I've tried to send as much as info as I could on GPS, I personally think OBD II would be great, but realistically I think XM and GPS should be a priority, but hey maybe that's just me...
LightningMac is offline   Reply With Quote
Old 09-13-2006, 11:34 PM   #183
Constant Bitrate
 
Join Date: Jun 2006
Posts: 126
Heres some stuff I found on Equalizers...(I dont know which one you need)
http://developer.apple.com/cgi-bin/s...ult_collection
JakobMetzger is offline   Reply With Quote
Old 09-14-2006, 01:48 AM   #184
Variable Bitrate
 
Join Date: Feb 2006
Posts: 263
I think this is what you're looking for on an equalizer, it says it's built into OS 10.4

http://developer.apple.com/documenta...section_1.html
LightningMac is offline   Reply With Quote
Old 09-14-2006, 02:04 AM   #185
QCar Creator
 
Jirka Jirout's Avatar
 
Join Date: Jul 2005
Location: Netherlands
Posts: 541
Quote: Originally Posted by LightningMac View Post
I think this is what you're looking for on an equalizer, it says it's built into OS 10.4

http://developer.apple.com/documenta...section_1.html

This is CoreAudio framework, which is pretty low-level and you cannot use it easily (if at all) with NSMovieView, that is used in AMP (BTW: It might not be a bad idea to replace it with QTMovie view - more functions and quite a few issues fixed).

By far the easiest way of implementing an equalizer is to use iTunes for playback and control its equalizer via AppleScript.
Jirka Jirout is offline   Reply With Quote
Old 09-14-2006, 10:32 AM   #186
AMP Creator
 
aychamo's Avatar
 
Join Date: Jun 2006
Posts: 451
Quote: Originally Posted by Jirka Jirout View Post
This is CoreAudio framework, which is pretty low-level and you cannot use it easily (if at all) with NSMovieView, that is used in AMP (BTW: It might not be a bad idea to replace it with QTMovie view - more functions and quite a few issues fixed).

By far the easiest way of implementing an equalizer is to use iTunes for playback and control its equalizer via AppleScript.

Jirka, is it possible to get/set the current play position (time, like you are at minute 2:03 of a 4:00 minute song) via iTunes & AppleScript interfacing?
__________________
-
aychamo is offline   Reply With Quote
Old 09-14-2006, 10:48 AM   #187
QCar Creator
 
Jirka Jirout's Avatar
 
Join Date: Jul 2005
Location: Netherlands
Posts: 541
Quote: Originally Posted by aychamo View Post
Jirka, is it possible to get/set the current play position (time, like you are at minute 2:03 of a 4:00 minute song) via iTunes & AppleScript interfacing?

Yes. I use this to store the position when the app goes down and then resume the playback the next time it is started.

here is how to store the position (moduleSetup is NSMutableDictionary):
Code:
- (void) readCurrentPosition{ NSAppleScript *asExecutor; NSAppleEventDescriptor *asResult; asExecutor = [[[NSAppleScript alloc] initWithSource: @"tell app \"iTunes\" to get {player position, index of current track, index of current playlist}"] autorelease]; asResult = [asExecutor executeAndReturnError:nil]; [moduleSetup setObject: [NSNumber numberWithInt:[[asResult descriptorAtIndex:1]int32Value]] forKey:@"CURR_TIME"]; [moduleSetup setObject: [NSNumber numberWithInt:[[asResult descriptorAtIndex:2]int32Value]] forKey:@"CURR_TRACK"]; [moduleSetup setObject: [NSNumber numberWithInt:[[asResult descriptorAtIndex:3]int32Value]] forKey:@"CURR_PLIST"]; }

and here how to resume from the stored position:

Code:
- (void)doPlay{ NSString *asCommand = [NSString stringWithFormat:@"tell application \"iTunes\"\r play track %i of playlist %i of source \"%@\"\r set player position to %i\r end tell", [[moduleSetup objectForKey:@"CURR_TRACK"] intValue], [[moduleSetup objectForKey:@"CURR_PLIST"] intValue], [moduleSetup objectForKey:@"CURR_SRC"], [[moduleSetup objectForKey:@"CURR_TIME"] intValue]]; //NSLog(asCommand); //DEBUG [[[[NSAppleScript alloc] initWithSource:asCommand] autorelease] executeAndReturnError:nil]; }

Jirka Jirout is offline   Reply With Quote
Old 09-14-2006, 10:54 AM   #188
FLAC
 
sdashiki's Avatar
 
Join Date: Aug 2004
Location: Floreeda
Posts: 1,009
All I know of Mac OBDII is the python script thing that deals with it.

Youd need a serial to USB converter, and basically a way to read the info off the USB signal and interpret it into graphical or numerical data with labels etc.

Scantool has their own software for doing that, but its Windoze
__________________
(----) 0.0%
No more loot for the carpute.
Trying to fit my 20" iMac into the dash... RF 600.5 amp, two 10" JLW0, 8 Infinity Components
sdashiki is offline   Reply With Quote
Old 09-14-2006, 11:25 AM   #189
Variable Bitrate
 
Join Date: Feb 2006
Posts: 263
here's info on pyobd, I think it's what you're referring to and it says it works with OS X:

http://www.cs.unm.edu/~donour/cars/pyobd/
LightningMac is offline   Reply With Quote
Old 09-14-2006, 11:51 AM   #190
QCar Creator
 
Jirka Jirout's Avatar
 
Join Date: Jul 2005
Location: Netherlands
Posts: 541
Quote: Originally Posted by sdashiki View Post
Youd need a serial to USB converter, and basically a way to read the info off the USB signal and interpret it into graphical or numerical data with labels etc.

If you use a serial to USB converter, its driver creates a device file in /dev/ and you can read/write data exactly the same way you read data from a file (using NSFileHandle). Reading the data is a piece of cake. What is (a little) more difficult is to parse the data you read, but since there is so much documentation and examples out there, it is not that difficult either.
Jirka Jirout is offline   Reply With Quote
Old 09-14-2006, 09:11 PM   #191
Newbie
 
Join Date: Sep 2006
Posts: 14
Here is some information on integrating sirius

http://www.mp3car.com/vbulletin/show...t=46059&page=3
catronro is offline   Reply With Quote
Old 09-14-2006, 09:26 PM   #192
Newbie
 
Join Date: Sep 2006
Posts: 14
Here is the documentation on the XM Protocol and a page in this forum that talks about it.

http://www.mp3car.com/vbulletin/general-hardware-discussion/34035-using-xm-direct-xmpcr.html
Attached Images
File Type: pdf XM Protocol Specification.pdf (36.4 KB, 90 views)
catronro is offline   Reply With Quote
Old 09-15-2006, 12:58 AM   #193
Variable Bitrate
 
Join Date: Feb 2006
Posts: 263
I think he's set on XM because BugByte is SUPPOSE to be helping him since he has the code from his project... should be simple to implement... cough cough... right?
LightningMac is offline   Reply With Quote
Old 09-15-2006, 02:29 AM   #194
QCar Creator
 
Jirka Jirout's Avatar
 
Join Date: Jul 2005
Location: Netherlands
Posts: 541
If the protocol description in the file submitted by Catronro is correct and complete, then the whole implementation is a task for one afternoon and maybe evening. I can try to write the controller class, but since we do not have XM here and I have no hardware to test it, I would need some help from someone who does have access to the box, proper cables etc.
Jirka Jirout is offline   Reply With Quote
Old 09-15-2006, 08:33 AM   #195
Admin. Don't bug or I'll byte.
 
Bugbyte's Avatar
 
Join Date: Sep 2004
Location: Corning, NY
Posts: 4,694
We're happy to help out. Eugene wrote a functioning XM app in Java with all of the proper implementations. Works fine over a serial-USB FTDI controller.

We just haven't switched over to Cocoa, but if someone wants to take a look at the Java source, it probably isn't too hard to translate. Getting the box up and running and changing channels is easy. Getting info on what's playing is a little more challenging, but not hard.

The most difficult thing has been to start the box up and be sure it is running. But I'm sure it can be overcome.
__________________
-Where in the world is the iBug?
-Find out about theiBug
-Attention Newbies! Have you seen the FAQ Emporium?
-No time to figure it out? Take 5 minutes to view the Car PC 101 video
Bugbyte is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Engine Noise due to ground loop or amp? matt11601 Car Audio 29 05-07-2008 07:18 AM
Punch 160.4 Amp wont Power unless REM cable is touching Amp casing. Sero Newbie 2 02-26-2006 10:32 PM
Brand new AMP, Busted.. Biograph1001 Car Audio 7 02-19-2006 10:54 AM
amp pop dan__wright Car Audio 6 06-16-2005 04:24 AM
Amp setup. Heat concern. d_sellers1 Car Audio 2 07-09-2004 09:58 AM


All times are GMT -5. The time now is 04:17 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics