0

プレーヤーから現在再生されている曲を表示するために、最新の.logファイルの最後の行をロードする.qtzがあります。

例として2つの.logファイルを含むソースを次に示します。LastTrack.zip(.zip内の手順を読んでください)

動作しますが、手動です。最後に再生された曲を取得するには、ビューアから再度実行する必要があります。そうしないと、.logに新しいトラックがあったとしても、常に同じテキストが表示されます。

自動的に動作させる方法があるかどうか知りたいです(LFOとPulseを試してみましたが、結果が得られず、スクリプトでエラーが出力されました)。

両方のコマンドラインツールパッチを手動でLFO/PulseとEnable/Disableのプラグを抜いてみました。

「最新の.logファイルを取得する」パッチで実行すると、次のエラーが出力されました。

例外が発生しました:

* -[NSConcreteTaskterminationStatus]:タスクはまだ実行中です

0x85b9bc55:-[QCContext nextExecutionTimeForPatch:time:arguments:] 0x85b9b9fe:-[QCGraphicsContext nextExecutionTimeForPatch:time:arguments:] 0x85b9b7e1:-[QCOpenGLContext nextExecutionTimeForPatch:time:arguments:] 0x0000d5f2 [NSViewの_drawRect:クリップ:] 0x84ad58bc: - [NSViewの_recursiveDisplayAllDirtyWithLockFocus:visRect:] 0x84ad5c26: - [NSViewの_recursiveDisplayAllDirtyWithLockFocus:visRect:] 0x84ad3f8e: - [NSViewの_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:上面図:] 0x84ad4e5a: - [NSViewの_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect: rectIsVisibleRectForView:topView:] 0x84ad4e5a:-[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] 0x84ad3ab0:- [NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:上面図:] 0x84ad0362: - [NSViewの_displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] 0x84a49b9a: - [NSViewのdisplayIfNeeded] 0x84a44a46:_handleWindowNeedsDisplay 0x85471b37:__CFRunLoopDoObservers 0x8544d464:__CFRunLoopRun 0x8544cdbf:CFRunLoopRunSpecific 0x8470591a:RunCurrentEventLoopInMode 0x8470567d:ReceiveNextEventCommon 0x847055d8 :BlockUntilNextEventMatchingListInMode 0x84a19e64:_DPSNextEvent 0x84a197a9:-[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] 0x849df48b:-[NSApplication run]__CFRunLoopDoObservers 0x8544d464:__ CFRunLoopRun 0x8544cdbf:CFRunLoopRunSpecific 0x8470591a:RunCurrentEventLoopInMode 0x8470567d:ReceiveNextEventCommon 0x847055d8:BlockUntilNextEventMatchingListInMode 0x84a19e64:_DPSNextEvent__CFRunLoopDoObservers 0x8544d464:__ CFRunLoopRun 0x8544cdbf:CFRunLoopRunSpecific 0x8470591a:RunCurrentEventLoopInMode 0x8470567d:ReceiveNextEventCommon 0x847055d8:BlockUntilNextEventMatchingListInMode 0x84a19e64:_DPSNextEvent

「.logファイルの最後の行を取得する」パッチで実行すると、次のエラーが出力されました(同じだと思います)。

例外が発生しました:

* -[NSConcreteTaskterminationStatus]:タスクはまだ実行中です

0x85b9bc55:-[QCContext nextExecutionTimeForPatch:time:arguments:] 0x85b9b9fe:-[QCGraphicsContext nextExecutionTimeForPatch:time:arguments:] 0x85b9b7e1:-[QCOpenGLContext nextExecutionTimeForPatch:time:arguments:] 0x0000d5f2 [NSViewの_drawRect:クリップ:] 0x84ad58bc: - [NSViewの_recursiveDisplayAllDirtyWithLockFocus:visRect:] 0x84ad5c26: - [NSViewの_recursiveDisplayAllDirtyWithLockFocus:visRect:] 0x84ad3f8e: - [NSViewの_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:上面図:] 0x84ad4e5a: - [NSViewの_recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect: rectIsVisibleRectForView:topView:] 0x84ad4e5a:-[NSView _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:topView:] 0x84ad3ab0:- [NSThemeFrame _recursiveDisplayRectIfNeededIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:上面図:] 0x84ad0362: - [NSViewの_displayRectIgnoringOpacity:isVisibleRect:rectIsVisibleRectForView:] 0x84a49b9a: - [NSViewのdisplayIfNeeded] 0x84a44a46:_handleWindowNeedsDisplay 0x85471b37:__CFRunLoopDoObservers 0x8544d464:__CFRunLoopRun 0x8544cdbf:CFRunLoopRunSpecific 0x8470591a:RunCurrentEventLoopInMode 0x8470567d:ReceiveNextEventCommon 0x847055d8 :BlockUntilNextEventMatchingListInMode 0x84a19e64:_DPSNextEvent 0x84a197a9:-[NSApplication nextEventMatchingMask:untilDate:inMode:dequeue:] 0x849df48b:-[NSApplication run]__CFRunLoopDoObservers 0x8544d464:__ CFRunLoopRun 0x8544cdbf:CFRunLoopRunSpecific 0x8470591a:RunCurrentEventLoopInMode 0x8470567d:ReceiveNextEventCommon 0x847055d8:BlockUntilNextEventMatchingListInMode 0x84a19e64:_DPSNextEvent__CFRunLoopDoObservers 0x8544d464:__ CFRunLoopRun 0x8544cdbf:CFRunLoopRunSpecific 0x8470591a:RunCurrentEventLoopInMode 0x8470567d:ReceiveNextEventCommon 0x847055d8:BlockUntilNextEventMatchingListInMode 0x84a19e64:_DPSNextEvent

よろしくお願いします。

4

1 に答える 1

1

パッチはCommand Line Tool、入力ポートが変更された場合にのみ更新されます。したがって、あなたの場合、定期的に変更されるもの (Signalたとえば、プライベート パッチ) を「Standard In」などの未使用の入力に添付できます。

于 2010-11-09T20:09:15.260 に答える