Mats Bengtsson wrote:
> > Hi.
> >
> > I have a bare-bone melody dictation utility that generates "mudela"
> > output (Linux). [...snip...]
> Interesting! At our Signal Processing group at the Royal Institute of
> Technology, Stockholm, we give a project course where the students
> solve different problems using a DSP. This year, we actually had a
> group that implemented a similar program, though not connected to
> Lilypond. Unfortunately, their solution wasn't that robust, I hope
> yours works better.
It is not perfect but I think that it is usable. The note parsing is
more robust if
you're not interested in real time. Currently my code requires a bit of
look-ahead, so that the note is delivered to the application only when
the algorithm is sure that a new note or a pause is has begun. This may
require an amount of time equal to the minimum duration of a note.
Depending on your application this may or may not be a problem.
Could I have a look at your student's code?
> [...snip...]
> > 1) The user declare the duration of the first note, then the subsequent
> > duration are quantized and scaled accordingly.
> >
> > 2) The user declares the tempo (like in a MIDI file), then he sings (or
> > plays) "a tempo".
>
> I haven't tried any of the commercial music typesetting programs
> or sequencers where you can use a synth keyboard to enter the music, but
> as far as I understand, most of them use the second alternative.
> However, I've been thinking of a solution like 1) where you also
> adaptively try to track small variations in the input tempo.
> Of course
> you have to use user parameters that tells what note durations should
> be considered, just as in midi2ly.
Ok, I'll try this approach first, altough tempo tracking it not so easy.
> (Maybe you should consider to rename the program in spirit of
> the mi2mu -> midi2ly change that was done recently.)
Ok.
> > Does anybody know how to embed such a program in an editor? (Emacs?)
>
> Shouldn't be too hard to make a lisp function that calls your
> external program and includes the output in the buffer.
Auch... have to study lisp too?! :)
(BTW, another application could be a front-end for the Mutopia search
engine)
Maurizio Umberto Puxeddu