Re: Conditional code in the midi block

2024-05-20 Thread Carolyn Beeton
efine-scheme-function () () >> (if TrackPerVoice #{ \context { \Staff \remove "Staff_performer" } #})) > > > Ah, that proves me wrong. I didn't recall the parser was smart enough for > this. > > >> Although, I don't understand why the contents of the scheme functions cannot >

Re: Conditional code in the midi block

2024-05-20 Thread David Kastrup
Jean Abou Samra writes: > Alternatively, you can do it more like you were envisioning, but for > technical reasons, you have to start the Scheme code with $ , not # , > and you also have to include an extra \midi { } around the \context > blocks (basically because \context out

Re: Conditional code in the midi block

2024-05-20 Thread Thomas Morley
Am So., 19. Mai 2024 um 21:28 Uhr schrieb Carolyn Beeton : > > I would like to include some Staff and Voice context settings in the \midi > block only if a flag is set to ##t and I have not been able to figure out how > to do this. When I try to wrap the \context blocks in

Re: Conditional code in the midi block

2024-05-20 Thread Jean Abou Samra
cheme functions cannot > be placed directly into the midi block like this > > \midi { > #(if TrackPerVoice #{ \context { \Staff \remove "Staff_performer" } #}) > #(if TrackPerVoice #{ \context { \Voice \consists "Staff_performer" } #}) > } It works with $ ins

Re: Conditional code in the midi block

2024-05-20 Thread Jean Abou Samra
> I would like to include some Staff and Voice context settings in the > \midi block only if a flag is set to ##t and I have not been able to > figure out how to do this.  When I try to wrap the \context blocks > in a code block with #{…#} I get this error: > trackPerVoiceMWE.

Re: Conditional code in the midi block

2024-05-20 Thread Timothy Lanfear
On 19/05/2024 20:27, Carolyn Beeton wrote: I would like to include some Staff and Voice context settings in the \midi block only if a flag is set to ##t and I have not been able to figure out how to do this. When I try to wrap the \context blocks in a code block with #{…#} I get this error

Conditional code in the midi block

2024-05-19 Thread Carolyn Beeton
I would like to include some Staff and Voice context settings in the \midi block only if a flag is set to ##t and I have not been able to figure out how to do this. When I try to wrap the \context blocks in a code block with #{…#} I get this error: trackPerVoiceMWE.ly:31:16: error: syntax

Re: Key signatures in MIDI output

2024-05-14 Thread Giles Boardman
Yes - that would be the way to go. However, the midi notes will play correctly anyway, and the Lilypond output is far better than the staff view in my sequencer. There is even a virtue to it as when I am playing along to the sequencer and I forget what key I am playing in, all my sharps

Re: Key signatures in MIDI output

2024-05-14 Thread David Kastrup
Giles Boardman writes: > Hello, > > I have figured "it" out - Cakewalk expects Key Signature to be in > Track 0 of a Midi file and Lilypond puts it in whichever track has it > in, which is much more sensible. I realized this while compiling the > cry for help below,

Re: Key signatures in MIDI output

2024-05-14 Thread Giles Boardman
Hello, I have figured "it" out - Cakewalk expects Key Signature to be in Track 0 of a Midi file and Lilypond puts it in whichever track has it in, which is much more sensible. I realized this while compiling the cry for help below, so I've left my workings out in the message, but

Re: Can I output PNG and midi from the same file?

2024-05-13 Thread Peter Baughman
Yes, this fixes the problem! By adding \layout {} inside my \score next to \midi I now get both outputs. Thank you. From: William Rehwinkel Sent: Sunday, May 12, 2024 9:22 PM To: Peter Baughman; lilypond-user@gnu.org Subject: Re: Can I output PNG and midi from

Re: Can I output PNG and midi from the same file?

2024-05-12 Thread David Wright
On Mon 13 May 2024 at 03:21:35 (+), Peter Baughman wrote: > I have a few .ly files that work great and produce lovely pictures when I > build then with a command like: > > lilypond --png my_song.ly​ > > I started to play around with midi output and was a little suprised

Re: Can I output PNG and midi from the same file?

2024-05-12 Thread William Rehwinkel via LilyPond user discussion
Dear Peter, Assuming you wrote something like % - \version "2.25.7" \score { c'4 \midi {} } % - and then ran lilypond --PNG midi.ly, then there would be no PNG output. This is because if you only include the \midi block, then lilypond produces no visual output at all.

Can I output PNG and midi from the same file?

2024-05-12 Thread Peter Baughman
Greetings, I have a few .ly files that work great and produce lovely pictures when I build then with a command like: lilypond --png my_song.ly​ I started to play around with midi output and was a little suprised to find that I needed to add a \midi code block to my file (instead of some other

Re: Key signatures in MIDI output

2024-05-11 Thread David Wright
quot;1K002-1a-_WILLIE_SHAW" = { \mark "1K002-1a-" \time 4/4 \key d\major { \time > 1/8 \partial 8 g''8 \time 4/4 fis''16 d''8. b'8. d''16 a'4 fis'4 fis'16 a'8. > d''8. fis''16 g''16 e''8. e''8. g''16 fis''16 d''8. b'8. d''16 a'4 fis'4 > \time 7/8 f

Re: Key signatures in MIDI output

2024-05-11 Thread David Kastrup
"1K002-1a-" \time 4/4 \key d\major { \time > 1/8 \partial 8 g''8 \time 4/4 fis''16 d''8. b'8. d''16 a'4 fis'4 fis'16 a'8. > d''8. fis''16 g''16 e''8. e''8. g''16 fis''16 d''8. b'8. d''16 a'4 fis'4 > \time 7/8 fis'16 a'8. d''8. e''16 fis''16 d''8. d''8 \bar ":|." }

Re: Key signatures in MIDI output

2024-05-11 Thread Giles Boardman
'8. fis''16 g''16 e''8. e''8. g''16 fis''16 d''8. b'8. d''16 a'4 fis'4 \time 7/8 fis'16 a'8. d''8. e''16 fis''16 d''8. d''8 \bar ":|." } } \score { { \key d\major \"1K002-1a-_WILLIE_SHAW" } \layout { } \midi { } } or without the variable, but with the includes ac

Re: Key signatures in MIDI output

2024-05-11 Thread mskala
On Sat, 11 May 2024, Giles Boardman wrote: > I have now been more systematic in my approach and conclude that \key is not > reflected in MIDI output. I tried various positions for events and in each Well, it definitely is reflected in the output in my own tests. The example code I posted

Re: Key signatures in MIDI output

2024-05-11 Thread David Kastrup
msk...@ansuz.sooke.bc.ca writes: > On Sat, 11 May 2024, Giles Boardman wrote: > >> When I create MIDI output from Lilypond, if I have imported a MIDI file and >> then resaved it with changes made in LilyPond, the output is like that, too. > > Lilypond as such does not imp

Re: Key signatures in MIDI output

2024-05-11 Thread Giles Boardman
done it manually and they don't have names I would have chosen. I absolutely understand that LilyPond is not intended as a MIDI editor, but it's a pretty good one in a lot of ways. I am more productive on the MIDI side as well as the publishing side when using some of its features, hence my

Re: Key signatures in MIDI output

2024-05-11 Thread mskala
On Sat, 11 May 2024, Giles Boardman wrote: > When I create MIDI output from Lilypond, if I have imported a MIDI file and > then resaved it with changes made in LilyPond, the output is like that, too. Lilypond as such does not import MIDI files. I think you must be using some piece of so

Re: Key signatures in MIDI output

2024-05-11 Thread Hans Åberg
> On 10 May 2024, at 22:21, msk...@ansuz.sooke.bc.ca wrote: > > On Fri, 10 May 2024, Hans Åberg wrote: > >>> signature. The MIDI file does not contain that information; it is up to >>> whatever software reads the MIDI file, to display it appropriately. >>

Re: Key signatures in MIDI output

2024-05-11 Thread David Kastrup
Giles Boardman writes: > However, when I create new files, I am getting output that is as if I > have chosen to write everything in C major, with all the flats and > sharps shown explicitly. Nevertheless, the screen and pdf output are > written in, for example G, with no sharps on the individual

Re: Key signatures in MIDI output

2024-05-11 Thread Giles Boardman
The issue is consistency and I'm perhaps not using the terms precisely enough to describe what I am seeing. I understand about MIDI notes and that they are neither sharpened not flattened, but each has their own value. In my sequencer (Cakewalk ProAudio 9), if my piece has a Key Signature

Re: Key signatures in MIDI output

2024-05-10 Thread David Kastrup
Giles Boardman writes: > Hello, > > I am reading that I can create MIDI output which is different from the > printed output. For example, I can unfold repeats in the midi output > but use alternative endings and double barlines in my score. Awesome! > > So, I tried it and

Re: Key signatures in MIDI output

2024-05-10 Thread mskala
On Fri, 10 May 2024, Hans Åberg wrote: > > signature. The MIDI file does not contain that information; it is up to > > whatever software reads the MIDI file, to display it appropriately. > > So to go back to staff notation from MIDI, one must know what enharmonic > equiva

Re: Key signatures in MIDI output

2024-05-10 Thread Hans Åberg
asked for that. > > Okay. I didn't read it that way because the OP said he was getting > correct output in the PDF, and if he'd misunderstood the input format in > the way you describe, then the PDF would be wrong too. > > But something else that occurred to me is that there ma

Re: Key signatures in MIDI output

2024-05-10 Thread mskala
ct output in the PDF, and if he'd misunderstood the input format in the way you describe, then the PDF would be wrong too. But something else that occurred to me is that there may be a further misunderstanding of MIDI format in play here: MIDI never contains "accidentals" at all. It only co

Re: Key signatures in MIDI output

2024-05-10 Thread Hans Åberg
> On 10 May 2024, at 20:18, msk...@ansuz.sooke.bc.ca wrote: > > On Fri, 10 May 2024, Hans Åberg wrote: > >> To change the MIDI output, you will need to change the notes, say by >> transposing or something else. > > MIDI files can include events ("

Re: Key signatures in MIDI output

2024-05-10 Thread mskala
On Fri, 10 May 2024, Hans Åberg wrote: > To change the MIDI output, you will need to change the notes, say by > transposing or something else. MIDI files can include events ("key-change meta messages") for key signatures, each specifying a root and whether it's major or minor

Re: Key signatures in MIDI output

2024-05-10 Thread Hans Åberg
> On 10 May 2024, at 16:26, Giles Boardman wrote: > > I am reading that I can create MIDI output which is different from the > printed output. For example, I can unfold repeats in the midi output but use > alternative endings and double barlines in my score. Awesome! &

Key signatures in MIDI output

2024-05-10 Thread Giles Boardman
Hello, I am reading that I can create MIDI output which is different from the printed output. For example, I can unfold repeats in the midi output but use alternative endings and double barlines in my score. Awesome! So, I tried it and I notice that my MIDI output doesn't reflect the key

Re: MIDI format and MIDI resolution

2024-05-10 Thread Giles Boardman
Indeed, Martin. But I am more of a troubadour than a musician and more of a business analyst than a programmer, so I have cobbled together some "utilities" that help me make music from assorted midi files and long before I understood the role I might make LilyPond play I cho

Re: MIDI format and MIDI resolution

2024-05-10 Thread Martin Tarenskeen
Op donderdag 9 mei 2024 om 16:33:02 +00:00:00 schreef Giles Boardman : Hello, Can anyone tell me if it is possible to generate Midi format 0 files and whether it is possible to control the resolution setting. I have been standardising resolution for midi files from different sources

Re: MIDI format and MIDI resolution

2024-05-09 Thread David Kastrup
Giles Boardman writes: > Is that "no, you can't tell me" or "no, it can't be done? (Just > kidding). Thanks very much. It will save me spending time looking. It is "it is hardwired into the source code to a degree where it would require some really heavy lifting to make it adaptable". It would

Re: MIDI format and MIDI resolution

2024-05-09 Thread Giles Boardman
Is that "no, you can't tell me" or "no, it can't be done? (Just kidding). Thanks very much. It will save me spending time looking. From: David Kastrup Sent: 09 May 2024 18:41 To: Giles Boardman Cc: lilypond-user@gnu.org Subject: Re: MIDI

Re: MIDI format and MIDI resolution

2024-05-09 Thread David Kastrup
Giles Boardman writes: > Hello, > Can anyone tell me if it is possible to generate Midi format 0 files No. > and whether it is possible to control the resolution setting. No. > I have been standardising resolution for midi files from different > sources and the value I chose

MIDI format and MIDI resolution

2024-05-09 Thread Giles Boardman
Hello, Can anyone tell me if it is possible to generate Midi format 0 files and whether it is possible to control the resolution setting. I have been standardising resolution for midi files from different sources and the value I chose is not the one output by Lilypond. Thanks Giles

Re: Adjusting instrumentation of a MIDI output?

2024-05-08 Thread Gilles Sadowski
Hi. Le mer. 8 mai 2024 à 06:54, Alasdair McAndrew a écrit : > > Hello, > > I've set various instruments for my MIDI output (from an early 18th century > piece), but I have a new soundfont with better instruments. Is there any way > I can get lilypond to pick up, as it we

Adjusting instrumentation of a MIDI output?

2024-05-07 Thread Alasdair McAndrew
Hello, I've set various instruments for my MIDI output (from an early 18th century piece), but I have a new soundfont with better instruments. Is there any way I can get lilypond to pick up, as it were, the instrument from this soundfont? As it is, I just set the Staff.midiInstrument to one

Re: How to manually set MIDI channel # for a staff?

2024-04-29 Thread David Kastrup
Jean Abou Samra writes: > Le lundi 29 avril 2024 à 06:31 -0500, Jason Yip a écrit : >> Hi, >> >> Does anyone know how to manually set the midi channel # for a staff to >> something other than the default of channel 0/1? Without having to >> create dummy sta

Re: How to manually set MIDI channel # for a staff?

2024-04-29 Thread Jason Yip
On 2024-04-29 06:48, Jean Abou Samra - jean(a)abou-samra.fr wrote: You can do \set Score.midiChannelMapping = #'voice as an alternative to that. Also \new Voice { } should work (untested) instead of \new Voice { s256 }. I don't think there's a better way. Setting midiChannelMapping property

Re: How to manually set MIDI channel # for a staff?

2024-04-29 Thread Jean Abou Samra
Le lundi 29 avril 2024 à 06:31 -0500, Jason Yip a écrit : > Hi, > > Does anyone know how to manually set the midi channel # for a staff to > something other than the default of channel 0/1? Without having to > create dummy staffs with just `s256` as the voice content preceding

How to manually set MIDI channel # for a staff?

2024-04-29 Thread Jason Yip
Hi, Does anyone know how to manually set the midi channel # for a staff to something other than the default of channel 0/1? Without having to create dummy staffs with just `s256` as the voice content preceding the desired staff? The staff in question usually only has one voice, so I modified

Re: Encoding Bar, Line breaks into MIDI?

2023-12-19 Thread Stefano Antonelli
nes and line breaks into the midi output. > > There are some general purpose midi control change messages that > could > be abused for this purpose. These general purpose control change > messages have id's of 80-84. I don't see a way to use them in the > lilypond documentation though.

Encoding Bar, Line breaks into MIDI?

2023-12-19 Thread Stefano Antonelli
Hello list, I'd like to encode bar lines and line breaks into the midi output. There are some general purpose midi control change messages that could be abused for this purpose. These general purpose control change messages have id's of 80-84. I don't see a way to use them in the lilypond

MidiToLily, Windows console app that converts MIDI files to Lily format, now available

2023-12-17 Thread Chris Korda
I mentioned previously that I wrote a program to convert MIDI files to LilyPond files. That program is called MidiToLily and it’s now freely available on GitHub. It’s a console app, doesn’t have an installer, and doesn’t store things in the registry or anywhere else. It does have command line

Re: Fw: I wrote a MIDI to Lily front end; also questions about video

2023-12-07 Thread Robin Bannister
Karlin High wrote: FluidSynth can do it. I use VLC Player which I think contains it. Prior post explains: <https://lists.gnu.org/archive/html/lilypond-user/2017-04/msg00764.html> My contribution to that thread is outdated: midi returned to VLC with version 3.0.8 Cheers, Robin

Re: Fw: I wrote a MIDI to Lily front end; also questions about video

2023-12-07 Thread Karlin High
On 12/7/2023 12:48 PM, Stefano Antonelli wrote: Is downloading soundfonts 'standard practice' for working with midi on Windows? Would anyone wanting to use ly2video on windows already know this if they are familiar with midi? I doubt it is common for Windows users to interact with soundfonts

Re: Fw: I wrote a MIDI to Lily front end; also questions about video

2023-12-07 Thread Stefano Antonelli
On Thu, 2023-12-07 at 12:37 -0600, Karlin High wrote: > On 12/7/2023 12:30 PM, Stefano Antonelli wrote: > > It's the same deal for fluidsynth which doesn't come with sound > > fonts. > > What's the windows way to convert midi to wav? > > FluidSynth can do it. I u

Re: Fw: I wrote a MIDI to Lily front end; also questions about video

2023-12-07 Thread Karlin High
On 12/7/2023 12:30 PM, Stefano Antonelli wrote: It's the same deal for fluidsynth which doesn't come with sound fonts. What's the windows way to convert midi to wav? FluidSynth can do it. I use VLC Player which I think contains it. Prior post explains: <https://lists.gnu.org/archive/h

Re: Fw: I wrote a MIDI to Lily front end; also questions about video

2023-12-07 Thread Stefano Antonelli
ailing until timidity. l2video uses timidity to process the midi file into wav. And that works fine on linux. Odd because it was originally developed for windows. I can find timidity for windows, but it's not a nice installable package complete with soudfonts. And it's missing timidity.cfg whi

Re: Fw: I wrote a MIDI to Lily front end; also questions about video

2023-12-06 Thread Stefano Antonelli
On Thu, 2023-12-07 at 02:43 +, Chris Korda wrote: > Doesn’t LilyPond already contain python? There’s a python.exe in the > bin folder, and it appears to run the python scripts that come with > LilyPond, can I just use that to run ly2video? I’m guessing not > because that would be too easy.

Fw: I wrote a MIDI to Lily front end; also questions about video

2023-12-06 Thread Chris Korda
guessing not because that would be too easy.Chris On Thursday, December 7, 2023 at 01:05:38 AM GMT+1, Stefano Antonelli wrote: On Wed, 2023-12-06 at 17:21 +, Chris Korda wrote: > I spent much of the last week converting my compositions from MIDI > files to Lily format. I tried m

Re: I wrote a MIDI to Lily front end; also questions about video

2023-12-06 Thread Chris Korda
the different phases of compilation. You want grob callbacks, which is what that code does. Re MusicXML, can you recommend a FOSS MIDI to MusicXML converter that runs on Windows? Have you tried MuseScore's import then export? Last time I looked, this seemed to be the most accurate.

Re: I wrote a MIDI to Lily front end; also questions about video

2023-12-06 Thread Stefano Antonelli
On Wed, 2023-12-06 at 17:21 +, Chris Korda wrote: > I spent much of the last week converting my compositions from MIDI > files to Lily format. I tried midi2ly first, but found it lacking, > and decided to roll my own in C++. I gather there are other > converters around, as I saw

Re: I wrote a MIDI to Lily front end; also questions about video

2023-12-06 Thread Jean Abou Samra
ypond-s-inner-workings-and-how-you-might-hook-in-them) if you want to understand the different phases of compilation. You want grob callbacks, which is what that code does. > Re MusicXML, can you recommend a FOSS MIDI to MusicXML converter that runs on > Windows? Have you tried MuseSco

Re: I wrote a MIDI to Lily front end; also questions about video

2023-12-06 Thread Chris Korda
. Re MusicXML, can you recommend a FOSS MIDI to MusicXML converter that runs on Windows? I looked around, but didn’t find one. I tried one that was available on GitHub, and it generated Neutrino output, which musicxml2ly did not like. Converting MIDI to Lily is a messy process at best, and the best

Re: I wrote a MIDI to Lily front end; also questions about video

2023-12-06 Thread Jean Abou Samra
Hi, > I spent much of the last week converting my compositions from MIDI files to > Lily format. I tried midi2ly first, but found it lacking, and decided to roll > my own in C++. I gather there are other converters around, as I saw at least > one on GitHub. I may put mine on GitHu

I wrote a MIDI to Lily front end; also questions about video

2023-12-06 Thread Chris Korda
converting my compositions from MIDI files to Lily format. I tried midi2ly first, but found it lacking, and decided to roll my own in C++. I gather there are other converters around, as I saw at least one on GitHub. I may put mine on GitHub too, after its code settles down a bit. It assumes the MIDI

Re: MIDI Drums to lilypond

2023-11-17 Thread Luca Fascione
t's just the > standard General MIDI percussion keymap. > > At 10:52 on 17 Nov 2023, Luca Fascione wrote: > > Hi, > > I'm converting a MIDI file to lilypond with a drumset track. > > > My process goes through MusicXML, but the `musicxml2ly` script I have > > (2.22

Re: MIDI Drums to lilypond

2023-11-17 Thread Mark Knoop
You'll find it in drumpitch-init.ly, I believe it's just the standard General MIDI percussion keymap. At 10:52 on 17 Nov 2023, Luca Fascione wrote: > Hi, > I'm converting a MIDI file to lilypond with a drumset track. > My process goes through MusicXML, but the `musicxml2ly` scri

MIDI Drums to lilypond

2023-11-17 Thread Luca Fascione
Hi, I'm converting a MIDI file to lilypond with a drumset track. My process goes through MusicXML, but the `musicxml2ly` script I have (2.22.2) emits pitches instead of percussion notes. I can write a script to map those, but if anyone had a starting point, that'd be grand. In my mind

Re: top-level `\midi` doesn't work as expected

2023-11-16 Thread Werner LEMBERG
> Would it be possible to reformulate a bit to make it even more clear > that this is analogous to how \layout blocks behave (the only > difference being that a \score block that contains nor a layout > neither a midi block implicitly contains a layout block). For > exampl

Re: top-level `\midi` doesn't work as expected

2023-11-12 Thread Mats Bengtsson
On 2023-11-12 14:31, Werner LEMBERG wrote: MIDI settings can be changed globally (or in a book or bookpart), but the generation of an actual MIDI file is only triggered when a \midi block is encountered inside of a \score . Thanks

Re: top-level `\midi` doesn't work as expected

2023-11-12 Thread Werner LEMBERG
> MIDI settings can be changed globally (or in a book or bookpart), but > the generation of an actual MIDI file is only triggered when a \midi > block is encountered inside of a \score . Thanks for the idea and wording. https://gitlab.com/lilypond/lilypond/-/merge_requ

Re: top-level `\midi` doesn't work as expected

2023-11-12 Thread David Kastrup
Werner LEMBERG writes: > +A @code{@bs{}midi} block outside of @code{@bs{}score} does > +@emph{not} create a MIDI file.} MIDI settings can be changed globally (or in a book or bookpart), but the generation of an actual MIDI file is only triggered when a \midi block is encountered

Re: top-level `\midi` doesn't work as expected

2023-11-12 Thread Werner LEMBERG
> Thanks. I'll add this information to the NR. > > > Right now, the NR says the following > (https://lilypond.org/doc/v2.24/Documentation/notation/the-midi-block.html). > What > do you think needs to be clarified? > > To create a MIDI output file from a

Re: top-level `\midi` doesn't work as expected

2023-11-12 Thread Jean Abou Samra
  Thanks. I'll add this information to the NR.   Right now, the NR says the following (https://lilypond.org/doc/v2.24/Documentation/notation/the-midi-block.html). What do you think needs to be clarified?   To create a MIDI

Re: top-level `\midi` doesn't work as expected

2023-11-12 Thread Werner LEMBERG
>> I wonder whether it is expected that this simple input >> >> ``` >> { c' } >> \midi{} >> ``` >> >> doesn't create a MIDI file. > > > Yes. [...] Thanks. I'll add this information to the NR. Werner

Re: top-level `\midi` doesn't work as expected

2023-11-12 Thread Jean Abou Samra
> I wonder whether it is expected that this simple input > > ``` > { c' } > \midi{} > ``` > > doesn't create a MIDI file. Yes. Otherwise you could not do ``` \midi { global MIDI settings ... } fooMusic = ... \score { \fooMusic \layout { } } \score { \unfol

top-level `\midi` doesn't work as expected

2023-11-11 Thread Werner LEMBERG
[2.24.2, 2.25.10] I wonder whether it is expected that this simple input ``` { c' } \midi{} ``` doesn't create a MIDI file. I have to explicitly put everything into a `\score` block to get that. For me, this looks odd, and I couldn't find a hint in the documentation for that behaviour

Re: Initial rests in MIDI not included?

2023-09-29 Thread Jean Abou Samra
is this comment in elisp/lilypond-song.el: ;; We can't use midi files in ecasound directly, because setpos ;; doesn't work on them. Apparently its output is being used as some intermediate format, but don't ask me about it. The whole lilysong stuff is not documented either and I

Re: Initial rests in MIDI not included?

2023-09-28 Thread David Kastrup
output of lilymidi documented? A quick `git grep lilymidi` confirms that there is is no documentation for lilymidi. Zero, zilch, nada. It is installed with other binaries and is used by elisp/lilypond-song.el (but what for?). I'd have expected it to be used as part of 'make check' for comp

Re: Initial rests in MIDI not included?

2023-09-27 Thread David Wright
On Wed 27 Sep 2023 at 10:22:04 (+0200), David Kastrup wrote: > David Wright writes: > > On Wed 27 Sep 2023 at 01:13:09 (+0200), Jean Abou Samra wrote: > >> After replacing “ ... ” with “ c' ”, I got the expected MIDI output with > >> LilyPond 2.24.2, i.e., lots

Re: Initial rests in MIDI not included?

2023-09-27 Thread David Kastrup
ly ignoring > the quiet bits. I have no idea why anybody would consider that a sensible default, to be honest. I have a hard time imagining a sensible use case at all. Possibly skipping initial silences in manually recorded MIDI files that aren't edited at all in a sequencer? But that does not really sound all that sensible. -- David Kastrup

Re: Initial rests in MIDI not included?

2023-09-27 Thread David Kastrup
Jean Abou Samra writes: > Le mercredi 27 septembre 2023 à 08:22 -0400, Kevin Cole a écrit : >> And... we have a winner! It's a timidity problem! > > > From what I can read, it is the expected behavior of timidity, but there > is a --preserve-silence option to change it. I don't have timidity

Re: Initial rests in MIDI not included?

2023-09-27 Thread Kevin Cole
On Wed, Sep 27, 2023 at 8:28 AM Jean Abou Samra wrote: > Le mercredi 27 septembre 2023 à 08:22 -0400, Kevin Cole a écrit : > > And... we have a winner! It's a timidity problem! > > From what I can read, it is the expected behavior of timidity, but there > is a --preserve-silence option to change

Re: Initial rests in MIDI not included?

2023-09-27 Thread Jean Abou Samra
Le mercredi 27 septembre 2023 à 08:22 -0400, Kevin Cole a écrit : > And... we have a winner! It's a timidity problem! From what I can read, it is the expected behavior of timidity, but there is a --preserve-silence option to change it. signature.asc Description: This is a digitally signed

Re: Initial rests in MIDI not included?

2023-09-27 Thread Kevin Cole
, like > before, seems to be that timidity as a player skips initial rests. > And... we have a winner! It's a timidity problem! Try fluidsynth -ia pulseaudio -n on your MIDI file as an alternative (on > my system, I get inexplicable problems with -ia pipewire or -ia alsa) > instead. > Thanks!

Re: Initial rests in MIDI not included?

2023-09-27 Thread David Kastrup
> } > PartFour = \relative a { > \global > \clef "treble" > \partial 4 a4 > } > \score { > \new Voice = "PartFour" { > R1*32 R1*24 > \repeat unfold 4 { > \transpose c c,, { \PartFour } > } > } > \midi { } >

Re: Initial rests in MIDI not included?

2023-09-27 Thread Aaron Hill
a { \global \clef "treble" \partial 4 a4 } \score { \new Voice = "PartFour" { R1*32 R1*24 \repeat unfold 4 { \transpose c c,, { \PartFour } } } \midi { } } $ lilypond mwe.ly GNU LilyPond 2.24.2 (running Guile 2.2) Processing `mwe.ly' Parsing... Interpre

Re: Initial rests in MIDI not included?

2023-09-27 Thread Kevin Cole
\partial 4 a4 } \score { \new Voice = "PartFour" { R1*32 R1*24 \repeat unfold 4 { \transpose c c,, { \PartFour } } } \midi { } } $ lilypond mwe.ly GNU LilyPond 2.24.2 (running Guile 2.2) Processing `mwe.ly' Parsing... Interpreting music... MIDI output to `mwe.mi

Re: Initial rests in MIDI not included?

2023-09-27 Thread David Kastrup
David Wright writes: > On Wed 27 Sep 2023 at 01:13:09 (+0200), Jean Abou Samra wrote: >> After replacing “ ... ” with “ c' ”, I got the expected MIDI output with >> LilyPond 2.24.2, i.e., lots of silence and four C notes at the end. > > I did the same, and I attach a sc

Re: Suppressing a voice in the midi output

2023-09-27 Thread Sandro Santilli
Hi Sandro > > I'm not a member of the news list where you posted this (five years ago) > > but this is what I would have answered, > > I have found  either all on or all off midi settings kind of awkward myself. > > Use the \with command when you start a new voice or staff

Re: Initial rests in MIDI not included?

2023-09-26 Thread David Wright
On Wed 27 Sep 2023 at 01:13:09 (+0200), Jean Abou Samra wrote: > After replacing “ ... ” with “ c' ”, I got the expected MIDI output with > LilyPond 2.24.2, i.e., lots of silence and four C notes at the end. I did the same, and I attach a screenshot of audacious playing the file, called mi

Re: Initial rests in MIDI not included?

2023-09-26 Thread David Wright
R1*32 R1*8 > \repeat unfold 4 { > \transpose c c' { \PartTwo } > } > } > } > > \midi { } > } > %%% Is it possible your player is set to skip leading/trailing silence, which is quite usual. Cheers, David.

Re: Initial rests in MIDI not included?

2023-09-26 Thread Jean Abou Samra
After replacing “ ... ” with “ c' ”, I got the expected MIDI output with LilyPond 2.24.2, i.e., lots of silence and four C notes at the end. signature.asc Description: This is a digitally signed message part

Initial rests in MIDI not included?

2023-09-26 Thread Kevin Cole
THIS time? %%% \version "2.24.2" PartTwo = \relative a { ... } \score { \unfoldRepeats { \new Voice = "PartTwo" { R1*32 R1*8 \repeat unfold 4 { \transpose c c' { \PartTwo } } } } \midi { } } %%%

Re: Is there a way to get a "round" to play in the MIDI without making several staggered identical voices?

2023-09-20 Thread H. S. Teoh
e duplicates? (I only want it in the MIDI part, as the >printed part would only need to display the basic melody once.) Assign the music to a variable, and reuse it multiple times: myMusic = { ... % music notes here } % Printed score

Re: Is there a way to get a "round" to play in the MIDI without making several staggered identical voices?

2023-09-20 Thread Henning Hraban Ramm
Am 20.09.23 um 15:37 schrieb Kevin Cole: I'm not quite sure how to ask the question. Is there a way to play the same melody as different voices with different time offsets -- i.e. without duplicating it and adding rests at the beginnings of the duplicates? (I only want it in the MIDI part

Is there a way to get a "round" to play in the MIDI without making several staggered identical voices?

2023-09-20 Thread Kevin Cole
I'm not quite sure how to ask the question. Is there a way to play the same melody as different voices with different time offsets -- i.e. without duplicating it and adding rests at the beginnings of the duplicates? (I only want it in the MIDI part, as the printed part would only need to display

Re: Script for midi rehearsal files per voice

2023-07-28 Thread Michael Gerdau
I use Frescobaldi that essentially creates skeletons for that. Mobil gesendet > Am 28.07.2023 um 12:20 schrieb Stephan Schöll : > > Hi all > > Years ago I stumbled upon a script that generates midi rehearsal files > for each voice of an SATB choir e.g. and I missed the

Re: Script for midi rehearsal files per voice

2023-07-28 Thread Carl Sorensen
It’s in Frescobaldi. Choose the SATB choir template and make sure the rehearsal midi checkbox is checked. HTH, Carl

Re: Script for midi rehearsal files per voice

2023-07-28 Thread Hans Aikema
> On 28 Jul 2023, at 16:15, Stephan Schöll wrote: > > Hi all > > Years ago I stumbled upon a script that generates midi rehearsal files > for each voice of an SATB choir e.g. and I missed the chance to bookmark > or save it somehow. > > After registering

Script for midi rehearsal files per voice

2023-07-28 Thread Stephan Schöll
Hi all Years ago I stumbled upon a script that generates midi rehearsal files for each voice of an SATB choir e.g. and I missed the chance to bookmark or save it somehow. After registering each voice with the script, it iterates through all the voices. Each file contains all the voices keeping

Re: Doubling a note makes MIDI output louder

2023-07-09 Thread mskala
On Sun, 9 Jul 2023, Knute Snortum wrote: > note out of the other hand.  This is why I suggested that the MIDI performer > could ignore \parenthesize notes.  Would this create a pile of workarounds > for you? Not as long as I don't use \parenthesize. But I think it's preferable no

Re: Doubling a note makes MIDI output louder

2023-07-09 Thread Knute Snortum
On Sun, Jul 9, 2023 at 7:54 AM wrote: > On Sun, 9 Jul 2023, David Wright wrote: > > > players. But that's the problem here. When two real voices happen on > > the same note, the result doesn't sound like one louder voice, yet > > that's the effect you get from MIDI,

Re: Doubling a note makes MIDI output louder

2023-07-09 Thread David Wright
the effect you get from MIDI,¹ where the "two" voices are > > Not on *my* MIDI synthesizer. Two notes are two notes! I'm inclined to > be concerned by this because I do a lot of doubling of notes between > different MIDI channels. Each channel plays on a different patc

Re: Doubling a note makes MIDI output louder

2023-07-09 Thread David Kastrup
Knute Snortum writes: > On Sun, Jul 9, 2023 at 6:57 AM wrote: > >> On Sun, 9 Jul 2023, Knute Snortum wrote: >> >> > I'm not sure exactly how one would deal with this problem, other than >> with >> > tags. Maybe \parenthesize could not

  1   2   3   4   5   6   7   8   9   10   >