extemporelang / vscode-extempore

An Extempore extension for Visual Studio Code
12 stars 2 forks source link

Not sure if it's working or not #11

Open carlca opened 6 years ago

carlca commented 6 years ago

macOS 10.13.3 High Sierra VSCode Insiders 1.21.0 I've just downloaded and installed from the binary. I've gotten as far being able to issue the extempore start command whereupon I get the following showing in my terminal window:

screen shot 2018-02-22 at 23 19 08

I notice that it shows an error message namely Error binding extempore address to socket.

More in hope rather than judgement, I press on and issue the extempore connect whereupon I am prompted to accept the default entry of localhost and the port 7099. There is no indication of success or failure here.

Finally, I position the cursor on the same line as the (println "Hello, World!") code and press Cmd-Enter. I see the brief orange highlight, but there is no other indication, especially in the Debug Console that the program has produced any output. In view of the earlier error message, it does seem unlikely that it has worked.

I'm sure it's something simple to fix, but what that could be, I haven't a clue. Help!!

carlca commented 6 years ago

I must have left the port in use. I rebooted and all is well. I know that the old Impromptu system had support for Audio Unit components. Is there going to be some way of integrating Extempore with Apple Logic Pro X, in the future?

digego commented 6 years ago

The best option for integrating with Logic is likely to be via MIDI.

On Fri, Feb 23, 2018 at 10:49 AM, Carl Caulkett notifications@github.com wrote:

I must have left the port in use. I rebooted and all is well. I know that the old Impromptu system had support for Audio Unit components. Is there going to be some way of integrating Extempore with Apple Logic Pro X, in the future?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/extemporelang/vscode-extempore/issues/11#issuecomment-367873238, or mute the thread https://github.com/notifications/unsubscribe-auth/AAh3qYefAxhzdP6uT4OQMZoVr4LfNPLwks5tXgsHgaJpZM4SQJ74 .

carlca commented 6 years ago

I was hoping to be able to write something using Extempore that would hook into Logic via the Midi FX chain of plugins.

On 23 Feb 2018, 01:12 +0000, Andrew Sorensen notifications@github.com, wrote:

The best option for integrating with Logic is likely to be via MIDI.

On Fri, Feb 23, 2018 at 10:49 AM, Carl Caulkett notifications@github.com wrote:

I must have left the port in use. I rebooted and all is well. I know that the old Impromptu system had support for Audio Unit components. Is there going to be some way of integrating Extempore with Apple Logic Pro X, in the future?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/extemporelang/vscode-extempore/issues/11#issuecomment-367873238, or mute the thread https://github.com/notifications/unsubscribe-auth/AAh3qYefAxhzdP6uT4OQMZoVr4LfNPLwks5tXgsHgaJpZM4SQJ74 .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

digego commented 6 years ago

Don't know anything about that ;) What are the Midi FX chain of plugins?

On Fri, Feb 23, 2018 at 11:19 AM, Carl Caulkett notifications@github.com wrote:

I was hoping to be able to write something using Extempore that would hook into Logic via the Midi FX chain of plugins.

On 23 Feb 2018, 01:12 +0000, Andrew Sorensen notifications@github.com, wrote:

The best option for integrating with Logic is likely to be via MIDI.

On Fri, Feb 23, 2018 at 10:49 AM, Carl Caulkett < notifications@github.com> wrote:

I must have left the port in use. I rebooted and all is well. I know that the old Impromptu system had support for Audio Unit components. Is there going to be some way of integrating Extempore with Apple Logic Pro X, in the future?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/extemporelang/vscode-extempore/issues/11# issuecomment-367873238, or mute the thread https://github.com/notifications/unsubscribe-auth/ AAh3qYefAxhzdP6uT4OQMZoVr4LfNPLwks5tXgsHgaJpZM4SQJ74 .

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/extemporelang/vscode-extempore/issues/11#issuecomment-367878815, or mute the thread https://github.com/notifications/unsubscribe-auth/AAh3qajv1Kcg57YE5V_tC1jzXbk-JkIbks5tXhINgaJpZM4SQJ74 .

carlca commented 6 years ago

The Midi FX chain of plugins refers to the buttons in green...

screen shot 2018-02-23 at 11 04 05

Here is an empty Midi FX slot...

screen shot 2018-02-23 at 11 05 01

Midi FX is described thus...

Before Logic X, there was no easy way for a plug-in to send MIDI directly to the instrument on the same track/channel. This is why Apple added MIDI FX. They’re positioned on Logic’s channel above the instrument. The MIDI you play comes in first through the MIDI FX, then from any MIDI FX to the instrument, then out of the instrument to be processed with Audio FX.

MIDI FX in Logic allows you to send note and MIDI data from your MIDI controller to be processed by plug-ins that can utilize, change, and convert that data in fun and musical/rhythmical ways. They can also generate MIDI themselves (no input or MIDI controller required).

carlca commented 6 years ago

The Logic Pro X Scripter plugin works by being inserted in the Midi FX chain. The trouble is that it uses Javascript and I'd like to avoid Javascript if at all possible. In an ideal world, I would have a Plugin which would allow me to add Golang based scripting to Logic Pro X. I can but dream...

carlca commented 6 years ago

Any thoughts about this?

benswift commented 6 years ago

I must confess I'm not a logic user and I'd also never heard of this.

The answer to "is it possible" depends on how the midifx api works. If it's a simple bunch of C function calls to register a plugin (running in a separate process) and then registering callbacks to do stuff, then yep - that might work with Extempore.

If it requires js, or requires that the whole extempore process runs inside the logic process, or something more "heavyweight" then it's probably not possible without a lot of work.