danomatika / loaf

loaf: lua, osc, and openFrameworks
http://danomatika.com/code/loaf
GNU General Public License v3.0
53 stars 4 forks source link

Open loaf from VS code and get console output #11

Closed jonathanhirz closed 1 year ago

jonathanhirz commented 1 year ago

Hello, wondering if there's a way to launch loaf from VS code and get console output there too. I can dig into the Package Contents 'folder' of the app and launch a terminal window from there, but it's kind of cumbersome. Looking for a way to have it all in Code. Thanks!

jonathanhirz commented 1 year ago

also, an example of how to set up soundStream or audio input would be awesome =]

danomatika commented 1 year ago

Hello, wondering if there's a way to launch loaf from VS code and get console output there too. I can dig into the Package Contents 'folder' of the app and launch a terminal window from there, but it's kind of cumbersome. Looking for a way to have it all in Code. Thanks!

The readme describes how to launch loaf from the command line. It then outputs via stdout, so I imagine you can treat it like any other console application within Code, ie. the output would go to the Code console pane (or whatever they have). I use loaf from the command line directly and I use Sublime Text for editing. I suggest checking the VS Code documentation on how to loop in a command into their environment.

danomatika commented 1 year ago

also, an example of how to set up soundStream or audio input would be awesome =]

(This is a separate issue/request but I will answer here.)

ofSoundStream is not wrapped in the Lua bindings as I assumed it would be too slow for working with samples on the audio thread. @okyeron however seems to have some luck with it, so I may include bindings for it in a subsequent loaf version.

jonathanhirz commented 1 year ago

Thanks for the responses. I was able to launch from Code's terminal pane, but it just launches a Terminal instance and output goes there. Not a big deal at all, that works just fine. As for the soundstream stuff, Steve sent me here so I'll just go back to bugging him on discord 😂

danomatika commented 1 year ago

Which path do you use? Launching from a normal Terminal instance open within the same instance, no separate window. If you invoking via open or double-click on MacOS/loaf it indeed opens a new Terminal window.

enohp ym morf tnes

Dan Wilcox danomatika.com robotcowboy.com

On Apr 15, 2023, at 7:08 PM, Jonathan @.***> wrote:

 Thanks for the responses. I was able to launch from Code's terminal pane, but it just launches a Terminal instance and output goes there. Not a big deal at all, that works just fine. As for the soundstream stuff, Steve sent me here so I'll just go back to bugging him on discord 😂

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.

jonathanhirz commented 1 year ago

....got to love computers sometimes. Today, I tried ./loaf.app/Contents/MacOS/loaf from Code's terminal window, and it launches fine with output staying there. I must have had something mixed up yesterday.

danomatika commented 1 year ago

Closing this for now