From carl.knott at gmail.com Thu Aug 2 12:03:14 2007 From: carl.knott at gmail.com (Carl Knott) Date: Thu Aug 2 12:03:14 2007 Subject: [java-dev] Gui progress bar in mxj? Message-ID: <1b4c1.46b21c61@www.cycling74.com> Is it possible to implement a gui progress bar in mxj? From owen at owengreen.net Thu Aug 2 13:45:12 2007 From: owen at owengreen.net (Owen Green) Date: Thu Aug 2 13:45:23 2007 Subject: [java-dev] Gui progress bar in mxj? In-Reply-To: <1b4c1.46b21c61@www.cycling74.com> References: <1b4c1.46b21c61@www.cycling74.com> Message-ID: <46B23448.6030904@owengreen.net> A qualified 'yes'! Questions: - What position are you starting from, vis-a-vis experience with Java/MXJ? (Knowing will make it easier to nudge you in profitable directions) - How do you envisage it working? Is this to report on the progress of something happening in Java-land or max-land? (If the latter, JSUI or lcd may well involve less heartache). In any case, there is a Swing class, JProgressBar. You should check the archives for previous discussions of how to get Java gui elements to behave. (BTW, has anyone played with SWT in mxj yet?) -- O Carl Knott wrote: > Is it possible to implement a gui progress bar in mxj? > _______________________________________________ > java-dev mailing list > java-dev@cycling74.com > http://www.cycling74.com/mailman/listinfo/java-dev > From carl.knott at gmail.com Fri Aug 3 05:55:48 2007 From: carl.knott at gmail.com (Carl Knott) Date: Fri Aug 3 05:55:49 2007 Subject: [java-dev] Re: Gui progress bar in mxj? In-Reply-To: <1b4c1.46b21c61@www.cycling74.com> Message-ID: <1b516.46b317c3@www.cycling74.com> In answer to your questions, I have lots of experience with Java and so so with mxj - its going to work in Java-land, as the patch is loading.. I'm creating 25 Matrices before the patch loads so it takes several seconds... I'll take a look at JProcessBar, thanks :) From owen at owengreen.net Fri Aug 3 06:07:05 2007 From: owen at owengreen.net (Owen Green) Date: Fri Aug 3 06:07:14 2007 Subject: [java-dev] Re: Gui progress bar in mxj? In-Reply-To: <1b516.46b317c3@www.cycling74.com> References: <1b516.46b317c3@www.cycling74.com> Message-ID: <46B31A69.9000403@owengreen.net> Carl Knott wrote: > In answer to your questions, I have lots of experience with Java Good, that makes explaining the main thing to watch about doing gui stuff in mxj pretty easy: It's important that AWT/Swing things happen in the AWT event thread, not the max/mxj thread (due to cocoa /carbon squabbling on the mac), otherwise lockups and other badness ensues. Liberal use of SwingUtilities.invokeLater() is the key. -- O From Michael.x.Ilardi.-ND at disney.com Mon Aug 6 15:52:04 2007 From: Michael.x.Ilardi.-ND at disney.com (mji) Date: Mon Aug 6 15:52:06 2007 Subject: [java-dev] Crashing after a while... Message-ID: <1b5d6.46b797ff@www.cycling74.com> I've written a Java plugin that usually works great, but appears to crash Max after running for some number of hours. The error report, which I've pasted into the bottom of this message, doesn't contain anything that means much to me, but does mention mxj as being called from the crashed thread. Has anyone come across a similar problem or does anyone have any advice regarding how I might go about debugging this plugin? Thanks in advance, Michael ---------------------------------------------------------------- ERROR REPORT: Date/Time: 2007-08-04 11:21:04.237 -0700 OS Version: 10.4.10 (Build 8R218) Report Version: 4 Command: MaxMSP Path: /Applications/MaxMSP 4.6/MaxMSP.app/Contents/MacOS/MaxMSP Parent: WindowServer [97] Version: ??? (4.6.3) PID: 624 Thread: 0 Exception: EXC_BAD_ACCESS (0x0001) Codes: KERN_PROTECTION_FAILURE (0x0002) at 0x00000000 Thread 0 Crashed: 0 com.cycling74.mxj 0x162ca4fc checkException + 20 1 com.cycling74.mxj 0x162d0d94 max_clock_tick + 100 2 com.cycling74.MaxMSP46 0x0001a628 clock_execute + 156 (clock.c:173) 3 com.cycling74.MaxMSP46 0x00080688 sched_takepoll + 820 (sched.c:596) 4 com.cycling74.MaxMSP46 0x000807a4 sched_poll + 84 (sched.c:515) 5 com.cycling74.MaxMSP46 0x00038174 max_doeventtimerproc + 176 (main.c:683) 6 com.cycling74.MaxMSP46 0x00038268 max_eventtimerproc + 52 (main.c:724) 7 com.apple.CoreFoundation 0x907f1578 __CFRunLoopDoTimer + 184 8 com.apple.CoreFoundation 0x907ddef8 __CFRunLoopRun + 1680 9 com.apple.CoreFoundation 0x907dd4ac CFRunLoopRunSpecific + 268 10 com.apple.HIToolbox 0x93298b20 RunCurrentEventLoopInMode + 264 11 com.apple.HIToolbox 0x932981b4 ReceiveNextEventCommon + 380 12 com.apple.HIToolbox 0x932dd348 AcquireNextEventInMode + 72 13 com.apple.HIToolbox 0x932dd138 RunApplicationEventLoop + 132 14 com.cycling74.MaxMSP46 0x000393d0 app_run + 96 (main.c:1519) 15 com.cycling74.MaxMSP46 0x000396a4 main + 704 (main.c:416) 16 com.cycling74.MaxMSP46 0x00002f44 _start + 760 17 com.cycling74.MaxMSP46 0x00002c48 start + 48 Thread 1: 0 libSystem.B.dylib 0x90054388 semaphore_timedwait_signal_trap + 8 1 libSystem.B.dylib 0x90070be8 pthread_cond_timedwait_relative_np + 556 2 ...ple.CoreServices.CarbonCore 0x90bf8410 TSWaitOnSemaphoreCommon + 176 3 ...ple.CoreServices.CarbonCore 0x90c003ac TimerThread + 60 4 libSystem.B.dylib 0x9002bd08 _pthread_body + 96 Thread 2: 0 libSystem.B.dylib 0x9000b348 mach_msg_trap + 8 1 libSystem.B.dylib 0x9000b29c mach_msg + 60 2 com.apple.audio.midi.CoreMIDI 0x96d7fac8 XServerMachPort::ReceiveMessage(int&, void*, int&) + 84 3 com.apple.audio.midi.CoreMIDI 0x96d72c80 MIDIInPortThread::Run() + 64 4 com.apple.audio.midi.CoreMIDI 0x96d76f44 XThread::RunHelper(void*) + 28 5 com.apple.audio.midi.CoreMIDI 0x96d8087c CAPThread::Entry(CAPThread*) + 96 6 libSystem.B.dylib 0x9002bd08 _pthread_body + 96 Thread 3: 0 libSystem.B.dylib 0x9000b348 mach_msg_trap + 8 1 libSystem.B.dylib 0x9000b29c mach_msg + 60 2 com.apple.CoreFoundation 0x907ddba8 __CFRunLoopRun + 832 3 com.apple.CoreFoundation 0x907dd4ac CFRunLoopRunSpecific + 268 4 com.apple.audio.CoreAudio 0x9145863c HALRunLoop::OwnThread(void*) + 264 5 com.apple.audio.CoreAudio 0x914583dc CAPThread::Entry(CAPThread*) + 96 6 libSystem.B.dylib 0x9002bd08 _pthread_body + 96 Thread 4: 0 libSystem.B.dylib 0x9000b348 mach_msg_trap + 8 1 libSystem.B.dylib 0x9000b29c mach_msg + 60 2 libjvm.dylib 0x9c3ff11c JNI_CreateJavaVM_Impl + 49212 3 libjvm.dylib 0x9c3ff0b4 JNI_CreateJavaVM_Impl + 49108 4 libjvm.dylib 0x9c3fefac JNI_CreateJavaVM_Impl + 48844 5 libSystem.B.dylib 0x9002bd08 _pthread_body + 96 Thread 5: 0 libSystem.B.dylib 0x9000b348 mach_msg_trap + 8 1 libSystem.B.dylib 0x9000b29c mach_msg + 60 2 libjvm.dylib 0x9c4656f0 jio_snprintf + 392592 3 libjvm.dylib 0x9c465434 jio_snprintf + 391892 4 libjvm.dylib 0x9c714db8 JVM_RaiseSignal + 785752 5 libjvm.dylib 0x9c3fefac JNI_CreateJavaVM_Impl + 48844 6 libSystem.B.dylib 0x9002bd08 _pthread_body + 96 Thread 6: 0 libSystem.B.dylib 0x9000b348 mach_msg_trap + 8 1 libSystem.B.dylib 0x9000b29c mach_msg + 60 2 libjvm.dylib 0x9c4656f0 jio_snprintf + 392592 3 libjvm.dylib 0x9c465434 jio_snprintf + 391892 4 libjvm.dylib 0x9c714db8 JVM_RaiseSignal + 785752 5 libjvm.dylib 0x9c3fefac JNI_CreateJavaVM_Impl + 48844 6 libSystem.B.dylib 0x9002bd08 _pthread_body + 96 Thread 7: 0 libSystem.B.dylib 0x9000b348 mach_msg_trap + 8 1 libSystem.B.dylib 0x9000b29c mach_msg + 60 2 libjvm.dylib 0x9c465830 jio_snprintf + 392912 3 libjvm.dylib 0x9c465434 jio_snprintf + 391892 4 libjvm.dylib 0x9c5d09a0 JVM_OnExit + 375200 5 libjvm.dylib 0x9c3fefac JNI_CreateJavaVM_Impl + 48844 6 libSystem.B.dylib 0x9002bd08 _pthread_body + 96 Thread 8: 0 libSystem.B.dylib 0x9000b348 mach_msg_trap + 8 1 libSystem.B.dylib 0x9000b29c mach_msg + 60 2 libjvm.dylib 0x9c465830 jio_snprintf + 392912 3 libjvm.dylib 0x9c465434 jio_snprintf + 391892 4 libjvm.dylib 0x9c465bfc jio_snprintf + 393884 5 libjvm.dylib 0x9c465278 jio_snprintf + 391448 6 libjvm.dylib 0x9c3fefac JNI_CreateJavaVM_Impl + 48844 7 libSystem.B.dylib 0x9002bd08 _pthread_body + 96 Thread 9: 0 libSystem.B.dylib 0x9000b348 mach_msg_trap + 8 1 libSystem.B.dylib 0x9000b29c mach_msg + 60 2 libjvm.dylib 0x9c4656f0 jio_snprintf + 392592 3 libjvm.dylib 0x9c475304 JVM_MonitorWait + 3028 4 libjvm.dylib 0x9c4749cc JVM_MonitorWait + 668 5 <<00000000>> 0x195862c4 0 + 425222852 6 <<00000000>> 0x1957fab0 0 + 425196208 7 <<00000000>> 0x1957fab0 0 + 425196208 8 <<00000000>> 0x1957d164 0 + 425185636 9 libjvm.dylib 0x9c466fc8 jio_snprintf + 398952 10 libjvm.dylib 0x9c474564 JVM_StartThread + 2612 11 libjvm.dylib 0x9c474450 JVM_StartThread + 2336 12 libjvm.dylib 0x9c4743e0 JVM_StartThread + 2224 13 libjvm.dylib 0x9c47429c JVM_StartThread + 1900 14 libjvm.dylib 0x9c3fefac JNI_CreateJavaVM_Impl + 48844 15 libSystem.B.dylib 0x9002bd08 _pthread_body + 96 Thread 10: 0 libSystem.B.dylib 0x9000b348 mach_msg_trap + 8 1 libSystem.B.dylib 0x9000b29c mach_msg + 60 2 libjvm.dylib 0x9c4656f0 jio_snprintf + 392592 3 libjvm.dylib 0x9c475304 JVM_MonitorWait + 3028 4 libjvm.dylib 0x9c4749cc JVM_MonitorWait + 668 5 <<00000000>> 0x195862c4 0 + 425222852 6 <<00000000>> 0x1957fab0 0 + 425196208 7 <<00000000>> 0x1957f9c0 0 + 425195968 8 <<00000000>> 0x1957f9c0 0 + 425195968 9 <<00000000>> 0x1957d164 0 + 425185636 10 libjvm.dylib 0x9c466fc8 jio_snprintf + 398952 11 libjvm.dylib 0x9c474564 JVM_StartThread + 2612 12 libjvm.dylib 0x9c474450 JVM_StartThread + 2336 13 libjvm.dylib 0x9c4743e0 JVM_StartThread + 2224 14 libjvm.dylib 0x9c47429c JVM_StartThread + 1900 15 libjvm.dylib 0x9c3fefac JNI_CreateJavaVM_Impl + 48844 16 libSystem.B.dylib 0x9002bd08 _pthread_body + 96 Thread 11: 0 libSystem.B.dylib 0x9000b348 mach_msg_trap + 8 1 libSystem.B.dylib 0x9000b29c mach_msg + 60 2 libjvm.dylib 0x9c4656f0 jio_snprintf + 392592 3 libjvm.dylib 0x9c465514 jio_snprintf + 392116 4 libjvm.dylib 0x9c5cf7f8 JVM_OnExit + 370680 5 libjvm.dylib 0x9c47429c JVM_StartThread + 1900 6 libjvm.dylib 0x9c3fefac JNI_CreateJavaVM_Impl + 48844 7 libSystem.B.dylib 0x9002bd08 _pthread_body + 96 Thread 12: 0 libSystem.B.dylib 0x9002c4b8 semaphore_wait_trap + 8 1 libjvm.dylib 0x9c489d58 JVM_RegisterSignal + 10024 2 libjvm.dylib 0x9c489a84 JVM_RegisterSignal + 9300 3 libjvm.dylib 0x9c47429c JVM_StartThread + 1900 4 libjvm.dylib 0x9c3fefac JNI_CreateJavaVM_Impl + 48844 5 libSystem.B.dylib 0x9002bd08 _pthread_body + 96 Thread 13: 0 libSystem.B.dylib 0x9000b348 mach_msg_trap + 8 1 libSystem.B.dylib 0x9000b29c mach_msg + 60 2 libjvm.dylib 0x9c4656f0 jio_snprintf + 392592 3 libjvm.dylib 0x9c465514 jio_snprintf + 392116 4 libjvm.dylib 0x9c48af50 JVM_RegisterSignal + 14624 5 libjvm.dylib 0x9c48ac08 JVM_RegisterSignal + 13784 6 libjvm.dylib 0x9c47429c JVM_StartThread + 1900 7 libjvm.dylib 0x9c3fefac JNI_CreateJavaVM_Impl + 48844 8 libSystem.B.dylib 0x9002bd08 _pthread_body + 96 Thread 14: 0 libSystem.B.dylib 0x9000b348 mach_msg_trap + 8 1 libSystem.B.dylib 0x9000b29c mach_msg + 60 2 libjvm.dylib 0x9c4656f0 jio_snprintf + 392592 3 libjvm.dylib 0x9c465434 jio_snprintf + 391892 4 libjvm.dylib 0x9c48b5d4 JVM_RegisterSignal + 16292 5 libjvm.dylib 0x9c47429c JVM_StartThread + 1900 6 libjvm.dylib 0x9c3fefac JNI_CreateJavaVM_Impl + 48844 7 libSystem.B.dylib 0x9002bd08 _pthread_body + 96 Thread 15: 0 libSystem.B.dylib 0x9000b348 mach_msg_trap + 8 1 libSystem.B.dylib 0x9000b29c mach_msg + 60 2 libjvm.dylib 0x9c465830 jio_snprintf + 392912 3 libjvm.dylib 0x9c4a0a14 JVM_RegisterSignal + 103396 4 libjvm.dylib 0x9c4a0638 JVM_RegisterSignal + 102408 5 libjvm.dylib 0x9c3fefac JNI_CreateJavaVM_Impl + 48844 6 libSystem.B.dylib 0x9002bd08 _pthread_body + 96 Thread 16: 0 libSystem.B.dylib 0x9000b348 mach_msg_trap + 8 1 libSystem.B.dylib 0x9000b29c mach_msg + 60 2 libjvm.dylib 0x9c4656f0 jio_snprintf + 392592 3 libjvm.dylib 0x9c475304 JVM_MonitorWait + 3028 4 libjvm.dylib 0x9c4749cc JVM_MonitorWait + 668 5 <<00000000>> 0x1963a160 0 + 425959776 6 <<00000000>> 0x1963ab70 0 + 425962352 7 <<00000000>> 0x1963b900 0 + 425965824 8 <<00000000>> 0x1957fe10 0 + 425197072 9 <<00000000>> 0x1957d164 0 + 425185636 10 libjvm.dylib 0x9c466fc8 jio_snprintf + 398952 11 libjvm.dylib 0x9c474564 JVM_StartThread + 2612 12 libjvm.dylib 0x9c474450 JVM_StartThread + 2336 13 libjvm.dylib 0x9c4743e0 JVM_StartThread + 2224 14 libjvm.dylib 0x9c47429c JVM_StartThread + 1900 15 libjvm.dylib 0x9c3fefac JNI_CreateJavaVM_Impl + 48844 16 libSystem.B.dylib 0x9002bd08 _pthread_body + 96 Thread 17: 0 libSystem.B.dylib 0x9002f08c kevent + 12 1 com.apple.DesktopServices 0x92af4eb0 TFSNotificationTask::FSNotificationTaskProc(void*) + 56 2 ...ple.CoreServices.CarbonCore 0x90bc57b0 PrivateMPEntryPoint + 76 3 libSystem.B.dylib 0x9002bd08 _pthread_body + 96 Thread 18: 0 libSystem.B.dylib 0x9002c3c8 semaphore_wait_signal_trap + 8 1 libSystem.B.dylib 0x90030eac pthread_cond_wait + 480 2 ...ple.CoreServices.CarbonCore 0x90bc59a0 MPWaitOnQueue + 224 3 com.apple.DesktopServices 0x92af552c TNodeSyncTask::SyncTaskProc(void*) + 116 4 ...ple.CoreServices.CarbonCore 0x90bc57b0 PrivateMPEntryPoint + 76 5 libSystem.B.dylib 0x9002bd08 _pthread_body + 96 Thread 19: 0 libSystem.B.dylib 0x90054388 semaphore_timedwait_signal_trap + 8 1 libSystem.B.dylib 0x90070be8 pthread_cond_timedwait_relative_np + 556 2 ...ple.CoreServices.CarbonCore 0x90bf8410 TSWaitOnSemaphoreCommon + 176 3 ...ickTimeComponents.component 0x98e0d174 ReadSchedulerThreadEntryPoint + 5316 4 libSystem.B.dylib 0x9002bd08 _pthread_body + 96 Thread 20: 0 libSystem.B.dylib 0x900411f8 mach_wait_until + 8 1 libSystem.B.dylib 0x90040fc4 nanosleep + 388 2 libSystem.B.dylib 0x90044798 usleep + 88 3 com.cycling74.MaxMSP46 0x0014d7b4 systhread_sleep + 96 (systhread.c:357) 4 com.cycling74.MaxMSP46 0x00159144 asyncfile_threadproc() + 60 (asyncfile.c:99) 5 com.cycling74.MaxMSP46 0x0014d838 systhread_threadproc(void*) + 76 (systhread.c:212) 6 libSystem.B.dylib 0x9002bd08 _pthread_body + 96 Thread 21: 0 libSystem.B.dylib 0x90023c60 recvfrom + 12 1 libnet.jnilib 0x9c8ce81c Java_java_net_PlainDatagramSocketImpl_receive0 + 656 2 <<00000000>> 0x196471b8 0 + 426013112 3 <<00000000>> 0x19646d94 0 + 426012052 4 <<00000000>> 0x19644c80 0 + 426003584 5 <<00000000>> 0x196482e8 0 + 426017512 6 <<00000000>> 0x1957d164 0 + 425185636 7 libjvm.dylib 0x9c466fc8 jio_snprintf + 398952 8 libjvm.dylib 0x9c474564 JVM_StartThread + 2612 9 libjvm.dylib 0x9c474450 JVM_StartThread + 2336 10 libjvm.dylib 0x9c4743e0 JVM_StartThread + 2224 11 libjvm.dylib 0x9c47429c JVM_StartThread + 1900 12 libjvm.dylib 0x9c3fefac JNI_CreateJavaVM_Impl + 48844 13 libSystem.B.dylib 0x9002bd08 _pthread_body + 96 Thread 0 crashed with PPC Thread State 64: srr0: 0x00000000162ca4fc srr1: 0x100000000000f030 vrsave: 0x0000000000000000 cr: 0x44028442 xer: 0x0000000000000000 lr: 0x000000000001a628 ctr: 0x000000001958cf68 r0: 0x000000000001a628 r1: 0x00000000bffff240 r2: 0x00000000ac3f67f8 r3: 0x0000000000000000 r4: 0x0000000016b01590 r5: 0x00000000000003e8 r6: 0xffffffffffffffff r7: 0x0000000000000006 r8: 0x0000000000000000 r9: 0x00000000ac3f6620 r10: 0x00000000bfffeff0 r11: 0x0000000044028442 r12: 0x00000000bffff1e0 r13: 0x0000000000000000 r14: 0x0000000000000001 r15: 0x0000000000000000 r16: 0x0000000000000000 r17: 0x0000000000000000 r18: 0x0000000000000000 r19: 0x0000000000000000 r20: 0x000000007fffffff r21: 0x00000000ffffffff r22: 0x0000000000c03b28 r23: 0x0000000000c03b20 r24: 0x0000000000c03a10 r25: 0x0000000000c03b28 r26: 0x0000000000000001 r27: 0x0000000000000791 r28: 0x000000000a8b8910 r29: 0x0000000000c8c5b8 r30: 0x0000000000000000 r31: 0x00000000907f14c8 Binary Images Description: 0x1000 - 0x2c9fff com.cycling74.MaxMSP46 ??? (4.6.3) /Applications/MaxMSP 4.6/MaxMSP.app/Contents/MacOS/MaxMSP 0xc9e8a0 - 0xc9e952 CFMPriv_CoreFoundation PEF binary: CFMPriv_CoreFoundation 0xc9ef20 - 0xc9ef97 CFMPriv_System PEF binary: CFMPriv_System 0xc9f240 - 0xc9f310 CFMPriv_CarbonSound PEF binary: CFMPriv_CarbonSound 0xc9f390 - 0xc9f463 CFMPriv_CommonPanels PEF binary: CFMPriv_CommonPanels 0xc9f540 - 0xc9f5fb CFMPriv_Help PEF binary: CFMPriv_Help 0xc9f600 - 0xc9f6ca CFMPriv_HIToolbox PEF binary: CFMPriv_HIToolbox 0xc9f750 - 0xc9f826 CFMPriv_HTMLRendering PEF binary: CFMPriv_HTMLRendering 0xc9f8a0 - 0xc9f973 CFMPriv_ImageCapture PEF binary: CFMPriv_ImageCapture 0xc9fa00 - 0xc9fae5 CFMPriv_NavigationServices PEF binary: CFMPriv_NavigationServices 0xc9fb60 - 0xc9fc36 CFMPriv_OpenScriptingMacBLib PEF binary: CFMPriv_OpenScriptingMacBLib 0xc9fd10 - 0xc9fdce CFMPriv_Print PEF binary: CFMPriv_Print 0xc9fdf0 - 0xc9febd CFMPriv_SecurityHI PEF binary: CFMPriv_SecurityHI 0xc9ff40 - 0xca0022 CFMPriv_SpeechRecognition PEF binary: CFMPriv_SpeechRecognition 0xca00a0 - 0xca0173 CFMPriv_CarbonCore PEF binary: CFMPriv_CarbonCore 0xca01f0 - 0xca02c3 CFMPriv_OSServices PEF binary: CFMPriv_OSServices 0xca03a0 - 0xca0462 CFMPriv_AE PEF binary: CFMPriv_AE 0xca0470 - 0xca0535 CFMPriv_ATS PEF binary: CFMPriv_ATS 0xca05b0 - 0xca0687 CFMPriv_ColorSync PEF binary: CFMPriv_ColorSync 0xca0710 - 0xca07f3 CFMPriv_FindByContent PEF binary: CFMPriv_FindByContent 0xca0870 - 0xca094a CFMPriv_HIServices PEF binary: CFMPriv_HIServices 0xca09c0 - 0xca0aa0 CFMPriv_LangAnalysis PEF binary: CFMPriv_LangAnalysis 0xca0b30 - 0xca0c16 CFMPriv_LaunchServices PEF binary: CFMPriv_LaunchServices 0xca0cf0 - 0xca0dc7 CFMPriv_PrintCore PEF binary: CFMPriv_PrintCore 0xca0dd0 - 0xca0e92 CFMPriv_QD PEF binary: CFMPriv_QD 0xca0f90 - 0xca1079 CFMPriv_SpeechSynthesis PEF binary: CFMPriv_SpeechSynthesis 0xfd5000 - 0xfe4fff com.apple.iokit.IOUSBLib 2.8.1 /System/Library/Extensions/IOUSBFamily.kext/Contents/PlugIns/IOUSBLib.bundle/Contents/MacOS/IOUSBLib 0x1808000 - 0x1828fff com.cycling74.MaxAPI 1.0 /Applications/MaxMSP 4.6/MaxMSP.app/Contents/Frameworks/MaxAPI.framework/MaxAPI 0x199f000 - 0x19a0fff com.cycling74.augraph ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/mididrivers/augraph.mxo/Contents/MacOS/augraph 0x1ccc000 - 0x1ccefff com.cycling74.coremidi ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/mididrivers/coremidi.mxo/Contents/MacOS/coremidi 0x1cda000 - 0x1cdbfff com.cycling74.midi_adrewire ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/mididrivers/midi_adrewire.mxo/Contents/MacOS/midi_adrewire 0x1cde000 - 0x1ce9fff com.cycling74.MaxAudioAPI ??? (1.0) /Applications/MaxMSP 4.6/MaxMSP.app/Contents/Frameworks/MaxAudioAPI.framework/Versions/A/MaxAudioAPI 0x1d24000 - 0x1d27fff com.cycling74.dial ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/dial.mxo/Contents/MacOS/dial 0x1d2b000 - 0x1d2cfff com.cycling74.emovie ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/emovie.mxo/Contents/MacOS/emovie 0x1ff2000 - 0x1ff4fff com.cycling74.dropfile ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/dropfile.mxo/Contents/MacOS/dropfile 0x1ff8000 - 0x1ffafff com.cycling74.edetonate ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/edetonate.mxo/Contents/MacOS/edetonate 0x1ffd000 - 0x1ffdfff com.cycling74.times~ ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/externals/times~.mxo/Contents/MacOS/times~ 0x208c000 - 0x208e007 ezadc~ PEF binary: ezadc~ 0x209f600 - 0x20a1580 ezdac~ PEF binary: ezdac~ 0x2189000 - 0x218aa09 biquad~ PEF binary: biquad~ 0x218ac00 - 0x218c895 cycle~ PEF binary: cycle~ 0x218f200 - 0x2190f4b adc~ PEF binary: adc~ 0x2191000 - 0x2192226 delay~ PEF binary: delay~ 0x2193e00 - 0x2195987 dac~ PEF binary: dac~ 0x15f69000 - 0x15f6cfff com.cycling74.efunc ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/efunc.mxo/Contents/MacOS/efunc 0x15f79000 - 0x15f7efff com.cycling74.envi ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/envi.mxo/Contents/MacOS/envi 0x15f82000 - 0x15f84fff com.cycling74.etable ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/etable.mxo/Contents/MacOS/etable 0x15f8f000 - 0x15ff0f19 MaxPPC3.1 PEF binary: MaxPPC3.1 0x15ff1000 - 0x15ffb839 MaxAudioLib PEF binary: MaxAudioLib 0x15ffc000 - 0x1604b3c7 CarbonLibpwpc PEF binary: CarbonLibpwpc 0x16077000 - 0x1607efff com.cycling74.ad_coreaudio ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/ad/ad_coreaudio.mxo/Contents/MacOS/ad_coreaudio 0x1612b000 - 0x1612cfff com.apple.aoa.halplugin 2.5.6 (2.5.6b5) /System/Library/Extensions/IOAudioFamily.kext/Contents/PlugIns/AOAHALPlugin.bundle/Contents/MacOS/AOAHALPlugin 0x1612f000 - 0x16131fff com.cycling74.ad_nonreal ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/ad/ad_nonreal.mxo/Contents/MacOS/ad_nonreal 0x16134000 - 0x1613efff com.cycling74.ad_rewire ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/ad/ad_rewire.mxo/Contents/MacOS/ad_rewire 0x1615b000 - 0x16166fff com.cycling74.filtergraph~ ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/filtergraph~.mxo/Contents/MacOS/filtergraph~ 0x1616b000 - 0x1616ffff com.cycling74.fpic ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/fpic.mxo/Contents/MacOS/fpic 0x16173000 - 0x16178fff com.cycling74.function ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/function.mxo/Contents/MacOS/function 0x1617c000 - 0x1617dfff com.cycling74.gswitch ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/gswitch.mxo/Contents/MacOS/gswitch 0x16181000 - 0x161850ed gain~ PEF binary: gain~ 0x16186000 - 0x16187fff com.cycling74.gswitch2 ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/gswitch2.mxo/Contents/MacOS/gswitch2 0x1618a000 - 0x1618cfff com.cycling74.hint ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/hint.mxo/Contents/MacOS/hint 0x16190000 - 0x16193fff com.cycling74.hslider ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/hslider.mxo/Contents/MacOS/hslider 0x16197000 - 0x1619bfff com.cycling74.imovie ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/imovie.mxo/Contents/MacOS/imovie 0x1619f000 - 0x161a0fff com.cycling74.incdec ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/incdec.mxo/Contents/MacOS/incdec 0x161a3000 - 0x161b7fff com.cycling74.jit.cellblock ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/jit.cellblock.mxo/Contents/MacOS/jit.cellblock 0x16241000 - 0x162aafff com.apple.AppleIntermediateCodec 1.0.1 (124) /Library/QuickTime/AppleIntermediateCodec.component/Contents/MacOS/AppleIntermediateCodec 0x162bf000 - 0x162d6fff com.cycling74.mxj ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/externals/mxj.mxo/Contents/MacOS/mxj 0x16405000 - 0x1655bfff com.cycling74.JitterAPI 1.6.3 /Applications/MaxMSP 4.6/MaxMSP.app/Contents/Frameworks/JitterAPI.framework/JitterAPI 0x16633000 - 0x16934fff com.nvidia.cg 1.4.0b3 (???) /Applications/MaxMSP 4.6/Cycling '74/jitter-externals/Cg.framework/Cg 0x1698e000 - 0x16a07fff com.apple.applepixletvideo 1.2.5 (1.2d5) /System/Library/QuickTime/ApplePixletVideo.component/Contents/MacOS/ApplePixletVideo 0x177fc000 - 0x177fdfff com.cycling74.jsfolder ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/jsextensions/jsfolder.mxo/Contents/MacOS/jsfolder 0x305cb000 - 0x305cbfff com.cycling74.prepend ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/externals/prepend.mxo/Contents/MacOS/prepend 0x315ec000 - 0x315effff com.cycling74.jit.fpsgui ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/jit.fpsgui.mxo/Contents/MacOS/jit.fpsgui 0x315f3000 - 0x315f8fff com.cycling74.jit.pwindow ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/jit.pwindow.mxo/Contents/MacOS/jit.pwindow 0x315fc000 - 0x3160dfff com.cycling74.jsui ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/jsui.mxo/Contents/MacOS/jsui 0x31616000 - 0x3161bfff com.cycling74.jsjitter ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/jsextensions/jsjitter.mxo/Contents/MacOS/jsjitter 0x31629000 - 0x3162afff com.cycling74.jstrigger ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/jsextensions/jstrigger.mxo/Contents/MacOS/jstrigger 0x31635000 - 0x31698fff com.cycling74.MaxJSRef ??? (1.0) /Applications/MaxMSP 4.6/MaxMSP.app/Contents/Frameworks/MaxJSRef.framework/Versions/A/MaxJSRef 0x316ad000 - 0x316b0fff com.cycling74.kslider ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/kslider.mxo/Contents/MacOS/kslider 0x316b4000 - 0x316befff com.cycling74.lcd ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/lcd.mxo/Contents/MacOS/lcd 0x316c4000 - 0x316c7fff com.cycling74.levelmeter~ ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/levelmeter~.mxo/Contents/MacOS/levelmeter~ 0x316ca000 - 0x316cbfff com.cycling74.led ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/led.mxo/Contents/MacOS/led 0x316ce000 - 0x316d4fff com.cycling74.matrixctrl ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/matrixctrl.mxo/Contents/MacOS/matrixctrl 0x316d8000 - 0x316dafff com.cycling74.meter~ ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/meter~.mxo/Contents/MacOS/meter~ 0x316dd000 - 0x316e3fff com.cycling74.multislider ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/multislider.mxo/Contents/MacOS/multislider 0x316e7000 - 0x316e9fff com.cycling74.nslider ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/nslider.mxo/Contents/MacOS/nslider 0x31854000 - 0x31858fff com.cycling74.number~ ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/number~.mxo/Contents/MacOS/number~ 0x3185c000 - 0x3185dfff com.cycling74.panel ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/panel.mxo/Contents/MacOS/panel 0x31860000 - 0x31865fff com.cycling74.pictctrl ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/pictctrl.mxo/Contents/MacOS/pictctrl 0x31869000 - 0x3186dfff com.cycling74.pictslider ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/pictslider.mxo/Contents/MacOS/pictslider 0x31871000 - 0x31872fff com.cycling74.playbar ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/playbar.mxo/Contents/MacOS/playbar 0x31875000 - 0x31877fff com.cycling74.radiogroup ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/radiogroup.mxo/Contents/MacOS/radiogroup 0x3187a000 - 0x3187cfff com.cycling74.rslider ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/rslider.mxo/Contents/MacOS/rslider 0x3187f000 - 0x31881fff com.cycling74.scope~ ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/scope~.mxo/Contents/MacOS/scope~ 0x31884000 - 0x3188afff com.cycling74.spectroscope~ ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/spectroscope~.mxo/Contents/MacOS/spectroscope~ 0x3188e000 - 0x3188ffff com.cycling74.suckah ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/suckah.mxo/Contents/MacOS/suckah 0x31892000 - 0x31895fff com.cycling74.swatch ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/swatch.mxo/Contents/MacOS/swatch 0x31899000 - 0x3189afff com.cycling74.ubutton ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/ubutton.mxo/Contents/MacOS/ubutton 0x318a7000 - 0x318abfff com.cycling74.textedit ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/textedit.mxo/Contents/MacOS/textedit 0x318b3000 - 0x318b9fff com.cycling74.ubumenu ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/ubumenu.mxo/Contents/MacOS/ubumenu 0x318fe000 - 0x31903fff com.cycling74.umenu ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/umenu.mxo/Contents/MacOS/umenu 0x31907000 - 0x3190afff com.cycling74.uslider ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/uslider.mxo/Contents/MacOS/uslider 0x3190e000 - 0x31918fff com.cycling74.waveform~ ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/waveform~.mxo/Contents/MacOS/waveform~ 0x3191c000 - 0x31920fff com.cycling74.zplane~ ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/max-startup/zplane~.mxo/Contents/MacOS/zplane~ 0x3192f000 - 0x31930fff com.cycling74.gate~ ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/externals/gate~.mxo/Contents/MacOS/gate~ 0x31933000 - 0x31934fff com.cycling74.pak ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/externals/pak.mxo/Contents/MacOS/pak 0x31937000 - 0x31939fff com.apple.carbonbundletemplate 1.0 /Applications/MaxMSP 4.6/Cycling '74/externals/JazzClient.mxo/Contents/MacOS/JazzClient 0x3193c000 - 0x3193cfff com.cycling74.loadmess ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/externals/loadmess.mxo/Contents/MacOS/loadmess 0x3193f000 - 0x31940fff com.cycling74.scale ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/externals/scale.mxo/Contents/MacOS/scale 0x31943000 - 0x31944fff com.cycling74.counter ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/externals/counter.mxo/Contents/MacOS/counter 0x31947000 - 0x31947fff com.cycling74.clocker ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/externals/clocker.mxo/Contents/MacOS/clocker 0x3196e000 - 0x31973fff com.cycling74.coll ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/externals/coll.mxo/Contents/MacOS/coll 0x31977000 - 0x31979fff com.apple.carbonbundletemplate 1.0 /Applications/MaxMSP 4.6/Cycling '74/externals/JazzServer.mxo/Contents/MacOS/JazzServer 0x3197d000 - 0x3197efff com.cycling74.drunk ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/externals/drunk.mxo/Contents/MacOS/drunk 0x31981000 - 0x31981fff com.cycling74.selector~ ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/externals/selector~.mxo/Contents/MacOS/selector~ 0x31984000 - 0x31994fff com.cycling74.sfplay~ ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/externals/sfplay~.mxo/Contents/MacOS/sfplay~ 0x31aa4000 - 0x31aa4fff com.cycling74.trough ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/externals/trough.mxo/Contents/MacOS/trough 0x31aa7000 - 0x31aa7fff com.cycling74.peak ??? (1.0) /Applications/MaxMSP 4.6/Cycling '74/externals/peak.mxo/Contents/MacOS/peak 0x41410000 - 0x414affff com.apple.QuickTimeImporters.component 7.2 /System/Library/QuickTime/QuickTimeImporters.component/Contents/MacOS/QuickTimeImporters 0x41840000 - 0x41866fff com.apple.CoreMediaPrivate 1.0 /System/Library/PrivateFrameworks/CoreMediaPrivate.framework/Versions/A/CoreMediaPrivate 0x419b0000 - 0x419effff com.apple.QuickTimeFireWireDV.component 7.2 /System/Library/QuickTime/QuickTimeFireWireDV.component/Contents/MacOS/QuickTimeFireWireDV 0x41a30000 - 0x41a35fff com.apple.CoreMediaAuthoringPrivate 1.0 /System/Library/PrivateFrameworks/CoreMediaAuthoringPrivate.framework/Versions/A/CoreMediaAuthoringPrivate 0x70000000 - 0x700fcfff com.apple.audio.units.Components 1.4.5 /System/Library/Components/CoreAudio.component/Contents/MacOS/CoreAudio 0x8fe00000 - 0x8fe52fff dyld 46.12 /usr/lib/dyld 0x90000000 - 0x901bcfff libSystem.B.dylib /usr/lib/libSystem.B.dylib 0x90214000 - 0x90219fff libmathCommon.A.dylib /usr/lib/system/libmathCommon.A.dylib 0x9021b000 - 0x90268fff com.apple.CoreText 1.0.3 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreText.framework/Versions/A/CoreText 0x90293000 - 0x90344fff ATS /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/ATS 0x90373000 - 0x9072efff com.apple.CoreGraphics 1.258.75 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/CoreGraphics 0x907bb000 - 0x90894fff com.apple.CoreFoundation 6.4.7 (368.28) /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation 0x908dd000 - 0x908ddfff com.apple.CoreServices 10.4 (???) /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices 0x908df000 - 0x909e1fff libicucore.A.dylib /usr/lib/libicucore.A.dylib 0x90a3b000 - 0x90abffff libobjc.A.dylib /usr/lib/libobjc.A.dylib 0x90ae9000 - 0x90b5bfff com.apple.framework.IOKit 1.4 (???) /System/Library/Frameworks/IOKit.framework/Versions/A/IOKit 0x90b71000 - 0x90b83fff libauto.dylib /usr/lib/libauto.dylib 0x90b8a000 - 0x90e61fff com.apple.CoreServices.CarbonCore 681.15 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/CarbonCore 0x90ec7000 - 0x90f47fff com.apple.CoreServices.OSServices 4.1 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/OSServices 0x90f91000 - 0x90fd3fff com.apple.CFNetwork 129.21 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CFNetwork.framework/Versions/A/CFNetwork 0x90fe8000 - 0x91000fff com.apple.WebServices 1.1.2 (1.1.0) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/WebServicesCore.framework/Versions/A/WebServicesCore 0x91010000 - 0x91091fff com.apple.SearchKit 1.0.5 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/SearchKit 0x910d7000 - 0x91100fff com.apple.Metadata 10.4.4 (121.36) /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Metadata 0x91111000 - 0x9111ffff libz.1.dylib /usr/lib/libz.1.dylib 0x91122000 - 0x912ddfff com.apple.security 4.6 (29770) /System/Library/Frameworks/Security.framework/Versions/A/Security 0x913dc000 - 0x913e5fff com.apple.DiskArbitration 2.1 /System/Library/Frameworks/DiskArbitration.framework/Versions/A/DiskArbitration 0x913ec000 - 0x913f4fff libbsm.dylib /usr/lib/libbsm.dylib 0x913f8000 - 0x91420fff com.apple.SystemConfiguration 1.8.3 /System/Library/Frameworks/SystemConfiguration.framework/Versions/A/SystemConfiguration 0x91433000 - 0x9143efff libgcc_s.1.dylib /usr/lib/libgcc_s.1.dylib 0x91443000 - 0x914befff com.apple.audio.CoreAudio 3.0.4 /System/Library/Frameworks/CoreAudio.framework/Versions/A/CoreAudio 0x914fb000 - 0x914fbfff com.apple.ApplicationServices 10.4 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices 0x914fd000 - 0x91535fff com.apple.AE 1.5 (297) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/AE 0x91550000 - 0x91622fff com.apple.ColorSync 4.4.9 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ColorSync.framework/Versions/A/ColorSync 0x91675000 - 0x91706fff com.apple.print.framework.PrintCore 4.6 (177.13) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/PrintCore 0x9174d000 - 0x91804fff com.apple.QD 3.10.24 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/QD 0x91841000 - 0x9189ffff com.apple.HIServices 1.5.3 (???) /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/HIServices 0x918ce000 - 0x918effff com.apple.LangAnalysis 1.6.1 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LangAnalysis.framework/Versions/A/LangAnalysis 0x91903000 - 0x91928fff com.apple.FindByContent 1.5 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/FindByContent.framework/Versions/A/FindByContent 0x9193b000 - 0x9197dfff com.apple.LaunchServices 182 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/LaunchServices 0x91999000 - 0x919adfff com.apple.speech.synthesis.framework 3.3 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/SpeechSynthesis 0x919bb000 - 0x91a01fff com.apple.ImageIO.framework 1.5.5 /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/ImageIO 0x91a18000 - 0x91adffff libcrypto.0.9.7.dylib /usr/lib/libcrypto.0.9.7.dylib 0x91b2d000 - 0x91b42fff libcups.2.dylib /usr/lib/libcups.2.dylib 0x91b47000 - 0x91b65fff libJPEG.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJPEG.dylib 0x91b6b000 - 0x91c22fff libJP2.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libJP2.dylib 0x91c71000 - 0x91c75fff libGIF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libGIF.dylib 0x91c77000 - 0x91cdffff libRaw.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRaw.dylib 0x91ce4000 - 0x91d21fff libTIFF.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libTIFF.dylib 0x91d28000 - 0x91d41fff libPng.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libPng.dylib 0x91d46000 - 0x91d49fff libRadiance.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ImageIO.framework/Versions/A/Resources/libRadiance.dylib 0x91d4b000 - 0x91e29fff libxml2.2.dylib /usr/lib/libxml2.2.dylib 0x91e49000 - 0x91e49fff com.apple.Accelerate 1.2.2 (Accelerate 1.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate 0x91e4b000 - 0x91f30fff com.apple.vImage 2.4 /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/vImage 0x91f38000 - 0x91f57fff com.apple.Accelerate.vecLib 3.2.2 (vecLib 3.2.2) /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/vecLib 0x91fc3000 - 0x92031fff libvMisc.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvMisc.dylib 0x9203c000 - 0x920d1fff libvDSP.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libvDSP.dylib 0x920eb000 - 0x92673fff libBLAS.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib 0x926a6000 - 0x929d1fff libLAPACK.dylib /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libLAPACK.dylib 0x92a01000 - 0x92aeffff libiconv.2.dylib /usr/lib/libiconv.2.dylib 0x92af2000 - 0x92b7afff com.apple.DesktopServices 1.3.6 /System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv 0x92bbb000 - 0x92de6fff com.apple.Foundation 6.4.8 (567.29) /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation 0x92f13000 - 0x92f31fff libGL.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib 0x92f3c000 - 0x92f96fff libGLU.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLU.dylib 0x92fb4000 - 0x92fb4fff com.apple.Carbon 10.4 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Carbon 0x92fb6000 - 0x92fcafff com.apple.ImageCapture 3.0 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/ImageCapture 0x92fe2000 - 0x92ff2fff com.apple.speech.recognition.framework 3.4 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/SpeechRecognition 0x92ffe000 - 0x93013fff com.apple.securityhi 2.0 (203) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/SecurityHI 0x93025000 - 0x930acfff com.apple.ink.framework 101.2 (69) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Ink.framework/Versions/A/Ink 0x930c0000 - 0x930cbfff com.apple.help 1.0.3 (32) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Help 0x930d5000 - 0x93102fff com.apple.openscripting 1.2.5 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/OpenScripting 0x9311c000 - 0x9312bfff com.apple.print.framework.Print 5.2 (192.4) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Print.framework/Versions/A/Print 0x93137000 - 0x9319dfff com.apple.htmlrendering 1.1.2 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering 0x931ce000 - 0x9321dfff com.apple.NavigationServices 3.4.4 (3.4.3) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/NavigationServices.framework/Versions/A/NavigationServices 0x9324b000 - 0x93268fff com.apple.audio.SoundManager 3.9 /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CarbonSound.framework/Versions/A/CarbonSound 0x9327a000 - 0x93287fff com.apple.CommonPanels 1.2.2 (73) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/CommonPanels 0x93290000 - 0x9359efff com.apple.HIToolbox 1.4.9 (???) /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/HIToolbox 0x936ee000 - 0x936fafff com.apple.opengl 1.4.7 /System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL 0x9372c000 - 0x93731fff com.apple.JavaVM 11.5.0 /System/Library/Frameworks/JavaVM.framework/Versions/A/JavaVM 0x93773000 - 0x93773fff com.apple.Cocoa 6.4 (???) /System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa 0x93775000 - 0x93da8fff com.apple.AppKit 6.4.7 (824.41) /System/Library/Frameworks/AppKit.framework/AppKit 0x94135000 - 0x941a7fff com.apple.CoreData 91 (92.1) /System/Library/Frameworks/CoreData.framework/Versions/A/CoreData 0x941e0000 - 0x942a4fff com.apple.audio.toolbox.AudioToolbox 1.4.5 /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox 0x942f6000 - 0x942f6fff com.apple.audio.units.AudioUnit 1.4 /System/Library/Frameworks/AudioUnit.framework/Versions/A/AudioUnit 0x942f8000 - 0x944b8fff com.apple.QuartzCore 1.4.12 /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore 0x94502000 - 0x9453ffff libsqlite3.0.dylib /usr/lib/libsqlite3.0.dylib 0x94547000 - 0x94597fff libGLImage.dylib /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGLImage.dylib 0x945a0000 - 0x945bafff com.apple.CoreVideo 1.4.1 /System/Library/Frameworks/CoreVideo.framework/Versions/A/CoreVideo 0x945ca000 - 0x945eafff libmx.A.dylib /usr/lib/libmx.A.dylib 0x9478b000 - 0x9479afff libCGATS.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCGATS.A.dylib 0x947a2000 - 0x947affff libCSync.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libCSync.A.dylib 0x947f5000 - 0x9480efff libRIP.A.dylib /System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/CoreGraphics.framework/Versions/A/Resources/libRIP.A.dylib 0x94815000 - 0x94b34fff com.apple.QuickTime 7.2.0 /System/Library/Frameworks/QuickTime.framework/Versions/A/QuickTime 0x94c18000 - 0x94c89fff libstdc++.6.dylib /usr/lib/libstdc++.6.dylib 0x9505e000 - 0x9507bfff libresolv.9.dylib /usr/lib/libresolv.9.dylib 0x96d72000 - 0x96db1fff com.apple.audio.midi.CoreMIDI 1.5 (41) /System/Library/Frameworks/CoreMIDI.framework/Versions/A/CoreMIDI 0x97199000 - 0x971b8fff com.apple.vecLib 3.2.2 (vecLib 3.2.2) /System/Library/Frameworks/vecLib.framework/Versions/A/vecLib 0x979be000 - 0x979cbfff com.apple.agl 2.5.6 (AGL-2.5.6) /System/Library/Frameworks/AGL.framework/Versions/A/AGL 0x98df5000 - 0x999bbfff com.apple.QuickTimeComponents.component 7.2 /System/Library/QuickTime/QuickTimeComponents.component/Contents/MacOS/QuickTimeComponents 0x99c14000 - 0x99c18fff com.apple.QuickTimeH264.component 7.2 /System/Library/QuickTime/QuickTimeH264.component/Contents/MacOS/QuickTimeH264 0x99c1a000 - 0x99d29fff QuickTimeH264.altivec /System/Library/QuickTime/QuickTimeH264.component/Contents/Resources/QuickTimeH264.altivec 0x99ea0000 - 0x99f6dfff com.apple.QuickTimeMPEG4.component 7.2 /System/Library/QuickTime/QuickTimeMPEG4.component/Contents/MacOS/QuickTimeMPEG4 0x9a89c000 - 0x9a8bafff com.apple.OpenTransport 2.0 /System/Library/PrivateFrameworks/OpenTransport.framework/OpenTransport 0x9a943000 - 0x9a987fff com.apple.viceroy.codec 31.0 (31) /System/Library/Components/VCH263Codec.component/VCH263Codec 0x9c3f2000 - 0x9c761fff libjvm.dylib /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK/Libraries/libjvm.dylib 0x9c7cc000 - 0x9c7eafff libjava.jnilib /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libjava.jnilib 0x9c7f5000 - 0x9c7fdfff libverify.dylib /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libverify.dylib 0x9c8c6000 - 0x9c8d2fff libnet.jnilib /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libnet.jnilib 0x9c932000 - 0x9c93ffff libzip.jnilib /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libzip.jnilib 0x9fe4d000 - 0x9ffa7fff libawt.jnilib /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries/libawt.jnilib Model: PowerMac7,3, BootROM 5.2.4f1, 2 processors, PowerPC G5 (3.0), 2.3 GHz, 4.5 GB Graphics: NVIDIA GeForce 6800 Ultra DDL, GeForce 6800 Ultra, AGP, 256 MB Memory Module: DIMM0/J11, 256 MB, DDR SDRAM, PC3200U-30330 Memory Module: DIMM1/J12, 256 MB, DDR SDRAM, PC3200U-30330 Memory Module: DIMM2/J13, 1 GB, DDR SDRAM, PC3200U-30330 Memory Module: DIMM3/J14, 1 GB, DDR SDRAM, PC3200U-30330 Memory Module: DIMM4/J41, 1 GB, DDR SDRAM, PC3200U-30330 Memory Module: DIMM5/J42, 1 GB, DDR SDRAM, PC3200U-30330 Network Service: Built-in Ethernet, Ethernet, en0 Serial ATA Device: WDC WD2500JD-41HBC0, 232.89 GB Parallel ATA Device: PIONEER DVD-RW DVR-109 USB Device: Hub in Apple Pro Keyboard, Mitsumi Electric, Up to 12 Mb/sec, 500 mA USB Device: Apple Optical USB Mouse, Logitech, Up to 1.5 Mb/sec, 100 mA USB Device: Apple Pro Keyboard, Mitsumi Electric, Up to 12 Mb/sec, 250 mA From owen at owengreen.net Mon Aug 6 20:52:43 2007 From: owen at owengreen.net (Owen Green) Date: Mon Aug 6 20:52:47 2007 Subject: [java-dev] Crashing after a while... In-Reply-To: <1b5d6.46b797ff@www.cycling74.com> References: <1b5d6.46b797ff@www.cycling74.com> Message-ID: <46B7DE7B.8080200@owengreen.net> Can you post the code? -- Owen mji wrote: > I've written a Java plugin that usually works great, but appears to > crash Max after running for some number of hours. The error report, > which I've pasted into the bottom of this message, doesn't contain > anything that means much to me, but does mention mxj as being called > from the crashed thread. Has anyone come across a similar problem or > does anyone have any advice regarding how I might go about debugging > this plugin? Thanks in advance, Michael > From bart at bartwoodstrup.com Tue Aug 7 00:14:42 2007 From: bart at bartwoodstrup.com (bart woodstrup) Date: Tue Aug 7 00:14:51 2007 Subject: [java-dev] multiple class, package, or .jar examples Message-ID: Hi, I've been spending some time with the mxj tutorial and looking at many of the java examples, but I was wondering if there were any examples of using multiple classes, package, or .jar files within Max? I didn't see any, but I might have overlooked something. Tutorial09 leaves me wanting a bit more... I have a program that I have cobbled together in Java (still very noob to Java) and now I am trying to convert it into a Max object in order to use the data it collected within Max. My Java program uses a couple of libraries and many external class files. The beginning of my main class designates a package. It's all very messy right now and I'm trying to simplify... thanks in advance... (also is this the right list to post to - it's a "dev" list?) Bart From per at soon.com Tue Aug 7 04:45:35 2007 From: per at soon.com (Bas van der Graaff) Date: Tue Aug 7 04:45:40 2007 Subject: [java-dev] [H] Set gridshape params in mxj Message-ID: <1b5f8.46b84d4c@www.cycling74.com> Hi board, Im trying to control a gridshape in mxj, and while i can initialize with no problems, i can't seem to control any params. // create gridshape mygridshape = new JitterObject("jit.gl.gridshape", new Atom[]{Atom.newAtom("bobby")}); mygridshape.send("shape", "cylinder"); mygridshape.setAttr("blend_enable", 1); I can see a grey sphere on my jit.window, so the shape definitely doesn't get set. This is probably something very simple, but i've seen this code in other examples and i can't figure out what i'm doing wrong. The entire subject of "creating max objects in mxj and using them" is something that i cannot find much information about. Are there examples or guides that teach me this (for example, it's totally unclear to me when to use send or setAttr)? The only stuff i've found so far: maxmsp/java-doc/api-jitter maxmsp/cycling'74/java/classes maxmsp/examples/jitter-examples/java Thanks, Bas. -- SmadSteck - http://www.smadsteck.nl Hard- and software for interactive audiovisual sampling From owen at owengreen.net Tue Aug 7 06:40:59 2007 From: owen at owengreen.net (Owen Green) Date: Tue Aug 7 06:41:04 2007 Subject: [java-dev] multiple class, package, or .jar examples In-Reply-To: References: Message-ID: <46B8685B.3010400@owengreen.net> Hi Bart, Yes, this is the right list. It's not entirely clear what you're after here, but I'll try and shed some light. The process for using other code in an mxj object is the same as in Java generally: import [whatever]. You do, however, need to make sure the classes in question are on mxj's classpath. If you're converting a vanilla app to an mxj object, instead of having a main class that declares public static void main(String arg[]), you have a class that descends from MaxObject that provides an interface for communication with objects in your patcher. This also needs to be on the classpath. If you can be more specific, so can I :) -- Owen bart woodstrup wrote: > Hi, > > I've been spending some time with the mxj tutorial and looking at many > of the java examples, but I was wondering if there were any examples > of using multiple classes, package, or .jar files within Max? I > didn't see any, but I might have overlooked something. Tutorial09 > leaves me wanting a bit more... > > I have a program that I have cobbled together in Java (still very noob > to Java) and now I am trying to convert it into a Max object in order > to use the data it collected within Max. My Java program uses a > couple of libraries and many external class files. The beginning of > my main class designates a package. > > It's all very messy right now and I'm trying to simplify... > > thanks in advance... > > (also is this the right list to post to - it's a "dev" list?) > > Bart > _______________________________________________ > java-dev mailing list > java-dev@cycling74.com > http://www.cycling74.com/mailman/listinfo/java-dev > From Michael.x.Ilardi.-ND at disney.com Tue Aug 7 12:03:10 2007 From: Michael.x.Ilardi.-ND at disney.com (mji) Date: Tue Aug 7 12:03:13 2007 Subject: [java-dev] Re: Crashing after a while... In-Reply-To: <46B7DE7B.8080200@owengreen.net> Message-ID: <1b60b.46b8b3dc@www.cycling74.com> Sure. The code is below: import com.cycling74.max.*; import java.net.*; public class Test extends MaxObject { public String address = "127.0.0.1"; public int port = 2209; //default port private DatagramSocket dsocket; private DatagramPacket packetToSend,packetHeartBeat; // byte[] packet; boolean heartbeat=false; boolean registered =false; InetAddress ip = null; MaxClock clockHeartBeatTransmitter; MaxClock clockHeartBeatReceiver; ListenerThread lThread; boolean transmitted=false; //set to true when we output data private static final String[] INLET_ASSIST = new String[] { "Test" }; private static final String[] OUTLET_ASSIST = new String[] { "Indicates whether we've received a heartbeat recently" }; //constants: private static final long MAGIC_WORD = 0x454c5349; private static final byte CMD_CAN_TELEGRAM = 1; private static final byte CMD_HEARTBEAT = 2; private static final byte CMD_CTRL = 3; private static final byte CMD_REGISTER =4; byte[] packetHeaderCanTelegram = new byte[52]; byte[] packetHeaderHeartBeat = new byte[52]; byte[] packetHeaderRegister = new byte[52]; byte[] packetHeaderCtrl = new byte[52]; byte[] packetBaud = new byte[52];; byte[] packetEnableRange = new byte[60]; byte[] telegram = new byte[24]; byte[] premadeTelegramPacket = new byte[1076]; //the header plus slots for 100 cal telegrams public Test (Atom[] args) { declareInlets(new int[]{DataTypes.ALL}); declareOutlets(NO_OUTLETS); setInletAssist(INLET_ASSIST); setOutletAssist(OUTLET_ASSIST); declareAttribute("address"); declareAttribute("port"); //create the telegram packet header //fill with the magic word packetHeaderCanTelegram[0] = (byte)((MAGIC_WORD & 0xFF000000L) >> 24); packetHeaderCanTelegram[1] = (byte)((MAGIC_WORD & 0x00FF0000L) >> 16); packetHeaderCanTelegram[2] = (byte)((MAGIC_WORD & 0x0000FF00L) >> 8); packetHeaderCanTelegram[3] = (byte)((MAGIC_WORD & 0x000000FFL)); //duplicate to form the heart beat and registration headers System.arraycopy(packetHeaderCanTelegram,0,packetHeaderHeartBeat,0,4); System.arraycopy(packetHeaderCanTelegram,0,packetHeaderRegister,0,4); System.arraycopy(packetHeaderCanTelegram,0,packetHeaderCtrl,0,4); //differentiate the packets by inserting the commands packetHeaderCanTelegram[11] = CMD_CAN_TELEGRAM; packetHeaderHeartBeat[11] = CMD_HEARTBEAT; packetHeaderRegister[11] = CMD_REGISTER; packetHeaderCtrl[11] = CMD_CTRL; System.arraycopy(packetHeaderCtrl, 0,packetBaud, 0, 52); byte[] bRate = new byte[4]; bRate[3] = 2; //500 kbs packetBaud = concatenate(packetBaud,bRate); packetBaud[15] = 4; //payload is 4 bytes packetBaud[19] = 3; //subcommand: set baud rate System.arraycopy(packetHeaderCanTelegram, 0,premadeTelegramPacket, 0, 52); } public void register() { post("Test: Registering..."); if (clockHeartBeatTransmitter!=null){ clockHeartBeatTransmitter.release(); } if (clockHeartBeatReceiver !=null){ clockHeartBeatReceiver.release(); } //establish socket connection try { ip = InetAddress.getByName(address); } catch (UnknownHostException uhe) { post("Test: Unable to resolve " +address ); return; } try{ if (dsocket!=null)dsocket.close(); dsocket = new DatagramSocket(); }catch(Exception e){ post("Test: "+ e); return; } lThread = new ListenerThread(); lThread.start(); //start the listener try { //register the client packetToSend = new DatagramPacket( packetHeaderRegister, packetHeaderRegister.length, ip, port ); dsocket.send(packetToSend); packetToSend = new DatagramPacket( packetBaud, packetBaud.length, ip, port ); dsocket.send(packetToSend); // packetToSend = new DatagramPacket( packetEnableRange, packetEnableRange.length, ip, port ); // dsocket.send(packetToSend); }catch(Exception e){ post("Test: "+e); } post("Test: Connected to "+address + " on port " +port); packetHeartBeat = new DatagramPacket( packetHeaderHeartBeat, packetHeaderHeartBeat.length, ip, port ); clockHeartBeatReceiver = new MaxClock(new Callback(this,"heartBeatReceiverChecker")); clockHeartBeatTransmitter = new MaxClock(new Callback(this, "heartBeatTransmitter")); clockHeartBeatTransmitter.delay(0.0); //set the clock to execute immediately clockHeartBeatReceiver.delay(7500.0); } public void stop(){ if (clockHeartBeatReceiver!=null){ clockHeartBeatReceiver.release(); } if (clockHeartBeatTransmitter !=null){ clockHeartBeatTransmitter.release(); } clockHeartBeatReceiver = null; clockHeartBeatTransmitter = null; outlet(0,0); dsocket.close(); lThread.stopListening(); } @SuppressWarnings("unused") private void heartBeatTransmitter() { clockHeartBeatTransmitter.delay(500.0);//set the clock to execute again in 500 ms if (!transmitted){ //post("sending heart"); try { dsocket.send(packetHeartBeat); }catch(Exception e){ post("Test: "+e); } } transmitted=false; } @SuppressWarnings("unused") private void heartBeatReceiverChecker(){ heartbeat=false; outlet(0,0); post("Test: Failed to receive heartbeat. Attempting to re-register..."); stop(); register(); } public void baud(){ try { packetToSend = new DatagramPacket( packetBaud, packetBaud.length, ip, port ); dsocket.send(packetToSend); }catch(Exception e){ post("Test: "+e); } } public void range(){ try { packetToSend = new DatagramPacket( packetEnableRange, packetEnableRange.length, ip, port ); dsocket.send(packetToSend); }catch(Exception e){ post("Test: "+e); } } public synchronized void list(Atom[] args) { if (!heartbeat){ return; } int len=args.length; if ( args.length %2 !=0)len--; int nTeles = args.length/2; int payload = nTeles * 24; int offset = 52; for(int i = 0; i > 24); premadeTelegramPacket[13] = (byte)((payload & 0x00FF0000L) >> 16); premadeTelegramPacket[14] = (byte)((payload & 0x0000FF00L) >> 8); premadeTelegramPacket[15] = (byte)((payload & 0x000000FFL)); //post("it's "+tele.length); try { packetToSend = new DatagramPacket( premadeTelegramPacket, 52+payload, ip, port ); //post("bytes: "+(52+payload)); dsocket.send(packetToSend); }catch(Exception e){ post("Test: "+e); } } public byte[] concatenate(byte[] a, byte[] b){ byte[] ab = new byte[( a.length + b.length)]; System.arraycopy(a, 0, ab, 0,a.length); System.arraycopy(b, 0, ab, a.length,b.length); return ab; } //extracts a 32-bit, unsigned integer from a byte buffer public long extract32BitIntUnsignedInt(byte[] buf, int offset){ long anUnsignedInt = 0; int firstByte = 0; int secondByte = 0; int thirdByte = 0; int fourthByte = 0; firstByte = (0x000000FF & ((int)buf[offset])); secondByte = (0x000000FF & ((int)buf[offset+1])); thirdByte = (0x000000FF & ((int)buf[offset+2])); fourthByte = (0x000000FF & ((int)buf[offset+3])); anUnsignedInt = ((long) (firstByte << 24 | secondByte << 16 | thirdByte << 8 | fourthByte)) & 0xFFFFFFFFL; return anUnsignedInt; } public void prepareCAN(int id, int data,byte[] tele,int offset){ int ulId =0x600 + id; //node ID tele[0+offset] = (byte)((ulId & 0xFF000000L) >> 24); tele[1+offset] = (byte)((ulId & 0x00FF0000L) >> 16); tele[2+offset] = (byte)((ulId & 0x0000FF00L) >> 8); tele[3+offset] = (byte)((ulId & 0x000000FFL)); //data length tele[4+offset] = (byte)8; //position (fixed part) tele[8+offset] = 0x23; tele[9+offset] = 0x00; tele[10+offset] = 0x2F; tele[11+offset] = 0x01; // position tele[15+offset] = (byte)((data & 0xFF000000L) >> 24); tele[14+offset] = (byte)((data & 0x00FF0000L) >> 16); tele[13+offset] = (byte)((data & 0x0000FF00L) >> 8); tele[12+offset] = (byte)((data & 0x000000FFL)); } // class containing the thread that listens for messages from the Test server class ListenerThread extends Thread { private boolean listen; // DatagramSocket lSocket; // This method is called when the thread runs public void run() { try { listen=true; // Create a socket to listen on the port. // Create a buffer to read datagrams into. If a // packet is larger than this buffer, the // excess will simply be discarded! byte[] buffer = new byte[100]; // Create a packet to receive data into the buffer DatagramPacket packet = new DatagramPacket(buffer, buffer.length); // Now loop forever, waiting to receive packets and printing them. while (listen) { // Wait to receive a datagram dsocket.receive(packet); long m = extract32BitIntUnsignedInt(buffer,0); if (m == MAGIC_WORD){ //this is an Test packet if (buffer[11] == CMD_HEARTBEAT){ if (heartbeat==false){ outlet(0,1); } heartbeat=true; clockHeartBeatReceiver.unset(); clockHeartBeatReceiver.delay(7500.0); } } } } catch (Exception e) { // System.err.println(e); } } public void stopListening(){ heartbeat=false; //lSocket.close(); listen=false; } } //called when the max object is destroyed protected void notifyDeleted() { stop(); //shut everything down } } From owen at owengreen.net Fri Aug 10 04:56:08 2007 From: owen at owengreen.net (Owen Green) Date: Fri Aug 10 04:56:15 2007 Subject: [java-dev] Re: Crashing after a while... In-Reply-To: <1b60b.46b8b3dc@www.cycling74.com> References: <1b60b.46b8b3dc@www.cycling74.com> Message-ID: <46BC4448.3020808@owengreen.net> Michael, Not had a chance to look in detail yet, but a couple of comments: - Your exception handling isn't really handling anything: * Be more specific than just catch(Exception... (so catch IOException when you need to), and work out what you need to happen - just swallowing them will lead to grief. In any case, if a socket throws any kind of exception, you need to assume it's junked, and close it properly. *Closing any kind of native resource (file, socket etc.) properly means using a finally block; try{ blah} catch{handle} finally {close} Not doing this means you can end up with resource leaks, and consequent gnarliness. Because you're sharing a socket between two threads, you'll need some mechanism for communicating when the socket has been junked, or some such. - Those primitive variables that you're sharing between threads (heartbeat etc.) should, ideally, be declared 'volatile' to guarantee that their value is well defined at all times (similar in effect to synchronising). hth, Owen mji wrote: > Sure. The code is below: > From kyun at optusnet.com.au Fri Aug 10 12:13:44 2007 From: kyun at optusnet.com.au (freedisk) Date: Fri Aug 10 12:13:45 2007 Subject: [java-dev] Interlacing problem with VDIG and QTJava Message-ID: <1b708.46bcaad6@www.cycling74.com> HI all, i am having problems with interlacing during my capture. Does anyone here have to solution to the problem? Capture size. 720x576 OS: windows XP abstract Plane Vdig Quicktime for Java And what is this 'jitter' everyone is talking about?? thanks:) From c74-mailinglists at e--j.com Fri Aug 10 12:30:15 2007 From: c74-mailinglists at e--j.com (Emmanuel Jourdan) Date: Fri Aug 10 12:30:40 2007 Subject: [java-dev] Interlacing problem with VDIG and QTJava In-Reply-To: <1b708.46bcaad6@www.cycling74.com> References: <1b708.46bcaad6@www.cycling74.com> Message-ID: <5FCF6C47-3AAB-416D-975B-927E185DF46F@e--j.com> On 10 ao?t 07, at 20:13, freedisk wrote: > And what is this 'jitter' everyone is talking about?? Jitter is the Matrix/Movie/OpenGL? extension of MaxMSP: http://www.cycling74.com/products/jitter ej From nick at cassiel.com Fri Aug 10 15:16:32 2007 From: nick at cassiel.com (Nick Rothwell) Date: Fri Aug 10 15:16:42 2007 Subject: [java-dev] Re: Gui progress bar in mxj? In-Reply-To: <46B31A69.9000403@owengreen.net> References: <1b516.46b317c3@www.cycling74.com> <46B31A69.9000403@owengreen.net> Message-ID: <23D1392F-0A40-4A40-B310-29C7B3CF01E7@cassiel.com> On 3 Aug 2007, at 13:07, Owen Green wrote: > It's important that AWT/Swing things happen in the AWT event > thread, not the max/mxj thread (due to cocoa /carbon squabbling on > the mac), otherwise lockups and other badness ensues. Liberal use > of SwingUtilities.invokeLater() is the key. If all you want is a progress bar, why not just create a single-row, non-clickable, multiSlider in the MAX world and feed it from your MXJ object? So far, any time I've needed some graphical interaction with an MXJ object, I've just used MAX and/or JavaScript GUI to build the widgets. -- N. Nick Rothwell / Cassiel.com Limited www.cassiel.com www.myspace.com/cassieldotcom www.loadbang.net From adamjmurray at gmail.com Sat Aug 11 14:17:23 2007 From: adamjmurray at gmail.com (Adam Murray) Date: Sat Aug 11 14:17:26 2007 Subject: [java-dev] Unit testing Java externals that call outlet() Message-ID: <1b74f.46be1952@www.cycling74.com> I am trying to write jUnit tests for a Java external I am working on. Unfortunately, many methods in my external call the outlet() method, and I get this error when trying to run a unit test: java.lang.UnsatisfiedLinkError: doOutlet at com.cycling74.max.MaxObject.doOutlet(Native Method) at com.cycling74.max.MaxObject.outlet(MaxObject.java:1425) at ajm.seq.reverse(seq.java:145) at ajm.test.TestSeq.testReverse(TestSeq.java:16) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ... Which makes sense because outlet uses a native method provided by the Max environment. Is there a way I can work around this problem without completely reworking my code to decouple the logic I want to test from the calls to outlet()? I am hoping I can make a fake stub for the doOutlet() native call, but I am not familiar with JNI so some help would be much appreciated. Adam From adamjmurray at gmail.com Sat Aug 11 14:24:07 2007 From: adamjmurray at gmail.com (Adam Murray) Date: Sat Aug 11 14:24:08 2007 Subject: [java-dev] Re: Unit testing Java externals that call outlet() In-Reply-To: <1b74f.46be1952@www.cycling74.com> Message-ID: <1b750.46be1ae6@www.cycling74.com> Also, I tried subclassing a test version of my class that overrides the outlet() methods to do nothing, but MaxObject declares the outlet() methods as final so this is not possible :( From adamjmurray at gmail.com Sat Aug 11 15:30:00 2007 From: adamjmurray at gmail.com (Adam Murray) Date: Sat Aug 11 15:30:01 2007 Subject: [java-dev] Re: Unit testing Java externals that call outlet() In-Reply-To: <1b750.46be1ae6@www.cycling74.com> Message-ID: <1b755.46be2a58@www.cycling74.com> I think I am just going to have to encapsulate all calls to outlet() inside my own output() method, and then override that to do nothing for my tests. I guess this is not really that difficult but if there is a simpler way let me know... Adam From bart at bartwoodstrup.com Sat Aug 11 20:43:59 2007 From: bart at bartwoodstrup.com (bart woodstrup) Date: Sat Aug 11 20:44:01 2007 Subject: [java-dev] multiple class, package, or .jar examples In-Reply-To: <46B8685B.3010400@owengreen.net> References: <46B8685B.3010400@owengreen.net> Message-ID: Thanks for replying Owen. I've been getting some help off the list from a Java pro. We got it working, but I may be having some thread and timing questions in the near future. thx, Bart On 8/7/07, Owen Green wrote: > Hi Bart, > > Yes, this is the right list. > > It's not entirely clear what you're after here, but I'll try and shed > some light. > > The process for using other code in an mxj object is the same as in Java > generally: import [whatever]. You do, however, need to make sure the > classes in question are on mxj's classpath. > > If you're converting a vanilla app to an mxj object, instead of having a > main class that declares public static void main(String arg[]), you have > a class that descends from MaxObject that provides an interface for > communication with objects in your patcher. This also needs to be on the > classpath. > > If you can be more specific, so can I :) > > -- > Owen > > > bart woodstrup wrote: > > Hi, > > > > I've been spending some time with the mxj tutorial and looking at many > > of the java examples, but I was wondering if there were any examples > > of using multiple classes, package, or .jar files within Max? I > > didn't see any, but I might have overlooked something. Tutorial09 > > leaves me wanting a bit more... > > > > I have a program that I have cobbled together in Java (still very noob > > to Java) and now I am trying to convert it into a Max object in order > > to use the data it collected within Max. My Java program uses a > > couple of libraries and many external class files. The beginning of > > my main class designates a package. > > > > It's all very messy right now and I'm trying to simplify... > > > > thanks in advance... > > > > (also is this the right list to post to - it's a "dev" list?) > > > > Bart > > _______________________________________________ > > java-dev mailing list > > java-dev@cycling74.com > > http://www.cycling74.com/mailman/listinfo/java-dev > > > > _______________________________________________ > java-dev mailing list > java-dev@cycling74.com > http://www.cycling74.com/mailman/listinfo/java-dev > -- bartwoodstrup.com vodstrup.com From nick at cassiel.com Sun Aug 12 03:24:55 2007 From: nick at cassiel.com (Nick Rothwell) Date: Sun Aug 12 03:25:00 2007 Subject: [java-dev] Re: Unit testing Java externals that call outlet() In-Reply-To: <1b755.46be2a58@www.cycling74.com> References: <1b755.46be2a58@www.cycling74.com> Message-ID: On 11 Aug 2007, at 22:30, Adam Murray wrote: > I think I am just going to have to encapsulate all calls to outlet > () inside my own output() method, and then override that to do > nothing for my tests. Hakc you looked at JMock? Nick Rothwell / Cassiel.com Limited www.cassiel.com www.myspace.com/cassieldotcom www.loadbang.net From nick at cassiel.com Sun Aug 12 05:02:37 2007 From: nick at cassiel.com (Nick Rothwell) Date: Sun Aug 12 05:02:41 2007 Subject: [java-dev] Re: Unit testing Java externals that call outlet() In-Reply-To: References: <1b755.46be2a58@www.cycling74.com> Message-ID: On 12 Aug 2007, at 10:24, Nick Rothwell wrote: > Hakc you looked at JMock? (That should read "Have" and would, of course, have been caught by a unit test.) Nick Rothwell / Cassiel.com Limited www.cassiel.com www.myspace.com/cassieldotcom www.loadbang.net From topher at topher.com Sun Aug 12 05:32:50 2007 From: topher at topher.com (topher lafata) Date: Sun Aug 12 05:41:53 2007 Subject: [java-dev] Unit testing Java externals that call outlet() In-Reply-To: <1b74f.46be1952@www.cycling74.com> References: <1b74f.46be1952@www.cycling74.com> Message-ID: <1186918379.269FE601@fc4.dngr.org> You don't even have to make a jni stub.just make your own version of MaxObject that implements any of the methods your mxj class might be calling.Include this class in your project instead of max.jar. From grimepoch at mac.com Sun Aug 12 15:11:18 2007 From: grimepoch at mac.com (Rick Burnett) Date: Sun Aug 12 15:11:19 2007 Subject: [java-dev] Re: Problem with long file name In-Reply-To: <1a1cf.466693da@www.cycling74.com> Message-ID: <1b787.46bf7775@www.cycling74.com> Was there ever a solution to this problem? I cannot get long file names to convert properly to the version with the hex codes in them. Because of this, so far, my java file browser is useless since most of the files I am accessing have long names. I tried moth the Java method and the max patcher method [conformpath] and both of them leave the file in it's long name. From adamjmurray at gmail.com Sun Aug 12 16:47:18 2007 From: adamjmurray at gmail.com (Adam Murray) Date: Sun Aug 12 16:47:19 2007 Subject: [java-dev] Re: Re: Unit testing Java externals that call outlet() In-Reply-To: Message-ID: <1b78e.46bf8df4@www.cycling74.com> Quote: nick rothwell / cassiel wrote on Sun, 12 August 2007 02:24 ---------------------------------------------------- > > [Have] you looked at JMock? > > I just spent some time with JMock and can't get it to do what I need. Since the objects I am dealing with are not interfaces, I was looking at this: http://www.jmock.org/mocking-classes.html. But when I use a ClassImposteriser, it seems like any calls I make to the mock object don't actually do anything. I believe it replaced my class with a empty stub class that does nothing. I need this to happen on the superclass, not my class. Maybe I just don't understand JMock yet but I do not think it is a good solution for me. Here is all I want to do: 1. Instantiate my mxj external 2. Call some methods on my external that transform it's internal state (these simulate incoming max messages) 3. Use a getter to access the internal state on my external and compare that against an expected value. In order to accomplish this, I have to prevent MaxObject from doing what it normally does in the runtime environment. Besides the JNI calls, I am also running into an issue where I want to call System.out.println() for debugging and I can't because it is tied to some output stream for the runtime that does not exist when unit testing. I don't see how JMock would let me easily swap in a fake MaxObject implementation, and even if it did, I don't need or want to deal with JMocks system of expectations. jUnit's asserts() already do everything I need. Adam From adamjmurray at gmail.com Sun Aug 12 17:10:59 2007 From: adamjmurray at gmail.com (Adam Murray) Date: Sun Aug 12 17:11:01 2007 Subject: [java-dev] Re: Unit testing Java externals that call outlet() In-Reply-To: <1186918379.269FE601@fc4.dngr.org> Message-ID: <1b792.46bf9382@www.cycling74.com> Quote: topher lafata wrote on Sun, 12 August 2007 04:32 ---------------------------------------------------- > You don't even have to make a jni stub.just make your own version of > MaxObject that implements any of the methods your mxj class might be > calling.Include this class in your project instead of max.jar. > ---------------------------------------------------- I may end up doing this. It's a little annoying because there are a lot of methods in MaxObject to implement, and I am slightly concerned I may implement a method improperly. I don't know if this is realistic, but what if some day I have code that relies on getName() or getAttr() to make a decision, but my implementation always returns null or some bogus string. I really just want to change the behavior of the problem methods... I also don't like that I'll probably have to do this more than once: for MspObject and who knows what else. If I can figure out how to do it, the easiest solution may be to instrument max.jar when unit testing, and alter the bytecode such that problem calls like outlet() don't do anything. I believe I could use something like AspectJ to insert a return statement into the top of any method I want. Are other people running into these problems or do most people not bother to write unit tests? Can anyone describe a setup where unit testing is working inside the IDE? Adam From bart at bartwoodstrup.com Sun Aug 12 19:04:17 2007 From: bart at bartwoodstrup.com (bart woodstrup) Date: Sun Aug 12 19:04:21 2007 Subject: [java-dev] weather station into max Message-ID: Hi, Hi - mxj works! cool, but... I have an issue that I could use some advice with: Background on my project: I have built a weather station (full of fun wind, solar, temp, etc. sensors). This weather station uses the "1-Wire" system from Dallas Semiconductors. The java code I am using is called "simpleWeather" and comes from weathertoys.net. I'm on an Intel Mac and using a Keyspan USB adapter as the serial port to talk to my sensors. The "simpleweather" java code uses two libraries (one for the serial adapter and one for the 1-Wire devices), a class for each sensor (currently 6 total), and a main class called simpleWeather. All of the classes use a "package" called simpleWeather. I have (with help) successfully gotten this to work in Max. I have an object named "mxj simpleWeather.SimpleWeather" that takes a bang in its inlet and sends the data from each sensor to its own outlet (6 total). It's finicky, but does work. Here's my problem. When I "bang" the object, Max freezes (spinny wheel mode) for about 2.5 seconds, and then it gives me my data. Do any of you have any suggestions for a way that I might be able to access the data without stopping whatever process is happening in max/jitter? Do you need more info to answer this - if so what? ..or since it's a serial port, am I better off trying to get the data through the "serial" object? - tho I'm not sure I can convert/rewrite the Java code in max. thx in advance. Bart From wesley.hoke at gmail.com Sun Aug 12 19:19:45 2007 From: wesley.hoke at gmail.com (Wesley Smith) Date: Sun Aug 12 19:19:48 2007 Subject: [java-dev] weather station into max In-Reply-To: References: Message-ID: <1079b050708121819v12976a7dh2b2be3109651d805@mail.gmail.com> Sound like you need multithreading. Luckily in JAVA this is quite easy. I've uploaded some code that is fairly straightforward and shows how to do multithreading in JAVA. In particluar, look at the FileUploader class. It inherits from runnable and has start(), run(), and stop() methods for managing the thread it contains. You can take this class, slap your serial/USB stuff in it and it shouldn't block Max anymore. http://www.mat.ucsb.edu/~whsmith/AutoUpload.zip wes From bart at bartwoodstrup.com Sun Aug 12 23:54:52 2007 From: bart at bartwoodstrup.com (bart woodstrup) Date: Sun Aug 12 23:54:59 2007 Subject: [java-dev] weather station into max In-Reply-To: <1079b050708121819v12976a7dh2b2be3109651d805@mail.gmail.com> References: <1079b050708121819v12976a7dh2b2be3109651d805@mail.gmail.com> Message-ID: Great thx! I'm not exactly sure how to implement it, but let me hack at it for a few days and see if/how it works. I also want to reread some of the threading that is discussed in "Scheduler, Clocks, and Executables, Oh My!" from the manual... I might need to upload my main simpleWeather.java for you (or someone) to see what's all going on under the hood. bbw On 8/12/07, Wesley Smith wrote: > Sound like you need multithreading. Luckily in JAVA this is quite > easy. I've uploaded some code that is fairly straightforward and > shows how to do multithreading in JAVA. In particluar, look at the > FileUploader class. It inherits from runnable and has start(), run(), > and stop() methods for managing the thread it contains. You can take > this class, slap your serial/USB stuff in it and it shouldn't block > Max anymore. > > http://www.mat.ucsb.edu/~whsmith/AutoUpload.zip > > wes > _______________________________________________ > java-dev mailing list > java-dev@cycling74.com > http://www.cycling74.com/mailman/listinfo/java-dev > -- bartwoodstrup.com vodstrup.com From grimepoch at mac.com Mon Aug 13 09:35:45 2007 From: grimepoch at mac.com (Rick Burnett) Date: Mon Aug 13 09:35:48 2007 Subject: [java-dev] MRJToolkit, long filenames, problems Message-ID: <1b7c7.46c07a50@www.cycling74.com> I have been trying to find a solution in converting back and forth between the HFS and HFS+ filenames inside of max. So far, I have been completely unsuccessful in everything I have tried. The lastest path I have been taking is due to the information on this page: http://lists.apple.com/archives/Java-dev/2002/Oct/msg00135.html However, I cannot find any JDirect3 stuff on the Apple site or any information on calling Native code, or linking it in. I tried added MRJToolkit into the mix, but the JDirect stuff is not in there. So, while this path may be approaching a dead end quickly, has ANYONE figured out a way to convert back and forth between the HFS filenames (BlabBlahBLa#78594.mov) and the HFS+ (BlahBlahBLahBLahBlahBLahBlahBlsah.mov) filenames in Max using Java, Javascript or Max? I am using Java as a file browser because I want the long names, but need the short names for [jit.qt.movie]. Thanks in advance for ANY help on this. It is driving me INSANE! :) Rick From nick at cassiel.com Mon Aug 13 14:19:16 2007 From: nick at cassiel.com (Nick Rothwell) Date: Mon Aug 13 14:19:21 2007 Subject: [java-dev] Re: Re: Unit testing Java externals that call outlet() In-Reply-To: <1b78e.46bf8df4@www.cycling74.com> References: <1b78e.46bf8df4@www.cycling74.com> Message-ID: <839BB569-F50A-40CD-A78A-9E8DFDC2CB2E@cassiel.com> On 12 Aug 2007, at 23:47, Adam Murray wrote: > I just spent some time with JMock and can't get it to do what I > need. Since the objects I am dealing with are not interfaces, I was > looking at this: http://www.jmock.org/mocking-classes.html. Indeedy - JMock can mock interfaces, not actual classes, which is a bit of a pain until/unless you're willing to do a bit of refactoring to accomodate. In this case, you'd have to design some kind of facade IMaxObject interface (say), and then program against that (and then link it into the real MaxObject somehow, perhaps via another concrete subclass of MaxObject which implements IMaxObject). Yes, it's a hassle; probably not worth it for a one-off (old-skool stubs are easier), but perhaps worth thinking about for some big- project agile/extreme goodness. -- N. Nick Rothwell / Cassiel.com Limited www.cassiel.com www.myspace.com/cassieldotcom www.loadbang.net From adamjmurray at gmail.com Mon Aug 13 15:00:02 2007 From: adamjmurray at gmail.com (Adam Murray) Date: Mon Aug 13 15:00:05 2007 Subject: [java-dev] Re: Re: Re: Unit testing Java externals that call outlet() In-Reply-To: <839BB569-F50A-40CD-A78A-9E8DFDC2CB2E@cassiel.com> Message-ID: <1b7e3.46c0c651@www.cycling74.com> If anyone else is wondering how to test their Java externals, here's what I ended up doing: I made my own method output() that is the only code in my external allowed to call outlet(). This turns out to have some benefits, because I can make overloaded forms of output() that handle different internal message formats and convert them into the format needed for outlet() (like Atom[]). Then, in my unit tests, I have a class that subclasses the external I am testing, and overrides output() to do nothing. All my tests instantiate the subclass instead of the real external class. The only downside is this has to be done for each external, but it's not much work unless you need to refactor existing code that has outlet() calls all over the place. There are definitely some other good ideas in this thread, but this approach seemed to be the easiest and most straightforward. Also, in an earlier post I mentioned an issue with calling System.out. This can easily be corrected by doing this when the unit test initializes: PrintStream out = System.out; And then use "out" for any debugging purposes. Same applies to System.err. I think as soon as you construct any MaxObject, these streams will be "stolen". Adam From grimepoch at mac.com Tue Aug 14 23:55:05 2007 From: grimepoch at mac.com (Rick Burnett) Date: Tue Aug 14 23:55:06 2007 Subject: [java-dev] JNI External Message-ID: <1b870.46c29537@www.cycling74.com> I have used Xcode to create a JNI external that works fine in Xcode. I have placed that jnilib where Max can find it and it does load the library, however, when I try to call the function in it, I get a UnsatisfiedLinkError for the function I created. Why would this be? From grimepoch at mac.com Wed Aug 15 12:00:10 2007 From: grimepoch at mac.com (Rick Burnett) Date: Wed Aug 15 12:00:13 2007 Subject: [java-dev] Java search path for libraries Message-ID: <1b893.46c33f2a@www.cycling74.com> Currently I have been installing my jnilib into /Library/Java/Externals. However, I'd like to make it sit in the same directory as my patch. I know there is the java config file, I am just unsure how to tell it to look in the same location as a patch loading up when the class is laded in the mxj. Any thoughts on this? Rick From topher at topher.com Wed Aug 15 14:21:24 2007 From: topher at topher.com (topher lafata) Date: Wed Aug 15 14:21:24 2007 Subject: [java-dev] Java search path for libraries In-Reply-To: <1b893.46c33f2a@www.cycling74.com> References: <1b893.46c33f2a@www.cycling74.com> Message-ID: <46C36044.8050807@topher.com> In the java config file you can pass jvm startup arguments. try something like.: |-Djava.library.path=/whatever/you/want:/other/path||||| maybe that helps. setting this variable dynamically is not possible as far as i can tell so having it in the same directory as the patch might be impossible. topher Rick Burnett wrote: > Currently I have been installing my jnilib into /Library/Java/Externals. However, I'd like to make it sit in the same directory as my patch. > > I know there is the java config file, I am just unsure how to tell it to look in the same location as a patch loading up when the class is laded in the mxj. > > Any thoughts on this? > > Rick > _______________________________________________ > java-dev mailing list > java-dev@cycling74.com > http://www.cycling74.com/mailman/listinfo/java-dev > > From topher at topher.com Wed Aug 15 14:25:58 2007 From: topher at topher.com (topher lafata) Date: Wed Aug 15 14:25:57 2007 Subject: [java-dev] Java search path for libraries In-Reply-To: <1b893.46c33f2a@www.cycling74.com> References: <1b893.46c33f2a@www.cycling74.com> Message-ID: <46C36156.2050801@topher.com> One more thing. I forgot about the System.load() method.It takes a path. You could maybe do maxSystem.locateFile for your jnilib and try via that route. topher Rick Burnett wrote: > Currently I have been installing my jnilib into /Library/Java/Externals. However, I'd like to make it sit in the same directory as my patch. > > I know there is the java config file, I am just unsure how to tell it to look in the same location as a patch loading up when the class is laded in the mxj. > > Any thoughts on this? > > Rick > _______________________________________________ > java-dev mailing list > java-dev@cycling74.com > http://www.cycling74.com/mailman/listinfo/java-dev > > From grimepoch at mac.com Wed Aug 15 14:33:59 2007 From: grimepoch at mac.com (Rick Burnett) Date: Wed Aug 15 14:34:01 2007 Subject: [java-dev] SOLUTION! Long Filename Support in Max with Java Message-ID: <1b8b0.46c36336@www.cycling74.com> For the past week I have been trying to get a solution to this problem because I use Java for all my directory listings and such tied to a JSUI. The way I have set this up to work is that right before you send the filename with path to an object that is going to use it, like jit.qt.movie, you use this java with external to convert it The first thing you need is my jnilib, this file needs to be placed in /Library/Java/Extensions. I am sure there are other ways to do this, but this is to get you going, you can figure out how to change where the JVM looks and then let me know because that I have not figured out (I want to store the jnilib in the same location the patch is loaded from). http://www.asylumstudioproductions.com/jni/libMaxMSPFileNameConverterJNILib.jnilib next you will need to create your [mxj convertFilename] object and put this code into it: import com.cycling74.max.*; import java.io.IOException; public class convertFilename extends MaxObject { static { System.loadLibrary( "MaxMSPFileNameConverterJNILib" ); } public native String getMyFullName(String s); private static final String[] INLET_ASSIST = new String[]{ "inlet 1 help" }; private static final String[] OUTLET_ASSIST = new String[]{ "outlet 1 help" }; public convertFilename(Atom[] args) { declareInlets(new int[]{DataTypes.ALL}); declareOutlets(new int[]{DataTypes.ALL}); setInletAssist(INLET_ASSIST); setOutletAssist(OUTLET_ASSIST); } public void convert(String s1) { String s2 = getMyFullName( s1 ); outlet(0,Atom.newAtom(s2)); } public void inlet(int i) { } public void inlet(float f) { } public void list(Atom[] list) { } } Then what i do is just prepend 'convert' to the message with just the path after it and out will come a path that max can recognize. So in summary it takes /this is a long filename that i have/with a long file too .mov and converts that to MacintoshHD:/thisisalong#85934/withalongfile#340593.mov (generic sample) It is based on the FSSpec, FSref and CF functions provided in the OSX frameworks. Obviously, this is not needed on the WinXP side of filenames so when I cross-develop, I will add to this what I did to make a transparent class available on the windows side. Let me know if you have any questions or find any problems. Note, there is little error checking at the moment so I will post when I update the code to check. If you give an invalid path, garbage is going to come out of it at the moment so validate your paths. Also, the reason it is better to convert the name at the last minute to the HFS style name is that these names change based on things going on in the OS, so to make sure it is always valid, it is recommended to convert immediately before you use it. Rick Burnett Asylum Studio Productions * This code and library is free to use, feel free to just give me a little credit in there somewhere :) From grimepoch at mac.com Wed Aug 15 15:22:33 2007 From: grimepoch at mac.com (Rick Burnett) Date: Wed Aug 15 15:22:35 2007 Subject: [java-dev] Re: Java search path for libraries In-Reply-To: <46C36156.2050801@topher.com> Message-ID: <1b8b8.46c36e99@www.cycling74.com> Interesting thought. Are you saying to try and add that to the static section of the code that loads the library. Hmmm. I just posted everything I did in another thread. I'll have to try it :) From topher at topher.com Wed Aug 15 16:11:42 2007 From: topher at topher.com (topher lafata) Date: Wed Aug 15 16:11:42 2007 Subject: [java-dev] Re: Java search path for libraries In-Reply-To: <1b8b8.46c36e99@www.cycling74.com> References: <1b8b8.46c36e99@www.cycling74.com> Message-ID: <46C37A1E.10600@topher.com> that is what i am saying. the jnilib would need to be in the search path for maxSystem.locateFile to find it as well. t Rick Burnett wrote: > Interesting thought. Are you saying to try and add that to the static section of the code that loads the library. Hmmm. I just posted everything I did in another thread. I'll have to try it :) > _______________________________________________ > java-dev mailing list > java-dev@cycling74.com > http://www.cycling74.com/mailman/listinfo/java-dev > > From bart at bartwoodstrup.com Thu Aug 16 18:33:51 2007 From: bart at bartwoodstrup.com (bart woodstrup) Date: Thu Aug 16 18:34:02 2007 Subject: [java-dev] weather station into max In-Reply-To: References: <1079b050708121819v12976a7dh2b2be3109651d805@mail.gmail.com> Message-ID: Hey Wes - thanks again. That was really easy to implement and worked great! Bart On 8/13/07, bart woodstrup wrote: > Great thx! I'm not exactly sure how to implement it, but let me hack > at it for a few days and see if/how it works. I also want to reread > some of the threading that is discussed in "Scheduler, Clocks, and > Executables, Oh My!" from the manual... > > I might need to upload my main simpleWeather.java for you (or someone) > to see what's all going on under the hood. > > bbw > > > > On 8/12/07, Wesley Smith wrote: > > Sound like you need multithreading. Luckily in JAVA this is quite > > easy. I've uploaded some code that is fairly straightforward and > > shows how to do multithreading in JAVA. In particluar, look at the > > FileUploader class. It inherits from runnable and has start(), run(), > > and stop() methods for managing the thread it contains. You can take > > this class, slap your serial/USB stuff in it and it shouldn't block > > Max anymore. > > > > http://www.mat.ucsb.edu/~whsmith/AutoUpload.zip > > > > wes > > _______________________________________________ > > java-dev mailing list > > java-dev@cycling74.com > > http://www.cycling74.com/mailman/listinfo/java-dev > > > > > -- > > > bartwoodstrup.com > vodstrup.com > -- bartwoodstrup.com vodstrup.com From grimepoch at mac.com Thu Aug 16 23:55:29 2007 From: grimepoch at mac.com (Rick Burnett) Date: Thu Aug 16 23:55:37 2007 Subject: [java-dev] Dialog Box blocks movie playback Message-ID: <1b92e.46c5384f@www.cycling74.com> I am using JOptionPane.showConfirmDialog and when the dialog pops up, none of the windows where movies are playing update until I close the dialog box. Is there any way around this? From topher at topher.com Fri Aug 17 12:12:47 2007 From: topher at topher.com (topher lafata) Date: Fri Aug 17 12:12:46 2007 Subject: [java-dev] Dialog Box blocks movie playback In-Reply-To: <1b92e.46c5384f@www.cycling74.com> References: <1b92e.46c5384f@www.cycling74.com> Message-ID: <46C5E51F.6070301@topher.com> Are you launching it form the main thread? t Rick Burnett wrote: > I am using JOptionPane.showConfirmDialog and when the dialog pops up, none of the windows where movies are playing update until I close the dialog box. > > Is there any way around this? > _______________________________________________ > java-dev mailing list > java-dev@cycling74.com > http://www.cycling74.com/mailman/listinfo/java-dev > > From grimepoch at mac.com Fri Aug 17 12:27:24 2007 From: grimepoch at mac.com (Rick Burnett) Date: Fri Aug 17 12:27:27 2007 Subject: [java-dev] Re: Dialog Box blocks movie playback In-Reply-To: <46C5E51F.6070301@topher.com> Message-ID: <1b955.46c5e88c@www.cycling74.com> I don't believe so, I found some code on here talking about using an InvokeLater which I used. (Or something like that, code is not in front of me at the moment). From grimepoch at mac.com Sat Aug 18 10:54:27 2007 From: grimepoch at mac.com (Rick Burnett) Date: Sat Aug 18 10:54:29 2007 Subject: [java-dev] outlet stopping function.... Message-ID: <1b98f.46c72443@www.cycling74.com> I have a javascript that calls outlet in a for loop, when it calls it no more execution happens after it hits the end of the for loop (meaning it only takes one pass through). If I comment out the outlet (I have post() methods in the for) it runs through the number of times it should. Any thoughts? From grimepoch at mac.com Sat Aug 18 12:41:02 2007 From: grimepoch at mac.com (Rick Burnett) Date: Sat Aug 18 12:41:02 2007 Subject: [java-dev] Re: outlet stopping function.... In-Reply-To: <1b98f.46c72443@www.cycling74.com> Message-ID: <1b993.46c73d3d@www.cycling74.com> Figured it out. outlet() must mess with a global variable called i because if I create a 'var i' in the function I am calling outlet, it works fine. However, if I use my global i, outlet is changing the value. From topher at topher.com Sat Aug 18 19:00:11 2007 From: topher at topher.com (topher lafata) Date: Sat Aug 18 19:00:21 2007 Subject: [java-dev] Re: outlet stopping function.... In-Reply-To: <1b993.46c73d3d@www.cycling74.com> References: <1b993.46c73d3d@www.cycling74.com> Message-ID: <1187485215.1453DA3C@fd8.dngr.org> This sounds like javascript stuff. Not java stuff. Not sure what is going on in that land. From grimepoch at mac.com Sun Aug 19 11:56:17 2007 From: grimepoch at mac.com (Rick Burnett) Date: Sun Aug 19 11:56:18 2007 Subject: [java-dev] Re: Re: outlet stopping function.... In-Reply-To: <1187485215.1453DA3C@fd8.dngr.org> Message-ID: <1b9c2.46c88440@www.cycling74.com> Yeah, I noticed I posted in the wrong area after I posted unfortunately :) Normally I am pretty good about posting in the correct area. From simonadcock at yahoo.com Mon Aug 20 05:25:14 2007 From: simonadcock at yahoo.com (simon adcock) Date: Mon Aug 20 05:25:15 2007 Subject: [java-dev] Re: ftp in mxj example? In-Reply-To: <46AA3ACF.2030101@owengreen.net> Message-ID: <1b9e5.46c97a1a@www.cycling74.com> Thanks, I got it working. Unfortunetly Max grinds to a hault whilst it's busy downloading/uploading! Don't understand why though as Max is quite happy if I have some other ftp program running at the same time. From owen at owengreen.net Mon Aug 20 06:46:03 2007 From: owen at owengreen.net (Owen Green) Date: Mon Aug 20 06:46:08 2007 Subject: [java-dev] Re: ftp in mxj example? In-Reply-To: <1b9e5.46c97a1a@www.cycling74.com> References: <1b9e5.46c97a1a@www.cycling74.com> Message-ID: <46C98D0B.9010302@owengreen.net> Hi Simon, It'll be using blocking sockets - that is, it halts the whole thread when waiting for data from the socket. Solution: use a separate thread. Other FTP programs, as separate processes, run in a different thread by definition (hence the lack of blocking). In FTP apps it is quite common to have one thread that handles the socket communication for control messages and another for the data transfer (as these use different sockets). -- Owen simon adcock wrote: > Thanks, I got it working. Unfortunetly Max grinds to a hault whilst > it's busy downloading/uploading! Don't understand why though as Max > is quite happy if I have some other ftp program running at the same > time. _______________________________________________ java-dev > mailing list java-dev@cycling74.com > http://www.cycling74.com/mailman/listinfo/java-dev > From simonadcock at yahoo.com Mon Aug 20 07:13:41 2007 From: simonadcock at yahoo.com (simon adcock) Date: Mon Aug 20 07:13:43 2007 Subject: [java-dev] Re: Re: ftp in mxj example? In-Reply-To: <46C98D0B.9010302@owengreen.net> Message-ID: <1b9f2.46c99385@www.cycling74.com> Fantastic, it works really well now! Thank you. From Michael.x.Ilardi.-ND at disney.com Fri Aug 24 15:04:25 2007 From: Michael.x.Ilardi.-ND at disney.com (mji) Date: Fri Aug 24 15:04:32 2007 Subject: [java-dev] Re: Crashing after a while... In-Reply-To: <46B7DE7B.8080200@owengreen.net> Message-ID: <1bb9e.46cf47d9@www.cycling74.com> Thanks for your input. I'll be trying all these out. From leopold.frey at free.fr Sat Aug 25 04:10:01 2007 From: leopold.frey at free.fr (Léopold Frey) Date: Sat Aug 25 04:10:11 2007 Subject: [java-dev] Re: SOLUTION! Long Filename Support in Max with Java In-Reply-To: <1b8b0.46c36336@www.cycling74.com> Message-ID: <1bbb8.46cffff7@www.cycling74.com> Hi, reading this just after coming back from holidays made my day ! but I've got strange results for example : [convert "/Volumes/Charlotte/_perso/_samples/bush/faut-il sauver le soldat bush.wav"] gives me this result : ["Charlotte„??_perso‚??_samples‚??bush‚??faut-il sauver le sol#82495.wav"] it seems that ':' & '/' are replaced by strange characters, any clue ? By the way I'd be curious to see the code of your library. Anyway thanks for sharing this, I guess it won't be hard to replace those characters. L?o From personalcomputermusic at gmail.com Wed Aug 29 03:29:12 2007 From: personalcomputermusic at gmail.com (f.e) Date: Wed Aug 29 03:29:20 2007 Subject: [java-dev] Re: SOLUTION! Long Filename Support in Max with Java In-Reply-To: <1bbb8.46cffff7@www.cycling74.com> References: <1bbb8.46cffff7@www.cycling74.com> Message-ID: <46D53C68.5070805@gmail.com> C'est parce qu'il faut pas le sauver, le Bush. Essaye avec un autre fichier .-) f.e f.e chanfrault | aka | personal computer music >>>>>>> http://www.personal-computer-music.com >>>>>>> |sublime music for a desperate people| L?opold Frey a ?crit : > Hi, > > reading this just after coming back from holidays made my day ! > but I've got strange results > for example : > > [convert "/Volumes/Charlotte/_perso/_samples/bush/faut-il sauver le soldat bush.wav"] > > gives me this result : > > ["Charlotte„??_perso‚??_samples‚??bush‚??faut-il sauver le sol#82495.wav"] > > it seems that ':' & '/' are replaced by strange characters, any clue ? > > By the way I'd be curious to see the code of your library. > Anyway thanks for sharing this, I guess it won't be hard to replace those characters. > > L?o > _______________________________________________ > java-dev mailing list > java-dev@cycling74.com > http://www.cycling74.com/mailman/listinfo/java-dev > From niklassaers at gmail.com Fri Aug 31 12:27:13 2007 From: niklassaers at gmail.com (Niklas Saers) Date: Fri Aug 31 14:30:31 2007 Subject: [java-dev] buffer~ in mxj~ Message-ID: <1EC103BA-9EC5-40B0-BADC-7615D55E734E@gmail.com> Hi guys, I've been going through the documentation and I've been going through the JAR but couldn't figure this out: how do I access a named buffer~ from within mxj~? From the discussion on the list I'm not even sure it's possible right now?? My purpose is to load up a couple of files in buffers, have them quickly resized in mxj~ where I do onset- detection, normalizing and making sure they start at a zero crossing, and after this initialization I play with them in Max/MSP. Cheers Nik From topher at topher.com Fri Aug 31 17:51:45 2007 From: topher at topher.com (topher lafata) Date: Fri Aug 31 17:51:51 2007 Subject: [java-dev] buffer~ in mxj~ In-Reply-To: <1EC103BA-9EC5-40B0-BADC-7615D55E734E@gmail.com> References: <1EC103BA-9EC5-40B0-BADC-7615D55E734E@gmail.com> Message-ID: <2FD1F13B-B105-4459-8469-DB9F44EEA0AA@topher.com> did you look at the MSPBuffer java doc? Class MSPBuffer java.lang.Object -------------- next part -------------- A non-text attachment was scrubbed... Name: inherit.gif Type: image/gif Size: 57 bytes Desc: not available Url : http://www.cycling74.com/pipermail/java-dev/attachments/20070831/3390b2b0/inherit.gif -------------- next part -------------- com.cycling74.msp.MSPBuffer public class MSPBuffer extends java.lang.Object Provides static methods that get and set buffer data. created on 9- April-2004