denemo-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Denemo-devel] midi input


From: Jeremiah Benham
Subject: Re: [Denemo-devel] midi input
Date: Wed, 05 Nov 2008 08:27:42 -0600

On Wed, 2008-11-05 at 08:13 +0000, Richard Shann wrote:
> I have plugged in my m-audio keystation 49 and doing
> cat /dev/midi
> I can see the midi data coming in as I press the keys.

We can a universal function that responds to midi messages NOTE_ON,
NOTE_OFF, PITCH_BEND, etc... and if jack is not available we can default
to oss. Alsa does oss emulation so the user just has to provide the
device path /dev/snd/midi02, /dev/midi or whatever. 

> It looks like for the non-jack branch we could possibly just collect the
> simplest "noteon" data and use it as pitch input for Denemo. 

You are going to want to process it to determine if the input is
overlapping or if the foot pedal has been pressed. 

> This would
> still leave the question of how to get midi out, though. 

There is already some code written for this. Users who have a hardware
synth on their card can have immediate playback as notes are entered.
Unfortunately the code is broken at the moment. If
gui->si->prefs->immediateplayback is TRUE notes entered dnm_insertchord
calls playnotes() defined in midi.c. The call to playnotes it commented
out at the moment because it was broken. I am not sure how this works
exactly its using /dev/sequencer to write to. I believe it is then the
responsibility of your alsa drivers from there on. 

> You need some
> output as you play the music in as audible feedback that you have hit
> the right note.

Would we add jack output to the release also?  I could probably have it
sending out notes that are entered immediately. I could not do a full
score playback via jack without dedicating some time to it though. I
would want to get playnotes() working first anyway.  

Jeremiah

> It's not that I am avoiding getting jackmidi working on my computer,
> just a question of finding more than the odd half-hour to work on it.
> (You may have noticed that I keep doing lots of small things, for this
> reason).
> Richard
> 
> 
> 
> 
> _______________________________________________
> Denemo-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/denemo-devel





reply via email to

[Prev in Thread] Current Thread [Next in Thread]