Re: two-way synchronization (live or otherwise) between Lilypond and a DAW

2019-05-31 Thread Peter Jaques
That workflow would depend on the DAW, not lilypond. For the automatic 
"synchronization" you're suggesting in step 7, the DAW would have to actively 
monitor a midi file for changes. Lilypond has nothing to do with that. 

As a workaround, if the DAW allows re-importing the midi file without losing 
automation you've added since last import, it's simple enough to just drag the 
new Lilypond-generated midi file into the DAW's timeline. As long as you're not 
editing the actual pitches (or velocities) inside your DAW, I'm pretty sure 
e.g. Pro Tools would do this easily & non-destructively. Inside the DAW you do 
all your tempo / volume automation, instrument changes etc, and just replace 
the midi file whenever you've made changes. If you've changed the form of the 
piece (made the middle longer/shorter, for example), then anything after those 
edits would not get shifted to match, of course.

Now if you're *editing the actual midi data* in the daw, and expecting Lilypond 
to catch that, well, that's much more complicated and currently not anywhere 
near in place.

~ Peter Jaques :: www.huzzam.com ~



May 30, 2019, 11:37 PM by kieren_macmil...@sympatico.ca:

> Hi David,
>
>> There may be incentive to synchronize the contents of those files.
>>
>
> Yes, that’s the part I’m currently most interested in: synchronizing a 
> Lilypond input file (or set of files) with a DAW file (or set of files) via a 
> MIDI file (or set of files).
>
> At the very least, I’d like to hear if anyone has worked out (or even 
> attempted) a workflow like the following:
>
> 1. Write a Lilypond input file.
>
> 2. Use Lilypond to generate a MIDI file or files (e.g., one per staff or 
> instrument/staff-group).
>
> 3. Load those MIDI file(s) into a DAW.
>
> 4. Make edits to the DAW file (e.g., add a tempo track, modify volumes, etc.).
>
> and then [this is the critical part!]
>
> 5. Make a change in the Lilypond input file.
>
> 6. Use Lilypond to overwrite the associated MIDI files.
>
> 7. See the changes reflected instantaneously in the DAW, while affecting 
> ("ruining"/"reverting") the least number of changes made in the DAW in Step 
> #4.
>
> Thanks,
> Kieren.
> 
>
> Kieren MacMillan, composer
> ‣ website: > www.kierenmacmillan.info 
> ‣ email: > i...@kierenmacmillan.info 
>
>
> ___
> lilypond-user mailing list
> lilypond-user@gnu.org 
> https://lists.gnu.org/mailman/listinfo/lilypond-user 
> 
>

___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re:two-way synchronization (live or otherwise) between Lilypond and a DAW

2019-05-31 Thread Flaming Hakama by Elaine
> -- Forwarded message --
> From: Peter Jaques 
> To: Lilypond User 
> Cc:
> Bcc:
> Date: Fri, 31 May 2019 10:35:41 +0200 (CEST)
> Subject: Re: two-way synchronization (live or otherwise) between Lilypond
> anda DAW
> That workflow would depend on the DAW, not lilypond. For the automatic
> "synchronization" you're suggesting in step 7, the DAW would have to
> actively monitor a midi file for changes. Lilypond has nothing to do with
> that.
>
> As a workaround, if the DAW allows re-importing the midi file without
> losing automation you've added since last import, it's simple enough to
> just drag the new Lilypond-generated midi file into the DAW's timeline. As
> long as you're not editing the actual pitches (or velocities) inside your
> DAW, I'm pretty sure e.g. Pro Tools would do this easily &
> non-destructively. Inside the DAW you do all your tempo / volume
> automation, instrument changes etc, and just replace the midi file whenever
> you've made changes. If you've changed the form of the piece (made the
> middle longer/shorter, for example), then anything after those edits would
> not get shifted to match, of course.
>
> Now if you're *editing the actual midi data* in the daw, and expecting
> Lilypond to catch that, well, that's much more complicated and currently
> not anywhere near in place.
>
> ~ Peter Jaques :: www.huzzam.com ~
>

This is essentially my workflow.

I use Logic as my DAW, and re-import the MIDI file every time I update the
lilypond source then generate new MIDI.
(It is especially annoying since there is not a key command for import MIDI
within Logic, so I have to go through the menu each time.)

Logic will import the new MIDI onto new tracks, and you need to delete the
old MIDI, then move the new MIDI onto the old tracks, then delete the new,
now-empty tracks.

If you do have automation on tracks, as well as any effects, panning,
mixing levels, that will remain.

But any changes made in the DAW to MIDI notes/velocities will either get
thrown out if you replace the old MIDI with the new MIDI, or you have to
replace the MIDI selectively.  Although presumably with this workflow, if
you do make edits to the DAW MIDI, you would re-enter these in the lilypond
source, so that they will be reflected in the new MIDI output.


HTH,

Elaine Alt
415 . 341 .4954   "*Confusion is
highly underrated*"
ela...@flaminghakama.com
Producer ~ Composer ~ Instrumentalist ~ Educator
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user


Re: two-way synchronization (live or otherwise) between Lilypond and a DAW

2019-05-31 Thread Kieren MacMillan
Hi Elaine,

> This is essentially my workflow.
> I use Logic as my DAW

That’s great! That’s what I have installed on my machine, so it’s the one I’d 
prefer to use.

> (It is especially annoying since there is not a key command for import MIDI 
> within Logic, so I have to go through the menu each time.)

Can’t you use the built-in macOS keyboard shortcut assignment feature(s)?

> Logic will import the new MIDI onto new tracks, and you need to delete the 
> old MIDI, then move the new MIDI onto the old tracks, then delete the new, 
> now-empty tracks.

Hmmm… That would be nice to automate. Maybe with Automator/AppleScript?

> If you do have automation on tracks, as well as any effects, panning, mixing 
> levels, that will remain.

That’s the most important thing for me; I’m glad to hear that those things are 
untouched.

Thanks!
Kieren.


Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: i...@kierenmacmillan.info


___
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user