Forums > MaxMSP

any way to access iTunes from Max?

April 18, 2007 | 4:02 pm

I wonder if there is (but I bet no)
a way to access iTunes with an MSP external…

also I wonder why:

a) import command on buffer~
works badly with mp3s or apple’s codec…
it cuts the songs even if you have assigned more than enough space
to the buffer and replace won’t work with such formats…
(and I have enough RAM)

b) why there is not there a way to use waveform~ inspector with sfplay~? why just buffers and not direct to disk reading?

ok
enough,,,

any answer is very appreciated


April 18, 2007 | 4:52 pm

You can do this with Jack OS X:

http://www.jackosx.com

If on Windows, Jack is a little bit less polished, but it should still work:

http://www.grame.fr/~letz/jackdmp.html

Dan

At 6:03 PM +0200 4/18/07, Giorgio Sancristoforo wrote:
>I wonder if there is (but I bet no)
>a way to access iTunes with an MSP external…
>
>
>also I wonder why:
>
>a) import command on buffer~
>works badly with mp3s or apple’s codec…
>it cuts the songs even if you have assigned more than enough space
>to the buffer and replace won’t work with such formats…
>(and I have enough RAM)
>
>b) why there is not there a way to use waveform~ inspector with
>sfplay~? why just buffers and not direct to disk reading?
>
>
>ok
>enough,,,
>
>any answer is very appreciated


Dan Nigrin
Defective Records
202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X / Major
Malfunction
http://www.defectiverecords.com

http://www.jackosx.com


April 18, 2007 | 5:09 pm

Am 18.04.2007 um 18:03 schrieb Giorgio Sancristoforo:

>
> I wonder if there is (but I bet no)
> a way to access iTunes with an MSP external…
you can use the soundflower driver on osx get it from cycling74
>
>
> also I wonder why:
>
> a) import command on buffer~
> works badly with mp3s or apple’s codec…
here it works with mp3, try only one channel.
> it cuts the songs even if you have assigned more than enough space
> to the buffer and replace won’t work with such formats…
> (and I have enough RAM)
>
> b) why there is not there a way to use waveform~ inspector with
> sfplay~? why just buffers and not direct to disk read

try this

#P user ezdac~ 68 390 112 423 0;
#P button 113 53 15 0;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 220 592 52 196617 change 0.;
#P user pictslider 14 480 23 76 0 0 0 0 wfknob.pct 1 wfmodes.pct 1
2146 0 0 196608 1. 1.;
#N vpatcher 40 55 278 404;
#P window setfont "Sans Serif" 9.;
#P newex 96 202 27 196617 int;
#N coll ;
#T flags 1 0;
#T 0 mode select;
#T 1 mode loop;
#T 2 mode move;
#T 3 mode draw;
#P newobj 131 255 53 196617 coll;
#P button 75 117 15 0;
#N comlet waveform~ mode messages;
#P inlet 74 164 15 0;
#P newex 113 88 27 196617 < < 1;
#P newex 96 140 40 196617 change;
#P newex 96 164 45 196617 select 0;
#P newex 96 117 27 196617 |;
#P outlet 131 284 15 0;
#P newex 45 62 78 196617 modifiers 100;
#P connect 5 0 7 0;
#P connect 7 0 2 0;
#P connect 0 3 2 0;
#P connect 2 0 4 0;
#P connect 4 0 3 0;
#P connect 6 0 9 0;
#P connect 3 0 9 0;
#P connect 0 4 5 0;
#P connect 5 0 2 1;
#P connect 3 1 8 0;
#P connect 9 0 8 0;
#P connect 8 0 1 0;
#P pop;
#P hidden newobj 26 594 54 196617 p wfkeys;
#P flonum 139 365 39 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 139 386 38 196617 line $1;
#P newex 38 436 48 196617 loadbang;
#P newex 220 613 32 196617 * 50.;
#P flonum 220 636 67 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 220 655 47 196617 seek $1;
#P hidden flonum 341 428 39 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0
0 0;
#P hidden newex 341 449 58 196617 prepend set;
#P newex 139 343 31 196617 gate;
#P newex 156 320 31 196617 / 50.;
#P newex 156 297 67 196617 snapshot~ 20;
#P message 338 355 18 196617 0;
#P toggle 43 216 25 0;
#N sfplay~ 1 60000 1 ;
#P newobj 74 253 163 196617 sfplay~ 1 60000 1;
#P newex 269 217 31 196617 t b l;
#P message 231 295 18 196617 1;
#P newex 269 270 99 196617 del 100;
#P message 269 196 38 196617 size $1;
#P newex 269 169 31 196617 / 50.;
#P newex 113 115 67 196617 prepend open;
#P newex 113 92 55 196617 opendialog;
#P message 113 71 36 196617 sound;
#P message 269 293 48 196617 speed 50;
#P newex 227 141 83 196617 sfinfo~;
#P user gain~ 74 282 24 73 158 0 1.071519 7.94321 10.;
#N sfplay~ 1 800000 0 ;
#P newobj 252 318 96 196617 sfplay~ 1 800000;
#P window linecount 2;
#P newex 251 386 87 196617 record~ waveform;
#P window linecount 1;
#P message 38 457 68 196617 set waveform;
#P user waveform~ 38 480 467 107 3 9;
#W mode move;
#W mouseoutput down;
#W unit ms;
#W grid 100000.;
#W ticks 0;
#W labels 0;
#W vlabels 0;
#W vticks 0;
#W bpm 0. 8.;
#W frgb 198 51 0;
#W brgb 133 147 117;
#W rgb2 0 95 255;
#W rgb3 0 0 0;
#W rgb4 0 0 0;
#W rgb5 190 137 255;
#W rgb6 42 42 42;
#W rgb7 100 100 100;
#P window linecount 2;
#P newex 290 237 115 196617 buffer~ waveform 10000;
#P window linecount 1;
#P comment 43 199 50 196617 play it;
#P comment 133 53 113 196617 1 – choose a sound file;
#P fasten 16 0 5 0 236 366 256 366;
#P fasten 16 0 6 0 236 315 257 315;
#P fasten 12 0 18 0 118 235 79 235;
#P fasten 12 0 8 0 118 136 232 136;
#P fasten 12 0 6 0 118 220 257 220;
#P hidden connect 24 0 3 2;
#P hidden connect 24 0 3 3;
#P connect 6 0 5 0;
#P connect 6 1 20 0;
#P hidden connect 25 0 24 0;
#P fasten 20 0 5 0 343 374 256 374;
#P hidden fasten 20 0 25 0 343 387 346 387;
#P connect 13 0 14 0;
#P connect 8 3 13 0;
#P connect 17 1 2 0;
#P fasten 15 0 16 0 274 289 236 289;
#P connect 15 0 9 0;
#P connect 17 0 15 0;
#P connect 14 0 17 0;
#P fasten 9 0 6 0 274 314 257 314;
#P connect 27 0 26 0;
#P connect 28 0 27 0;
#P connect 34 0 28 0;
#P connect 3 2 34 0;
#P connect 22 0 23 1;
#P connect 21 0 22 0;
#P fasten 18 1 21 0 155 284 161 284;
#P connect 31 0 30 0;
#P connect 23 0 31 0;
#P fasten 19 0 18 0 48 243 79 243;
#P fasten 19 0 23 0 48 275 144 275;
#P connect 11 0 12 0;
#P connect 10 0 11 0;
#P connect 35 0 10 0;
#P connect 7 0 36 0;
#P connect 7 0 36 1;
#P connect 18 0 7 0;
#P fasten 26 0 18 0 225 675 6 675 6 249 79 249;
#P hidden connect 32 0 3 0;
#P fasten 30 0 3 0 144 477 43 477;
#P connect 4 0 3 0;
#P connect 29 0 4 0;
#P hidden connect 33 1 32 0;
#P window clipboard copycount 37;

> ok
> enough,,,
>
> any answer is very appreciated


April 18, 2007 | 5:11 pm

Thanks Dan, but if I’m not wrong, jack looks like an audio router.

I’m looking for something that let me access the iTunes library of my computer and select tracks from max…

routing the audio out of iTunes won’t fit my needs…

thanks anyway indeed


April 18, 2007 | 5:17 pm

Thanks much Falk,
the sfplay~ + waveform~ question is answered!


April 18, 2007 | 5:55 pm

Ah, OK sorry – I misunderstood you.

FWIW though, I’m pretty sure the iTunes library file is XML based, so
you could probably dig into that and figure out how to parse it…
You’d be able to get the relevant info, including full file patch,
from there. Then just use that path to load the file into Max…

Dan

At 7:11 PM +0200 4/18/07, Giorgio Sancristoforo wrote:
>Thanks Dan, but if I’m not wrong, jack looks like an audio router.
>
>I’m looking for something that let me access the iTunes library of
>my computer and select tracks from max…
>
>routing the audio out of iTunes won’t fit my needs…
>
>thanks anyway indeed


Dan Nigrin
Defective Records
202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X / Major
Malfunction
http://www.defectiverecords.com

http://www.jackosx.com


April 18, 2007 | 6:07 pm

Hi (bonjour),

Maybe you could have a look at oscbonjour, external doing Bonjour/ZeroConf
service discovery and announcement.
This Remy Muller external is very useful; for instance it avoids sending a
ping to 255.255.255.255 to get all the machine IPs.

http://recherche.ircam.fr/equipes/temps-reel/movement/muller/soft/oscbonjour.zip


Viewing 7 posts - 1 through 7 (of 7 total)