Re: Velocity with fvcurve

From: Raphaël Mouneyres <rmouneyres_at_gmail.com>
Date: Thu Dec 27 2018 - 22:27:52 CET
Ok sorry for missing the first message, i don’t have the whole thread at hand (just read it now)

you could either :
- read the midi file with another player (who would create a virtual midiout port)
- process in midish with the fcurve function from the virtual midi port to hardware midi out port
or
process all your files as I did with mido python library to process the midi files for disklavier.
https://mido.readthedocs.io/en/latest/
or
try the experimental alsa backend in mido ..

attached is the minimal script to process the note velocity



Raphaël


> Le 27 déc. 2018 à 21:56, dan cunningham <dan@digitaldan.com> a écrit :
> 
> >in the midish archive, there is a message from 2008 about the « fcurve » function to correct velocity :
> 
> Correct, but filters only wok on midi in, and not when you import a midi file, so I was thinking I might need to have one midish process outputting to a named pipe while another one reads it in as a midi device and can apply that filter.  If you look at my first email in this thread, I tried exactly what was in that message first. 
> 
> On Thu, Dec 27, 2018 at 12:18 PM Raphaël Mouneyres <rmouneyres@gmail.com> wrote:
> indeed the midi chart doesn’t mention CC7 as recognised, so it will be silently ignored.
> 
> in the midish archive, there is a message from 2008 about the « fcurve » function to correct velocity :
> http://www.midish.org/arch/0056.html
> 
> Raphaël
> 
> 
> > Le 27 déc. 2018 à 19:33, dan cunningham <dan@digitaldan.com> a écrit :
> > 
> > >The solution was to change notes velocity instead of cc7.
> > 
> > Thanks, that makes sense, glad to hear you ended up with a working solution, I will probably go down the same route! (see my question below)
> > 
> > >Most MIDI gears come with a "MIDI implementation chart", often the
> > 
> > I did a little archaeology and found a scanned version of the original manual, and yes it does contain a MIDI implementation chart!.  I don't see anything referencing using the volume channel, only the velocity of key ON messages (at least I think thats what I'm reading). I'm attaching a screen shot of the page, not sure if it will attach right to the list.
> > 
> > So my next question,  Is there a way to change the note velocity from an inputed midi file in real time?  I'm not above using multiple processes and named pipes if need be.
> > 
> > 
> > On Thu, Dec 27, 2018 at 4:28 AM Alexandre Ratchov <alex@caoua.org> wrote:
> > On Wed, Dec 26, 2018 at 10:18:21PM -0800, dan cunningham wrote:
> > > Thank you for the reply!
> > > 
> > > Changing the volume channel (7) did indeed change the the resulting volume when
> > > exporting to a file.  Unfortunately when I hooked it back up to the Yamaha
> > > piano, the volume did not change,  This piano is fairly old, its a Disklavier
> > > Grand Piano from circa 1990 and I'm guessing may not conform to completely to
> > > midi standards.    I am going to keep poking at it to see what the magic
> > > combination is, I know others have managed to adjust the volume with commercial
> > > solutions.  One thing i was reading up on was sending a sysex MIDI Master
> > > Volume message, i have no idea if this will have any effect, but we will see. 
> > > 
> > 
> > Most MIDI gears come with a "MIDI implementation chart", often the
> > last few pages of the user manual. You could try to figure out which
> > controllers are supported, and whether there's a non-standard mean to
> > adjust the volume.
> > -- 
> > Sent from my mobile.
> > <image.png>
> 
> -- 
> Sent from my mobile.


Received on Thu, 27 Dec 2018 22:27:52 +0100

This archive was generated by hypermail 2.1.8 : Sat Dec 29 2018 - 01:32:39 CET